/* Spartan Antivirus website. Dark, gold and green: the same palette as the app. */

:root {
  --bg: #0a0906;
  --bg-raise: #100e0a;
  --surface: #16140e;
  --surface-2: #1e1b13;
  --line: rgba(212, 175, 55, 0.14);
  --line-strong: rgba(212, 175, 55, 0.32);
  --text: #f5f1e6;
  --muted: #c4bca6;
  --faint: #918a74;
  --gold: #d4af37;
  --gold-bright: #f2cf5b;
  --gold-ink: #1b1505;
  --green: #34c77b;
  --green-bright: #8be3b4;
  --green-soft: rgba(52, 199, 123, 0.12);
  --red: #f0565b;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --check-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334C77B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --check-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2CF5B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
button, input, select, textarea { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { color: var(--text); font-weight: 700; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 36em; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.gradient-text { background: linear-gradient(92deg, var(--gold-bright) 10%, var(--green) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

/* -- buttons -------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); box-shadow: 0 12px 30px -12px rgba(212, 175, 55, 0.7); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(242, 207, 91, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* -- navigation ----------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 9, 6, 0.74); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; text-decoration: none !important; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--gold-bright); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.nav-toggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: none; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; }
@media (max-width: 900px) {
  .nav-inner { gap: 12px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; padding: 6px 16px 14px; background: var(--bg-raise); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .brand span { font-size: 0.98rem; } .nav-cta .btn { padding: 8px 12px; } }

/* -- hero ----------------------------------------------------------------------------------- */
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.hero::before { top: -30%; right: -12%; width: min(78vw, 920px); aspect-ratio: 1; background: radial-gradient(closest-side, rgba(212, 175, 55, 0.2), transparent 72%); }
.hero::after { bottom: -45%; left: -18%; width: min(66vw, 760px); aspect-ratio: 1; background: radial-gradient(closest-side, rgba(52, 199, 123, 0.12), transparent 72%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 14px; border-radius: 999px; background: var(--green-soft); border: 1px solid rgba(52, 199, 123, 0.32); color: var(--green); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 123, 0.6); } 75%, 100% { box-shadow: 0 0 0 10px rgba(52, 199, 123, 0); } }
.checks { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 12px; color: var(--text); }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--green-soft) var(--check-green) center / 12px no-repeat; border: 1px solid rgba(52, 199, 123, 0.35); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { margin: 16px 0 0; font-size: 0.86rem; color: var(--faint); }

.shot { position: relative; }
.window { overflow: hidden; border-radius: 16px; border: 1px solid var(--line-strong); background: #0d0c08; box-shadow: var(--shadow); transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transition: transform 0.7s ease; }
.shot:hover .window { transform: none; }
.window-bar { display: flex; gap: 7px; padding: 11px 14px; background: #15130d; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3424; }
.window img { width: 100%; height: auto; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(22, 20, 14, 0.94); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 0.86rem; animation: bob 6s ease-in-out infinite; }
.float strong { display: block; font-size: 0.95rem; }
.float span { color: var(--faint); }
.float .chip { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green); }
.float-2 .chip { background: rgba(212, 175, 55, 0.14); color: var(--gold-bright); }
.float-1 { left: -28px; bottom: 30px; }
.float-2 { right: -16px; top: -20px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1000px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .window { transform: none; }
  .float-1 { left: 10px; bottom: -22px; }
  .float-2 { right: 10px; top: -22px; }
}

/* -- proof strip ---------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-raise)); }
.stat { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; background: linear-gradient(180deg, #fff 20%, var(--gold-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.92rem; color: var(--faint); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* -- sections ------------------------------------------------------------------------------- */
.section { padding: 96px 0; scroll-margin-top: 60px; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.03) 30%, transparent); }
.section-head { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.08rem; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

/* engines */
.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.engine { position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.engine::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.engine.behaviour::before { background: linear-gradient(90deg, var(--green), var(--green-bright)); }
.engine-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 15px; background: rgba(212, 175, 55, 0.12); color: var(--gold-bright); }
.engine.behaviour .engine-ico { background: var(--green-soft); color: var(--green); }
.engine-ico svg { width: 28px; height: 28px; }
.tag { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.engine.behaviour .tag { color: var(--green); }
.engine h3 { margin-top: 8px; font-size: 1.5rem; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--check-gold) center / 16px no-repeat; }
.behaviour .ticks li::before { background-image: var(--check-green); }

.story { margin-top: 24px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(52, 199, 123, 0.09), transparent 55%), var(--bg-raise); }
.story-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; }
.story-head h3 { margin: 0; font-size: 1.3rem; }
.story-head small { color: var(--faint); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; width: 10px; height: 10px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
.step .n { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; color: var(--faint); }
.step b { display: block; margin: 6px 0; }
.step p { margin: 0; font-size: 0.92rem; }
.step code { color: var(--gold-bright); background: rgba(212, 175, 55, 0.1); padding: 1px 6px; border-radius: 6px; }
.step.score { border-color: rgba(212, 175, 55, 0.45); }
.step.blocked { border-color: rgba(52, 199, 123, 0.5); background: linear-gradient(180deg, rgba(52, 199, 123, 0.1), var(--surface)); }
.score-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 0.86rem; color: var(--muted); }
.score-list li { display: flex; justify-content: space-between; gap: 8px; }
.score-list li span:last-child { color: var(--gold-bright); font-weight: 800; }
.meter { height: 8px; margin: 12px 0 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter i { display: block; width: 80%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--red)); }
.risk { margin: 0; font-size: 0.92rem; }
.risk strong { color: var(--red); }
@media (max-width: 920px) {
  .engines, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { top: auto; bottom: -14px; right: 50%; transform: translateX(50%) rotate(135deg); }
}

/* modules */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.module:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tri { flex: 0 0 56px; width: 56px; height: 50px; }
.module h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.module p { margin: 0; font-size: 0.93rem; }
@media (min-width: 1061px) {
  .modules { grid-template-columns: repeat(5, 1fr); }
  .module { flex-direction: column; gap: 12px; padding: 22px 18px; }
}
@media (max-width: 1060px) and (min-width: 921px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 920px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan-head { padding: 18px 26px; font-size: 1.15rem; font-weight: 800; color: var(--gold-ink); background: linear-gradient(90deg, #c49a2e, #ecc95a); }
.plan.office .plan-head { color: #04140b; background: linear-gradient(90deg, #1f9e60, #52d896); }
.plan.business .plan-head { color: var(--gold-bright); background: linear-gradient(90deg, #2a2416, #40361f); }
.plan.featured { border-color: rgba(52, 199, 123, 0.55); box-shadow: 0 34px 70px -38px rgba(52, 199, 123, 0.55); transform: translateY(-10px); }
.ribbon { position: absolute; top: 15px; right: 16px; padding: 5px 10px; border-radius: 999px; background: rgba(4, 20, 11, 0.85); color: var(--green-bright); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 28px; }
.plan-blurb { margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.55rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--faint); }
.per { margin: -8px 0 0; font-size: 0.88rem; color: var(--faint); }
.seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-raise); border: 1px solid var(--line); }
.seats label, .seats-top label { font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.seats-range { display: grid; gap: 12px; }
.seats-top { display: flex; justify-content: space-between; align-items: center; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-family: inherit; font-weight: 600; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.stepper button:hover { border-color: var(--gold); }
.seats output { min-width: 32px; text-align: center; font-size: 1.1rem; font-weight: 800; }
.range { --fill: 10%; width: 100%; height: 6px; margin: 0; border-radius: 99px; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; background: linear-gradient(90deg, var(--gold) var(--fill), rgba(255, 255, 255, 0.1) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-bright); border: 4px solid var(--gold-ink); box-shadow: 0 0 0 3px rgba(242, 207, 91, 0.35); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-bright); border: 4px solid var(--gold-ink); box-shadow: 0 0 0 3px rgba(242, 207, 91, 0.35); }
.range:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--muted); }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--check-green) center / 15px no-repeat; }
.plan .btn { margin-top: auto; }
.pricing-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-top: 34px; font-size: 0.92rem; color: var(--faint); }
.pricing-foot span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.featured { transform: none; }
}

/* how it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: rgba(212, 175, 55, 0.14); color: var(--gold-bright); font-weight: 800; }
.how-step p { margin: 0; }
.release { margin-top: 12px !important; font-size: 0.8rem; color: var(--faint); overflow-wrap: anywhere; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* partner band */
.band { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.band-item { display: flex; gap: 22px; padding: 36px; }
.band-item + .band-item { border-left: 1px solid var(--line); }
.band-ico { flex: 0 0 64px; display: grid; place-items: center; height: 64px; border-radius: 18px; background: rgba(212, 175, 55, 0.12); color: var(--gold-bright); }
.band-ico svg { width: 30px; height: 30px; }
.band-item h3 { font-size: 1.35rem; }
.link-arrow { font-weight: 700; }
@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; }
  .band-item + .band-item { border-left: 0; border-top: 1px solid var(--line); }
  .band-item { padding: 28px; }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-bright); font-size: 1.5rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding-bottom: 20px; }

/* final call to action */
.cta { padding: 60px 32px; border-radius: 24px; text-align: center; border: 1px solid var(--line-strong); background: radial-gradient(100% 150% at 50% 0%, rgba(242, 207, 91, 0.22), transparent 60%), linear-gradient(180deg, #1f1a0e, #120f08); }
.cta p { max-width: 560px; margin-inline: auto; }
.cta .cta-row { justify-content: center; margin-top: 26px; }

/* -- footer --------------------------------------------------------------------------------- */
.footer { margin-top: 96px; background: var(--bg-raise); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-brand p { max-width: 300px; margin-top: 14px; font-size: 0.92rem; }
.footer h4 { margin: 0 0 16px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.94rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--faint); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* -- forms, dialog and messages -------------------------------------------------------------- */
dialog.modal { width: min(100% - 32px, 500px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 26px 0; }
.modal-head h3 { margin: 0; font-size: 1.4rem; }
.modal-body { display: grid; gap: 14px; padding: 18px 26px 26px; }
.close { padding: 4px; background: none; border: 0; color: var(--faint); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.close:hover { color: var(--text); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.field label span { font-weight: 500; color: var(--faint); }
.field label span[data-for] { font-weight: inherit; color: inherit; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg-raise); color: var(--text);
  border: 1px solid var(--line-strong); font: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }
.field input[readonly] { opacity: 0.75; }
.key-input { font-family: ui-monospace, Consolas, monospace !important; letter-spacing: 0.08em; text-transform: uppercase; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.summary { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--bg-raise); border: 1px solid var(--line); font-size: 0.95rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary .total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--text); font-size: 1.1rem; font-weight: 800; }
.msg { display: none; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.msg.show { display: block; }
.msg.error { background: rgba(240, 86, 91, 0.1); color: #ff9fa2; border: 1px solid rgba(240, 86, 91, 0.32); }
.msg.ok { background: var(--green-soft); color: var(--green-bright); border: 1px solid rgba(52, 199, 123, 0.32); }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 0.82rem; color: var(--faint); text-align: center; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -- inner pages ---------------------------------------------------------------------------- */
.page { position: relative; padding: 64px 0 8px; }
.page::before { content: ""; position: absolute; top: -260px; right: -10%; width: 680px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 55, 0.14), transparent 70%); pointer-events: none; z-index: -1; }
.page-head { max-width: 720px; margin-bottom: 36px; }
.page-head.center { margin-inline: auto; text-align: center; }
.panel { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 1.5rem; }
.panel.narrow { max-width: 560px; margin-inline: auto; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 14px; }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 14px; background: #0b0a06; border: 1px dashed var(--gold); }
.keybox code { font-size: clamp(1rem, 3.6vw, 1.45rem); font-weight: 800; letter-spacing: 0.08em; color: var(--gold-bright); overflow-wrap: anywhere; }
.state { display: none; }
.state.on { display: block; }
.spinner { width: 38px; height: 38px; margin: 8px auto 18px; border-radius: 50%; border: 3px solid rgba(212, 175, 55, 0.2); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-ok { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); border: 1px solid rgba(52, 199, 123, 0.4); }
.big-ok svg { width: 32px; height: 32px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 20px 0 0; font-size: 0.95rem; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.ol { margin: 0; padding-left: 20px; color: var(--muted); }
.ol li { margin: 8px 0; }
.ol li::marker { color: var(--gold); font-weight: 800; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-raise); border: 1px solid var(--line); }
.seg button { padding: 9px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; color: var(--muted); }
.perks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--check-gold) center / 16px no-repeat; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat-grid div { padding: 14px; border-radius: 12px; background: var(--bg-raise); border: 1px solid var(--line); }
.stat-grid b { display: block; font-size: 1.3rem; }
.stat-grid span { font-size: 0.84rem; color: var(--faint); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 44px; font-size: 1.55rem; scroll-margin-top: 90px; }
.prose li { margin: 6px 0; color: var(--muted); }
.notfound { padding: 120px 0 40px; text-align: center; }
.center { text-align: center; }
.center-row { justify-content: center; }
.center-block { margin-inline: auto; }
.mt { margin-top: 28px; }
.mt-s { margin-top: 16px; }
.notice { padding: 12px 16px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(212, 175, 55, 0.07); color: var(--muted); }
.notfound .brand { display: inline-flex; }

/* -- admin ---------------------------------------------------------------------------------- */
.admin { padding: 40px 0 0; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.admin-cards div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.admin-cards b { display: block; font-size: 1.45rem; letter-spacing: -0.02em; }
.admin-cards span { font-size: 0.84rem; color: var(--faint); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input { max-width: 340px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data th, .data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data th { position: sticky; top: 0; background: var(--surface-2); color: var(--faint); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.data tr:last-child td { border-bottom: 0; }
.data td.wrap { white-space: normal; min-width: 220px; }
.data button { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-family: inherit; font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.data button:hover { border-color: var(--gold); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.pill.ok { background: var(--green-soft); color: var(--green-bright); }
.pill.warn { background: rgba(212, 175, 55, 0.14); color: var(--gold-bright); }
.pill.bad { background: rgba(240, 86, 91, 0.12); color: #ff9fa2; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.form-grid .span2 { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.price-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 18px; }
.price-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; }
.price-head h3 { margin: 0 auto 0 0; font-size: 1.1rem; }
.price-table .data td { white-space: normal; }
.price-table .input { width: 100%; padding: 9px 11px; border-radius: 10px; background: var(--bg-raise); color: var(--text); border: 1px solid var(--line-strong); font: inherit; }
.price-table .btn { margin-top: 12px; }

/* -- currency switch ------------------------------------------------------------------------- */
.currency-switch { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -14px 0 26px; color: var(--faint); font-size: 0.9rem; }
.currency-switch[hidden] { display: none; }
.currency-switch .seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.currency-switch button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.currency-switch button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); }

/* -- promotion bar (coupons the admin advertises) -------------------------------------------- */
.promo-bar { position: relative; z-index: 60; display: block; overflow: hidden; padding: 9px 0; color: #1b1505; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.01em; background: linear-gradient(90deg, #b8352f, #d4af37 30%, #f2cf5b 50%, #d4af37 70%, #1f9e60); }
.promo-bar:hover { text-decoration: none; filter: brightness(1.06); }
.promo-track { display: flex; width: max-content; animation: promo-scroll 38s linear infinite; }
.promo-bar:hover .promo-track, .promo-bar:focus-visible .promo-track { animation-play-state: paused; }
.promo-run { display: flex; flex-shrink: 0; }
.promo-run span { padding: 0 34px; white-space: nowrap; }
.promo-run span::before { content: "★"; margin-right: 34px; color: #fff; }
@keyframes promo-scroll { to { transform: translateX(-50%); } }

/* -- safe banking & crypto ------------------------------------------------------------------- */
.money { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 46px; border-radius: 24px; border: 1px solid rgba(52, 199, 123, 0.3); background: radial-gradient(90% 120% at 0% 0%, rgba(52, 199, 123, 0.16), transparent 55%), radial-gradient(80% 120% at 100% 100%, rgba(242, 207, 91, 0.12), transparent 60%), var(--surface); }
.money-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.money-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.money-list li { display: flex; gap: 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(10, 9, 6, 0.55); border: 1px solid var(--line); }
.money-list b { display: block; margin-bottom: 2px; }
.money-list p { margin: 0; font-size: 0.93rem; }
.money-ico { flex: 0 0 44px; display: grid; place-items: center; height: 44px; border-radius: 13px; background: var(--green-soft); color: var(--green); }
.money-ico svg { width: 22px; height: 22px; }
.new-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-bright); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 920px) { .money { grid-template-columns: 1fr; padding: 30px 22px; } }

/* -- bulk bonus ------------------------------------------------------------------------------ */
.deal { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 760px; margin: -18px auto 34px; padding: 14px 20px; border-radius: 999px; border: 1px dashed rgba(52, 199, 123, 0.55); background: var(--green-soft); text-align: left; }
.deal p { margin: 0; color: var(--text); }
.deal-ico { flex: 0 0 40px; display: grid; place-items: center; height: 40px; border-radius: 50%; background: var(--green); color: #04140b; }
.deal-ico svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .deal { border-radius: 18px; } }
.gift { margin: -8px 0 0; padding: 6px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-bright); font-size: 0.86rem; font-weight: 800; }
.nudge { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(212, 175, 55, 0.1); border: 1px solid var(--line-strong); color: var(--gold-bright); font-size: 0.9rem; font-weight: 600; }
.summary .bonus-row { color: var(--green-bright); font-weight: 700; }

/* -- rewards --------------------------------------------------------------------------------- */
.rewards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reward { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.2s ease, border-color 0.2s ease; }
.reward:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.reward.hot { border-color: rgba(52, 199, 123, 0.55); background: radial-gradient(120% 80% at 50% 0%, rgba(52, 199, 123, 0.16), transparent 60%), var(--surface); }
.reward h3 { margin: 0; font-size: 1.2rem; }
.reward p { margin: 0; flex: 1; font-size: 0.93rem; }
.reward-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 15px; background: rgba(212, 175, 55, 0.12); color: var(--gold-bright); }
.reward.hot .reward-ico { background: var(--green-soft); color: var(--green); }
.reward-ico svg { width: 26px; height: 26px; }
.reward-tag { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.reward.hot .reward-tag { color: var(--green); }
.rewards-foot { margin: 26px 0 0; text-align: center; color: var(--faint); }
@media (max-width: 1040px) { .rewards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rewards { grid-template-columns: 1fr; } }

/* -- motion --------------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
  .promo-track { width: auto; }
  .promo-run { flex-wrap: wrap; justify-content: center; }
  .promo-run + .promo-run, .promo-run span:nth-child(n + 2) { display: none; }
  .promo-run span { white-space: normal; text-align: center; }
}
