/* =======================================================
 * Proxy Hopto - Global Stylesheet
 * Dark cyber aesthetic with emerald/cyan accents
 * ======================================================= */

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

:root {
  --bg-0: #060912;
  --bg-1: #0a1020;
  --bg-2: #111a2e;
  --bg-3: #1a2440;
  --surface: rgba(20, 28, 50, 0.6);
  --surface-2: rgba(28, 38, 64, 0.7);
  --border: rgba(140, 180, 255, 0.10);
  --border-strong: rgba(140, 180, 255, 0.22);
  --text: #e6edf7;
  --text-dim: #98a4ba;
  --text-faint: #5e6a83;
  --accent: #10b981;
  --accent-2: #06b6d4;
  --accent-3: #8b5cf6;
  --warn: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.18);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(1100px 700px at 50% 110%, rgba(6, 182, 212, 0.10), transparent 70%),
    var(--bg-0);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
::selection { background: rgba(16, 185, 129, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: #1f2a44; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3b5e; }

/* ============== Layout ============== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.container-md { max-width: 920px; }

main { min-height: calc(100vh - 320px); padding-bottom: 80px; }

/* ============== Top Nav ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 9, 18, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: conic-gradient(from 200deg at 50% 50%, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 7px;
  background: var(--bg-0);
}
.brand-mark svg { position: relative; z-index: 1; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02110b;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5); transform: translateY(-1px); color: #02110b; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fda4a4;
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.2); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 90px 0 60px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, rgba(16,185,129,0.25), transparent 70%) 50% 20%/600px 400px no-repeat,
    radial-gradient(closest-side, rgba(6,182,212,0.18), transparent 70%) 80% 40%/500px 360px no-repeat,
    radial-gradient(closest-side, rgba(139,92,246,0.18), transparent 70%) 20% 35%/500px 360px no-repeat;
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140,180,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,180,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #67e8c4;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 999px;
  text-transform: uppercase;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  margin: 22px 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #b9c5dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-trust {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-trust .dot { width: 4px; height: 4px; background: var(--text-faint); border-radius: 50%; }

.live-strip {
  margin: 32px auto 0;
  max-width: 920px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 14px;
}
.live-stat { text-align: center; }
.live-stat .num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text); }
.live-stat .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }

/* ============== Sections ============== */
section { padding: 70px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-dim); margin: 0; font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-card .ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(6,182,212,0.16));
  border: 1px solid rgba(16,185,129,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature-card p { color: var(--text-dim); margin: 0; font-size: 14.5px; }

/* ============== Pricing ============== */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 36px;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(16,185,129,0.18), transparent 70%),
    var(--surface-2);
  border: 1px solid rgba(16,185,129,0.30);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.price-card .badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(16,185,129,0.18); color: #6ee7b7;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  border: 1px solid rgba(16,185,129,0.3);
}
.price-card .plan-name { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.price-card .plan-tag { font-size: 26px; font-weight: 800; margin: 4px 0 18px; }
.price-card .amount {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff, #b9c5dd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card .amount .cur { font-size: 28px; vertical-align: top; margin-right: 4px; color: var(--text-dim); }
.price-card .amount .per { font-size: 16px; color: var(--text-dim); margin-left: 6px; font-family: var(--font-ui); font-weight: 500; }
.price-card .one-line { color: var(--text-dim); margin-top: 4px; font-size: 14px; }
.price-card hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.price-card li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ============== Steps ============== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 13px;
}
.step-card h4 { margin: 0 0 6px; font-size: 16px; }
.step-card p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ============== FAQ ============== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ============== Footer ============== */
footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 18, 0.4);
  padding: 60px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px;
  color: var(--text-faint); margin: 0 0 14px; font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-dim); font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .brand-block p { color: var(--text-dim); font-size: 14px; margin: 12px 0 0; max-width: 380px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px;
  font-size: 12.5px; color: var(--text-faint); flex-wrap: wrap;
}

/* ============== Auth pages ============== */
.auth-shell {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative;
}
.auth-card h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.auth-card .subtitle { color: var(--text-dim); margin: 0 0 26px; font-size: 14.5px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.input {
  background: rgba(6, 12, 26, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.input.invalid { border-color: var(--danger); }
.helper { font-size: 12.5px; color: var(--text-faint); }
.field-error { color: #ff8e8e; font-size: 13px; margin-top: 4px; }

.auth-card .form-foot { margin-top: 8px; font-size: 13.5px; color: var(--text-dim); text-align: center; }
.auth-card .form-foot a { color: var(--accent); font-weight: 600; }

.divider { height: 1px; background: var(--border); margin: 22px 0; }

/* ============== Alerts/toasts ============== */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.alert-error { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.10); color: #ffb4b4; }
.alert-success { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.10); color: #b2f5cf; }
.alert-info { border-color: rgba(6,182,212,0.4); background: rgba(6,182,212,0.10); color: #a8e9f5; }
.alert-warn { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.10); color: #fbd486; }

.toast-stack { position: fixed; bottom: 24px; right: 24px; display: grid; gap: 10px; z-index: 100; }
.toast {
  min-width: 240px; max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: toastIn 0.25s ease-out;
}
.toast-error { border-color: rgba(239,68,68,0.4); }
.toast-success { border-color: rgba(34,197,94,0.4); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============== Dashboard / Admin shared ============== */
.page-head { padding: 36px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.page-head h1 { font-size: 30px; margin: 0 0 6px; font-weight: 800; }
.page-head p { color: var(--text-dim); margin: 0; }
.page-head .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.panel h3 {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.kv { display: grid; gap: 6px; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.kv-row:last-child { border-bottom: none; }
.kv-key { color: var(--text-dim); font-size: 13.5px; }
.kv-val { font-family: var(--font-mono); font-size: 13.5px; word-break: break-all; }

.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.status-active, .status-paid { background: rgba(34,197,94,0.15); color: #5ddf91; border: 1px solid rgba(34,197,94,0.3); }
.status-pending { background: rgba(245,158,11,0.15); color: #fbcd71; border: 1px solid rgba(245,158,11,0.3); }
.status-expired { background: rgba(239,68,68,0.15); color: #fda4a4; border: 1px solid rgba(239,68,68,0.3); }
.status-cancelled, .status-inactive { background: rgba(120,120,120,0.18); color: #cbd0d9; border: 1px solid rgba(120,120,120,0.3); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-tile .lbl { color: var(--text-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.stat-tile .val { font-family: var(--font-mono); font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-tile .sub { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data thead th {
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: 1.5px;
}
table.data tbody tr:hover { background: rgba(255,255,255,0.02); }
table.data td.mono, table.data th.mono { font-family: var(--font-mono); }

.empty { text-align: center; padding: 48px 16px; color: var(--text-dim); }
.empty .ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-faint); margin: 0 auto 14px;
}

/* Proxy list */
.proxy-list { display: grid; gap: 10px; }
.proxy-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.proxy-row .country-flag {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.15));
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--accent);
}
.proxy-row .info .title { font-weight: 700; font-size: 14.5px; }
.proxy-row .info .meta { color: var(--text-dim); font-size: 12.5px; margin-top: 3px; font-family: var(--font-mono); word-break: break-all; }
.proxy-row .copy-btn { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.proxy-row .copy-btn:hover { border-color: var(--accent); }

/* ============== Checkout ============== */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 940px) { .checkout-wrap { grid-template-columns: 1fr; } }
.checkout-pay {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
}
.qr-box {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin: 18px auto;
}
.qr-box img, .qr-box canvas { display: block; }
.copy-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(6,12,26,0.7);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 16px;
}
.copy-row code { flex: 1; font-family: var(--font-mono); font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.copy-row button { background: transparent; border: 1px solid var(--border-strong); color: var(--text-dim); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 12.5px; }
.copy-row button:hover { color: var(--accent); border-color: var(--accent); }

.checkout-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.timer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.3); border-radius: 999px;
  color: #fbcd71; font-family: var(--font-mono); font-size: 13px;
}
.timer .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s infinite; }

.scan-state {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(6,182,212,0.10);
  border: 1px solid rgba(6,182,212,0.30);
  border-radius: 999px;
  color: #a8e9f5;
  font-size: 13px;
  margin-top: 14px;
}
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(6,182,212,0.3);
  border-top-color: #a8e9f5;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== Success ============== */
.success-hero {
  text-align: center;
  padding: 50px 24px 30px;
}
.success-hero .check-circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(16,185,129,0.6), rgba(16,185,129,0.15) 70%);
  border: 2px solid rgba(16,185,129,0.5);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 0 60px rgba(16,185,129,0.5);
  animation: bounceIn 0.5s ease-out;
}
@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.success-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 10px;
  background: linear-gradient(180deg, #fff, #b9c5dd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.success-hero p { color: var(--text-dim); margin: 0 auto; max-width: 600px; }
.success-meta { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; color: var(--text-faint); font-family: var(--font-mono); font-size: 13px; flex-wrap: wrap; justify-content: center; }
.success-meta span.dot { width: 4px; height: 4px; background: var(--text-faint); border-radius: 50%; }

/* ============== Admin ============== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.label-tag {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  background: rgba(139,92,246,0.18); color: #c9b8ff;
  border: 1px solid rgba(139,92,246,0.35);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}

/* ============== Legal pages ============== */
.legal-page { padding: 50px 0 80px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; font-weight: 800; }
.legal-page .last-update { color: var(--text-faint); font-size: 13px; margin: 0 0 30px; }
.legal-page h2 { font-size: 20px; margin: 32px 0 10px; }
.legal-page h3 { font-size: 16px; margin: 22px 0 8px; color: var(--text-dim); }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15px; line-height: 1.75; }
.legal-page a { color: var(--accent); }
.legal-page ul { padding-left: 22px; }

/* ============== 404 ============== */
.notfound {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; padding: 60px 24px; text-align: center;
}
.notfound h1 { font-size: clamp(60px, 10vw, 120px); margin: 0;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 900;
}
.notfound p { color: var(--text-dim); font-size: 17px; }

/* ============== Utility ============== */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.row-gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.hidden { display: none !important; }
.full-width { width: 100%; }
.mono { font-family: var(--font-mono); }

/* ============== Animations on scroll ============== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
