/* ==========================================================================
   SynRemote — Main Stylesheet
   Brand: #0068a5 (blue), #0f172a (near-black), #f8fafc (light gray)
   ========================================================================== */

/* ── 1. Variables & Reset ─────────────────────────────────────────────── */

:root {
  --blue:        #0068a5;
  --blue-dark:   #00527f;
  --blue-hover:  #0077bc;
  --blue-pale:   #e8f4fb;
  --blue-faint:  #f0f8ff;

  --black:       #0f172a;
  --text:        #1e293b;
  --text-sub:    #475569;
  --text-muted:  #94a3b8;

  --border:      #e2e8f0;
  --border-dark: #cbd5e1;

  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --bg-dark:     #0f172a;

  --green:       #16a34a;
  --green-pale:  #dcfce7;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.14);

  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --nav-h:      68px;
  --max-w:      1200px;

  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

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

body { overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }


/* ── 2. Typography ───────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  color: var(--black);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-sub); }

.section-title   { text-align: center; margin-bottom: .75rem; }
.section-sub     { text-align: center; color: var(--text-sub); font-size: 1.1rem; max-width: 580px; margin: 0 auto 3.5rem; }


/* ── 3. Layout Utilities ─────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-12 { gap: 12px; }

.text-center { text-align: center; }


/* ── 4. Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

/* Primary — solid blue */
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,104,165,.35);
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 20px rgba(0,104,165,.45);
  filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — outline blue */
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: var(--blue-pale);
  box-shadow: 0 4px 14px rgba(0,104,165,.12);
}

/* White — for dark backgrounds */
.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-white:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  filter: brightness(1.03);
}

/* Ghost — subtle */
.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); }

/* Sizes */
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* Full width */
.btn-full { width: 100%; justify-content: center; }


/* ── 5. Navigation ───────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color .2s, box-shadow .2s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-sub);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--black); background: var(--bg-alt); text-decoration: none; }
.nav-link.active { color: var(--blue); }

/* Right side actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switch {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 11px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  display: block;
  letter-spacing: .04em;
}
.lang-btn:hover { color: var(--text); background: var(--border); }
.lang-btn.active { background: var(--blue); color: #fff; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 6. Hero ─────────────────────────────────────────────────────────── */

.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
  background: linear-gradient(160deg, #f0f8ff 0%, #ffffff 55%, #f8fafc 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-headline {
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-headline .accent { color: var(--blue); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sub);
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

/* CSS app mockup */
.hero-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
  width: 100%;
  user-select: none;
}

.mockup-nav {
  background: var(--blue);
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.mockup-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mockup-nav-title { color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 600; margin-left: 6px; flex: 1; }
.mockup-status { display: flex; align-items: center; gap: 5px; }
.mockup-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.mockup-status-text { color: rgba(255,255,255,.8); font-size: .72rem; }

.mockup-body {
  display: flex;
  height: 280px;
}

.mockup-sidebar {
  width: 50px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}
.mockup-sb-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-sb-btn.active { background: var(--blue-pale); }
.mockup-sb-icon { width: 16px; height: 16px; background: var(--border-dark); border-radius: 3px; }
.mockup-sb-btn.active .mockup-sb-icon { background: var(--blue); }

.mockup-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.mockup-id-card {
  background: linear-gradient(135deg, var(--blue) 0%, #0086cc 100%);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
}
.mockup-id-label { font-size: .68rem; opacity: .75; margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; }
.mockup-id-number { font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; }
.mockup-id-sub { font-size: .68rem; opacity: .65; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.mockup-id-sub-dot { width: 5px; height: 5px; background: #4ade80; border-radius: 50%; }

.mockup-connect-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.mockup-cc-label { font-size: .68rem; color: var(--text-muted); margin-bottom: 8px; }
.mockup-cc-input {
  background: #fff;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  height: 30px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
}
.mockup-cursor { width: 1px; height: 14px; background: var(--blue); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mockup-cc-placeholder { font-size: .72rem; color: var(--text-muted); }
.mockup-cc-btn {
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 600;
}

.mockup-device-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mockup-dev-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.mockup-dev-info { flex: 1; }
.mockup-dev-name { font-size: .72rem; font-weight: 600; color: var(--text); }
.mockup-dev-id { font-size: .65rem; color: var(--text-muted); }
.mockup-dev-btn { width: 22px; height: 22px; background: var(--blue-pale); border-radius: 5px; flex-shrink: 0; }


/* ── 7. Features ─────────────────────────────────────────────────────── */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-pale);
}

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--blue-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.feat-icon-wrap svg { width: 26px; height: 26px; }

.feat-card h3 { margin-bottom: 10px; font-size: 1.05rem; }

.feat-card p { font-size: .9rem; line-height: 1.65; }


/* ── 8. Pricing ──────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}

.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.price-card.popular {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-pale), var(--shadow-md);
  transform: translateY(-6px);
}
.price-card.popular:hover { transform: translateY(-10px); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-name { font-size: 1rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.price-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.price-currency { font-size: 1.2rem; font-weight: 600; color: var(--text-sub); }
.price-value { font-size: 2.6rem; font-weight: 800; color: var(--black); line-height: 1; }
.price-period { font-size: .85rem; color: var(--text-muted); }

.price-year { font-size: .78rem; color: var(--text-muted); margin-bottom: 24px; }

.price-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.price-feat {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .875rem;
  color: var(--text-sub);
}

.price-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}


/* ── 9. Download section ─────────────────────────────────────────────── */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 40px;
}

.dl-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  text-decoration: none;
}

.dl-os-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--bg-alt);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.dl-os-icon svg { width: 30px; height: 30px; }

.dl-os-name { font-size: 1.1rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.dl-os-note { font-size: .8rem; color: var(--text-muted); margin-bottom: 20px; }

.dl-version-badge {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.dl-note {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}


/* ── 10. CTA band ────────────────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, #0086cc 50%, #005490 100%);
  padding: 80px 24px;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }


/* ── 11. Footer ──────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-mark { background: rgba(255,255,255,.12); }
.footer-brand .logo-name { color: #fff; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 220px; line-height: 1.6; }

.footer-col-title {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: .8rem; color: rgba(255,255,255,.35); }


/* ── 12. Forms (Register, Login, Checkout) ───────────────────────────── */

.auth-page {
  min-height: 100vh;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}

.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}

.auth-title { text-align: center; margin-bottom: 6px; font-size: 1.6rem; }
.auth-sub   { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-pale);
}
.form-input::placeholder { color: var(--text-muted); }

.form-input.error { border-color: #ef4444; }
.form-input.error:focus { box-shadow: 0 0 0 3px #fee2e2; }

.form-error {
  font-size: .8rem;
  color: #dc2626;
  margin-top: 5px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}
.form-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }

.form-alt-link {
  text-align: center;
  font-size: .85rem;
  color: var(--text-sub);
  margin-top: 20px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: .8rem;
}
.form-divider::before,
.form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Steps indicator */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  transition: all .2s;
}
.step-dot.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.step-dot.done   { border-color: var(--green); background: var(--green); color: #fff; }

.step-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 5px;
  text-align: center;
}
.step-label.active { color: var(--blue); font-weight: 600; }

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  position: relative;
  top: -10px;
}
.step-connector.done { background: var(--green); }

.step-wrap { display: flex; flex-direction: column; align-items: center; }


/* Plan selector inside register */
.plan-sel-card {
  background: var(--blue-pale);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.plan-sel-name  { font-weight: 700; color: var(--blue); }
.plan-sel-price { font-size: .85rem; color: var(--text-sub); }

/* Payment method tabs */
.pay-tabs {
  display: flex;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.pay-tab {
  flex: 1;
  padding: 11px;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg);
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.pay-tab.active { background: var(--blue); color: #fff; }

.pay-section { display: none; }
.pay-section.active { display: block; }

/* Stripe card element host */
#card-element {
  padding: 12px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 18px;
  min-height: 46px;
  transition: border-color .15s;
}
#card-element.StripeElement--focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }

/* Bank transfer info */
.bank-info { display: flex; flex-direction: column; gap: 14px; }
.bank-row { display: flex; flex-direction: column; gap: 3px; }
.bank-row-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.bank-row-value { font-size: .95rem; font-weight: 600; color: var(--text); font-family: monospace; }
.bank-ref-box {
  background: var(--blue-faint);
  border: 1.5px dashed var(--blue);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: monospace;
  font-weight: 700;
  color: var(--blue);
  font-size: 1rem;
  letter-spacing: .08em;
  text-align: center;
}
.bank-note {
  background: var(--bg-alt);
  border-left: 3px solid var(--blue);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  font-size: .82rem;
  color: var(--text-sub);
}

/* Success state */
.success-box {
  text-align: center;
  padding: 32px 16px;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green);
}
.success-icon svg { width: 32px; height: 32px; }
.success-box h3 { margin-bottom: 10px; }
.success-box p  { font-size: .9rem; margin-bottom: 28px; }

/* Alert box */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 18px;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info  { background: var(--blue-pale); color: var(--blue-dark); border: 1px solid #bfdbfe; }


/* ── 13. Dashboard ───────────────────────────────────────────────────── */

.dash-page {
  min-height: 100vh;
  background: var(--bg-alt);
  padding-top: var(--nav-h);
}

.dash-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.dash-content { padding: 40px 0; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }

.dash-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dash-card-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.dash-card-value { font-size: 2rem; font-weight: 800; color: var(--black); }
.dash-card-sub   { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.dash-id-card {
  background: linear-gradient(135deg, var(--blue) 0%, #0086cc 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
}
.dash-id-label { font-size: .8rem; opacity: .7; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.dash-id-number { font-size: 1.8rem; font-weight: 800; letter-spacing: .1em; font-family: monospace; }
.dash-id-sub { font-size: .8rem; opacity: .65; margin-top: 8px; }

.coming-soon-box {
  background: var(--bg);
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
}
.coming-soon-box p { margin-top: 10px; font-size: .9rem; }


/* ── 14. Scroll animations ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }


/* ── 15. Toast ───────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--black);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: .875rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 9000;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ── 16. Page-specific sections ──────────────────────────────────────── */

/* Pricing page hero */
.page-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  text-align: center;
  background: linear-gradient(160deg, #f0f8ff 0%, #ffffff 100%);
}

/* Inner page for non-index pages */
.page-inner {
  padding-top: var(--nav-h);
}


/* ── 17. Responsive — tablet (≤1024px) ──────────────────────────────── */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-mockup { max-width: 460px; margin: 0 auto; }

  .feat-grid   { grid-template-columns: repeat(2, 1fr); }
  .price-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile nav overlay */
  .nav-menu-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
    box-shadow: var(--shadow-md);
  }
  .nav-menu-mobile.open { display: flex; }

  .nav-menu-mobile .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav-menu-mobile .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .nav-menu-mobile .lang-switch { align-self: flex-start; margin-top: 8px; }

  /* Keep lang switch and login in desktop nav */
  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary.nav-cta { display: none; }
  .nav-login-btn { display: inline-flex !important; }
}


/* ── 18. Responsive — mobile (≤768px) ───────────────────────────────── */

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; }

  .feat-grid  { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .dl-grid    { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .auth-card { padding: 32px 24px; }
  .step-connector { width: 28px; }

  .dash-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-inner { padding: 0 16px; }
  .auth-card  { padding: 28px 20px; border-radius: var(--radius-lg); }
}
