/* GreenWay storefront - ported from the approved Claude Design prototype.
   Light theme only, no build step: this file is the "locally built CSS". */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: #16211C;
  background: #F1F6F2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #13A85B; text-decoration: none; }
a:hover { color: #0F7D45; }
button { font-family: inherit; }
/* No image may exceed its box - a picture that loses its own rule shrinks, it does not break the page. */
img { max-width: 100%; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
h1, h2, h3, h4, .brand-name { font-family: 'Space Grotesk', 'Manrope', sans-serif; }

@keyframes gw-spin { to { transform: rotate(360deg); } }
@keyframes gw-shimmer { 0% { background-position: -500px 0; } 100% { background-position: 500px 0; } }
@keyframes gw-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 24px); }
.narrow { max-width: 560px; margin: 0 auto; }

/* ---------- header ---------- */
/* The header is sticky, so anything scrolled to an #anchor has to clear it.
   Its height is a step function of the width: one row of nav (79px) until the
   Discord button no longer fits beside it (130px), then until the whole
   .hdr-right drops below the brand (182px). Each step is set a little early, so
   the value is never smaller than the header actually is. */
:root { --hdr-h: 79px; }
@media (max-width: 1039px) { :root { --hdr-h: 130px; } }
@media (max-width: 779px) { :root { --hdr-h: 182px; } }
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid #E4EDE7; }
.hdr-accent { height: 3px; background: linear-gradient(90deg, #21D97D, #12A85B 45%, #38C6E0); }
.hdr-inner { max-width: 1160px; margin: 0 auto; padding: 13px clamp(16px, 4vw, 24px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-weight: 700; font-size: 27px; letter-spacing: -.02em; color: #16211C; }
.brand-name span { color: #13A85B; }
.online-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: #EAF7F0; font-size: 12px; font-weight: 600; color: #0F7D45; }
.online-badge strong { font-weight: 800; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #21D97D; box-shadow: 0 0 0 3px #21D97D33; animation: gw-pulse 1.8s ease-in-out infinite; }
.online-badge.off { background: #FFF0F1; color: #C62A2F; }
.online-badge.off .online-dot { background: #E5484D; box-shadow: 0 0 0 3px #E5484D33; animation: none; }
.hdr-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 100%; min-width: 0; }
.nav { display: flex; gap: 2px; flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: #F1F6F2; border: 1px solid #E4EDE7; border-radius: 13px; padding: 4px; }
.nav a { flex: none; white-space: nowrap; padding: 9px 15px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: #4C5A52; transition: all .15s; }
.nav a:hover { color: #0F7D45; }
.nav a.on { background: #fff; color: #0F7D45; box-shadow: 0 1px 3px rgba(16,40,28,.12); }
.btn-discord { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; background: #5865F2; font-weight: 700; font-size: 14px; color: #fff; box-shadow: 0 2px 10px rgba(88,101,242,.32); }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn-discord span { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ---------- buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 13px; border: none; cursor: pointer; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(180deg, #21D97D, #12A85B); box-shadow: 0 8px 24px rgba(18,168,91,.3); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-primary:disabled { cursor: not-allowed; opacity: .48; filter: grayscale(.35); box-shadow: none; }
.btn-primary:disabled:hover { color: #fff; filter: grayscale(.35); }
.btn-primary.sm { padding: 11px; font-size: 14px; border-radius: 11px; box-shadow: none; }
.btn-primary.lg { width: 100%; max-width: 320px; padding: 15px; font-size: 16px; }
.btn-primary.grow { flex: 1; }
.btn-ghost { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 13px; border: 1px solid rgba(255,255,255,.18); cursor: pointer; font-weight: 700; font-size: 15px; color: #E6F0EA; background: rgba(255,255,255,.05); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; border: 1.5px solid #CFE0D5; background: #fff; font-weight: 700; font-size: 14px; color: #0F7D45; cursor: pointer; }
.btn-outline:hover { background: #F3FBF6; }
.btn-outline.sm { padding: 11px; flex: 1; border-radius: 11px; }
.btn-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; padding: 10px 16px; border-radius: 11px; background: #fff; border: 1.5px solid #CFE0D5; cursor: pointer; color: #0F7D45; font-weight: 700; font-size: 14px; }
/* «Назад» beside the content instead of on a row of its own, which left the
   whole width to the right of it empty. Wide enough to spare the width, the
   button moves into a column of its own at the left edge, level with the top of
   the content; narrower than that it stays above, because taking ~130px out of
   a phone row would squeeze the content harder than an extra row costs.
   780px is the same breakpoint the rules table of contents uses. */
@media (min-width: 780px) {
  .with-back { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 18px; }
  .with-back > .btn-back { margin-bottom: 0; }
  /* The legal column is the one element on the page with a set measure, so the
     wrapper grows by the button column instead of taking it out of the text. */
  .doc-page.with-back { max-width: 888px; }
}

/* ---------- generic ---------- */
.card { background: #fff; border: 1px solid #E6EEE9; border-radius: 18px; }
.card.pad { padding: 22px; }
.page-h1 { font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; }
.page-sub { margin: 0; font-size: clamp(15px, 2.2vw, 17px); line-height: 1.5; color: #4C5A52; max-width: 640px; }
.page-sub.wide { max-width: 660px; margin-bottom: 28px; font-size: 16px; line-height: 1.55; }
.page-sub code { font-size: 14px; color: #0F7D45; }
.b { font-weight: 700; }
/* Back to top of the long read-only pages (rules, info, the legal documents).
   The jump itself is a plain <a href="#top">: the fragment "top" is the document
   top by definition, so it needs no script and no id to aim at. */
.to-top { position: fixed; right: clamp(12px, 3vw, 26px); bottom: clamp(12px, 3vw, 26px); z-index: 15; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1.5px solid #CFE0D5; box-shadow: 0 4px 14px rgba(16,40,28,.14); font-size: 20px; font-weight: 700; color: #0F7D45; }
.to-top:hover { background: #F3FBF6; color: #0F7D45; }
/* It earns its corner only once the page is scrolled: app.js adds .on past
   320px. `visibility` keeps the invisible button from swallowing a tap, and
   transitioning it as well delays the flip until the fade is over. A CSS scroll
   timeline would drop the JS, but Firefox 153 still parses neither
   animation-timeline: scroll() nor animation-range. */
.to-top { opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.to-top.on { opacity: 1; visibility: visible; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; background: #0E1A14; color: #E6F0EA; padding: clamp(26px, 4.5vw, 52px); margin-bottom: 20px; }
.hero-bg-stripes { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px); }
.hero-bg-glow { position: absolute; inset: 0; background: radial-gradient(90% 120% at 8% 0%, rgba(33,217,125,.22), transparent 60%); }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 44px); align-items: center; }
.hero-text { flex: 1 1 400px; min-width: 280px; }
.hero-kicker { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5FCB97; margin-bottom: 16px; }
.hero h1 { font-weight: 700; font-size: clamp(32px, 5.6vw, 52px); line-height: 1.03; letter-spacing: -.025em; margin: 0 0 16px; color: #fff; }
.hero h1 span { color: #21D97D; }
.hero-text > p { margin: 0 0 26px; max-width: 520px; font-size: clamp(15px, 2vw, 17.5px); line-height: 1.55; color: #AFC5B8; text-wrap: pretty; }
.hero-cards { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.ip-card { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.ip-label { display: flex; flex-direction: column; line-height: 1.2; }
.ip-label span:first-child, .ver-card span:first-child { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6E8377; }
.ip-label .mono, .ver-card .mono { font-size: 19px; color: #fff; }
.btn-copy { padding: 9px 14px; border-radius: 10px; border: none; cursor: pointer; font-weight: 700; font-size: 13px; transition: all .2s; color: #0B3D24; background: #21D97D; }
.btn-copy.copied { background: #8CF5C0; }
.ver-card { display: flex; flex-direction: column; line-height: 1.2; padding: 11px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-shot { flex: 1 1 320px; min-width: 260px; }
.shot-frame { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: #132119; }
.shot-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.idea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 34px; }
.idea-card { background: #fff; border: 1px solid #E6EEE9; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 9px; }
.idea-dot { width: 10px; height: 10px; border-radius: 3px; }
.idea-card h3 { font-size: 17px; margin: 2px 0 0; line-height: 1.2; }
.idea-card p { margin: 0; font-size: 14px; line-height: 1.5; color: #4C5A52; text-wrap: pretty; }

.first-five { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 36px); align-items: flex-start; margin-bottom: 34px; }
.ff-intro { flex: 1 1 260px; min-width: 240px; }
.ff-intro h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 10px; letter-spacing: -.01em; }
.ff-intro p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #4C5A52; }
.ff-intro code { font-size: 13.5px; color: #0F7D45; }
.ff-steps { flex: 999 1 420px; min-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.ff-step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #E6EEE9; border-radius: 16px; padding: 18px 20px; font-size: 14.5px; line-height: 1.55; color: #26332D; }
.ff-num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #EAF7F0; color: #0F7D45; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; }

.home-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.home-link { text-align: left; background: #fff; border: 1px solid #E6EEE9; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 7px; }
.hl-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; color: #16211C; }
.hl-desc { font-size: 13.5px; line-height: 1.45; color: #6A776F; }
.hl-cta { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: #0F7D45; }

/* ---------- shop ---------- */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .15s; background: #fff; color: #3B4842; border: 1px solid #E1EAE3; }
.tab.on { background: #16211C; color: #fff; border-color: #16211C; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.chips-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A968E; margin-right: 4px; }
.chip { padding: 7px 13px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 12.5px; transition: all .15s; background: #fff; border: 1px solid #E1EAE3; }

.priv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.priv-card, .case-card { position: relative; overflow: hidden; padding: 24px; display: flex; flex-direction: column; border-radius: 20px; box-shadow: 0 1px 2px rgba(16,40,28,.05); }
.card-banner { position: relative; overflow: hidden; height: 110px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.banner-shine { position: absolute; inset: 0; background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.28), transparent 55%); }
.banner-img { position: relative; width: 88px; height: 88px; image-rendering: pixelated; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); background-size: contain; background-position: center; background-repeat: no-repeat; }
.banner-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff; padding: 5px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.banner-pool { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; color: #16211C; background: rgba(255,255,255,.92); padding: 5px 10px; border-radius: 999px; }
.priv-name, .case-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; }
.priv-tagline { margin: 6px 0 16px; color: #4C5A52; font-size: 14px; line-height: 1.45; }
.case-tagline { margin: 6px 0 16px; color: #4C5A52; font-size: 14px; line-height: 1.45; }
.priv-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.priv-price-main { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 32px; }
.priv-price-per { color: #7D8B83; font-weight: 600; }
.priv-price-alt { font-size: 13px; font-weight: 600; color: #8A968E; }
.perks { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.perks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; }
.perk-check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.perk-body { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14px; line-height: 1.45; color: #26332D; }
.perk-body.strong { font-weight: 700; }
.perk-body code { font-size: 12.5px; color: #0F7D45; background: #F1F8F4; border: 1px solid #DFEDE5; border-radius: 7px; padding: 2px 7px; white-space: nowrap; }
.btn-buy-priv { margin-top: auto; padding: 13px; border-radius: 12px; border: none; cursor: pointer; font-weight: 700; font-size: 15px; color: #fff; text-align: center; }
.btn-buy-priv:hover { color: #fff; filter: brightness(1.05); }
.odds-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #EEF3F0; gap: 2px; margin-bottom: 12px; }
.odds-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.odds-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.odds-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.odds-name { flex: 1; color: #3B4842; font-weight: 600; }
.odds-pct { color: #26332D; font-weight: 700; }
.odds-row.off .odds-name { color: #B5C0B9; font-weight: 500; }
.odds-row.off .odds-pct { color: #C5CFC8; font-weight: 500; }
.pack-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pack-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: #F6FAF7; }
.pack-label { color: #3B4842; font-weight: 600; }
.pack-right { display: flex; align-items: baseline; gap: 8px; }
.pack-per { font-size: 12px; color: #8A968E; }
.pack-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; }
.btn-case { margin-top: auto; padding: 13px; border-radius: 12px; border: none; cursor: pointer; font-weight: 700; font-size: 15px; color: #fff; text-align: center; }
.btn-case:hover { color: #fff; filter: brightness(1.08); }

.empty-state { border: 1.5px dashed #CBD8CF; border-radius: 20px; padding: 56px 24px; text-align: center; background: #FAFCFB; }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: #EEF4F0; display: grid; place-items: center; margin: 0 auto 16px; font-size: 24px; }
.empty-state h3 { margin: 0 0 6px; font-size: 20px; }
.empty-state p { margin: 0 0 18px; color: #6A776F; font-size: 14px; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.prod-card { background: #fff; border: 1px solid #E6EEE9; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(16,40,28,.04); }
.prod-preview { position: relative; border-radius: 13px; overflow: hidden; background: #0E1A14; aspect-ratio: 5/4; display: grid; place-items: center; padding: 14px; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px); }
.grad-text { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.prod-name { position: relative; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(18px, 3vw, 24px); text-align: center; line-height: 1.1; }
.prod-rarity { position: absolute; top: 9px; right: 9px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.prod-body { padding: 12px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.prod-type { font-size: 12px; font-weight: 600; color: #8A968E; text-transform: uppercase; letter-spacing: .06em; }
.prod-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; margin: 8px 0 12px; }
.prod-actions { display: flex; gap: 8px; margin-top: auto; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.detail-preview { position: relative; border-radius: 20px; overflow: hidden; background: #0E1A14; aspect-ratio: 1/1; display: grid; place-items: center; padding: 30px; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px); }
.detail-name { position: relative; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(30px, 5.5vw, 50px); text-align: center; line-height: 1.05; }
.detail-cat { display: inline-block; font-size: 12px; font-weight: 600; color: #8A968E; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.detail-info h1 { font-weight: 700; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; margin: 0 0 12px; color: #16211C; }
.detail-rarity { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.detail-desc { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #3B4842; }
.drops { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; font-size: 13.5px; color: #6A776F; }
.drops-label { font-weight: 600; }
.drop-chip { padding: 4px 10px; border-radius: 999px; background: #F1F6F2; border: 1px solid #E1EAE3; font-weight: 700; color: #3B4842; }
.detail-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.detail-price-main { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 36px; }
.detail-price-sub { color: #7D8B83; font-weight: 600; font-size: 14px; }
.assurances { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: #4C5A52; }
.assurances li { display: flex; gap: 9px; }
.assurances span { color: #13A85B; font-weight: 800; }

/* ---------- buy flow ---------- */
.stepsbar { display: flex; gap: 8px; margin-bottom: 24px; }
.stepsbar.center { max-width: 420px; margin: 0 auto 28px; }
.step { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.step-bar { height: 5px; border-radius: 999px; background: #E1EAE3; }
.step span { font-size: 12px; font-weight: 600; color: #9AA79F; }
.step.done .step-bar { background: #21D97D; }
.step.done span { color: #0F7D45; }
.all-fail .step .step-bar { background: #E5484D; }
.all-fail .step span { color: #C62A2F; }
.buy-h1 { font-weight: 700; font-size: 26px; margin: 0 0 6px; }
.buy-sub { margin: 0 0 22px; color: #4C5A52; font-size: 15px; line-height: 1.5; }
.nick-card { margin-bottom: 18px; }
.nick-card label { display: block; font-size: 13px; font-weight: 700; color: #3B4842; margin-bottom: 8px; }
.nick-input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #D5E2D9; font-size: 16px; color: #16211C; outline: none; background: #FBFDFC; }
.nick-input:focus { border-color: #21D97D; }
.nick-input.bad { border-color: #E5484D; }
.nick-hint { margin: 9px 2px 0; font-size: 12.5px; color: #8A968E; }
.nick-hint.ok { color: #13A85B; }
.nick-hint.bad { color: #E5484D; }
.opt-label { display: block; font-size: 13px; font-weight: 700; color: #3B4842; margin: 0 0 10px; }
.dur-grid { display: flex; gap: 10px; margin-bottom: 20px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 20px; }
.opt-card { flex: 1; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-inner { display: block; text-align: center; padding: 14px 10px; border-radius: 12px; font-weight: 700; border: 1.5px solid #D5E2D9; background: #fff; color: #3B4842; height: 100%; }
.opt-card input:checked + .opt-inner { border-color: #12A85B; background: #F0FBF5; color: #0F7D45; }
.opt-card input:focus-visible + .opt-inner { outline: 2px solid #21D97D; outline-offset: 2px; }
.opt-title { display: block; font-size: 14px; }
.opt-price { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 19px; margin-top: 4px; }
.opt-per { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; opacity: .7; }
.opt-save { display: block; font-size: 11.5px; font-weight: 700; margin-top: 3px; color: #13A85B; }
.opt-card input:checked + .opt-inner .opt-save { color: #0F7D45; }
.opt-save.muted { color: #9AA79F; }
.order-summary { display: flex; align-items: center; gap: 14px; background: #F5FAF7; border: 1px solid #E0EEE6; border-radius: 14px; padding: 14px 16px; margin-bottom: 24px; }
.os-info { flex: 1; min-width: 0; }
.os-name { font-weight: 700; font-size: 15px; }
.os-sub { font-size: 12.5px; color: #7D8B83; }
.os-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.buy-actions { display: flex; gap: 10px; }
.form-error { background: #FFF0F1; border: 1px solid #FBD5D8; color: #C62A2F; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }

.sum-card { padding: 20px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 12px 0; border-bottom: 1px solid #EEF3F0; }
.sum-row:first-child { padding-top: 0; }
.sum-row span:first-child { color: #6A776F; }
.sum-row .b { text-align: right; }
.sum-total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 14px; }
.sum-total span:first-child { color: #6A776F; font-size: 14px; }
.sum-total span:last-child { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; }
.pm-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pm-card { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 13px; cursor: pointer; width: 100%; background: #fff; border: 1.5px solid #E1EAE3; }
.pm-card input { position: absolute; opacity: 0; pointer-events: none; }
.pm-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C4D2CA; }
.pm-card:has(input:checked) { background: #F3FBF6; border-color: #21D97D; }
/* The filled centre is painted on the ring itself instead of being a centred
   child box. A 10px child leaves 3px of free space per side, which at 150% zoom
   is 4.5 device pixels: the browser rounds it one way and the dot ends up a
   whole device pixel closer to one edge - visible, and the reason this rule
   exists. Shrinking the child to an even size does not help, it only moves the
   rounding to the other axis: the card's 1.5px border already puts this control
   on a half pixel. A background circle shares the element's own centre at any
   zoom and any position. The stops straddle the 5px radius half a pixel apart,
   so the edge is antialiased instead of a jagged hard stop. */
.pm-card:has(input:checked) .pm-dot { border-color: #13A85B;
  background: radial-gradient(circle at 50% 50%, #13A85B 4.75px, transparent 5.25px); }
/* The radio itself is invisible, so the card has to carry the focus ring: without
   this, tabbing through the payment methods moves nothing on screen. Same outline
   as .opt-card on the previous step; the label is the only element that wraps the
   whole control, hence :has() rather than a sibling selector. */
.pm-card:has(input:focus-visible) { outline: 2px solid #21D97D; outline-offset: 2px; }
.pm-text { flex: 1; text-align: left; }
.pm-name { display: block; font-weight: 700; font-size: 15px; }
.pm-sub { display: block; font-size: 12.5px; color: #7D8B83; }
.pay-agree { margin: 14px 2px 0; font-size: 12px; color: #8A968E; text-align: center; }

/* ---------- status screens ---------- */
.status-wrap { max-width: 520px; margin: 0 auto; text-align: center; padding-top: 20px; }
.spinner { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; border: 5px solid #E3EEE7; border-top-color: #21D97D; animation: gw-spin .9s linear infinite; }
.status-h1 { font-weight: 700; font-size: 26px; margin: 0 0 10px; }
.status-msg { margin: 0 auto 22px; max-width: 400px; color: #4C5A52; font-size: 15px; line-height: 1.5; }
.status-msg strong { color: #16211C; }
.shimmer-list { margin: 26px auto 0; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.shimmer { height: 52px; border-radius: 12px; background: linear-gradient(90deg, #EEF3F0 25%, #F7FAF8 37%, #EEF3F0 63%); background-size: 900px 100%; animation: gw-shimmer 1.4s infinite linear; }
.status-icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 700; }
.status-icon.ok { background: linear-gradient(180deg, #21D97D, #12A85B); color: #fff; box-shadow: 0 10px 30px rgba(18,168,91,.3); }
.status-icon.err { background: #FFF0F1; color: #E5484D; border: 1px solid #FBD5D8; font-size: 32px; }
.status-icon.warn { background: #FFF7E8; color: #B8890B; border: 1px solid #F2E3BC; }
.receipt { padding: 18px 20px; text-align: left; margin-bottom: 22px; }
.r-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid #EEF3F0; }
.r-row:first-child { padding-top: 0; }
.r-row:last-child { border-bottom: none; padding-bottom: 0; }
.r-row span:first-child { color: #6A776F; }
.status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- info page ---------- */
.rules-link { margin: 0 0 26px; }
.rules-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 30px; }
.col-h { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: #21D97D; }
.dot.bad { background: #E5484D; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: #26332D; }
.checklist li { display: flex; gap: 9px; }
.mark { font-weight: 800; }
.mark.ok { color: #13A85B; }
.mark.bad { color: #E5484D; }
.fine { margin: 14px 0 0; font-size: 12.5px; color: #8A968E; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 30px; }
.info-card { padding: 20px; display: flex; flex-direction: column; }
.info-card h3 { font-size: 17px; margin: 0 0 9px; }
.info-lines { list-style: none; margin: 0 0 13px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.info-lines li { display: flex; gap: 9px; font-size: 14px; line-height: 1.5; color: #4C5A52; text-wrap: pretty; }
.li-dot { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; margin-top: 7px; background: #C3D6C9; }
.info-warn { margin: 0 0 13px; font-size: 13px; line-height: 1.5; color: #C62A2F; background: #FFF3F3; border: 1px solid #FBD5D8; border-radius: 10px; padding: 9px 11px; }
.info-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }
.info-links a { font-size: 12.5px; font-weight: 600; color: #0F7D45; background: #F1F8F4; border: 1px solid #DFEDE5; border-radius: 8px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.info-links a:hover { background: #E3F3EA; }
.info-cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.info-cmds code { font-size: 12.5px; color: #0F7D45; background: #F1F8F4; border: 1px solid #DFEDE5; border-radius: 8px; padding: 4px 9px; }
.cmds-h { font-size: 22px; margin: 0 0 16px; }
.cmd-table { overflow: hidden; }
.cmd-row { display: flex; gap: 14px; padding: 13px 18px; border-bottom: 1px solid #F1F5F2; flex-wrap: wrap; align-items: baseline; }
.cmd-row:last-child { border-bottom: none; }
.cmd-row code { font-size: 13.5px; color: #0F7D45; font-weight: 500; min-width: 210px; }
.cmd-row span { font-size: 13.5px; color: #4C5A52; flex: 1; min-width: 180px; }

/* ---------- rules page ---------- */
.rules-layout { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 32px); align-items: flex-start; }
.rules-toc { flex: 1 1 220px; min-width: 200px; position: sticky; top: calc(var(--hdr-h) + 17px); max-height: calc(100vh - var(--hdr-h) - 37px); overflow-y: auto; padding: 16px; }
.toc-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A968E; margin: 2px 0 10px 6px; }
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list a { display: flex; gap: 9px; align-items: baseline; text-align: left; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: #3B4842; }
.toc-list a:hover { background: #F1F6F2; }
.toc-list .mono { font-size: 12px; color: #8A968E; }
.rules-body { flex: 999 1 480px; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.rule-card { border-radius: 20px; padding: clamp(20px, 3vw, 30px); scroll-margin-top: calc(var(--hdr-h) + 21px); }
.rule-card h2 { font-weight: 700; font-size: clamp(19px, 2.6vw, 23px); margin: 0 0 16px; display: flex; gap: 12px; align-items: baseline; }
.rule-card h2 .mono { font-size: 15px; color: #13A85B; }
.rule-items { display: flex; flex-direction: column; gap: 11px; }
.rule-item { display: flex; gap: 12px; align-items: flex-start; }
.ri-num { flex: none; min-width: 34px; font-size: 12.5px; color: #8A968E; padding-top: 2px; }
.rule-item > span:last-child { font-size: 14.5px; line-height: 1.6; color: #26332D; text-wrap: pretty; }
.rules-note { margin: 4px 2px 0; font-size: 13px; color: #8A968E; line-height: 1.6; }

/* Under 780px the two columns of .rules-layout wrap, and the table of contents
   lands above the rules instead of beside them - where a sticky card floats over
   the very text it links to and eats a third of a phone screen. Stacked, it is a
   plain chip row that scrolls sideways like the header nav. */
@media (max-width: 779px) {
  .rules-layout { display: block; }
  .rules-toc { position: static; max-height: none; overflow: visible; margin-bottom: 14px; padding: 12px 12px 13px; }
  .toc-label { margin: 0 0 9px 2px; }
  .toc-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 7px; }
  .toc-list a { flex: none; white-space: nowrap; padding: 8px 13px; border-radius: 999px; background: #F6FAF7; border: 1px solid #E1EAE3; }
}

/* ---------- docs ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 28px; }
.doc-card { text-align: left; padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; border-radius: 16px; }
.doc-icon { width: 36px; height: 36px; border-radius: 10px; background: #EEF4F0; display: grid; place-items: center; font-size: 16px; }
.doc-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.25; color: #16211C; }
.doc-desc { font-size: 13px; color: #7D8B83; line-height: 1.4; }
.doc-page { max-width: 760px; margin: 0 auto; }
.doc-body { border-radius: 20px; padding: clamp(24px, 5vw, 44px); }
.doc-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8A968E; margin-bottom: 10px; }
.legal-content { color: #26332D; font-size: 14px; line-height: 1.72; overflow-wrap: anywhere; }
.legal-content h1 { font-weight: 700; font-size: clamp(23px, 4vw, 31px); line-height: 1.2; margin: 0 0 18px; text-wrap: balance; }
.legal-content h1:not(:first-child) { margin-top: 38px; font-size: clamp(21px, 3.2vw, 26px); }
.legal-content h2 { font-weight: 700; font-size: clamp(19px, 2.8vw, 23px); line-height: 1.3; margin: 34px 0 14px; text-wrap: balance; }
.legal-content h3 { font-weight: 700; font-size: 17px; line-height: 1.4; margin: 26px 0 12px; }
.legal-content p { margin: 0 0 13px; }
.legal-content > p:nth-child(2),
.legal-content > p:nth-child(3) { margin-bottom: 4px; color: #65736B; }
.legal-content strong { font-weight: 700; color: #17231D; }
.legal-content a { color: #0F7D45; text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: #095D33; }
.legal-content code { padding: 2px 5px; border-radius: 5px; background: #F1F6F2; color: #0F6D3C; font-size: .92em; white-space: normal; }
.legal-content hr { border: 0; border-top: 1px solid #E4ECE7; margin: 24px 0; }
.legal-content ul { margin: 8px 0 18px; padding-left: 23px; }
.legal-content li { margin: 6px 0; padding-left: 3px; }
.legal-content li::marker { color: #13A85B; }
.legal-content blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid #13A85B; border-radius: 0 10px 10px 0; background: #F3F8F5; }
.legal-content blockquote p { margin-bottom: 7px; }
.legal-content blockquote p:last-child { margin-bottom: 0; }
.doc-table-wrap { width: 100%; margin: 16px 0 22px; overflow-x: auto; border: 1px solid #DDE8E1; border-radius: 12px; }
.legal-content table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; font-size: 12.5px; line-height: 1.5; }
.legal-content th,
.legal-content td { padding: 10px 12px; border-right: 1px solid #E6EEE9; border-bottom: 1px solid #E6EEE9; text-align: left; vertical-align: top; }
.legal-content th:last-child,
.legal-content td:last-child { border-right: 0; }
.legal-content tr:last-child td { border-bottom: 0; }
.legal-content th { background: #F3F8F5; color: #26332D; font-weight: 700; }
.legal-content tbody tr:nth-child(even) { background: #FBFDFC; }

/* ---------- payment consent ---------- */
.pay-consents { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 18px; }
.consent-check { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #DDE8E1; border-radius: 12px; background: #FAFCFB; color: #4C5A52; font-size: 12.5px; line-height: 1.55; cursor: pointer; }
.consent-check:hover { border-color: #B8D4C3; background: #F6FAF7; }
.consent-check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #13A85B; cursor: pointer; }
.consent-check a { color: #0F7D45; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- footer ---------- */
.ftr { background: #0E1A14; color: #B7C7BD; margin-top: 40px; }
.ftr-inner { max-width: 1160px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 24px) 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.ftr h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6E8377; margin: 0 0 14px; font-family: 'Manrope', sans-serif; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.ftr a { color: #B7C7BD; }
.ftr a:hover { color: #fff; }
.ftr p { margin: 0; font-size: 13px; line-height: 1.7; color: #8FA398; }
.ftr p a { color: #8FA398; }
.ftr-bottom { border-top: 1px solid #1C2E24; }
.ftr-bottom > div { max-width: 1160px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 24px); font-size: 12px; line-height: 1.6; color: #6E8377; }
.ftr-copy { display: block; text-align: center; margin-top: 10px; }
