/* ═══════════════════════════════════════════════
   Atiq Exchange — turquoise / deep navy / gold
   ═══════════════════════════════════════════════ */

:root {
  --navy-900: #071527;
  --navy-800: #0a1f33;
  --navy-700: #0f2a44;
  --turq-300: #7de8f0;
  --turq-400: #40c4d0;
  --turq-500: #2ab7c5;
  --turq-700: #0e7d8a;
  --gold-300: #e8c86a;
  --gold-500: #c9a227;
  --ink: #eaf6f8;
  --ink-dim: #9db8c4;
  --card: rgba(42, 183, 197, 0.06);
  --card-border: rgba(64, 196, 208, 0.22);
  --surface-veil: rgba(7, 21, 39, 0.88);   /* translucent header/topbar */
  --surface-input: rgba(7, 21, 39, 0.6);   /* form fields */
  --font-latin-display: "Cormorant Garamond", Georgia, serif;
  --font-latin-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-fa: "Vazirmatn", Tahoma, sans-serif;
  --font-fa-display: "Markazi Text", "Vazirmatn", serif;
}

/* ── Light theme (toggled by js/theme.js, saved per visitor) ── */
html[data-theme="light"] {
  --navy-900: #f2f6f8;
  --navy-800: #ffffff;
  --navy-700: #e3ecf1;
  --turq-300: #0d7a87;
  --turq-400: #11919f;
  --turq-500: #17a3b1;
  --turq-700: #0b6570;
  --gold-300: #96751a;
  --gold-500: #b08a2e;
  --ink: #12242f;
  --ink-dim: #54707e;
  --card: rgba(23, 163, 177, 0.05);
  --card-border: rgba(13, 122, 135, 0.22);
  --surface-veil: rgba(255, 255, 255, 0.88);
  --surface-input: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-latin-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Persian mode: swap fonts */
html[lang="fa"] body,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] button {
  font-family: var(--font-fa);
}
/* Persian display face: Markazi Text — calligraphy-informed, matches the
   "عتیق / timeless" brand. It renders visually smaller than Vazirmatn,
   so the fa heading sizes are bumped to compensate. */
html[lang="fa"] .hero-title,
html[lang="fa"] .section-title,
html[lang="fa"] .brand-name {
  font-family: var(--font-fa-display);
  font-weight: 700;
}
html[lang="fa"] .hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.25; }
html[lang="fa"] .section-title { font-size: clamp(2.1rem, 4.2vw, 3rem); }
html[lang="fa"] .brand-name { font-size: 1.5rem; line-height: 1.1; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

img { max-width: 100%; }

a { color: var(--turq-400); text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-veil);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
}

/* Full logo lockup in the header — one image per theme */
.brand-logo { height: 56px; width: auto; display: block; }
.logo-when-light { display: none; }
html[data-theme="light"] .logo-when-dark { display: none; }
html[data-theme="light"] .logo-when-light { display: block; }

.brand-mark svg { width: 44px; height: 44px; display: block; }

.brand-text { display: flex; flex-direction: column; gap: 0.18rem; line-height: 1.2; }

.brand-name {
  font-family: var(--font-latin-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--turq-300);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  text-transform: uppercase;
}

.main-nav { display: flex; gap: 1.7rem; }

.main-nav a {
  color: var(--ink-dim);
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--turq-300); }

/* ── Nav dropdown (امکانات) ── */
.nav-drop { position: relative; }

.nav-drop-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-drop-btn:hover { color: var(--turq-300); }
.nav-drop-btn::after {
  content: "▾";
  font-size: 0.72em;
  color: var(--turq-400);
  transition: transform 0.2s;
}
.nav-drop.open .nav-drop-btn { color: var(--turq-300); }
.nav-drop.open .nav-drop-btn::after { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  inset-inline-start: -0.8rem;
  min-width: 13.5rem;
  background: var(--navy-800);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.45rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 60;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.nav-drop-menu a:hover { background: rgba(64, 196, 208, 0.1); }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.lang-switch {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 99px;
  color: var(--ink-dim);
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  transition: border-color 0.2s;
}
.lang-switch:hover { border-color: var(--turq-400); }
.lang-divider { color: var(--card-border); }
.lang-opt.active { color: var(--turq-300); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--turq-300);
  display: block;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 7rem 0 5.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(42, 183, 197, 0.18), transparent),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 300px at 15% 80%, rgba(201, 162, 39, 0.07), transparent),
    radial-gradient(circle 400px at 85% 20%, rgba(64, 196, 208, 0.08), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-kicker {
  color: var(--gold-300);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-latin-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 18ch;
  margin-inline: auto;
  background: linear-gradient(120deg, var(--turq-300), var(--turq-500) 60%, var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 56ch;
  margin: 1.4rem auto 2.2rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.78rem 2rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--turq-500), var(--turq-700));
  color: #fff;
  box-shadow: 0 6px 24px rgba(42, 183, 197, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(42, 183, 197, 0.5); }

.btn-ghost {
  border: 1px solid var(--card-border);
  color: var(--turq-300);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--turq-400); }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.2rem;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* ── Sections ── */
.section { padding: 5rem 0; }

.section-alt {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border-block: 1px solid rgba(64, 196, 208, 0.1);
}

.section-kicker {
  color: var(--gold-300);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-latin-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--turq-300);
  margin-bottom: 2.2rem;
}

/* ── Services cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 196, 208, 0.5);
}

.card-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }

.card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card p { color: var(--ink-dim); font-size: 0.92rem; }

/* ── Rates ── */
.rates-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.rates-table th, .rates-table td {
  padding: 0.9rem 1.4rem;
  text-align: start;
  border-bottom: 1px solid rgba(64, 196, 208, 0.12);
}

.rates-table th {
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rates-table tbody tr:last-child td { border-bottom: none; }
.rates-table tbody tr:hover { background: rgba(64, 196, 208, 0.05); }

.rate-flag { margin-inline-end: 0.5rem; }

.rates-note {
  margin-top: 1rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.about-text p { color: var(--ink-dim); margin-bottom: 1rem; }

.about-list { list-style: none; margin-top: 1.4rem; }

.about-list li {
  padding-inline-start: 1.6rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--ink);
}
.about-list li::before {
  content: "◆";
  color: var(--turq-400);
  position: absolute;
  inset-inline-start: 0;
  font-size: 0.7rem;
  top: 0.35rem;
}

.gem-frame {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(64, 196, 208, 0.12), transparent),
    var(--navy-800);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.gem-frame img { border-radius: 12px; max-height: 320px; object-fit: contain; }

.gem-fallback { display: none; width: 60%; }
.gem-frame.no-logo .gem-fallback { display: block; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-line { margin-bottom: 1.4rem; display: flex; flex-direction: column; }

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.2rem;
}

.contact-value { color: var(--ink); font-size: 1.05rem; }
a.contact-value:hover { color: var(--turq-300); }

/* WhatsApp line under تماس با ما */
.wa-line { display: inline-flex; align-items: center; gap: 0.5rem; }
.wa-line svg { width: 1.2rem; height: 1.2rem; color: #25d366; flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; }

.contact-form span { font-size: 0.85rem; color: var(--ink-dim); }

.contact-form input,
.contact-form textarea {
  background: var(--navy-800);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--turq-400);
}

.contact-form .btn { align-self: flex-start; }

.form-status { color: var(--turq-300); font-size: 0.88rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 0;
  background: var(--navy-900);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-brand { display: flex; flex-direction: column; }

.footer-domains { display: flex; gap: 1.5rem; }
.footer-domains a { color: var(--ink-dim); font-size: 0.88rem; }
.footer-domains a:hover { color: var(--turq-300); }

.footer-copy { color: var(--ink-dim); font-size: 0.8rem; }

/* ── Responsive ──
   The nav collapses into the hamburger before it can wrap or crowd
   the brand — four items need roughly 960px of header. */
@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: var(--navy-800);
    border-bottom: 1px solid var(--card-border);
    padding: 1.2rem 6%;
    gap: 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Dropdown becomes an inline, indented group inside the mobile menu */
  .nav-drop-menu {
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.3rem 1.1rem 0;
  }
  .nav-drop-menu a { padding: 0.45rem 0; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 4rem; }
}

/* ══════════ Support widget ══════════ */
.support-widget {
  position: fixed;
  inset-block-end: 1.4rem;
  inset-inline-end: 1.4rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}
html[dir="rtl"] .support-widget { align-items: flex-start; }

/* Pill-shaped support button: headset icon + label */
.support-fab {
  border: none;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--turq-300), var(--turq-500));
  box-shadow: 0 8px 28px rgba(42, 183, 197, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
html[data-theme="light"] .support-fab { color: #fff; }
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(42, 183, 197, 0.6); }
.support-fab svg { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
.fab-label { white-space: nowrap; }
.support-fab .fab-icon-close { display: none; }
.support-widget.open .fab-icon-open { display: none; }
.support-widget.open .fab-icon-close { display: block; }

/* WhatsApp button inside the panel */
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2ecc71, #1faa5c);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
}
.wa-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(46, 204, 113, 0.45); }
.wa-btn svg { width: 1.3rem; height: 1.3rem; flex-shrink: 0; }

/* FAQ accordion */
.faq-title {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.faq details {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 0.45rem;
  background: var(--card);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.6rem 0.8rem;
  font-size: 0.87rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "▾";
  color: var(--turq-400);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p {
  padding: 0 0.8rem 0.7rem;
  font-size: 0.84rem;
  color: var(--ink-dim);
}

/* Ticket form hidden behind a small toggle */
.ticket-toggle { margin-top: 0.9rem; }
.ticket-toggle > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.83rem;
  color: var(--ink-dim);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ticket-toggle > summary::-webkit-details-marker { display: none; }
.ticket-toggle > summary:hover { color: var(--turq-300); }
.ticket-toggle .support-form { margin-top: 0.9rem; }

.support-panel {
  width: min(22rem, calc(100vw - 2.8rem));
  max-height: min(74vh, 36rem);
  overflow-y: auto;
  background: var(--navy-800);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: supportIn 0.22s ease-out;
}
@keyframes supportIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.support-head h3 {
  font-family: var(--font-latin-display);
  color: var(--turq-300);
  font-size: 1.25rem;
}
html[lang="fa"] .support-head h3 { font-family: var(--font-fa); }
.support-head p { font-size: 0.83rem; color: var(--ink-dim); margin: 0.2rem 0 1rem; }

.support-form select {
  background: var(--surface-input);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: var(--ink);
  font: inherit;
}
.support-form select:focus { outline: none; border-color: var(--turq-400); }
.support-form .btn { align-self: stretch; text-align: center; }

/* ── Header login / install buttons (works on <a> and <button>) ── */
.btn-login {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--turq-300);
  border-radius: 10px;
  padding: 0.38rem 0.95rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-login:hover { border-color: var(--turq-400); background: rgba(64, 196, 208, 0.1); }

/* ── Admin-controlled announcement bar ── */
.announce-bar {
  background: linear-gradient(90deg, rgba(232, 200, 106, 0.14), rgba(64, 196, 208, 0.14));
  border-bottom: 1px solid var(--card-border);
  color: var(--gold-300);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

/* ── Theme switch: dark | bright pill, sits next to the language switch ── */
.theme-switch {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 99px;
  color: var(--ink-dim);
  padding: 0.22rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  display: flex;
  gap: 0.1rem;
  align-items: center;
  transition: border-color 0.2s;
}
.theme-switch:hover { border-color: var(--turq-400); }

.theme-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 99px;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.theme-opt.active {
  opacity: 1;
  color: var(--turq-300);
  background: rgba(64, 196, 208, 0.14);
  font-weight: 600;
}
.theme-opt svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }

/* ── Crypto rates ── */
.crypto-icon { color: var(--gold-300); font-weight: 600; }

/* ── Contact block (lives under the About section) ── */
.contact-sub {
  margin-top: 4.5rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--card-border);
}
.sub-title {
  font-family: var(--font-latin-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--turq-300);
  margin-bottom: 1.8rem;
}
html[lang="fa"] .sub-title {
  font-family: var(--font-fa-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

/* ── Feature cards (امکانات) ── */
.feat-card { display: flex; flex-direction: column; align-items: flex-start; }
.feat-card, #gold, #loan, #invest { scroll-margin-top: 6.5rem; }
.feat-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--card-border);
  background: rgba(64, 196, 208, 0.08);
  color: var(--turq-300);
  margin-bottom: 0.9rem;
}
.feat-icon svg { width: 1.5rem; height: 1.5rem; }
.feat-card p { margin-bottom: 1rem; }
.feat-link {
  margin-top: auto;
  font-size: 0.84rem;
  color: var(--gold-300);
}
.feat-link:hover { color: var(--turq-300); }

/* ── Guide steps ── */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.guide-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
}
.step-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--turq-400), var(--turq-700));
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.guide-step h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 0.45rem; font-weight: 600; }
.guide-step p { color: var(--ink-dim); font-size: 0.9rem; }

/* ── Compact header on small phones (must never overflow the viewport) ── */
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .header-actions { gap: 0.4rem; }
  .theme-lbl { display: none; }
  .lang-switch, .theme-switch { padding: 0.32rem 0.55rem; gap: 0.3rem; font-size: 0.8rem; }
  .btn-login { padding: 0.34rem 0.7rem; font-size: 0.8rem; }
  .brand-sub { display: none; }
  .brand { gap: 0.45rem; }
  .brand-mark svg { width: 34px; height: 34px; }
  .brand-logo { height: 40px; }

  /* Install prompt becomes a floating pill so the header stays slim */
  #installBtn {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    border: none;
    border-radius: 99px;
    background: linear-gradient(120deg, var(--turq-500), var(--turq-700));
    color: #fff;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 8px 26px rgba(42, 183, 197, 0.45);
  }
}

[hidden] { display: none !important; }
