:root {
  --bg: #07090f;
  --bg-2: #0c1019;
  --card: #111725;
  --card-2: #161e2f;
  --line: #222c42;
  --fg: #e9edf5;
  --muted: #8d97ad;
  --acc: #4da3ff;
  --acc-2: #8b5cf6;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --grad: linear-gradient(120deg, var(--acc), var(--acc-2));
  /* Darker shades for white text on buttons: >= 4.5:1 contrast (WCAG AA). */
  --btn-grad: linear-gradient(120deg, #1d4ed8, #6d28d9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
img, svg { max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 680px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.h2 { font-size: 1.75rem; }
.h3 { font-size: 1.25rem; margin-top: 2rem; }
.h4 { font-size: 1rem; margin-top: 1.25rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--acc); font-weight: 600; margin-bottom: .75rem; }

/* keyboard */
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }
.method:has(input:focus-visible) { outline: 3px solid #93c5fd; outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: #fff; color: #000; padding: .5rem .9rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 15, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .12em; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); box-shadow: 0 0 20px rgba(77, 163, 255, .5); transform: rotate(45deg) scale(.8); }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.admin .nav-links { margin-left: 1rem; margin-right: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
  background: var(--btn-grad); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s;
  box-shadow: 0 6px 24px -8px rgba(77, 163, 255, .6);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(139, 92, 246, .7); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; border-color: var(--line); box-shadow: none; color: var(--fg); }
.btn-ghost:hover { border-color: var(--acc); box-shadow: none; }
.btn-danger { background: #b91c1c; box-shadow: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; text-align: center;
  background: radial-gradient(60% 60% at 50% 0%, rgba(77, 163, 255, .18), transparent 70%),
              radial-gradient(40% 50% at 85% 30%, rgba(139, 92, 246, .16), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .25; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "✓"; color: var(--ok); margin-right: .4rem; font-weight: 700; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 2.5rem; }
.grid { display: grid; gap: 1rem; }
.features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 2rem 0 0; }
.pricing { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; align-items: stretch; }
.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1.5rem; }
.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }

.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.grid > .card + .card { margin-top: 0; }
.feature h3 { font-size: 1.05rem; }
.feature h3::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: .9rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--btn-grad); font-weight: 800; margin-bottom: .75rem; }
.steps p { color: var(--muted); margin: 0; }

/* pricing */
.plan { position: relative; display: flex; flex-direction: column; }
.plan .checks { flex: 1; }
.plan-featured { border-color: transparent; background: linear-gradient(var(--card-2), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; transform: translateY(-6px); }
.badge { position: absolute; top: -12px; right: 18px; background: var(--btn-grad); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: .5rem 0 1rem; }
.per { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { padding: .3rem 0 .3rem 1.6rem; position: relative; color: #cfd6e4; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.pay-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.pill { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); background: var(--card); }
.pill-sm { padding: .15rem .55rem; font-size: .75rem; }

.options { display: grid; gap: .5rem; }
.options .btn { justify-content: space-between; }
.options .btn:only-child { justify-content: center; }
.save { font-size: .75rem; font-weight: 700; color: var(--ok); background: rgba(52, 211, 153, .12); border-radius: 999px; padding: .1rem .5rem; }
.section-outro { text-align: center; color: var(--muted); max-width: 620px; margin: 2rem auto 0; font-size: .95rem; }
.files { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.vpn-box { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .5rem; }
.vpn-box .row input, .field .row input { flex: 1; min-width: 0; }
.field .row { flex-wrap: wrap; }
.check-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* honeypot field: off-screen for people, still filled in by naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* chat */
.chat-launch { position: fixed; left: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; border: 0; border-radius: 999px; background: var(--btn-grad); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7); }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.chat-panel { position: fixed; left: 16px; bottom: 76px; z-index: 30; width: min(360px, calc(100vw - 32px)); height: min(480px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.chat-close { background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.chat-log { flex: 1; overflow-y: auto; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.chat-intro { color: var(--muted); font-size: .9rem; margin: 0; }
.chat-msg { max-width: 85%; padding: .5rem .75rem; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.chat-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.chat-visitor { align-self: flex-end; background: rgba(29, 78, 216, .25); border-color: rgba(77, 163, 255, .35); }
.chat-sending { opacity: .6; }
.chat-failed { border-color: rgba(248, 113, 113, .6); }
.chat-who { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .15rem; }
.chat-form { border-top: 1px solid var(--line); padding: .7rem; display: grid; gap: .5rem; }
.chat-form input[hidden] { display: none; }
.chat-row { display: flex; gap: .5rem; align-items: flex-end; }
.chat-row textarea { flex: 1; resize: none; font-family: inherit; font-size: .95rem; }
.chat-error { color: #fecaca; font-size: .85rem; margin: 0; }
@media (max-width: 520px) { .chat-launch span:not(.chat-dot) { display: none; } .chat-launch { padding: .8rem; } }

/* faq */
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: .6rem; }
.faq summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--acc); font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 1.2rem 1rem; margin: 0; color: var(--muted); }

/* forms */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: start; }
.summary .desc { white-space: pre-line; color: #cfd6e4; }
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; border: 0; padding: 0; margin: 0; }
.field > span, legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=file], input:not([type]), select, textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--fg); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(77, 163, 255, .2); }
textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.renew summary { cursor: pointer; color: var(--acc); font-size: .95rem; margin-bottom: .5rem; }
.methods { display: grid; gap: .6rem; }
.method { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.method:hover { border-color: #33405e; }
.method:has(input:checked) { border-color: var(--acc); background: rgba(77, 163, 255, .07); }
.method input { accent-color: var(--acc); width: 18px; height: 18px; }
.method-body { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .3rem; accent-color: var(--acc); }

.alert { padding: .85rem 1rem; border-radius: 10px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: center; }
.alert-ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .4); color: #a7f3d0; }
.alert-bad { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.alert code { background: #0006; padding: .1rem .35rem; border-radius: 4px; }

/* order */
.order .label { font-weight: 600; margin: 1.25rem 0 .4rem; }
.keybox { display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem 1rem; border: 1px dashed #33405e; border-radius: 12px; background: var(--bg); margin: .5rem 0 1rem; }
.keybox code { flex: 1; font-size: 1.1rem; word-break: break-all; color: #fff; }
.howto { padding-left: 1.2rem; }
.howto li { margin-bottom: .8rem; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* prose */
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.2rem; margin-top: 2rem; }
.prose p, .prose li { color: #cfd6e4; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); }

/* admin */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--card-2); border: 1px solid var(--line); vertical-align: middle; }
.status-delivered { color: var(--ok); border-color: rgba(52, 211, 153, .4); }
.status-paid, .status-processing, .status-delivering, .status-underpaid { color: var(--warn); border-color: rgba(251, 191, 36, .4); }
.status-failed, .status-expired, .status-refunded { color: var(--bad); border-color: rgba(248, 113, 113, .4); }
.stat-n { font-size: 1.8rem; font-weight: 800; margin: 0; }
.stat p { margin: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-all; }
.notes { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; font-size: .85rem; max-height: 260px; overflow: auto; }
.row { display: flex; gap: .6rem; align-items: center; }
.between { justify-content: space-between; }
.filters { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters input { flex: 1; min-width: 200px; }
.filters select { width: auto; }
.card form + form { margin-top: .6rem; }
.card form input[type=text] + .btn { margin-top: .5rem; }

@media (max-width: 820px) {
  .checkout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .admin .nav-links { display: flex; gap: .8rem; font-size: .85rem; }
  .nav-inner { justify-content: space-between; }
  .plan-featured { transform: none; }
  .hero { padding: 72px 0 60px; }
  .section { padding: 52px 0; }
}

/* ===== Design v2: no borders on containers, no glows on buttons, filled icons ===== */
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; fill: currentColor; }
svg.icon:not(.flag) path, svg.icon:not(.flag) g { fill: currentColor; }

/* Containers: separated by surface color, never by borders */
.card, .plan, .plan-featured, .faq, .method, .keybox, .table-wrap, .pill, .alert, .status,
.chat-panel, .chat-msg, .chat-head, .chat-form, .notes, .vpn-box, .footer, .nav, .section-alt,
.method:has(input:checked), .summary, .form, .stat, .filters input, .filters select {
  border: 0 !important;
}
.card { background: #0f1422; box-shadow: none; }
.plan-featured { background: #151b33; transform: none; }
.section-alt { background: #0a0e18; }
.nav { background: rgba(7, 9, 15, .85); }
.table-wrap { background: #0f1422; }
.table th, .table td { border-bottom: 0; }
.table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.pill { background: #121829; display: inline-flex; align-items: center; gap: .4rem; }
.alert { background: rgba(251, 191, 36, .12); }
.alert-ok { background: rgba(52, 211, 153, .12); }
.alert-bad { background: rgba(248, 113, 113, .12); }
.keybox { background: #0a0e18; }
.notes { background: #0a0e18; }
.method { background: #0a0e18; }
.method:has(input:checked) { background: rgba(37, 99, 235, .18); }
.status { background: rgba(255, 255, 255, .06); }
.chat-panel { background: #0f1422; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.chat-head, .chat-form { background: #121829; }
.chat-msg { background: #161d30; }
.chat-visitor { background: rgba(37, 99, 235, .3); }
.footer { background: #070a12; }
.vpn-box { background: #0a0e18; border-radius: 12px; padding: 1rem; }

/* Fields: filled, no outline borders until focused */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=file],
input:not([type]), select, textarea {
  border: 0; background: #0a0e18;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px #3b82f6; }

/* Buttons: flat, no glow */
.btn, .btn:hover, .btn-ghost, .btn-ghost:hover, .chat-launch, .badge, .step-n { box-shadow: none !important; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 0; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.brand-mark { width: auto; height: auto; background: none; box-shadow: none; transform: none; color: #60a5fa; font-size: 1.3rem; display: inline-flex; }
.btn .icon { margin-right: .1rem; }

/* Hero: Aurora replaces the old grid lines */
.hero { background: #07090f; padding: 120px 0 100px; }
.hero::after { display: none; }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points li::before { content: none; }
.hero-points .icon { color: #60a5fa; }

/* Feature + pricing details */
.feature h3::before { content: none; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(59, 130, 246, .15); color: #60a5fa; font-size: 1.35rem; margin-bottom: .9rem; }
.checks li { padding-left: 0; display: flex; gap: .5rem; align-items: flex-start; }
.checks li::before { content: none; }
.checks .icon { color: var(--ok); margin-top: .2rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; }

/* FAQ (React island uses buttons; fallback uses details) */
.faq { background: #0f1422; border-radius: 14px; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: none; border: 0; color: var(--fg); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.faq-caret { color: var(--acc); transition: transform .2s; }
.faq-open .faq-caret { transform: rotate(180deg); }
.faq-a { padding: 0 1.2rem 1rem; margin: 0; color: var(--muted); }

/* Nav fallback + GooeyNav */
#nav-root nav { display: flex; gap: 1.25rem; }
#nav-root nav a { color: var(--muted); font-size: .95rem; }

/* Chat launcher icon */
.chat-launch .icon { width: 1.35em; height: 1.35em; }

.method-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); font-size: 1.2rem; color: #93c5fd; flex: none; }

.icon.flag { width: 1.05em; height: 1.05em; vertical-align: -0.15em; border-radius: 50%; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
