:root{
  --bg:#05060c;
  --bg-soft:#0a0c18;
  --card:#0b0d1a;
  --card-2:#0e1020;
  --line:rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.14);
  --text:#f5f5fb;
  --muted:#8b8da3;
  --muted-2:#5c5e73;
  --accent:#ffffff;
  --accent-dim:#c9cad6;
  --accent-contrast:#05060c;
  --ok:#7ee0a8;
  --warn:#f0c674;
  --danger:#ff6b81;
  --mono:'JetBrains Mono', ui-monospace, monospace;
  --sans:'Inter', 'Segoe UI', sans-serif;
}
*{box-sizing:border-box;}
html{ scroll-behavior:smooth; }
html,body{margin:0;padding:0;}
body{
  background:var(--bg); color:var(--text); font-family:var(--sans);
  -webkit-font-smoothing:antialiased; position:relative; min-height:100vh;
}
a{color:inherit;}
img{max-width:100%;display:block;}

/* ---- page-load fade-in ---- */
.page-main{ animation:pageFadeIn .6s cubic-bezier(.22,1,.36,1); }
@keyframes pageFadeIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

/* ---- scroll-reveal (elements get .reveal via JS, .in-view when visible) ---- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in-view{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .page-main, .reveal{ animation:none !important; transition:none !important; opacity:1 !important; transform:none !important; }
}

.fog{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.fog span{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.16; background:radial-gradient(circle, #ffffff 0%, transparent 70%); animation:drift 26s ease-in-out infinite; }
.fog span:nth-child(1){width:520px;height:520px; top:-10%; left:5%;}
.fog span:nth-child(2){width:420px;height:420px; top:30%; right:0%; animation-delay:-8s; opacity:.10;}
.fog span:nth-child(3){width:600px;height:600px; bottom:-15%; left:30%; animation-delay:-16s; opacity:.08;}
@keyframes drift{ 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(40px,-30px) scale(1.08);} }
@media (prefers-reduced-motion: reduce){ .fog span{ animation:none; } }

.wrap{ position:relative; z-index:1; max-width:1180px; margin:0 auto; padding:0 28px; }
.page-body{ min-height:100vh; display:flex; flex-direction:column; }
.page-main{ flex:1; }

header{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:26px 0; border-bottom:1px solid var(--line); }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; flex-shrink:0; }
.brand-mark{ width:34px; height:34px; border-radius:10px; background:url("shadowvisual-avatar.avif?v=3") center/cover no-repeat; box-shadow:0 0 0 1px var(--line-2), 0 8px 22px rgba(255,255,255,.14); flex-shrink:0; transition:transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; overflow:hidden; }
.brand:hover .brand-mark{ transform:rotate(-8deg) scale(1.06); box-shadow:0 0 0 1px var(--line-2), 0 10px 30px rgba(255,255,255,.22); }
.brand-name{ font-weight:800; letter-spacing:.01em; font-size:16px; }
.brand-tag{ font-family:var(--mono); font-size:11px; color:var(--muted-2); letter-spacing:.12em; text-transform:uppercase; margin-top:1px;}
nav{ display:flex; gap:28px; flex-wrap:wrap; }
nav a{ color:var(--muted); text-decoration:none; font-size:14px; font-weight:500; transition:color .15s; padding-bottom:4px; border-bottom:2px solid transparent; white-space:nowrap; }
nav a:hover{ color:var(--text); }
nav a.active{ color:var(--text); border-color:var(--accent); }
.header-actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; margin-left:auto; }

.btn{ font-family:var(--sans); font-weight:600; font-size:14px; border-radius:10px; border:1px solid var(--line-2); padding:10px 18px; cursor:pointer; transition:all .2s cubic-bezier(.22,1,.36,1); background:transparent; color:var(--text); text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn:hover{ border-color:var(--accent); background:rgba(255,255,255,.04); transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn-primary{ background:var(--accent); color:var(--accent-contrast); border-color:var(--accent); }
.btn-primary:hover{ background:var(--accent-dim); box-shadow:0 8px 24px rgba(255,255,255,.15); }
.btn-block{ width:100%; }
.btn-ghost{ border-color:transparent; }
.btn-ghost:hover{ border-color:var(--line-2); }
.btn-danger:hover{ border-color:var(--danger); color:var(--danger); }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }
.btn-sm{ padding:7px 12px; font-size:12.5px; }

/* hero */
.hero{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; padding:88px 0 96px; align-items:center; }
.eyebrow{ font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted-2); display:flex; align-items:center; gap:8px; margin-bottom:20px; }
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--ok); box-shadow:0 0 10px var(--ok); }
h1{ font-size:52px; line-height:1.06; letter-spacing:-.02em; font-weight:800; margin:0 0 20px; }
h1 em{ font-style:normal; color:var(--muted); }
.lead{ font-size:16px; line-height:1.65; color:var(--muted); max-width:480px; margin:0 0 32px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.launcher-mock{ border-radius:18px; border:1px solid var(--line-2); background:linear-gradient(180deg,#0c0e1c,#07080f); box-shadow:0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03); overflow:hidden; }
.lm-bar{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--line); }
.lm-dot{ width:9px; height:9px; border-radius:50%; background:#3a3c4c; }
.lm-title{ margin-left:6px; font-family:var(--mono); font-size:11px; color:var(--muted-2); letter-spacing:.06em; }
.lm-body{ display:flex; }
.lm-side{ width:56px; padding:18px 0; display:flex; flex-direction:column; align-items:center; gap:16px; border-right:1px solid var(--line); }
.lm-icon{ width:30px; height:30px; border-radius:9px; background:rgba(255,255,255,.05); }
.lm-icon.active{ background:rgba(255,255,255,.14); box-shadow:inset 0 0 0 1px var(--line-2); }
.lm-main{ flex:1; padding:22px 24px; }
.lm-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.lm-h{ font-size:13px; font-weight:700; }
.lm-status{ font-family:var(--mono); font-size:10px; color:var(--ok); border:1px solid rgba(126,224,168,.3); padding:3px 8px; border-radius:20px; }
.lm-bar2{ height:8px; border-radius:6px; background:rgba(255,255,255,.06); overflow:hidden; margin-bottom:10px; }
.lm-bar2 i{ display:block; height:100%; width:64%; background:linear-gradient(90deg,#fff,#c9cad6); }
.lm-meta{ display:flex; justify-content:space-between; font-family:var(--mono); font-size:10.5px; color:var(--muted-2); margin-bottom:20px; }
.lm-play{ width:100%; padding:12px; border-radius:10px; background:var(--accent); color:var(--accent-contrast); text-align:center; font-weight:700; font-size:13px; letter-spacing:.02em; }

.page-hero{ padding:64px 0 8px; }
.page-hero .eyebrow{ margin-bottom:16px; }
.page-hero h1{ font-size:40px; margin-bottom:14px; }
.page-hero .lead{ max-width:620px; }

.section-head{ text-align:center; max-width:600px; margin:0 auto 48px; }
.section-head .eyebrow{ justify-content:center; }
.section-head h2{ font-size:34px; letter-spacing:-.015em; margin:0 0 12px; font-weight:800; }
.section-head p{ color:var(--muted); font-size:15px; line-height:1.6; margin:0; }

/* pricing */
.pricing{ padding:60px 0 110px; }
.plans{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.plan{ position:relative; border:1px solid var(--line); border-radius:16px; background:linear-gradient(180deg, var(--card), var(--card-2)); padding:26px 22px 22px; display:flex; flex-direction:column; transition:transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s; }
.plan:hover{ transform:translateY(-6px); border-color:var(--line-2); box-shadow:0 20px 50px rgba(0,0,0,.4); }
.plan.featured{ border-color:rgba(255,255,255,.35); box-shadow:0 20px 60px rgba(255,255,255,.06); }
.plan-badge{ position:absolute; top:-11px; left:22px; font-family:var(--mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; background:var(--accent); color:var(--accent-contrast); padding:4px 10px; border-radius:20px; font-weight:700; }
.plan-period{ font-family:var(--mono); font-size:12px; color:var(--muted-2); text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px;}
.plan-name{ font-size:19px; font-weight:800; margin-bottom:18px; }
.plan-price{ display:flex; align-items:baseline; gap:6px; margin-bottom:4px; }
.plan-price b{ font-size:34px; font-weight:800; letter-spacing:-.01em; }
.plan-price span{ color:var(--muted); font-size:13px; }
.plan-perday{ font-family:var(--mono); font-size:11.5px; color:var(--muted-2); margin-bottom:22px; }
.plan-feats{ list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.plan-feats li{ font-size:13px; color:var(--muted); display:flex; gap:9px; align-items:flex-start; line-height:1.45; }
.plan-feats li::before{ content:"—"; color:var(--muted-2); }

.trust{ display:flex; justify-content:center; gap:44px; flex-wrap:wrap; padding:0 0 100px; }
.trust-item{ text-align:center; }
.trust-item b{ display:block; font-size:26px; font-weight:800; font-family:var(--mono); }
.trust-item span{ font-size:12px; color:var(--muted-2); text-transform:uppercase; letter-spacing:.08em; }

/* ---- способы оплаты (футер) ---- */
.payments-strip{ text-align:center; padding:0 0 60px; }
.payments-strip-label{ font-size:12px; color:var(--muted-2); text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; }
.payments-row{ display:flex; justify-content:center; align-items:stretch; gap:12px; flex-wrap:wrap; }
.payment-badge{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 18px; border-radius:14px; border:1px solid var(--line-2); background:var(--card); min-width:96px; }
.payment-badge .pb-icon{ width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.payment-badge .pb-icon-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.payment-badge .pb-name{ font-size:12.5px; font-weight:700; }
.payment-badge .pb-note{ font-size:10.5px; color:var(--muted-2); font-family:var(--mono); }

/* about / modules */
.about{ padding:0 0 110px; }
.about-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:center; }
.about-copy p{ color:var(--muted); font-size:15px; line-height:1.7; margin:0 0 16px; }
.about-stats{ display:flex; gap:28px; margin-top:26px; flex-wrap:wrap; }
.about-stats div b{ display:block; font-family:var(--mono); font-size:22px; font-weight:800; }
.about-stats div span{ font-size:11.5px; color:var(--muted-2); text-transform:uppercase; letter-spacing:.06em; }
.mod-list{ display:flex; flex-direction:column; gap:10px; }
.mod-item{ display:flex; align-items:center; gap:14px; border:1px solid var(--line); border-radius:13px; padding:14px 16px; background:linear-gradient(180deg, var(--card), var(--card-2)); transition:border-color .15s, transform .15s; }
.mod-item:hover{ border-color:var(--line-2); transform:translateX(3px); }
.mod-dot{ width:8px; height:8px; border-radius:50%; background:var(--ok); flex-shrink:0; box-shadow:0 0 8px var(--ok); }
.mod-name{ font-weight:700; font-size:14px; min-width:150px; }
.mod-desc{ font-size:12.5px; color:var(--muted); line-height:1.5; }

/* activation flow explainer */
.flow{ padding:0 0 110px; }
.flow-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; max-width:900px; margin:0 auto; }
.flow-step{ border:1px solid var(--line); border-radius:14px; padding:22px 20px; background:var(--card); position:relative; }
.flow-num{ font-family:var(--mono); font-size:12px; color:var(--muted-2); margin-bottom:10px; }
.flow-step h4{ margin:0 0 8px; font-size:15px; }
.flow-step p{ margin:0; font-size:12.5px; color:var(--muted); line-height:1.55; }

/* faq */
.faq{ padding:0 0 110px; }
.faq-list{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.faq-item{ border:1px solid var(--line); border-radius:13px; background:var(--card); overflow:hidden; transition:border-color .2s; }
.faq-item:hover{ border-color:var(--line-2); }
.faq-q{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; cursor:pointer; font-weight:600; font-size:14.5px; user-select:none; }
.faq-q .plus{ font-family:var(--mono); color:var(--muted-2); font-size:18px; flex-shrink:0; transition:transform .2s; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); color:var(--accent); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:220px; }
.faq-a p{ margin:0; padding:0 20px 18px; color:var(--muted); font-size:13.5px; line-height:1.65; }

footer{ border-top:1px solid var(--line); padding:28px 0; display:flex; justify-content:space-between; align-items:center; color:var(--muted-2); font-size:12.5px; flex-wrap:wrap; gap:14px; }
.discord-link{ display:inline-flex; align-items:center; gap:7px; color:var(--muted); text-decoration:none; font-weight:600; padding:7px 14px; border:1px solid var(--line-2); border-radius:20px; transition:all .2s ease; }
.discord-link:hover{ color:#fff; border-color:#5865F2; background:rgba(88,101,242,.12); transform:translateY(-2px); }
.discord-link svg{ transition:transform .2s ease; }
.discord-link:hover svg{ transform:scale(1.15) rotate(-6deg); }


.discord-section{ padding:10px 0 70px; }
.discord-card{ display:flex; align-items:center; gap:22px; border:1px solid var(--line); border-radius:18px; padding:28px 30px; background:linear-gradient(135deg, rgba(88,101,242,.10), var(--card) 60%); position:relative; overflow:hidden; }
.discord-card::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 15% 20%, rgba(88,101,242,.25), transparent 55%); opacity:.7; pointer-events:none; }
.discord-card svg{ color:#5865F2; flex-shrink:0; filter:drop-shadow(0 0 12px rgba(88,101,242,.5)); animation:discordFloat 3.2s ease-in-out infinite; }
.discord-card h3{ margin:0 0 6px; font-size:17px; font-weight:800; }
.discord-card p{ margin:0; color:var(--muted); font-size:13px; line-height:1.55; max-width:440px; }
.discord-card .btn{ margin-left:auto; flex-shrink:0; }
@keyframes discordFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-5px); } }
@media (max-width:700px){
  .discord-card{ flex-direction:column; text-align:center; }
  .discord-card .btn{ margin-left:0; width:100%; }
}

/* ---- auth modal ---- */
.overlay{ position:fixed; inset:0; background:rgba(4,5,10,.72); backdrop-filter:blur(6px); display:none; align-items:center; justify-content:center; z-index:100; padding:20px; opacity:0; transition:opacity .25s ease; }
.overlay.open{ display:flex; opacity:1; }
.modal{ width:100%; max-width:400px; background:var(--card); border:1px solid var(--line-2); border-radius:18px; padding:28px; animation:modalIn .32s cubic-bezier(.22,1,.36,1); box-shadow:0 30px 90px rgba(0,0,0,.6); }
@keyframes modalIn{ from{opacity:0; transform:translateY(16px) scale(.96);} to{opacity:1; transform:none;} }
.modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.modal-head h3{ margin:0; font-size:18px; font-weight:800; }
.modal-close{ background:none; border:none; color:var(--muted); cursor:pointer; font-size:18px; line-height:1; padding:4px; }
.modal-close:hover{ color:var(--text); }

.tabs{ display:flex; gap:4px; background:rgba(255,255,255,.04); padding:4px; border-radius:10px; margin-bottom:22px; }
.tab{ flex:1; text-align:center; padding:8px; border-radius:8px; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; }
.tab.active{ background:var(--accent); color:var(--accent-contrast); }

.field{ margin-bottom:14px; }
.field label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:500; }
.field input{ width:100%; background:var(--bg-soft); border:1px solid var(--line); color:var(--text); border-radius:10px; padding:11px 12px; font-size:14px; font-family:var(--sans); outline:none; transition:border-color .15s; }
.field input:focus{ border-color:var(--accent-dim); }
.field .hint{ font-size:11px; color:var(--muted-2); margin-top:5px; }
.form-error{ font-size:12.5px; color:var(--danger); margin:-4px 0 12px; display:none; }
.form-error.show{ display:block; }

.divider{ display:flex; align-items:center; gap:12px; margin:18px 0; color:var(--muted-2); font-size:11.5px; }
.divider::before, .divider::after{ content:""; flex:1; height:1px; background:var(--line); }

.switch-hint{ text-align:center; font-size:12.5px; color:var(--muted); margin-top:16px; }
.switch-hint a{ color:var(--text); font-weight:600; cursor:pointer; text-decoration:none; }

/* account badge in header */
.acct-badge{ display:flex; align-items:center; gap:9px; padding:6px 10px 6px 6px; border:1px solid var(--line-2); border-radius:11px; cursor:pointer; background:rgba(255,255,255,.02); text-decoration:none; }
.acct-badge:hover{ border-color:var(--accent-dim); }
.acct-avatar{ width:30px; height:30px; border-radius:8px; background:transparent !important; object-fit:cover; object-position:center; flex-shrink:0; display:block; }
.acct-login{ font-size:13px; font-weight:600; }

/* profile page */
.profile-hero{ padding:56px 0 40px; display:flex; align-items:center; gap:20px; }
.profile-avatar{ width:68px; height:68px; border-radius:16px; background:linear-gradient(155deg,#fff,#6b6d80); flex-shrink:0; object-fit:cover; }
.profile-name{ font-size:24px; font-weight:800; margin:0 0 4px; }
.profile-email{ font-family:var(--mono); font-size:12.5px; color:var(--muted-2); }
.profile-provider{ display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); border:1px solid var(--line); padding:3px 9px; border-radius:20px; margin-top:8px; }

.profile-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:20px; padding-bottom:100px; align-items:start; }
.pcard{ border:1px solid var(--line); border-radius:16px; background:linear-gradient(180deg, var(--card), var(--card-2)); padding:22px; }
.pcard h3{ margin:0 0 4px; font-size:15px; font-weight:700; }
.pcard .sub{ font-size:12px; color:var(--muted-2); margin-bottom:18px; }

/* promo code redeem card */
.promo-card{ position:relative; overflow:hidden; }
.promo-card::before{
  content:''; position:absolute; top:-60%; right:-15%; width:220px; height:220px;
  background:radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
  pointer-events:none;
}
.promo-redeem-row{ display:flex; gap:10px; margin-top:14px; position:relative; z-index:1; }
.promo-input{
  flex:1; min-width:0; padding:13px 16px; border-radius:12px;
  border:1px solid var(--line-2); background:var(--bg-soft); color:var(--text);
  font-family:var(--mono); font-size:15px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; text-align:center; transition:border-color .15s, box-shadow .15s;
}
.promo-input::placeholder{ color:var(--muted-2); letter-spacing:.14em; font-weight:500; }
.promo-input:focus{ outline:none; border-color:var(--accent-dim); box-shadow:0 0 0 3px rgba(255,255,255,.06); }
.promo-redeem-row .btn{ padding-left:22px; padding-right:22px; flex-shrink:0; }
.promo-result{ font-size:12.5px; margin-top:10px; min-height:16px; position:relative; z-index:1; }

.status-pill{ display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:11.5px; padding:5px 11px; border-radius:20px; border:1px solid; }
.status-pill.active{ color:var(--ok); border-color:rgba(126,224,168,.35); background:rgba(126,224,168,.08); }
.status-pill.pending{ color:var(--warn); border-color:rgba(240,198,116,.35); background:rgba(240,198,116,.08); }
.status-pill.none{ color:var(--muted-2); border-color:var(--line); }
.status-pill .dot{ width:6px; height:6px; border-radius:50%; background:currentColor; }

.kv-row{ display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); }
.kv-row:last-child{ border-bottom:none; }
.kv-row .k{ font-size:12.5px; color:var(--muted); }
.kv-row .v{ font-size:12.5px; font-weight:600; font-family:var(--mono); text-align:right; }
.v.ok{ color:var(--ok); }
.v.mut{ color:var(--muted-2); }

.hwid-box{ display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--bg-soft); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:14px 0; }
.hwid-box code{ font-family:var(--mono); font-size:12px; color:var(--accent-dim); word-break:break-all; }
.copy-btn{ background:none; border:1px solid var(--line-2); color:var(--muted); border-radius:8px; padding:6px 10px; font-size:11px; cursor:pointer; flex-shrink:0; }
.copy-btn:hover{ color:var(--text); border-color:var(--accent-dim); }

.activation-note{ display:flex; gap:10px; background:rgba(240,198,116,.06); border:1px solid rgba(240,198,116,.25); border-radius:12px; padding:12px 14px; font-size:12px; color:var(--warn); line-height:1.55; margin-top:14px; }

.history-row{ display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); font-size:12.5px; }
.history-row:last-child{ border-bottom:none; }
.history-row .plan{ font-weight:600; }
.history-row .date{ color:var(--muted-2); font-family:var(--mono); font-size:11px; }
.history-row .amount{ font-family:var(--mono); }
.empty-state{ text-align:center; padding:30px 10px; color:var(--muted-2); font-size:12.5px; }

/* avatar picker */
.avatar-pick-wrap{ position:relative; flex-shrink:0; }
.avatar-edit-btn{ position:absolute; bottom:-4px; right:-4px; width:26px; height:26px; border-radius:8px; background:var(--accent); color:var(--accent-contrast); border:2px solid var(--bg); font-size:12px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.avatar-edit-btn:hover{ background:var(--accent-dim); }
.avatar-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.avatar-opt{ aspect-ratio:1; border-radius:12px; border:2px solid var(--line); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:22px; background:var(--bg-soft); transition:border-color .15s, transform .15s; }
.avatar-opt:hover{ transform:translateY(-2px); border-color:var(--line-2); }
.avatar-opt.selected{ border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.avatar-upload-row{ margin-top:14px; }
.avatar-opt-image{ padding:0; overflow:hidden; }
.avatar-opt-image img{ width:100%; height:100%; object-fit:cover; }

/* balance */
.balance-box{ display:flex; align-items:center; gap:16px; padding:16px 18px; border-radius:14px; background:linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border:1px solid var(--line-2); margin-bottom:14px; }
.balance-icon{ width:44px; height:44px; border-radius:12px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:800; font-family:var(--mono); background:var(--accent); color:var(--accent-contrast); }
.balance-amount{ font-size:30px; font-weight:800; font-family:var(--mono); line-height:1; display:flex; align-items:baseline; gap:4px; }
.balance-currency{ font-size:16px; font-weight:600; color:var(--muted); }
.balance-history{ margin-top:4px; }
.balance-history-scroll{ max-height:320px; overflow-y:auto; padding-right:4px; scrollbar-width:thin; scrollbar-color:var(--line-2) transparent; }
.balance-history-scroll::-webkit-scrollbar{ width:6px; }
.balance-history-scroll::-webkit-scrollbar-thumb{ background:var(--line-2); border-radius:6px; }
#balanceHistoryToggle{ margin-top:2px; }

/* ---- текущая версия (главная) ---- */
.version-badge{
  display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:11.5px;
  padding:5px 12px; border-radius:20px; border:1px solid var(--line-2); background:var(--bg-soft); color:var(--muted); cursor:default;
}

.balance-buy-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.balance-buy-item{ border:1px solid var(--line); border-radius:12px; padding:14px 12px; text-align:center; background:var(--bg-soft); }
.balance-buy-item .bp-period{ font-family:var(--mono); font-size:11px; color:var(--muted-2); text-transform:uppercase; margin-bottom:6px; }
.balance-buy-item .bp-price{ font-weight:800; font-size:18px; margin-bottom:10px; }

/* daily bonus */
.daily-bonus-btn{ width:100%; padding:16px; border-radius:14px; border:1px dashed var(--line-2); background:linear-gradient(180deg, rgba(255,255,255,.04), transparent); font-weight:700; font-size:14px; cursor:pointer; color:var(--text); transition:all .2s cubic-bezier(.22,1,.36,1); animation:bonusPulse 2.6s ease-in-out infinite; }
.daily-bonus-btn:hover{ border-color:var(--accent); background:rgba(255,255,255,.06); transform:translateY(-2px) scale(1.01); animation-play-state:paused; }
.daily-bonus-btn[disabled]{ opacity:.5; cursor:not-allowed; border-style:solid; animation:none; }
@keyframes bonusPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,255,255,.12); } 50%{ box-shadow:0 0 0 8px rgba(255,255,255,0); } }
.bonus-cooldown{ text-align:center; font-size:12px; color:var(--muted-2); font-family:var(--mono); margin-top:8px; }
.bonus-limit-note{ text-align:center; font-size:11.5px; color:var(--muted-2); margin-top:6px; }
.extra-spin-btn{ width:100%; margin-top:12px; padding:12px; font-size:13.5px; }
.extra-spin-free{ background:linear-gradient(135deg, rgba(240,198,116,.16), rgba(240,198,116,.04)); border-color:rgba(240,198,116,.4); color:var(--warn); font-weight:700; }

.bonus-modal{ text-align:center; }
.bonus-result{ padding:20px 10px; }
.bonus-icon{ font-size:52px; margin-bottom:14px; animation:bonusPop .5s cubic-bezier(.22,1.6,.36,1); }
@keyframes bonusPop{ 0%{ transform:scale(.3) rotate(-15deg); opacity:0; } 60%{ transform:scale(1.15) rotate(4deg); opacity:1; } 100%{ transform:scale(1) rotate(0); } }
.bonus-title{ font-size:19px; font-weight:800; margin-bottom:6px; }
.bonus-desc{ font-size:13px; color:var(--muted); line-height:1.6; }
.rarity-tag{ display:inline-block; font-family:var(--mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; padding:4px 10px; border-radius:20px; margin-top:10px; border:1px solid; }
.rarity-common{ color:var(--muted); border-color:var(--line-2); }
.rarity-uncommon{ color:var(--ok); border-color:rgba(126,224,168,.35); background:rgba(126,224,168,.08); }
.rarity-rare{ color:#7ec8f0; border-color:rgba(126,200,240,.35); background:rgba(126,200,240,.08); }
.rarity-epic{ color:#c99bff; border-color:rgba(201,155,255,.4); background:rgba(201,155,255,.08); }
.rarity-legendary{ color:var(--warn); border-color:rgba(240,198,116,.4); background:rgba(240,198,116,.1); }

/* promo codes */
.promo-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }
.promo-row:last-child{ border-bottom:none; }
.promo-code{ font-family:var(--mono); font-weight:700; font-size:13px; }
.promo-meta{ font-size:11px; color:var(--muted-2); margin-top:2px; }
.promo-expired{ opacity:.45; }

@media (max-width:700px){
  .balance-buy-grid{ grid-template-columns:1fr 1fr; }
  .avatar-grid{ grid-template-columns:repeat(4,1fr); }
}

.signed-out-card{ max-width:420px; margin:80px auto; text-align:center; padding:40px 30px; border:1px solid var(--line); border-radius:18px; background:var(--card); }

/* shop */

.other-services{ margin:34px 0 10px; }
.section-heading{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.section-heading h2{ margin:4px 0 0; font-size:26px; letter-spacing:-.02em; }
.section-heading p{ max-width:520px; margin:0; color:var(--muted); font-size:13px; line-height:1.55; text-align:right; }
.other-services-grid{ grid-template-columns:repeat(3,1fr); max-width:none; }
@media (max-width:900px){ .other-services-grid{ grid-template-columns:repeat(2,1fr); } .section-heading{ align-items:flex-start; flex-direction:column; } .section-heading p{ text-align:left; } }
@media (max-width:620px){ .other-services-grid{ grid-template-columns:1fr; } .section-heading h2{ font-size:22px; } }

.shop-tabs{ display:flex; gap:10px; margin:8px 0 26px; flex-wrap:wrap; }
.shop-tab{ font-family:var(--sans); font-weight:600; font-size:13.5px; padding:10px 18px; border-radius:10px; border:1px solid var(--line-2); background:transparent; color:var(--muted); cursor:pointer; transition:all .2s ease; }
.shop-tab:hover{ color:var(--text); border-color:var(--line-2); background:rgba(255,255,255,.03); }
.shop-tab.active{ background:var(--accent); color:var(--accent-contrast); border-color:var(--accent); }

.shop-panel{ animation:pageFadeIn .4s cubic-bezier(.22,1,.36,1); }

.shop-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.shop-item{ position:relative; border:1px solid var(--line); border-radius:16px; padding:26px 18px; text-align:center; background:linear-gradient(180deg, var(--card), var(--card-2)); transition:transform .25s cubic-bezier(.22,1,.36,1), border-color .25s; }
.shop-item:hover{ transform:translateY(-4px); border-color:var(--line-2); }
.shop-item.locked{ opacity:.85; }
.shop-item-icon{ font-size:34px; margin-bottom:12px; }
.shop-item-name{ font-weight:700; font-size:14.5px; margin-bottom:6px; }
.shop-item-desc{ font-size:12px; color:var(--muted); line-height:1.5; }
.soon-badge{ display:inline-block; margin-top:14px; font-family:var(--mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; padding:4px 12px; border-radius:20px; border:1px solid var(--line-2); color:var(--muted-2); }
.shop-note{ font-size:12.5px; color:var(--muted-2); text-align:center; padding-top:6px; }

.shop-empty-state{ text-align:center; max-width:460px; margin:40px auto 80px; padding:44px 30px; border:1px dashed var(--line-2); border-radius:18px; }
.shop-empty-icon{ font-size:46px; margin-bottom:16px; }
.shop-empty-state h3{ font-size:18px; margin:0 0 10px; }
.shop-empty-state p{ font-size:13.5px; color:var(--muted); line-height:1.6; margin:0 0 22px; }

@media (max-width:900px){
  .shop-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .shop-grid{ grid-template-columns:1fr; }
  .shop-tabs{ overflow-x:auto; flex-wrap:nowrap; }
}
.signed-out-card h2{ font-size:20px; margin:0 0 10px; }
.signed-out-card p{ color:var(--muted); font-size:13.5px; margin:0 0 24px; line-height:1.6; }

.toast{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--card); border:1px solid var(--line-2); border-radius:12px; padding:13px 20px; font-size:13.5px; z-index:200; opacity:0; pointer-events:none; transition:all .25s; box-shadow:0 20px 50px rgba(0,0,0,.5); display:flex; align-items:center; gap:10px; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
.toast .dot{ width:7px; height:7px; border-radius:50%; background:var(--ok); }

@media (max-width:900px){
  .hero{ grid-template-columns:1fr; padding:56px 0; }
  h1{ font-size:38px; }
  .plans{ grid-template-columns:1fr 1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .flow-steps{ grid-template-columns:1fr; }
  .profile-grid{ grid-template-columns:1fr; }
  nav{ display:none; }
}
@media (max-width:560px){
  .plans{ grid-template-columns:1fr; }
  .trust{ gap:26px; }
  .profile-hero{ flex-direction:column; text-align:center; }
}

/* ================= ANNOUNCEMENT BANNER ================= */
.announce-bar{
  position:sticky; top:0; z-index:200;
  display:flex; align-items:center; justify-content:center; gap:16px;
  padding:10px 20px; background:linear-gradient(90deg,#2a2a2a,#1c1c1c);
  border-bottom:1px solid var(--line-2, rgba(255,255,255,.1));
  font-size:13.5px; color:#e8e8e8; text-align:center;
}
.announce-close{
  background:none; border:none; color:rgba(255,255,255,.6); cursor:pointer;
  font-size:14px; line-height:1; padding:4px;
}
.announce-close:hover{ color:#fff; }
@media (max-width:640px){
  .announce-bar{ flex-direction:column; gap:6px; padding:10px 14px; }
}

/* ================= ADMIN ENTRY LINK (profile page) ================= */
.admin-entry-link{
  display:flex; align-items:center; gap:8px; justify-content:center;
  margin:0 0 24px; padding:12px 16px; border-radius:10px;
  background:rgba(255,255,255,.06); border:1px solid var(--line-2, rgba(255,255,255,.12));
  color:#fff; font-size:14px; font-weight:600; text-decoration:none;
  transition:background .15s;
}
.admin-entry-link:hover{ background:rgba(255,255,255,.1); }

/* ================= THEME: LIGHT ================= */
[data-theme="light"]{
  --bg:#f4f5f9;
  --bg-soft:#ffffff;
  --card:#ffffff;
  --card-2:#f0f1f7;
  --line:rgba(15,17,30,.09);
  --line-2:rgba(15,17,30,.16);
  --text:#13141d;
  --muted:#5b5d70;
  --muted-2:#8a8ca3;
  --accent:#13141d;
  --accent-dim:#33344a;
  --accent-contrast:#ffffff;
  --ok:#1a9a56;
  --warn:#a5750a;
  --danger:#d43a53;
}
[data-theme="light"] .fog{ opacity:.35; }
[data-theme="light"] .announce-bar{ background:linear-gradient(90deg,#eef0f6,#e4e6f0); color:#1b1c26; border-bottom-color:var(--line-2); }
[data-theme="light"] .announce-close{ color:rgba(20,20,30,.55); }
[data-theme="light"] .announce-close:hover{ color:#000; }
[data-theme="light"] .admin-entry-link{ background:rgba(20,20,30,.05); color:#13141d; border-color:var(--line-2); }
[data-theme="light"] .admin-entry-link:hover{ background:rgba(20,20,30,.09); }
[data-theme="light"] .btn:hover{ background:rgba(20,20,30,.04); }
[data-theme="light"] .btn-primary:hover{ box-shadow:0 8px 24px rgba(20,20,30,.15); }

/* ================= THEME TOGGLE BUTTON ================= */
.theme-toggle{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--line-2);
  background:transparent; color:var(--text); cursor:pointer; display:inline-flex;
  align-items:center; justify-content:center; font-size:16px; flex-shrink:0;
  transition:all .2s cubic-bezier(.22,1,.36,1); margin-right:10px;
}
.theme-toggle .theme-icon{width:100%;height:100%;object-fit:contain;display:none;pointer-events:none;}
.theme-toggle .theme-icon-sun{display:block;filter:invert(1);}
.theme-toggle.is-light .theme-icon-sun{display:none;filter:none;}
.theme-toggle.is-light .theme-icon-moon{display:block;filter:none;}
.theme-toggle:hover{ border-color:var(--accent); background:rgba(127,127,127,.08); transform:translateY(-2px); }
.header-actions{ display:flex; align-items:center; }

/* (старый блок .dl-block удалён — теперь анимированная версия ниже, в LAUNCHER DOWNLOAD) */

/* ================= CONFIG MARKETPLACE ================= */
.configs-toolbar{ display:flex; justify-content:flex-end; margin-bottom:18px; }
.configs-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:16px; }
.config-card{
  position:relative; overflow:hidden; border:1px solid var(--line); border-radius:16px;
  background:linear-gradient(180deg, var(--card), var(--card-2)); padding:20px;
  display:flex; flex-direction:column; transition:transform .2s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .2s;
}
.config-card::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background:radial-gradient(420px circle at 0% 0%, rgba(255,255,255,.06), transparent 55%);
}
.config-card:hover{ transform:translateY(-3px); border-color:var(--accent-dim); box-shadow:0 12px 30px rgba(0,0,0,.2); }
.config-card-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:10px; position:relative; z-index:1; }
.config-title{ font-weight:700; font-size:15.5px; line-height:1.3; }
.config-price{ font-family:var(--mono); font-weight:700; font-size:14px; color:var(--text); white-space:nowrap; background:rgba(127,127,127,.12); padding:4px 10px; border-radius:8px; }
.config-price.free{ color:var(--ok); }
.config-author{ font-family:var(--mono); font-size:11px; color:var(--muted-2); letter-spacing:.04em; margin-bottom:10px; position:relative; z-index:1; }
.config-desc{ font-size:13px; color:var(--muted); line-height:1.55; margin-bottom:16px; flex:1; position:relative; z-index:1; }
.config-actions{ display:flex; gap:8px; position:relative; z-index:1; }
.config-empty{ text-align:center; padding:50px 20px; color:var(--muted); }
.config-form-hint{ font-size:12px; color:var(--muted-2); margin:-6px 0 14px; }

/* ================= LAUNCHER DOWNLOAD (profile page) ================= */
@keyframes dlFadeUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
@keyframes dlPulseGlow{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,255,255,.12);} 50%{ box-shadow:0 0 0 8px rgba(255,255,255,0);} }
@keyframes dlIconFloat{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-3px);} }
@keyframes dlSpin{ to{ transform:rotate(360deg); } }
@keyframes dlBarStripe{ from{ background-position:0 0;} to{ background-position:40px 0;} }

.launcher-dl-locked{ text-align:center; padding:26px 10px; animation:dlFadeUp .4s ease both; }
.launcher-dl-locked .lock-icon{ font-size:30px; margin-bottom:10px; animation:dlIconFloat 2.6s ease-in-out infinite; }
.launcher-dl-locked p{ font-size:13px; color:var(--muted); line-height:1.6; margin:0 0 16px; }

.launcher-dl-ready{ animation:dlFadeUp .45s cubic-bezier(.22,1,.36,1) both; }
.dl-choice{ display:flex; gap:12px; flex-wrap:wrap; }
.dl-option{
  flex:1; min-width:220px; display:flex; align-items:center; gap:14px;
  border:1px solid var(--line); border-radius:14px; padding:16px 18px;
  background:linear-gradient(180deg, var(--card), var(--card-2)); cursor:pointer;
  transition:transform .2s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .2s;
  text-decoration:none; color:var(--text); opacity:0; animation:dlFadeUp .45s cubic-bezier(.22,1,.36,1) forwards;
}
.dl-option:nth-child(1){ animation-delay:.05s; }
.dl-option:nth-child(2){ animation-delay:.15s; }
.dl-option:hover{ transform:translateY(-3px); border-color:var(--accent-dim); box-shadow:0 10px 28px rgba(0,0,0,.18); }
.dl-option:hover .dl-icon{ animation:dlPulseGlow 1.2s ease-out infinite; }
.dl-icon{ width:40px; height:40px; border-radius:10px; background:var(--accent); color:var(--accent-contrast); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; animation:dlIconFloat 3s ease-in-out infinite; }
.dl-option-title{ font-weight:700; font-size:14px; margin-bottom:3px; }
.dl-option-sub{ font-size:12px; color:var(--muted); }
.dl-note{ font-size:12px; color:var(--muted-2); margin-top:12px; }

.dl-progress-wrap{ display:none; margin-top:14px; }
.dl-progress-wrap.show{ display:block; animation:dlFadeUp .3s ease both; }
.dl-progress-label{ font-size:12px; color:var(--muted); margin-bottom:6px; display:flex; justify-content:space-between; }
.dl-progress-track{ height:8px; border-radius:6px; background:var(--card-2); border:1px solid var(--line); overflow:hidden; }
.dl-progress-fill{
  height:100%; border-radius:6px; width:0%;
  background:repeating-linear-gradient(45deg, var(--accent) 0 10px, var(--accent-dim) 10px 20px);
  background-size:40px 100%;
  transition:width .25s ease-out;
  animation:dlBarStripe 1s linear infinite;
}
.dl-spinner{
  width:14px; height:14px; border-radius:50%;
  border:2px solid var(--line-2); border-top-color:var(--accent);
  display:inline-block; animation:dlSpin .7s linear infinite; margin-right:6px; vertical-align:-2px;
}

/* ================= PAYMENT METHODS ================= */
.pay-methods{ display:flex; flex-direction:column; gap:8px; }
.pay-method{
  display:flex; flex-direction:row; align-items:center; gap:12px;
  padding:10px 14px; border-radius:10px; border:1px solid var(--line-2, rgba(255,255,255,.12));
  background:rgba(255,255,255,.04); color:#fff; text-align:left;
  font-family:inherit; cursor:pointer; width:100%;
  transition:transform .18s cubic-bezier(.22,1,.36,1), background .18s, border-color .18s, box-shadow .18s;
}
.pay-method:hover{ background:rgba(255,255,255,.08); transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.28); }
.pay-method:active{ transform:translateY(0); }
.pay-method.disabled{ opacity:.45; cursor:not-allowed; }
.pay-method.disabled:hover{ transform:none; box-shadow:none; background:rgba(255,255,255,.04); }
.pay-method.selected{ border-color:var(--accent, #7c6cf0); background:rgba(124,108,240,.12); box-shadow:0 0 0 1px var(--accent, #7c6cf0); }
.pay-method:hover .pm-icon{ transform:scale(1.08); }
.pm-icon{ width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:rgba(255,255,255,.08); transition:transform .18s cubic-bezier(.22,1,.36,1); }
.pm-text{ display:flex; flex-direction:column; gap:1px; }
.pm-title{ font-size:14px; font-weight:600; }
.pm-note{ font-size:11.5px; color:var(--muted-2, rgba(255,255,255,.5)); }

/* ================= AUTH: DISCORD DIVIDER ================= */
.auth-divider{ display:flex; align-items:center; gap:10px; margin:14px 0; color:var(--muted-2, rgba(255,255,255,.4)); font-size:12px; }
.auth-divider::before, .auth-divider::after{ content:''; flex:1; height:1px; background:var(--line-2, rgba(255,255,255,.12)); }
#discordAuthBtn{ display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }

/* ================= SECURITY ROW ================= */
.switch-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; cursor:pointer; font-size:14px; }
.switch-row input[type=checkbox]{ width:38px; height:22px; accent-color:#7c6cf0; cursor:pointer; }

/* ================= SITE FOOTER (multi-column) ================= */
.site-footer{ border-top:1px solid var(--line-2, rgba(255,255,255,.1)); margin-top:60px; padding:44px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; max-width:1100px; margin:0 auto; padding:0 20px; }
.footer-col-title{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2, rgba(255,255,255,.45)); margin-bottom:14px; }
.footer-col{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:rgba(255,255,255,.75); text-decoration:none; font-size:14px; }
.footer-col a:hover{ color:#fff; }

.footer-brand .brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff; font-weight:700; font-size:16px; margin-bottom:4px; }
.footer-copy{ font-size:13px; color:rgba(255,255,255,.55); }
.footer-tag{ font-size:12.5px; color:rgba(255,255,255,.4); margin-bottom:6px; }
.footer-pay-label{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-2, rgba(255,255,255,.45)); margin-top:8px; }
.footer-pay-icons{ display:flex; gap:8px; }
.pay-icon{ width:42px; height:42px; border-radius:8px; background:rgba(255,255,255,.06); border:1px solid var(--line-2, rgba(255,255,255,.1)); display:flex; align-items:center; justify-content:center; font-size:17px; }
.pay-icon.soon{ opacity:.4; }

.footer-contact-card{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,.04); border:1px solid var(--line-2, rgba(255,255,255,.1)); }
.footer-contact-card:hover{ background:rgba(255,255,255,.08); }
.fc-icon{ width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fc-text{ display:flex; flex-direction:column; line-height:1.3; }
.fc-label{ font-size:11px; color:rgba(255,255,255,.5); }
.fc-value{ font-size:13.5px; font-weight:600; color:#fff; }

@media (max-width:760px){
  .footer-grid{ grid-template-columns:1fr; gap:26px; }
}

/* ================= MOBILE HARDENING ================= */
html, body{ max-width:100%; overflow-x:hidden; }
img, svg, canvas{ max-width:100%; }
* { -webkit-tap-highlight-color: rgba(255,255,255,.06); }

@media (max-width:480px){
  .footer-grid{ padding:0 16px; }
  .btn, .pay-method, .footer-contact-card{ min-height:44px; } /* apple HIG минимальный тач-таргет */
  input, select, textarea{ font-size:16px; } /* iOS не будет авто-зумить при фокусе */
  h1{ font-size:clamp(24px, 7vw, 34px); }
}

/* ================= CHECKOUT MODAL ================= */
.checkout-summary{ display:flex; flex-direction:column; gap:8px; padding:14px 0; border-bottom:1px solid var(--line-2, rgba(255,255,255,.1)); margin-bottom:16px; }
.checkout-row{ display:flex; justify-content:space-between; align-items:center; font-size:14px; color:rgba(255,255,255,.75); }
.checkout-row b{ color:#fff; font-size:15px; }
.checkout-methods-label{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-2, rgba(255,255,255,.45)); margin-bottom:10px; }
.checkout-promo-row{ display:flex; gap:8px; margin-bottom:6px; }
.checkout-promo-row .promo-input{ flex:1; }
.checkout-continue-btn{ margin-top:16px; }
.checkout-continue-btn:disabled{ opacity:.45; cursor:not-allowed; }

/* === 2026 mobile/performance polish === */
html { -webkit-text-size-adjust:100%; }
img { max-width:100%; }
button, a { -webkit-tap-highlight-color:transparent; }
.fog span { pointer-events:none; }
@media (max-width: 700px){
  .wrap { width:min(100% - 24px, 1180px); }
  header { gap:10px; flex-wrap:wrap; }
  .header-actions { width:100%; justify-content:flex-end; }
  .plans { grid-template-columns:1fr !important; }
  .plan, .pcard, .discord-card, .admin-user-card { border-radius:16px; }
  .hero, .profile-hero { flex-direction:column; align-items:stretch; }
  .hero h1 { font-size:clamp(32px, 10vw, 52px); }
  .section-head h2 { font-size:clamp(26px, 8vw, 40px); }
  .footer-grid { grid-template-columns:1fr !important; gap:22px; }
  .footer-pay-icons { flex-wrap:wrap; }
  .modal { width:min(100% - 20px, 520px); max-height:90vh; overflow:auto; }
  .avatar-grid { grid-template-columns:repeat(3,1fr); }
  .admin-tabs { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .admin-tabs .admin-tab { flex:0 0 auto; }
  input, select, textarea, button { max-width:100%; }
}
@media (hover:hover){
  .footer-pay-icons .pay-icon {
    transition:transform .22s ease, filter .22s ease, box-shadow .22s ease;
    will-change:transform;
  }
  .footer-pay-icons .pay-icon:hover {
    transform:translateY(-5px) scale(1.08);
    filter:brightness(1.08);
    box-shadow:0 10px 24px rgba(0,0,0,.25);
  }
}
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}


/* Центрирование блока «Другие услуги» */
.other-services-heading {
  justify-content: center;
  text-align: center;
}
.other-services-heading > div {
  width: 100%;
}
.other-services-heading p {
  margin-left: auto;
  margin-right: auto;
}

.config-card{overflow:hidden}.config-cover{display:block;width:100%;height:180px;object-fit:cover;border-radius:12px;margin-bottom:14px;background:rgba(255,255,255,.04)}.config-cover-empty{display:flex;align-items:center;justify-content:center;font-size:42px;color:var(--muted)}

.activation-key-options{display:grid;gap:10px;margin-top:16px}.activation-key-option{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 16px;border:1px solid var(--border,#2a2b35);border-radius:12px;background:rgba(255,255,255,.035);color:var(--text,#f5f5f5);text-align:left;cursor:pointer;transition:.15s}.activation-key-option:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.32);transform:translateY(-1px)}.activation-key-option span{display:flex;flex-direction:column;gap:4px}.activation-key-option b{font-size:15px}.activation-key-option small{color:var(--muted);font-size:12px}.activation-key-option strong{font-size:15px;white-space:nowrap}.activation-key-option.featured-option{border-color:rgba(255,255,255,.65);background:rgba(255,255,255,.08)}


/* ================= EXTRA MOBILE POLISH ================= */
@media (max-width: 700px){
  body{ min-width:0; overflow-x:hidden; }
  .wrap{ width:calc(100% - 24px); max-width:none; }
  header{ padding-top:12px; }
  .header-actions{ gap:8px; }
  .header-actions .btn, header .btn{ min-height:44px; padding:10px 14px; }
  .plans{ gap:12px !important; }
  .plan{ width:100%; padding:18px !important; }
  .plan-name{ font-size:21px; }
  .plan-feats{ padding-left:18px; }
  .plan .btn{ width:100%; min-height:48px; }
  .section-head{ gap:8px; }
  .section-head p{ max-width:100%; }
  .modal{ width:calc(100vw - 24px); max-width:520px; margin:12px auto; border-radius:18px; }
  .modal-body{ padding:16px !important; }
  .activation-key-options{ gap:8px; }
  .activation-key-option{ min-height:58px; padding:12px 13px; }
  .activation-key-option small{ font-size:11px; }
  .activation-key-continue{ margin-top:12px; min-height:48px; }
  .checkout-methods{ grid-template-columns:1fr !important; }
  .checkout-promo-row{ flex-direction:column; }
  .checkout-promo-row button{ width:100%; min-height:44px; }
  .profile-grid, .security-grid, .dashboard-grid, .cards-grid{ grid-template-columns:1fr !important; }
  .profile-card, .security-card, .card, .panel{ width:100%; }
  table{ display:block; width:100%; overflow-x:auto; white-space:nowrap; }
  .nav, .tabs, .profile-tabs{ overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .nav::-webkit-scrollbar, .tabs::-webkit-scrollbar, .profile-tabs::-webkit-scrollbar{ display:none; }
  textarea{ min-height:120px; }
}
@media (max-width:380px){
  .wrap{ width:calc(100% - 18px); }
  h1{ font-size:26px !important; }
  .plan{ padding:15px !important; }
  .activation-key-option strong{ font-size:14px; }
}

/* ================= NOTIFICATIONS BELL THEME ================= */
.notifications-fab{
  background:#000;
  color:#fff;
  border-color:rgba(255,255,255,.18);
}
[data-theme="light"] .notifications-fab{
  background:#fff;
  color:#111;
  border-color:rgba(15,17,30,.16);
}

[data-theme="light"] .notifications-fab .notifications-bell{filter:none;}


/* ================= MODAL SCROLL LOCK + RESPONSIVE LAYOUT ================= */
html, body { overscroll-behavior-x: none; }
body:has(.overlay.open) { overflow: hidden !important; overscroll-behavior: none; }
.overlay.open { overflow: auto; overscroll-behavior: contain; }
.overlay .modal { max-height: min(90dvh, 760px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.spay-icon { overflow: hidden; background:#08090f; }
.spay-icon img { width:100%; height:100%; object-fit:cover; display:block; }
@media (min-width: 701px) and (max-width: 1100px){
  .wrap { width: min(100% - 40px, 980px); }
  header { gap:18px; }
  nav { gap:14px; }
  .plans, .profile-grid, .cards-grid, .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal { max-width: 520px; }
}
@media (max-width: 700px){
  .wrap { width: calc(100% - 24px); }
  header { align-items:center; }
  nav { order:3; width:100%; overflow-x:auto; white-space:nowrap; scrollbar-width:none; padding-bottom:3px; }
  nav::-webkit-scrollbar { display:none; }
  .pay-method { min-height:50px; padding:10px 12px; }
  .pm-icon { width:34px; height:34px; }
  .pm-title { font-size:13px; }
  .pm-note { font-size:11px; }
  .modal { width:calc(100vw - 24px); padding:20px; max-height:calc(100dvh - 24px); }
  .overlay { padding:12px; align-items:center; }
}
@media (max-width: 420px){
  .wrap { width: calc(100% - 18px); }
  .modal { width:calc(100vw - 16px); padding:16px; border-radius:16px; }
  .pay-method { gap:10px; }
  .pm-title { font-size:12.5px; }
  .pm-note { font-size:10.5px; }
}


/* Final responsive payment/modal tuning */
html.modal-scroll-locked, body.modal-scroll-locked { overflow:hidden !important; overscroll-behavior:none !important; }
body.modal-scroll-locked { position:fixed !important; width:100% !important; left:0; right:0; touch-action:none; }
.overlay.open { touch-action:auto; }
.overlay.open .modal { touch-action:auto; }
@media (min-width:1101px){ .overlay .modal{ max-width:460px; } .pay-method{ min-height:52px; } }
@media (min-width:701px) and (max-width:1100px){ .overlay .modal{ width:min(520px, calc(100vw - 48px)); } .pay-method{ min-height:54px; } }
@media (max-width:700px){ .pay-methods{ gap:7px; } .pay-method{ min-height:52px; padding:9px 11px; } .overlay .modal{ width:min(520px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); } }
@media (max-width:420px){ .pay-method{ min-height:50px; padding:8px 10px; } .pm-icon{ width:32px; height:32px; } .pm-title{ font-size:12.5px; } .pm-note{ font-size:10.5px; } }

.shadowvisual-user-avatar{
  width:32px;
  height:32px;
  border-radius:9px;
  object-fit:cover;
  display:block;
  background:transparent;
  border:0;
}

/* Profile avatar sizing */
.profile-hero .avatar-pick-wrap { width:120px; height:120px; }
.profile-hero .profile-avatar { width:120px; height:120px; border-radius:24px; }
.profile-hero .avatar-edit-btn { width:34px; height:34px; right:-6px; bottom:-6px; border-radius:10px; font-size:14px; }
@media (min-width:701px) and (max-width:1100px){
  .profile-hero .avatar-pick-wrap { width:104px; height:104px; }
  .profile-hero .profile-avatar { width:104px; height:104px; border-radius:20px; }
}
@media (max-width:700px){
  .profile-hero .avatar-pick-wrap { width:88px; height:88px; }
  .profile-hero .profile-avatar { width:88px; height:88px; border-radius:18px; }
  .profile-hero .avatar-edit-btn { width:30px; height:30px; right:-5px; bottom:-5px; }
}

/* Payment method icon tuning */
.balance-sticker{ background:rgba(255,255,255,.08); font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; font-size:21px; line-height:1; }
.crypto-pay-icon{ background:#fff; overflow:hidden; }
.crypto-pay-icon img{ display:block; width:22px; height:22px; object-fit:contain; }

/* Legal policy footer */
.page-body > .page-wrap { flex: 1; }
.page-body > main { flex: 1; }
.site-policy-footer .footer-policy-btn {
  display:block; padding:9px 12px; border:1px solid var(--line-2, rgba(255,255,255,.1));
  border-radius:9px; background:rgba(255,255,255,.035);
  transition:background .15s, border-color .15s, color .15s;
}
.site-policy-footer .footer-policy-btn:hover {
  background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); color:#fff;
}
