body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e5e7eb;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-toggle .help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 163, 115, 0.7);
  color: #d4a373;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.language-toggle .help-link:hover,
.language-toggle .help-link:focus {
  background: rgba(212, 163, 115, 0.15);
  color: #fef3c7;
  border-color: rgba(254, 243, 199, 0.8);
}

.language-menu {
  position: relative;
}

.language-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 163, 115, 0.7);
  background: transparent;
  color: #d4a373;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.language-menu-trigger:hover,
.language-menu-trigger:focus {
  background: rgba(212, 163, 115, 0.15);
  color: #fef3c7;
  border-color: rgba(254, 243, 199, 0.8);
}

.language-menu-trigger:focus-visible {
  outline: 2px solid rgba(212, 163, 115, 0.9);
  outline-offset: 2px;
}

.language-menu-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  min-width: 120px;
  z-index: 10;
}

[dir="rtl"] .language-menu-options {
  left: 0;
  right: auto;
}

.language-menu:hover .language-menu-options,
.language-menu:focus-within .language-menu-options,
.language-menu.is-open .language-menu-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.4rem 0.75rem;
  border-radius: 0.6rem;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-menu-option:hover,
.language-menu-option:focus {
  background: rgba(212, 163, 115, 0.15);
  color: #fef3c7;
}

.language-menu-option:focus-visible {
  outline: 2px solid rgba(212, 163, 115, 0.9);
  outline-offset: 2px;
}

.language-menu-option.active {
  background: rgba(212, 163, 115, 0.25);
  color: #facc15;
}

.help-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.help-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.help-hero h1 {
  font-family: 'Lora', serif;
  color: #facc15;
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin: 0;
}

.help-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: #e2e8f0;
  line-height: 1.6;
}

.help-home-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.help-home-link:hover,
.help-home-link:focus {
  transform: translateY(-1px);
  border-color: rgba(212, 163, 115, 0.7);
  background: rgba(30, 41, 59, 0.85);
  color: #fef9c3;
}

.help-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.help-column {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.help-column h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #bfdbfe;
}

.help-section h3 {
  margin-top: 0;
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  color: #fcd34d;
}

.help-section p,
.help-section li {
  line-height: 1.7;
  color: #e2e8f0;
}

.help-section ul,
.help-section ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.help-section ol {
  list-style-position: outside;
}

.help-section strong {
  color: #facc15;
}

.help-column-fa {
  direction: rtl;
  text-align: right;
}

.help-column-fa .help-section ul,
.help-column-fa .help-section ol {
  margin: 0 1.25rem 1rem 0;
}

@media (max-width: 960px) {
  .help-columns {
    grid-template-columns: 1fr;
  }

  .help-column {
    padding: 1.5rem;
  }
}
