/* ══════════════════════════════════════════════════════════════
   ZScanner Portal — Main Stylesheet
   Professional dark-navy + light sections hybrid design
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-mid:   #0d2144;
  --navy-light: #1a3456;
  --blue:       #1f6feb;
  --blue-light: #58a6ff;
  --blue-glow:  rgba(31,111,235,.25);
  --text:       #1a2332;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --bg:         #f4f6f9;
  --bg-card:    #ffffff;
  --bg-dark:    #0a1628;
  --border:     #e2e8f0;
  --border-dark:#1e3a5f;
  --crit:       #c0392b;
  --high:       #d35400;
  --med:        #b7950b;
  --low:        #1e8449;
  --info:       #1a5276;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --transition: .2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text);
       background: var(--bg); line-height: 1.65; font-size: 15px; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 8px; font-weight: 600; font-size: .92em;
  cursor: pointer; border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-primary:hover { background: #1857c0; border-color: #1857c0; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px var(--blue-glow); }
.btn-outline {
  background: transparent; color: var(--blue-light); border-color: var(--blue-light);
}
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: #e8f0fe; color: var(--navy); transform: translateY(-1px); }
.btn-danger { background: var(--crit); color: #fff; border-color: var(--crit); }
.btn-danger:hover { background: #a93226; }
.btn-success { background: var(--low); color: #fff; border-color: var(--low); }
.btn-lg { padding: 14px 32px; font-size: 1em; }
.btn-sm { padding: 6px 14px; font-size: .82em; border-radius: 6px; }
.btn-full { width: 100%; justify-content: center; }
.btn-outline-sm {
  display: inline-flex; align-items: center; padding: 6px 16px;
  border: 1.5px solid var(--blue-light); border-radius: 7px;
  color: var(--blue-light); font-size: .85em; font-weight: 600;
  transition: all var(--transition);
}
.btn-outline-sm:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary-sm {
  display: inline-flex; align-items: center; padding: 6px 16px;
  background: var(--blue); border: 1.5px solid var(--blue); border-radius: 7px;
  color: #fff; font-size: .85em; font-weight: 600;
}
.btn-primary-sm:hover { background: #1857c0; color: #fff; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark); transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15em; color: #fff; text-decoration: none;
}
.brand-text { color: #fff; }
.brand-accent { color: var(--blue-light); }
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,.75); font-size: .88em; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; transition: all var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link-special { color: var(--blue-light) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8);
  border-radius: 2px; transition: all .3s;
}

/* ── Flash messages ─────────────────────────────────────────── */
.flash-container {
  position: fixed; top: 70px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; max-width: 380px;
}
.flash {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 16px; border-radius: 8px; font-size: .88em; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }
.flash-success { background: #d4edda; border: 1px solid #a3cfbb; color: #0f5132; }
.flash-error   { background: #f8d7da; border: 1px solid #f1aeb5; color: #842029; }
.flash-info    { background: #cff4fc; border: 1px solid #9eeaf9; color: #055160; }
.flash-warning { background: #fff3cd; border: 1px solid #ffc107; color: #664d03; }
.flash-close   { background: none; border: none; cursor: pointer; font-size: 1.1em; padding: 0 0 0 8px; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* ── Section helpers ────────────────────────────────────────── */
.section { padding: 90px 0; }
.section.bg-dark { background: var(--navy); color: rgba(255,255,255,.9); }
.section.bg-light { background: #f8fafc; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: #e8f0fe; color: var(--blue); font-size: .78em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.bg-dark .section-label { background: rgba(31,111,235,.2); color: var(--blue-light); }
.section-title { font-size: 2.2em; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.bg-dark .section-title { color: #fff; }
.section-subtitle { font-size: 1em; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.bg-dark .section-subtitle { color: rgba(255,255,255,.6); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 0 60px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .3;
}
.hero-glow-1 { width: 600px; height: 600px; background: var(--blue); top: -200px; right: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: #1e3a8a; bottom: 0; left: -100px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(31,111,235,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(31,111,235,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { position: relative; z-index: 1; text-align: center; padding: 0 24px 48px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31,111,235,.15); border: 1px solid rgba(31,111,235,.3);
  color: var(--blue-light); padding: 6px 16px; border-radius: 20px;
  font-size: .82em; font-weight: 600; margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; background: var(--blue-light); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title {
  font-size: 3.4em; font-weight: 900; color: #fff; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -.5px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--blue-light), #a5f3fc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1em; color: rgba(255,255,255,.7); max-width: 600px;
  margin: 0 auto 32px; line-height: 1.7;
}
.hero-subtitle strong { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap; gap: 0;
}
.stat-item { text-align: center; padding: 0 24px; }
.stat-num { display: block; font-size: 2em; font-weight: 900; color: var(--blue-light); line-height: 1; }
.stat-label { font-size: .75em; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* ── Terminal preview ───────────────────────────────────────── */
.terminal-preview {
  max-width: 700px; margin: 0 auto; background: #0d1117;
  border-radius: 12px; overflow: hidden; border: 1px solid #1e3a5f;
  box-shadow: 0 24px 64px rgba(0,0,0,.5); position: relative; z-index: 1;
}
.terminal-header {
  background: #1c2128; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #1e3a5f;
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #f85149; }
.dot-yellow { background: #d4ac0d; }
.dot-green { background: #3fb950; }
.terminal-title { color: rgba(255,255,255,.4); font-size: .78em; font-family: 'JetBrains Mono', monospace; }
.terminal-body { padding: 16px 20px; font-family: 'JetBrains Mono', monospace; font-size: .8em; line-height: 2; }
.term-line { display: flex; gap: 10px; }
.term-phase { color: rgba(255,255,255,.35); min-width: 90px; }
.term-ok   { color: #3fb950; }
.term-crit { color: #f85149; }
.term-high { color: #e67e22; }
.term-med  { color: #d4ac0d; }

/* ── Trust bar ──────────────────────────────────────────────── */
.trust-bar { background: #f0f4ff; border-top: 1px solid #dbe6fe; border-bottom: 1px solid #dbe6fe; padding: 28px 0; }
.trust-label { text-align: center; color: var(--text-muted); font-size: .82em; margin-bottom: 16px; }
.trust-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.trust-badge {
  background: #fff; border: 1px solid #c3d7fa; border-radius: 20px;
  padding: 6px 16px; font-size: .8em; font-weight: 600; color: var(--navy-mid);
}

/* ── Features grid ──────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px var(--blue-glow); transform: translateY(-2px); }
.feature-icon { font-size: 1.5em; margin-bottom: 10px; }
.feature-card h3 { font-size: .95em; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.feature-card p { font-size: .84em; color: var(--text-muted); line-height: 1.65; }

/* ── Steps ──────────────────────────────────────────────────── */
.steps-grid {
  display: flex; align-items: center; gap: 0;
  justify-content: center; flex-wrap: wrap; gap: 0;
}
.step-card {
  flex: 1; min-width: 220px; max-width: 300px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-arrow { font-size: 1.8em; color: rgba(255,255,255,.2); padding: 0 16px; flex-shrink: 0; }
.step-num {
  width: 44px; height: 44px; background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1em; color: #fff; margin-bottom: 14px;
}
.step-card h3 { font-size: 1em; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p  { font-size: .85em; color: rgba(255,255,255,.6); line-height: 1.65; }

/* ── Pricing ────────────────────────────────────────────────── */
.currency-toggle {
  display: flex; justify-content: center; gap: 4px; margin-bottom: 36px;
  background: var(--border); border-radius: 25px; width: fit-content;
  margin-left: auto; margin-right: auto; padding: 3px;
}
.cur-btn {
  padding: 8px 22px; border-radius: 22px; font-weight: 700; font-size: .85em;
  cursor: pointer; border: none; background: transparent; color: var(--text-muted);
  transition: all var(--transition);
}
.cur-btn.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px var(--blue-glow); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 28px;
}
.plan-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 28px 24px; position: relative;
  transition: all var(--transition);
}
.plan-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan-featured {
  border-color: var(--blue) !important; background: var(--navy);
  box-shadow: 0 8px 32px var(--blue-glow);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; padding: 4px 16px; border-radius: 20px;
  font-size: .72em; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
}
.plan-name { font-size: 1.1em; font-weight: 800; margin-bottom: 4px; }
.plan-featured .plan-name { color: #fff; }
.plan-duration { font-size: .8em; color: var(--text-muted); margin-bottom: 16px; }
.plan-featured .plan-duration { color: rgba(255,255,255,.6); }
.plan-price { font-size: 2.2em; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.plan-featured .plan-price { color: #fff; }
.plan-savings { font-size: .78em; color: var(--low); font-weight: 700; margin-bottom: 18px; }
.plan-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: .87em; color: var(--text-muted); }
.plan-features li svg { color: var(--low); flex-shrink: 0; margin-top: 2px; }
.plan-featured .plan-features li { color: rgba(255,255,255,.75); }
.plan-featured .plan-features li svg { color: #58a6ff; }
.plan-note { font-size: .75em; color: var(--text-light); text-align: center; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.plan-featured .plan-note { color: rgba(255,255,255,.4); }
.pricing-note { text-align: center; font-size: .85em; color: var(--text-muted); line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-container { max-width: 740px; }
.faq-item {
  border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 18px 0; background: none; border: none; cursor: pointer;
  font-size: .97em; font-weight: 600; color: var(--text); text-align: left;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--blue); }
.faq-icon { flex-shrink: 0; transition: transform .3s; margin-top: 2px; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding-bottom: 18px; font-size: .9em; color: var(--text-muted); line-height: 1.75; }

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-inner { text-align: center; }
.cta-text h2 { font-size: 2em; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-text p  { color: rgba(255,255,255,.65); font-size: 1em; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dl-meta { margin-top: 20px; font-size: .78em; color: rgba(255,255,255,.35); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dl-meta code { font-family: 'JetBrains Mono', monospace; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: #060e1c; color: rgba(255,255,255,.6); padding: 60px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1em; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.footer-tagline { font-size: .85em; line-height: 1.6; margin-bottom: 12px; color: rgba(255,255,255,.45); }
.footer-powered { font-size: .82em; color: rgba(255,255,255,.35); }
.footer-powered a { color: var(--blue-light); }
.footer-powered a:hover { text-decoration: underline; }
.footer-col h4 { font-size: .82em; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .87em; color: rgba(255,255,255,.55); margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: .82em; color: rgba(255,255,255,.35); }
.footer-copy strong { color: rgba(255,255,255,.6); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8em; color: rgba(255,255,255,.3); }
.footer-legal a:hover { color: var(--blue-light); }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 80px 24px 40px; }
.auth-card {
  background: #111827; border: 1px solid var(--border-dark);
  border-radius: 16px; padding: 40px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo svg { display: block; margin: 0 auto 10px; }
.auth-logo-name { color: #fff; font-size: 1.3em; font-weight: 800; }
.auth-logo-sub { color: rgba(255,255,255,.4); font-size: .78em; margin-top: 2px; }
.auth-title { color: #fff; font-size: 1.2em; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: rgba(255,255,255,.5); font-size: .87em; margin-bottom: 24px; line-height: 1.5; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82em; font-weight: 600; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.1);
  color: #fff; font-size: .92em; outline: none; transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--blue); background: rgba(31,111,235,.08); }
.form-control::placeholder { color: rgba(255,255,255,.25); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: .78em; color: rgba(255,255,255,.35); margin-top: 5px; }
.otp-input {
  font-family: 'JetBrains Mono', monospace; font-size: 2em; font-weight: 700;
  letter-spacing: 12px; text-align: center; background: rgba(31,111,235,.05) !important;
  border-color: rgba(31,111,235,.3) !important; color: var(--blue-light) !important;
  padding: 16px !important;
}

/* ── Dashboard / User pages ─────────────────────────────────── */
.dash-page { padding-top: 70px; min-height: 100vh; background: #f4f6f9; }
.dash-header { background: var(--navy); padding: 32px 0; margin-bottom: 32px; }
.dash-header h1 { color: #fff; font-size: 1.5em; font-weight: 800; }
.dash-header p   { color: rgba(255,255,255,.55); font-size: .9em; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.dash-stat-num  { font-size: 2.2em; font-weight: 900; color: var(--navy); line-height: 1; }
.dash-stat-label { font-size: .78em; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 5px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card-title { font-size: 1em; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.card-title-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .87em; }
.data-table th {
  background: #f8fafc; padding: 10px 14px; text-align: left;
  font-size: .75em; text-transform: uppercase; letter-spacing: .7px;
  color: var(--text-muted); font-weight: 700; border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid #f0f4f8; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 4px;
  font-size: .73em; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.badge-active   { background: #d4edda; color: #0f5132; }
.badge-expired  { background: #f8d7da; color: #842029; }
.badge-pending  { background: #fff3cd; color: #664d03; }
.badge-paid     { background: #d4edda; color: #0f5132; }
.badge-refunded { background: #e2e8f0; color: var(--text-muted); }
.badge-failed   { background: #f8d7da; color: #842029; }
.badge-critical { background: #fde8e8; color: var(--crit); }
.badge-high     { background: #fef3e2; color: var(--high); }
.badge-medium   { background: #fefce8; color: var(--med); }
.badge-low      { background: #f0faf3; color: var(--low); }
.badge-info     { background: #eff6ff; color: var(--blue); }

/* ── Admin sidebar ──────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 70px); padding-top: 70px; }
.admin-sidebar {
  width: 240px; background: var(--navy); position: fixed; top: 70px;
  bottom: 0; left: 0; overflow-y: auto; border-right: 1px solid var(--border-dark);
  padding: 24px 0;
}
.admin-sidebar-title {
  font-size: .7em; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,.3); padding: 0 20px; margin-bottom: 8px; font-weight: 700;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: rgba(255,255,255,.6); font-size: .88em; font-weight: 500;
  transition: all var(--transition);
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(31,111,235,.15); color: var(--blue-light); }
.admin-content { margin-left: 240px; flex: 1; padding: 32px; background: #f4f6f9; min-height: calc(100vh - 70px); }
.admin-page-title { font-size: 1.4em; font-weight: 800; margin-bottom: 24px; color: var(--text); }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-page { padding-top: 80px; min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding-bottom: 40px; }
.checkout-card {
  background: #111827; border: 1px solid var(--border-dark);
  border-radius: 16px; padding: 36px; width: 100%; max-width: 480px;
}
.checkout-plan {
  background: rgba(31,111,235,.1); border: 1px solid rgba(31,111,235,.2);
  border-radius: 10px; padding: 18px; margin-bottom: 24px;
}
.checkout-plan-name { font-size: 1.1em; font-weight: 800; color: #fff; margin-bottom: 4px; }
.checkout-plan-price { font-size: 1.8em; font-weight: 900; color: var(--blue-light); }
.secure-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.secure-badge {
  display: flex; align-items: center; gap: 5px; font-size: .77em;
  color: rgba(255,255,255,.5); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 5px; padding: 4px 10px;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.page-btn {
  padding: 6px 12px; border-radius: 6px; font-size: .84em; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.page-btn.active, .page-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── License key display ────────────────────────────────────── */
.license-key-box {
  background: #0d1117; border: 1px solid var(--border-dark);
  border-radius: 8px; padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace; font-size: .78em;
  color: var(--blue-light); word-break: break-all; line-height: 1.6;
  position: relative;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(31,111,235,.2); border: none; border-radius: 5px;
  color: var(--blue-light); padding: 4px 8px; font-size: .75em; cursor: pointer;
  transition: background var(--transition);
}
.copy-btn:hover { background: var(--blue); color: #fff; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 8px; font-size: .88em; line-height: 1.6;
  margin-bottom: 16px; border: 1px solid transparent;
}
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-success { background: #f0faf3; border-color: #b7dfc3; color: #0f5132; }
.alert-warning { background: #fff9eb; border-color: #fcd34d; color: #92400e; }
.alert-danger  { background: #fdf2f0; border-color: #fca5a5; color: #991b1b; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .hero-title { font-size: 2.2em; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--navy-mid); padding: 16px; flex-direction: column;
    border-bottom: 1px solid var(--border-dark); }
  .nav-links.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8em; }
  .hero-stats { gap: 0; flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
