/* ═══════════════════════════════════════════════════════════════════
   SecurGame — Design System v2 · Light/Dark · Blue primary
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── DARK THEME (default) ─────────────────────────────────────── */
:root {
  --bg:           #0d1117;
  --bg-2:         #10161e;
  --surface:      #161b22;
  --surface-2:    #1c2128;
  --card:         #1c2128;
  --card-hover:   #21262d;
  --border:       #30363d;
  --border-light: #484f58;

  --primary:      #38bdf8;
  --primary-dark: #0ea5e9;
  --primary-light:#7dd3fc;
  --primary-glow: rgba(56,189,248,.3);
  --primary-bg:   rgba(56,189,248,.1);
  --primary-border:rgba(56,189,248,.3);

  --success:      #3fb950;
  --success-bg:   rgba(63,185,80,.1);
  --success-border:rgba(63,185,80,.3);
  --warning:      #d29922;
  --warning-bg:   rgba(210,153,34,.1);
  --warning-border:rgba(210,153,34,.3);
  --danger:       #f85149;
  --danger-bg:    rgba(248,81,73,.1);
  --danger-border:rgba(248,81,73,.3);
  --info:         #388bfd;
  --info-bg:      rgba(56,139,253,.1);
  --info-border:  rgba(56,139,253,.3);

  --text:         #e6edf3;
  --text-2:       #b1bac4;
  --muted:        #7d8590;
  --muted-2:      #484f58;

  --radius:       10px;
  --radius-sm:    7px;
  --radius-lg:    16px;
  --shadow:       0 8px 32px rgba(0,0,0,.5);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.4);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --transition:   .18s cubic-bezier(.4,0,.2,1);

  color-scheme: dark;
}

/* ─── LIGHT THEME ──────────────────────────────────────────────── */
:root.light {
  --bg:           #f6f8fa;
  --bg-2:         #f0f2f5;
  --surface:      #ffffff;
  --surface-2:    #f6f8fa;
  --card:         #ffffff;
  --card-hover:   #f6f8fa;
  --border:       #d0d7de;
  --border-light: #b0b9c2;

  --primary:      #0284c7;
  --primary-dark: #0369a1;
  --primary-light:#0ea5e9;
  --primary-glow: rgba(2,132,199,.2);
  --primary-bg:   rgba(2,132,199,.08);
  --primary-border:rgba(2,132,199,.28);

  --success:      #1a7f37;
  --success-bg:   rgba(26,127,55,.08);
  --success-border:rgba(26,127,55,.25);
  --warning:      #9a6700;
  --warning-bg:   rgba(154,103,0,.08);
  --warning-border:rgba(154,103,0,.25);
  --danger:       #cf222e;
  --danger-bg:    rgba(207,34,46,.08);
  --danger-border:rgba(207,34,46,.25);
  --info:         #0969da;
  --info-bg:      rgba(9,105,218,.08);
  --info-border:  rgba(9,105,218,.25);

  --text:         #1f2328;
  --text-2:       #424a53;
  --muted:        #57606a;
  --muted-2:      #8c959f;

  --shadow:       0 4px 16px rgba(0,0,0,.1);
  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);

  color-scheme: light;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font); }

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── Utilities ─────────────────────────────────────────────────── */
.container { width: 92%; max-width: 1240px; margin: 0 auto; }
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mt-1{margin-top:6px}.mt-2{margin-top:14px}.mt-3{margin-top:22px}.mt-4{margin-top:36px}
.mb-1{margin-bottom:6px}.mb-2{margin-bottom:14px}.mb-3{margin-bottom:22px}.mb-4{margin-bottom:36px}
.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.w-full { width: 100%; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1{gap:6px}.gap-2{gap:12px}.gap-3{gap:20px}.gap-4{gap:28px}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
  font-family: var(--font); position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-sm   { padding: 5px 12px; font-size: .8rem; border-radius: 6px; gap: 5px; }
.btn-lg   { padding: 12px 28px; font-size: .95rem; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; flex-shrink: 0; }

.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary-dark);
  box-shadow: 0 1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); }

.btn-secondary {
  background: var(--surface-2); color: var(--text-2); border-color: var(--border);
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--border-light); color: var(--text); }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover  { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { filter: brightness(1.1); color: #fff; }

.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-bg); }

.btn-ghost {
  background: transparent; color: var(--muted); border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }

/* ═══════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.badge-success  { background: var(--success-bg);  color: var(--success);  border: 1px solid var(--success-border); }
.badge-danger   { background: var(--danger-bg);   color: var(--danger);   border: 1px solid var(--danger-border); }
.badge-warning  { background: var(--warning-bg);  color: var(--warning);  border: 1px solid var(--warning-border); }
.badge-info     { background: var(--info-bg);     color: var(--info);     border: 1px solid var(--info-border); }
.badge-primary  { background: var(--primary-bg);  color: var(--primary);  border: 1px solid var(--primary-border); }
.badge-secondary{ background: var(--surface-2);   color: var(--muted);    border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════════ */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; line-height: 1.5; margin-bottom: 14px;
  border-width: 1px; border-style: solid;
}
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger-border);  color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning); }
.alert-info    { background: var(--info-bg);    border-color: var(--info-border);    color: var(--info); }

/* ═══════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════ */
.form-group  { margin-bottom: 16px; }
.form-label  {
  display: block; font-size: .8rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px; letter-spacing: .01em;
}
.form-control {
  width: 100%; padding: 9px 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: .875rem; font-family: var(--font); transition: all var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: var(--card); }
.form-control::placeholder { color: var(--muted-2); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237d8590' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer;
}
input[type="color"].form-control { padding: 4px 7px; height: 40px; cursor: pointer; }
.form-hint  { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  background: var(--surface-2); padding: 10px 15px;
  text-align: left; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }

/* ═══════════════════════════════════════════════════════════════════
   MODAL — SCROLLABLE avec footer sticky
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 560px;
  margin: auto; /* vertical centering when content is small */
  box-shadow: var(--shadow);
  transform: translateY(16px); transition: transform .25s cubic-bezier(.34,1.2,.64,1);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-size: .95rem; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 6px;
  background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all var(--transition);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.modal-footer {
  display: flex; gap: 9px; justify-content: flex-end;
  padding: 14px 22px; border-top: 1px solid var(--border);
  background: var(--surface-2); flex-shrink: 0;
}

/* Forms inside modals — use .modal-body for scrollable content */
.modal > form  { display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0; max-height: inherit; }
.modal > form > .modal-body { overflow-y: auto; flex: 1; padding: 18px 22px; }
.modal > form > .modal-footer { padding: 14px 22px; flex-shrink: 0; margin: 0; background: var(--surface-2); border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════ */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; min-width: 280px; max-width: 380px;
  display: flex; align-items: flex-start; gap: 10px;
  box-shadow: var(--shadow); animation: toastIn .25s ease;
}
.toast.success { border-color: var(--success-border); }
.toast.error   { border-color: var(--danger-border); }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-body { flex: 1; font-size: .85rem; color: var(--text-2); }
.toast-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .85rem; }

/* ═══════════════════════════════════════════════════════════════════
   LANDING — NAVBAR
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; padding: 14px 6%;
  background: rgba(13,17,23,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: all .3s;
}
:root.light .navbar { background: rgba(255,255,255,.9); }
.navbar.scrolled { padding: 10px 6%; }
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; color: var(--text); text-decoration: none;
}
.navbar-brand .logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 2px 10px var(--primary-glow);
}
.navbar-nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.navbar-nav a { padding: 6px 13px; border-radius: 6px; color: var(--muted); font-size: .875rem; font-weight: 500; transition: all var(--transition); }
.navbar-nav a:hover { color: var(--text); background: var(--surface-2); }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }
@media(max-width:860px){ .navbar-nav,.navbar-actions .btn-secondary{ display:none; } .hamburger{display:block;} }

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 6% 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,.12) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px; opacity: .4;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 20px;
  background: var(--primary-bg); border: 1px solid var(--primary-border);
  color: var(--primary); font-size: .78rem; font-weight: 600; margin-bottom: 24px;
  animation: fadeUp .5s ease both;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); animation: blink 2s infinite; }
.hero h1 { font-size: clamp(2.2rem,5.5vw,4.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px; animation: fadeUp .5s .1s ease both; }
.hero h1 .line-1 { display: block; }
.hero h1 .line-2 { display: block; color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin: 0 auto 36px; animation: fadeUp .5s .2s ease both; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; animation: fadeUp .5s .3s ease both; }
.hero-stats { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; animation: fadeUp .5s .4s ease both; }
.hero-stat .value { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-stat .label { color: var(--muted); font-size: .78rem; margin-top: 4px; }

.hero-terminal {
  margin: 56px auto 0; max-width: 620px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow);
  animation: fadeUp .5s .5s ease both;
}
.terminal-bar { background: var(--surface-2); padding: 10px 16px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--border); }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red{background:#ff5f57}.terminal-dot.yellow{background:#febc2e}.terminal-dot.green{background:#28c840}
.terminal-title { font-size: .75rem; color: var(--muted); margin-left: 8px; font-family: var(--font-mono); }
.terminal-body { padding: 18px; font-family: var(--font-mono); font-size: .8rem; line-height: 1.7; text-align: left; }
.t-line { margin-bottom: 1px; }
.t-info   { color: var(--info); }
.t-ok     { color: var(--success); }
.t-warn   { color: var(--warning); }
.t-muted  { color: var(--muted); }
.t-player { color: var(--primary-light); }
.t-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
section { padding: 88px 6%; }
.section-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; background: var(--primary-bg); border: 1px solid var(--primary-border); color: var(--primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.7rem,3.5vw,2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.section-header p { color: var(--muted); max-width: 520px; margin: 0 auto; }

#games { background: var(--surface); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; cursor: pointer; transition: all var(--transition);
}
.game-card:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--card-hover); }
.game-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.game-card .name { font-weight: 600; font-size: .82rem; }
.game-card .available { font-size: .68rem; color: var(--success); margin-top: 6px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: all var(--transition);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.feature-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 7px; }
.feature-card p  { color: var(--muted); font-size: .85rem; line-height: 1.6; }

#pricing { background: var(--surface); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.pricing-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; transition: all var(--transition); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 8px 32px var(--primary-glow); }
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card .popular-chip { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 3px 14px; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.plan-name   { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.plan-game   { color: var(--muted); font-size: .8rem; margin-bottom: 18px; }
.plan-price  { font-size: 2.8rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--primary); }
.plan-price sup { font-size: 1.1rem; font-weight: 700; vertical-align: super; }
.plan-period { color: var(--muted); font-size: .8rem; margin: 5px 0 22px; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: .85rem; }

.cta-section { text-align: center; padding: 96px 6%; position: relative; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--primary-bg), transparent); }
.cta-section h2 { font-size: clamp(1.7rem,3.5vw,2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; position: relative; }
.cta-section p  { color: var(--muted); margin-bottom: 32px; position: relative; }

footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 6% 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media(max-width:768px){ .footer-grid{grid-template-columns:1fr 1fr;} }
.footer-brand .footer-logo { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.footer-col h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a  { color: var(--muted); font-size: .85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--muted); font-size: .78rem; }

/* ═══════════════════════════════════════════════════════════════════
   AUTH
   ═══════════════════════════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 420px; box-shadow: var(--shadow); animation: fadeUp .35s ease; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-mark { width: 52px; height: 52px; border-radius: 12px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 12px; box-shadow: 0 4px 16px var(--primary-glow); }
.auth-logo h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.auth-logo p  { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.auth-sep { text-align: center; color: var(--muted); font-size: .78rem; margin: 18px 0; position: relative; }
.auth-sep::before, .auth-sep::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.auth-sep::before { left: 0; } .auth-sep::after { right: 0; }
.auth-footer { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* ── SVG Icons ──────────────────────────────────────────────────────────────── */
svg[aria-hidden] { display:inline-block; vertical-align:-0.15em; flex-shrink:0 }
.icon-xs  { width:12px!important; height:12px!important }
.icon-sm  { width:14px!important; height:14px!important }
.icon-md  { width:16px!important; height:16px!important }
.icon-lg  { width:20px!important; height:20px!important }
.icon-xl  { width:24px!important; height:24px!important }
.icon-2xl { width:32px!important; height:32px!important }
/* Colored icon helpers */
.icon-muted   { color:var(--muted) }
.icon-primary { color:var(--primary) }
.icon-success { color:var(--success) }
.icon-danger  { color:var(--danger) }
.icon-warning { color:var(--warning) }
