:root {
  --bg: #0A0D15;
  --card: #121724;
  --card-2: #171E2E;
  --line: rgba(78, 168, 255, .14);
  --accent: #4EA8FF;
  --neon: #2B7DE9;
  --neon-2: #9CD1FF;
  --text: #E9F1FA;
  --muted: #93A3BB;
  --danger: #FF5C7A;
  --ok: #4ADE80;
  --radius: 18px;
  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(78, 168, 255, .35); }

/* ---------- главная: клан-лендинг ---------- */
.hero-title-xl { font-size: clamp(46px, 9vw, 98px); letter-spacing: .01em; }
.stats-band {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 76px 0 0; max-width: 900px; margin-inline: auto;
}
.stat-big {
  text-align: center; border-radius: var(--radius); padding: 28px 14px;
  background: rgba(22, 18, 31, .7); border: 1px solid var(--line);
}
.stat-big b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(24px, 3.4vw, 38px); color: var(--neon-2); margin-bottom: 6px;
}
.stat-big span { color: var(--muted); font-size: 13px; font-weight: 700; }
.about { text-align: center; max-width: 640px; margin: 88px auto 0; }
.about .section-tag { margin-bottom: 0; }
.about-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 36px); margin: 12px 0 16px;
}
.about p { color: var(--muted); margin-bottom: 26px; }
.feat-link { cursor: pointer; }
.feat-more {
  display: inline-block; margin-top: 12px;
  color: var(--neon-2); font-weight: 800; font-size: 13.5px;
}
.cta-block {
  text-align: center; margin-top: 96px; padding: 58px 30px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(34, 26, 50, .9), rgba(22, 18, 31, .8));
  border: 1px solid rgba(78, 168, 255, .3);
  box-shadow: 0 0 60px rgba(43, 125, 233, .15);
}
.cta-block h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(24px, 4vw, 38px); margin-bottom: 12px;
}
.cta-block p { color: var(--muted); margin-bottom: 28px; }
.cta-req { margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- фон ---------- */
.bg-blobs {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(43, 125, 233, .12), transparent),
    var(--bg);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  will-change: transform;
}
.blob-1 {
  width: 520px; height: 520px; left: -140px; top: -100px;
  background: radial-gradient(circle, rgba(43, 125, 233, .55), transparent 70%);
}
.blob-2 {
  width: 460px; height: 460px; right: -160px; top: 20vh;
  background: radial-gradient(circle, rgba(78, 168, 255, .4), transparent 70%);
}
.blob-3 {
  width: 420px; height: 420px; left: 30vw; bottom: -220px;
  background: radial-gradient(circle, rgba(156, 209, 252, .28), transparent 70%);
}
/* 19.10: drift-анимации убраны по фидбеку — фон мигал */

#particles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* ---------- навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(12, 10, 18, .65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-logo { width: 34px; height: 34px; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(78, 168, 255, .6)); }
.nav-word { font-family: var(--font-head); font-size: 14px; letter-spacing: .06em; }
.nav-word b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 8px 16px; border-radius: 999px; transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: rgba(78, 168, 255, .14); }
.nav-cta {
  margin-left: 8px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  color: #fff !important;
  box-shadow: 0 4px 22px rgba(43, 125, 233, .4);
}
.nav-cta:hover { filter: brightness(1.12); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 760px; }

main { padding-top: 76px; }

.tab-page { display: none; padding: 64px 0 100px; animation: pageIn .45s ease both; }
.tab-page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 48px; }
.hero-badge {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--neon-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px;
  background: rgba(78, 168, 255, .07);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 7vw, 76px); line-height: 1.08;
  letter-spacing: -.01em; margin-bottom: 22px;
}
.grad-text {
  background: linear-gradient(120deg, var(--neon-2), var(--accent) 50%, var(--neon));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 620px; margin: 0 auto 36px; color: var(--muted); font-size: 18px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 42px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 64px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  background: rgba(22, 18, 31, .6);
  transition: color .25s, border-color .25s;
}
.chip:hover { color: var(--neon-2); border-color: rgba(78, 168, 255, .4); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border: 0; border-radius: 14px; padding: 13px 28px; cursor: pointer;
  text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .25s, filter .25s, background .25s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--neon), var(--accent) 60%, var(--neon-2));
  color: #fff;
  box-shadow: 0 6px 28px rgba(43, 125, 233, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 8px 36px rgba(43, 125, 233, .6); }
.btn-primary:disabled { opacity: .6; cursor: wait; filter: none; }
.btn-ghost {
  background: rgba(78, 168, 255, .08);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(78, 168, 255, .16); border-color: rgba(78, 168, 255, .4); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- мокап приложения ---------- */
.mockup { position: relative; max-width: 780px; margin: 0 auto; }
.mockup-glow {
  position: absolute; inset: -40px -60px; z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(43, 125, 233, .35), transparent 70%);
  filter: blur(30px);
}
.mockup-window {
  border-radius: 16px; overflow: hidden; text-align: left;
  background: linear-gradient(160deg, #1B1526, #120E1B);
  border: 1px solid rgba(78, 168, 255, .25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line);
}
.m-dot { width: 11px; height: 11px; border-radius: 50%; background: #3A3149; }
.m-dot:nth-child(1) { background: #FF5F57; } .m-dot:nth-child(2) { background: #FEBC2E; } .m-dot:nth-child(3) { background: #28C840; }
.m-title { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mockup-body { padding: 18px 20px 22px; }
.m-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.m-tab {
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04);
}
.m-tab.on {
  color: #fff; background: linear-gradient(135deg, var(--neon), var(--accent));
  box-shadow: 0 3px 14px rgba(43, 125, 233, .4);
}
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.m-card {
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.m-card-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.m-card-val { font-family: var(--font-head); font-size: 17px; margin: 5px 0 9px; }
.m-meter { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.m-meter i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
}
.m-graph {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px 8px; margin-bottom: 14px;
}
.m-graph svg { width: 100%; height: 90px; display: block; }
.m-graph-cap { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.m-row { display: flex; gap: 8px; flex-wrap: wrap; }
.m-pill {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.m-pill.ok { color: var(--ok); border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .06); }

/* ---------- заголовки секций ---------- */
.section-head { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 4.5vw, 42px); line-height: 1.15; margin-bottom: 14px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- карточки фич ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  position: relative; border-radius: var(--radius); padding: 28px 26px;
  background: linear-gradient(165deg, rgba(28, 23, 40, .85), rgba(22, 18, 31, .7));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 209, 252, .5), transparent);
  opacity: 0; transition: opacity .3s;
}
.feat-card:hover {
  transform: translateY(-5px); border-color: rgba(78, 168, 255, .4);
  box-shadow: 0 18px 50px rgba(43, 125, 233, .18);
}
.feat-card:hover::before { opacity: 1; }
.feat-ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(43, 125, 233, .25), rgba(78, 168, 255, .12));
  border: 1px solid var(--line); color: var(--neon-2);
}
.feat-ic svg { width: 24px; height: 24px; }
.feat-card h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- шаги ---------- */
.steps { display: flex; align-items: stretch; gap: 12px; justify-content: center; }
.step {
  flex: 1; max-width: 300px; border-radius: var(--radius); padding: 26px 24px;
  background: rgba(22, 18, 31, .7); border: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-head); font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.step h3 { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
.step-arrow { display: flex; align-items: center; color: var(--accent); opacity: .55; }
.step-arrow svg { width: 34px; height: 22px; }

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .88em; background: rgba(78, 168, 255, .12); color: var(--neon-2);
  border-radius: 6px; padding: 2px 7px;
}
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12px !important; word-break: break-all; }

/* ---------- панели (glass) ---------- */
.panel {
  border-radius: var(--radius); padding: 32px;
  background: linear-gradient(165deg, rgba(28, 23, 40, .8), rgba(22, 18, 31, .65));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

/* ---------- скачать ---------- */
.dl-status { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; min-height: 24px; }
.dl-status-text { color: var(--muted); font-weight: 600; }
.dl-status-text.ok { color: var(--ok); }
.dl-status-text.err { color: var(--danger); }
.dl-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 24px; padding: 18px; border-radius: 13px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.dl-meta-item span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.dl-meta-item b { font-size: 15px; }
.dl-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.changelog { display: flex; flex-direction: column; gap: 14px; }
.cl-item {
  border-radius: var(--radius); padding: 22px 26px;
  background: rgba(22, 18, 31, .7); border: 1px solid var(--line);
}
.cl-ver {
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent);
  margin-bottom: 10px;
}
.cl-item ul { padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.cl-item li { margin-bottom: 5px; }

/* ---------- кабинет ---------- */
.auth-switch {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 24px;
  background: rgba(255, 255, 255, .04); border-radius: 13px;
}
.auth-tab {
  flex: 1; padding: 10px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); font-family: var(--font-body);
  font-weight: 700; font-size: 14.5px; transition: background .25s, color .25s;
}
.auth-tab.on {
  background: linear-gradient(135deg, var(--neon), var(--accent)); color: #fff;
  box-shadow: 0 4px 16px rgba(43, 125, 233, .35);
}
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.field input, .key-input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .key-input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78, 168, 255, .18);
}
.field input.bad, .key-input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 92, 122, .15); }
.auth-hint { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }

.form-error, .form-ok {
  border-radius: 11px; padding: 11px 15px; font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
}
.form-error { background: rgba(255, 92, 122, .1); border: 1px solid rgba(255, 92, 122, .3); color: var(--danger); }
.form-ok { background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3); color: var(--ok); }

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.profile-ava {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  box-shadow: 0 6px 20px rgba(43, 125, 233, .4);
}
.profile-login { font-family: var(--font-head); font-size: 19px; font-weight: 700; }
.profile-date { font-size: 13px; color: var(--muted); }
.sub-badge {
  margin-left: auto; font-size: 13px; font-weight: 800; padding: 7px 16px; border-radius: 999px;
}
.sub-badge.on { color: var(--ok); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); }
.sub-badge.off { color: var(--danger); background: rgba(255, 92, 122, .1); border: 1px solid rgba(255, 92, 122, .3); }

.activate-block {
  padding: 20px; border-radius: 14px; margin-bottom: 24px;
  background: rgba(78, 168, 255, .06); border: 1px solid var(--line);
}
.activate-title { font-weight: 800; font-size: 14.5px; margin-bottom: 12px; }
.activate-row { display: flex; gap: 10px; }
.key-input { flex: 1; text-transform: uppercase; letter-spacing: .04em; }
.activate-block .form-error, .activate-block .form-ok { margin: 12px 0 0; }

.hwid-block { margin-bottom: 26px; }
.hwid-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; font-size: 14.5px; }
.hwid-head b { color: var(--accent); }
.hwid-list { display: flex; flex-direction: column; gap: 9px; }
.hwid-empty {
  color: var(--muted); font-size: 14px; padding: 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px;
}
.hwid-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
}
.hwid-item .mono { font-size: 14px !important; font-weight: 700; }
.hwid-seen { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.hwid-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(22, 18, 31, .7); border: 1px solid var(--line);
  transition: border-color .3s;
}
.faq-item.open { border-color: rgba(78, 168, 255, .4); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border: 0; background: none; cursor: pointer;
  color: var(--text); font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  text-align: left;
}
.faq-chev {
  flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .3s;
}
.faq-item.open .faq-chev { transform: rotate(225deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- спиннер ---------- */
.spinner {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2.5px solid rgba(78, 168, 255, .25); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- тосты ---------- */
.toasts {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  padding: 14px 18px; border-radius: 13px; font-weight: 600; font-size: 14.5px;
  background: rgba(28, 23, 40, .92); border: 1px solid var(--line);
  backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  animation: toastIn .35s cubic-bezier(.22, .8, .3, 1) both;
}
.toast.ok { border-color: rgba(74, 222, 128, .4); color: var(--ok); }
.toast.err { border-color: rgba(255, 92, 122, .4); color: var(--danger); }
.toast.hide { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 13px; letter-spacing: .05em; }
.footer-brand .nav-logo { width: 26px; height: 26px; border-radius: 50%; }
.footer-note { color: var(--muted); font-size: 13.5px; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 480px; width: 100%; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 680px) {
  .nav { padding: 12px 18px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(18, 14, 27, .97); border: 1px solid var(--line);
    border-radius: 16px; padding: 12px;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-link { text-align: center; padding: 12px; }
  .nav-cta { margin-left: 0; margin-top: 4px; }
  .feat-grid { grid-template-columns: 1fr; }
  .m-grid { grid-template-columns: 1fr 1fr; }
  .dl-meta { grid-template-columns: 1fr; }
  .activate-row { flex-direction: column; }
  .panel { padding: 24px 20px; }
  .container { padding: 0 18px; }
}

/* ---------- тарифы ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 26px; justify-content: center; align-items: center;
}
.price-card {
  position: relative; border-radius: var(--radius); padding: 34px 30px;
  background: linear-gradient(165deg, rgba(28, 23, 40, .85), rgba(22, 18, 31, .7));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.price-card:hover {
  transform: translateY(-5px); border-color: rgba(78, 168, 255, .4);
  box-shadow: 0 18px 50px rgba(43, 125, 233, .18);
}
.price-card.best {
  border: 1.5px solid transparent;
  background:
    linear-gradient(165deg, rgba(34, 26, 50, .96), rgba(22, 18, 31, .92)) padding-box,
    linear-gradient(135deg, #9CD1FF, #2B7DE9 60%, #4EA8FF) border-box;
  box-shadow: 0 0 44px rgba(43, 125, 233, .35), 0 24px 70px rgba(0, 0, 0, .4);
}
.price-card.big { transform: scale(1.03); }
.price-card.big:hover { transform: scale(1.03) translateY(-5px); }
.price-card.best:hover { box-shadow: 0 0 60px rgba(43, 125, 233, .5), 0 28px 80px rgba(0, 0, 0, .45); }
.price-chip {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  box-shadow: 0 4px 18px rgba(43, 125, 233, .5);
}
.price-name {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.price-val { font-family: var(--font-head); font-size: 52px; font-weight: 800; line-height: 1; }
.price-card.best .price-val {
  background: linear-gradient(135deg, var(--neon-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-cur { font-size: 30px; }
.price-per { color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 8px 0 22px; }
.price-feats {
  list-style: none; margin-bottom: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.price-feats li {
  position: relative; padding-left: 26px;
  color: var(--muted); font-size: 14.5px; font-weight: 600;
}
.price-feats li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price-note {
  text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 44px;
}
@media (max-width: 780px) {
  .price-grid { grid-template-columns: minmax(0, 420px); }
  .price-card.big, .price-card.big:hover { transform: none; }
  .pr-hero { grid-template-columns: 1fr; }
  .pr-art { max-width: 420px; margin: 0 auto; }
  .buy-strip { grid-template-columns: 1fr; }
}

/* ---------- тарифы v2: герой и полоса покупки ---------- */
.pr-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
  align-items: center; margin-bottom: 76px;
}
.pr-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; margin: 14px 0 18px;
}
.pr-sub { color: var(--muted); font-size: 17px; max-width: 480px; margin-bottom: 24px; }
.pr-points { display: flex; gap: 10px; flex-wrap: wrap; }
.pr-art { position: relative; }
.pr-art-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(circle at 60% 40%, rgba(43, 125, 233, .42), transparent 65%);
  filter: blur(30px);
}
.pr-svg {
  position: relative; width: 100%; height: auto; display: block;
}
/* 20.10: prFloat-анимация убрана по фидбеку юзера (линия дрыгалась) */

.price-per2 { font-size: 18px; color: var(--muted); font-weight: 600; }
.price-inf {
  background: linear-gradient(135deg, var(--neon-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 20px;
}
.price-feats.green li::before { border-color: var(--ok); }
.price-feats li b { color: var(--text); }
.price-small {
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  margin-bottom: 18px; text-align: center;
}
.price-card .btn-primary {
  transition: transform .2s, box-shadow .25s, filter .25s;
}
.price-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(43, 125, 233, .65);
}

.buy-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 76px;
}
.buy-step {
  border-radius: var(--radius); padding: 24px 22px;
  background: rgba(22, 18, 31, .7); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.buy-step:hover { transform: translateY(-4px); border-color: rgba(78, 168, 255, .35); }
.buy-ic {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(43, 125, 233, .25), rgba(78, 168, 255, .12));
  border: 1px solid var(--line); color: var(--neon-2);
}
.buy-ic svg { width: 22px; height: 22px; }
.buy-step b { display: block; font-size: 15px; margin-bottom: 6px; }
.buy-step span { color: var(--muted); font-size: 13.5px; }

/* ---------- кабинет-дашборд ---------- */
.auth-wrap { max-width: 760px; margin: 0 auto; }
.dash { display: flex; gap: 22px; align-items: flex-start; }
.dash-side {
  position: sticky; top: 96px; width: 252px; flex-shrink: 0;
  padding: 20px 14px; display: flex; flex-direction: column;
}
.dash-user {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 8px 16px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dash-user .profile-ava { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
.dash-user-meta { min-width: 0; }
.dash-login { font-family: var(--font-head); font-size: 14px; font-weight: 700; word-break: break-all; }
.dash-sub-mini { font-size: 12px; font-weight: 700; color: var(--muted); }
.dash-sub-mini.ok { color: var(--ok); }
.dash-sub-mini.err { color: var(--danger); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-link {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 13px; border: 0; border-radius: 11px;
  background: transparent; color: var(--muted);
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  cursor: pointer; text-align: left; white-space: nowrap;
  transition: color .25s, background .25s, box-shadow .25s;
}
.dash-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-link:hover { color: var(--text); background: rgba(78, 168, 255, .08); }
.dash-link.on {
  color: #fff;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  box-shadow: 0 4px 16px rgba(43, 125, 233, .35);
}
.dash-logout { margin-top: 14px; width: 100%; }
.dash-content { flex: 1; min-width: 0; }
.acc-sec { display: none; animation: pageIn .35s ease both; }
.acc-sec.on { display: block; }
.acc-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.profile-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.profile-row:last-child { border-bottom: 0; }
.profile-row span { color: var(--muted); font-weight: 600; font-size: 14px; }
.sub-summary .sub-badge { display: inline-block; margin-left: 0; margin-bottom: 14px; }
.dash-content .steps { flex-wrap: wrap; }
.dash-content .step { flex: 1 1 42%; max-width: none; margin-bottom: 12px; }
.dash-content .step-arrow { display: none; }

@media (max-width: 900px) {
  .dash { flex-direction: column; }
  .dash-side { position: static; width: 100%; }
  .dash-nav { flex-direction: row; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .dash-link { width: auto; flex-shrink: 0; }
  .dash-logout { width: auto; margin-top: 6px; align-self: flex-start; }
}

/* ---------- админка ---------- */
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn-sm:disabled { opacity: .45; cursor: default; }
.adm-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 5px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .04); border-radius: 13px;
}
.adm-tab {
  padding: 9px 16px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted);
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  transition: background .25s, color .25s;
}
.adm-tab:hover { color: var(--text); }
.adm-tab.on {
  background: linear-gradient(135deg, var(--neon), var(--accent)); color: #fff;
  box-shadow: 0 4px 16px rgba(43, 125, 233, .35);
}
.adm-sub { display: none; animation: pageIn .3s ease both; }
.adm-sub.on { display: block; }
.adm-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.adm-head-title { font-weight: 800; font-size: 15px; }
.adm-gen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-count {
  width: 76px; padding: 9px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 14px; outline: none;
}
.adm-count:focus { border-color: var(--accent); }
.adm-select {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 14.5px; outline: none;
}
.adm-select:focus { border-color: var(--accent); }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th {
  text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.adm-table td { padding: 11px 12px; border-bottom: 1px solid rgba(78, 168, 255, .08); vertical-align: top; }
.adm-table tbody tr { transition: background .2s; }
.adm-table tbody tr:hover { background: rgba(78, 168, 255, .05); }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-empty { text-align: center; color: var(--muted); padding: 22px 12px !important; }
.adm-chip {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.adm-chip.admin { color: var(--neon-2); background: rgba(78, 168, 255, .12); border: 1px solid rgba(78, 168, 255, .35); }
.adm-chip.you { color: var(--ok); background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3); }
.adm-chip.free { color: var(--ok); background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3); margin-left: 0; }
.adm-chip.used { color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-left: 0; }
.adm-st { font-weight: 800; font-size: 13px; display: block; }
.adm-st.on { color: var(--ok); }
.adm-st.off { color: var(--muted); }
.adm-hwid { display: block; margin-top: 3px; }
.adm-last { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.adm-key {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--neon-2); font-size: 13px; font-weight: 700;
}
.adm-key:hover { text-decoration: underline; }
.adm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-gen-cap { font-size: 13px; font-weight: 700; color: var(--muted); margin: 4px 0 10px; }
.adm-gen-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.adm-gen-list .adm-key {
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px;
  background: rgba(78, 168, 255, .07);
}
.adm-gen-list .adm-key:hover { border-color: var(--accent); text-decoration: none; }
.adm-note { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.adm-me { color: var(--neon-2); }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.adm-log { display: flex; flex-direction: column; }
.adm-log-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 10px 4px; border-bottom: 1px solid rgba(78, 168, 255, .08); font-size: 13.5px;
}
.adm-log-row:last-child { border-bottom: 0; }
.adm-log-main b { color: var(--neon-2); }
.adm-log-detail { color: var(--muted); font-size: 12.5px; }
.adm-log-date { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- футер: discord ---------- */
.footer-right { display: flex; align-items: center; gap: 16px; }
.footer-discord {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(78, 168, 255, .1); border: 1px solid var(--line); color: var(--neon-2);
  transition: background .3s, box-shadow .3s, transform .2s, color .3s;
}
.footer-discord:hover {
  background: linear-gradient(135deg, var(--neon), var(--accent)); color: #fff;
  box-shadow: 0 0 26px rgba(78, 168, 255, .55); transform: translateY(-2px);
}
.footer-discord svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 680px) {
  .adm-two { grid-template-columns: 1fr; }
}

/* ---------- админка v2: статистика, бан, поиск ---------- */
.adm-chip.banned {
  color: var(--danger);
  background: rgba(255, 92, 122, .1);
  border: 1px solid rgba(255, 92, 122, .35);
}
.adm-st.exp { color: var(--danger); }
.adm-search {
  width: 220px; padding: 9px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 13.5px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.adm-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78, 168, 255, .18); }
.adm-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
}
.stat-card {
  border-radius: var(--radius); padding: 20px;
  background: linear-gradient(165deg, rgba(28, 23, 40, .85), rgba(22, 18, 31, .7));
  border: 1px solid var(--line);
}
.stat-label {
  display: block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 8px;
}
.stat-val {
  font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--neon-2);
}
.banned-banner {
  border-radius: 13px; padding: 14px 18px; margin-bottom: 20px;
  font-weight: 700; font-size: 14.5px; color: var(--danger);
  background: rgba(255, 92, 122, .1); border: 1px solid rgba(255, 92, 122, .35);
}

/* ---------- админка: состав клана ---------- */
.clan-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.clan-filter {
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  transition: color .25s, background .25s, border-color .25s;
}
.clan-filter:hover { color: var(--text); border-color: rgba(78, 168, 255, .4); }
.clan-filter.on {
  background: linear-gradient(135deg, var(--neon), var(--accent));
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 14px rgba(43, 125, 233, .35);
}
.clan-table tbody tr.clan-player { cursor: pointer; }
.clan-pcell { display: flex; align-items: center; gap: 11px; }
.clan-ava {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: #241C33;
}
.clan-ava-txt {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
}
.clan-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.clan-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, .8);
}
.clan-sort { cursor: pointer; user-select: none; }
.clan-sort:hover { color: var(--neon-2); }
.clan-rank {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
}
.clan-rank.owner { color: #FFD76A; border-color: rgba(255, 215, 106, .35); background: rgba(255, 215, 106, .07); }
.clan-rank.leader { color: var(--neon-2); border-color: rgba(78, 168, 255, .4); background: rgba(78, 168, 255, .09); }
.clan-rank.coleader { color: #7DD3FC; border-color: rgba(125, 211, 252, .3); background: rgba(125, 211, 252, .06); }
.clan-spec {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; margin: 1px 2px;
  background: rgba(78, 168, 255, .09); border: 1px solid var(--line); color: var(--muted);
}
.clan-wipe { margin-right: 5px; cursor: default; }
.clan-warn-chip { color: var(--danger); font-weight: 800; }
.clan-risk { cursor: default; }
.clan-detail-row td { background: rgba(78, 168, 255, .04); }
.clan-detail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; padding: 8px 4px; align-items: start;
}
.cd-item span {
  display: block; font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em; font-weight: 800; margin-bottom: 3px;
}
.cd-item b { font-size: 13.5px; font-weight: 700; word-break: break-all; }
.cd-actions { align-self: end; }
.btn-kick {
  background: rgba(255, 92, 122, .12); border: 1px solid rgba(255, 92, 122, .4);
  color: var(--danger);
}
.btn-kick:hover { background: rgba(255, 92, 122, .22); box-shadow: 0 4px 18px rgba(255, 92, 122, .2); }

/* ---------- админка: выплаты ---------- */
.po-meta { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.po-score { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--neon-2); }
.po-kd-top { color: var(--neon-2); }
.po-kd-good { color: var(--ok); }
.po-kd-low { color: var(--muted); }
.po-farm { font-weight: 800; font-size: 15px; }

/* крупная таблица выплат */
#adm-payouts .adm-table { font-size: 14.5px; }
#adm-payouts .adm-table td { padding: 14px; }
#adm-payouts .adm-table th { font-size: 12px; padding: 11px 14px; }
.po-num { font-weight: 800; white-space: nowrap; }
tr.po-top1 { background: rgba(255, 215, 106, .05); }
tr.po-top2 { background: rgba(201, 209, 217, .04); }
tr.po-top3 { background: rgba(208, 138, 78, .04); }
tr.po-top1 td:first-child { border-left: 3px solid #FFD76A; }
tr.po-top2 td:first-child { border-left: 3px solid #C9D1D9; }
tr.po-top3 td:first-child { border-left: 3px solid #D08A4E; }
.po-kd { font-size: 15px; font-weight: 800; }
.po-farm-box { display: flex; flex-direction: column; gap: 5px; }
.po-farm-res { display: flex; gap: 9px; flex-wrap: wrap; }
.po-farm-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; color: var(--muted);
}
.po-farm-ic { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; }
.po-farm-emoji { font-size: 13px; line-height: 16px; }
.po-offline {
  border-radius: 13px; padding: 13px 17px; margin-bottom: 14px;
  font-weight: 600; font-size: 14px; color: var(--neon-2);
  background: rgba(78, 168, 255, .08); border: 1px solid var(--line);
}
@media (max-width: 680px) {
  .adm-search { width: 100%; }
}

/* 20.10: кабинет шире — таблицы выплат/состава просили места */
#page-account .container { max-width: 1560px; }
#page-account .dash-content .adm-table { font-size: 14.5px; }
#page-account .adm-table td { padding: 13px 14px; }
#page-account .adm-table th { font-size: 13px; padding: 10px 14px; }
@media (max-width: 900px) { #page-account .container { max-width: 100%; } }

/* ---------- страница «Клан» ---------- */
.clan-story {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius); padding: 36px;
  background: linear-gradient(165deg, rgba(28, 23, 40, .8), rgba(22, 18, 31, .65));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.clan-story .section-tag { margin-bottom: 0; }
.clan-story p { color: var(--muted); margin-bottom: 14px; }
.clan-story p:last-child { margin-bottom: 0; }
.prin-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.prin-card {
  border-radius: var(--radius); padding: 24px 22px;
  background: rgba(22, 18, 31, .7); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.prin-card:hover { transform: translateY(-4px); border-color: rgba(78, 168, 255, .35); }
.prin-card h3 { font-family: var(--font-head); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.prin-card p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .prin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prin-grid { grid-template-columns: 1fr; } }

/* ---------- тизер (главная → состав) ---------- */
.teaser {
  display: flex; align-items: center; gap: 18px; cursor: pointer;
  margin-top: 72px; padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(34, 26, 50, .85), rgba(22, 18, 31, .7));
  border: 1px solid rgba(78, 168, 255, .3);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.teaser:hover {
  transform: translateY(-3px); border-color: rgba(78, 168, 255, .55);
  box-shadow: 0 14px 44px rgba(43, 125, 233, .22);
}
.teaser-ic {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(43, 125, 233, .3), rgba(78, 168, 255, .14));
  border: 1px solid var(--line); color: var(--neon-2);
}
.teaser-ic svg { width: 24px; height: 24px; }
.teaser-text { flex: 1; min-width: 0; }
.teaser-text b { display: block; font-size: 16px; }
.teaser-text span { color: var(--muted); font-size: 13.5px; }
.teaser-arrow { font-size: 22px; color: var(--accent); font-weight: 800; }

/* ---------- публичный состав (R2-стиль, 20.10) ---------- */
.rs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.rs-card {
  position: relative; text-align: center; cursor: pointer;
  border-radius: var(--radius); padding: 26px 20px 18px;
  background: linear-gradient(165deg, rgba(28, 23, 40, .85), rgba(22, 18, 31, .7));
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.rs-card:hover {
  transform: translateY(-5px); border-color: rgba(78, 168, 255, .45);
  box-shadow: 0 16px 44px rgba(43, 125, 233, .18);
}
.rs-card.rs-owner, .rs-card.rs-leader { border-color: rgba(255, 215, 106, .45); }
.rs-card.rs-coleader { border-color: rgba(125, 211, 252, .35); }
.rs-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800;
  letter-spacing: .18em; color: var(--neon-2); margin-bottom: 14px;
}
.rs-card.rs-owner .rs-tag, .rs-card.rs-leader .rs-tag { color: #FFD76A; }
.rs-card.rs-coleader .rs-tag { color: #7DD3FC; }
.rs-figure {
  position: relative; height: 170px; margin: 0 auto 14px;
  display: flex; align-items: flex-end; justify-content: center;
}
.rs-figure::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 75%; height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(78, 168, 255, .38), transparent 70%);
  filter: blur(5px);
}
.rs-figure img {
  position: relative; height: 100%; width: auto; max-width: 100%;
  object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5));
}
.rs-figure-ph { font-size: 56px; font-weight: 900; color: var(--neon-2); line-height: 170px; }
.rs-more {
  margin-top: 14px; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; color: var(--neon-2); opacity: .7;
  transition: opacity .25s;
}
.rs-card:hover .rs-more, .rs-hero:hover .rs-more { opacity: 1; }
.rs-name2 { font-size: 19px; font-weight: 900; letter-spacing: .02em; margin-bottom: 6px; }
.rs-desc {
  color: var(--muted); font-size: 12.5px; line-height: 1.5;
  margin: 0 0 14px; min-height: 37px;
}
.rs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 12px;
}
.rs-stat b { display: block; font-size: 15px; font-weight: 900; }
.rs-stat span { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.rs-specs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

/* секции состава по спекам (21.10) */
.rs-section { margin-bottom: 38px; }
.rs-section-head2 {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rs-section-icon { font-size: 18px; }
.rs-section-title {
  font-size: 15px; font-weight: 900; letter-spacing: .2em; margin: 0;
}
.rs-section-count { font-size: 12px; color: var(--muted); font-weight: 800; }
.rs-section-hot .rs-section-title { color: #FFD76A; }
.rs-section-hot .rs-section-head2 { border-bottom-color: rgba(255, 215, 106, .35); }
.rs-card.rs-caller {
  border-color: rgba(255, 215, 106, .5);
  background: linear-gradient(165deg, rgba(46, 35, 18, .85), rgba(22, 18, 31, .7));
}
.rs-card.rs-caller:hover {
  border-color: rgba(255, 215, 106, .8);
  box-shadow: 0 16px 44px rgba(255, 215, 106, .14);
}

/* форма карточки в админке (21.10) */
.cd-cardform { grid-column: 1 / -1; }
.cd-cardgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 14px; margin: 8px 0;
}
.cd-cardfield { display: flex; flex-direction: column; gap: 4px; }
.cd-cardfield span { font-size: 11px; color: var(--muted); font-weight: 700; }
.cd-artrow { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.cd-artrow span { font-size: 11px; color: var(--muted); font-weight: 700; }
.cd-artsel { max-width: 180px; }
.cd-artpreview {
  height: 64px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3);
}

/* герой-блок лидера */
.rs-hero {
  position: relative; text-align: center; cursor: pointer; margin: 0 auto 40px; max-width: 560px;
  border-radius: calc(var(--radius) + 6px); padding: 40px 30px 24px;
  background:
    radial-gradient(420px 200px at 50% -60px, rgba(255, 215, 106, .12), transparent 70%),
    linear-gradient(165deg, rgba(32, 26, 46, .92), rgba(20, 16, 29, .8));
  border: 1px solid rgba(255, 215, 106, .35);
}
.rs-hero-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .3em;
  color: #FFD76A; margin-bottom: 18px;
}
.rs-hero-figure {
  position: relative; height: 240px; margin: 0 auto 18px;
  display: flex; align-items: flex-end; justify-content: center;
}
.rs-hero-figure::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 38px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 215, 106, .3), transparent 70%);
  filter: blur(6px);
}
.rs-hero-figure img {
  position: relative; height: 100%; width: auto; max-width: 100%;
  object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .5));
}
.rs-hero-figure-ph { font-size: 72px; font-weight: 900; color: #FFD76A; line-height: 240px; }
.rs-hero-name {
  font-size: 40px; font-weight: 900; letter-spacing: .03em;
  margin: 0 0 10px; text-transform: uppercase;
}
.rs-hero-desc {
  color: var(--muted); font-size: 14px; line-height: 1.6;
  margin: 0 auto 18px; max-width: 420px;
}
.rs-hero .rs-stats { max-width: 380px; margin: 0 auto 14px; }
.rs-hero .rs-stat b { font-size: 19px; }

/* модалка бойца */
.rs-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9, 7, 14, .78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rs-modal {
  position: relative; width: 100%; max-width: 740px; max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: end;
  border-radius: calc(var(--radius) + 6px); padding: 36px 34px 30px;
  background: linear-gradient(165deg, rgba(30, 24, 44, .97), rgba(18, 14, 27, .95));
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.rs-modal-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 10px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(22, 18, 31, .85); color: var(--muted); font-size: 15px;
  transition: color .25s, border-color .25s;
}
.rs-modal-x:hover { color: var(--text); border-color: rgba(78, 168, 255, .5); }
.rs-modal-art { display: flex; align-items: flex-end; justify-content: center; }
.rs-modal-figure { height: 300px; margin: 0; }
.rs-modal-figure-ph { line-height: 300px; }
.rs-modal-info { min-width: 0; text-align: left; }
.rs-modal-info .rs-tag { margin-bottom: 8px; }
.rs-modal-name {
  font-size: 32px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .03em; margin: 0 0 12px;
}
.rs-modal-bio { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.rs-modal-info .rs-stats { margin-bottom: 16px; }
.rs-modal-info .rs-specs { justify-content: flex-start; margin-bottom: 18px; }
.rs-modal-pc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; background: rgba(12, 10, 18, .5);
}
.rs-modal-pc-title {
  font-size: 10.5px; font-weight: 800; letter-spacing: .18em;
  color: var(--neon-2); margin-bottom: 8px;
}
.rs-pc-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 7px 0; font-size: 13.5px; border-top: 1px dashed var(--line);
}
.rs-pc-k { color: var(--muted); }
.rs-pc-v { text-align: right; }
.rs-pc-empty { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 640px) {
  .rs-modal { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
  .rs-modal-figure { height: 220px; }
  .rs-modal-figure-ph { line-height: 220px; }
  .rs-modal-name { font-size: 26px; }
}

/* ---------- медиа ---------- */
.media-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.media-tile {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.media-tile:hover {
  transform: translateY(-4px); border-color: rgba(78, 168, 255, .4);
  box-shadow: 0 14px 40px rgba(43, 125, 233, .18);
}
.media-art {
  height: 150px; display: flex; align-items: center; justify-content: center;
  color: rgba(237, 234, 246, .85);
}
.media-play { width: 44px; height: 44px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.ma-1 { background: linear-gradient(135deg, #2A1B4A, #14305C 55%, #2B7DE9); }
.ma-2 { background: linear-gradient(135deg, #1B1530, #3B1C6E 55%, #4EA8FF); }
.ma-3 { background: linear-gradient(135deg, #241438, #5B21B6 60%, #9CD1FF); }
.ma-4 { background: linear-gradient(135deg, #121724, #2E1A54 55%, #2B7DE9); }
.ma-5 { background: linear-gradient(135deg, #1F1338, #14305C 50%, #8B5CF6); }
.ma-6 { background: linear-gradient(135deg, #191028, #6D28D9 60%, #4EA8FF); }
.media-cap { padding: 14px 16px; }
.media-cap b { display: block; font-size: 14.5px; }
.media-cap span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }

/* ---------- футер: ссылки ---------- */
.footer-in { flex-wrap: wrap; }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px;
  padding: 6px 11px; border-radius: 999px; transition: color .25s, background .25s;
}
.footer-links a:hover { color: var(--text); background: rgba(78, 168, 255, .1); }

/* ---------- навбар: больше вкладок ---------- */
@media (max-width: 1150px) {
  .nav-link { padding: 8px 11px; font-size: 13.5px; }
}
@media (max-width: 1000px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(18, 14, 27, .97); border: 1px solid var(--line);
    border-radius: 16px; padding: 12px;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-link { text-align: center; padding: 12px; font-size: 14.5px; }
  .nav-cta { margin-left: 0; margin-top: 4px; }
}

/* ---------- прогрессия: таймер вайпа + галерея ---------- */
.pg-wipe { text-align: center; margin-bottom: 46px; }
.pg-wipe-label {
  font-size: 13px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.pg-wipe-digits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 170px));
  gap: 14px; justify-content: center;
}
.pg-wipe-digits[hidden] { display: none; }
.pg-wipe-digits .stat-big { padding: 22px 10px; }
.pg-wipe-note {
  font-family: var(--font-head); font-size: clamp(20px, 3vw, 30px);
  font-weight: 700; color: var(--neon-2);
}
.pg-servers {
  margin-top: 20px; display: flex; flex-direction: column;
  gap: 8px; align-items: center;
}
.pg-server { font-size: 14.5px; }
.pg-server span { color: var(--muted); font-weight: 600; }
.pg-server b { color: var(--neon-2); }
.pg-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.pg-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: rgba(22, 18, 31, .7);
  transition: border-color .25s, transform .25s;
}
.pg-card:hover { border-color: rgba(78, 168, 255, .4); transform: translateY(-3px); }
.pg-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.pg-card-cap { padding: 13px 16px; }
.pg-card-cap b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.pg-card-cap span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .pg-wipe-digits { grid-template-columns: repeat(2, minmax(0, 150px)); }
}

/* админка прогрессии */
.pg-adm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.pg-adm-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .03); display: flex; flex-direction: column;
}
.pg-adm-img { width: 100%; height: 110px; object-fit: cover; display: block; }
.pg-adm-cap { padding: 8px 10px; font-size: 12.5px; color: var(--muted); flex: 1; }
.pg-adm-card .btn { margin: 0 10px 10px; align-self: flex-start; }
input[type="datetime-local"].adm-search { color-scheme: dark; }
.pg-file { color: var(--muted); font-size: 13px; max-width: 240px; }
.pg-file::file-selector-button {
  background: rgba(78, 168, 255, .1); border: 1px solid var(--line);
  color: var(--neon-2); border-radius: 9px; padding: 7px 12px;
  font-family: var(--font-body); font-weight: 700; cursor: pointer; margin-right: 10px;
}

/* лайтбокс прогрессии (21.10) */
.pg-card { cursor: zoom-in; }
.pg-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 4, 10, .92);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 30px;
  cursor: zoom-out;
}
.pg-lightbox-img {
  max-width: 92vw; max-height: 84vh; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.pg-lightbox-cap { color: var(--muted); font-size: 14px; font-weight: 700; }
.pg-lightbox-x { position: absolute; top: 18px; right: 18px; }

/* ---------- секция «Выбери свою роль» ---------- */
.roles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.role-card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: 16px; padding: 28px 26px 24px;
  background: linear-gradient(165deg, rgba(28, 23, 40, .85), rgba(22, 18, 31, .7));
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.role-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my),
    rgba(78, 168, 255, .06), transparent 60%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.role-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my),
    rgba(156, 209, 252, .35), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.role-card:hover {
  transform: translateY(-5px); border-color: rgba(78, 168, 255, .35);
  box-shadow: 0 18px 50px rgba(43, 125, 233, .16);
}
.role-card:hover::before, .role-card:hover::after { opacity: 1; }
.role-tag {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 13px;
}
.role-tag-red    { color: #FF8FA3; background: rgba(255, 92, 122, .12);  border: 1px solid rgba(255, 92, 122, .3); }
.role-tag-yellow { color: #FCD34D; background: rgba(252, 211, 77, .1);   border: 1px solid rgba(252, 211, 77, .28); }
.role-tag-blue   { color: #7DD3FC; background: rgba(125, 211, 252, .1);  border: 1px solid rgba(125, 211, 252, .28); }
.role-tag-violet { color: var(--neon-2); background: rgba(78, 168, 255, .13); border: 1px solid rgba(78, 168, 255, .35); }
.role-ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  border: 1px solid rgba(255, 255, 255, .07);
}
.role-ic-red    { background: rgba(255, 92, 122, .1); }
.role-ic-yellow { background: rgba(252, 211, 77, .08); }
.role-ic-blue   { background: rgba(125, 211, 252, .09); }
.role-ic-violet { background: rgba(78, 168, 255, .12); }
.role-card h3 {
  font-family: var(--font-head); font-size: 17px; font-weight: 600; margin-bottom: 10px;
}
.role-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.role-req {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.role-req span {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px;
  background: rgba(78, 168, 255, .06);
}
.role-feat {
  position: relative; padding: 12px 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.role-feat::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 2px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--neon));
}
.roles-cta { text-align: center; margin-top: 44px; }
@media (max-width: 680px) {
  .roles-grid { grid-template-columns: 1fr; }
}

/* ---------- подсветка за курсором ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(78, 168, 255, .08), rgba(43, 125, 233, .035) 40%, transparent 70%);
  filter: blur(35px);
  will-change: transform;
  transform: translate3d(-1000px, -1000px, 0);
}
@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- переливающийся заголовок hero (главная) ---------- */
#page-home .hero-title .grad-text {
  background: linear-gradient(120deg,
    var(--neon-2), var(--accent) 28%, var(--neon) 52%, var(--neon-2) 78%, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- частицы в hero (главная) ---------- */
#page-home .hero { position: relative; }
#page-home .hero > *:not(.hero-particles) { position: relative; z-index: 1; }
.hero-particles {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.hero-particles span {
  position: absolute; bottom: -12px; border-radius: 50%;
  opacity: 0; will-change: transform, opacity;
  animation: ptFloat linear infinite;
}
@keyframes ptFloat {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: var(--po, .25); }
  85% { opacity: var(--po, .25); }
  100% { transform: translate3d(0, -115vh, 0); opacity: 0; }
}
@media (pointer: coarse) {
  .hero-particles { display: none; }
}

/* ---------- 3D-tilt карточек состава ---------- */
.rs-card, .rs-hero { will-change: transform; }

/* цитата (bio) в модалке состава */
.rs-modal-quote {
  margin: 10px 0 0; padding: 8px 12px;
  border-left: 3px solid var(--accent);
  color: #AEBBD0; font-style: italic; font-size: 14px;
}


/* ---------- кабинет игрока: Discord, аналитика, вайпы ---------- */
.ds-panel { margin-top: 18px; padding: 22px 26px; }
.ds-off, .ds-on { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ds-off[hidden], .ds-on[hidden] { display: none; }
.ds-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.ds-text b { font-weight: 800; font-size: 15.5px; }
.ds-text span { color: var(--muted); font-size: 13.5px; }
.ds-ava { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(88, 101, 242, .6); }
.btn-ds {
  background: #5865F2; color: #fff; border: 0;
  box-shadow: 0 6px 24px rgba(88, 101, 242, .4);
}
.btn-ds:hover { filter: brightness(1.1); }
.ds-need { text-align: center; }
.ds-need p { color: var(--muted); margin-bottom: 14px; }
.an-steam-input { text-transform: none; letter-spacing: 0; }
.an-steam-ask { margin-bottom: 16px; }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.an-src { color: var(--muted); font-size: 13px; font-weight: 600; }
.an-loading { display: flex; align-items: center; gap: 12px; padding: 18px 22px; margin-bottom: 14px; color: var(--muted); font-weight: 600; }
.an-loading[hidden] { display: none; }
#anError { margin-bottom: 14px; }
.an-hero { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 14px; }
.an-hero > div { flex: 1; min-width: 0; }
.an-ava { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); object-fit: cover; }
.an-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; word-break: break-word; }
.an-role { color: var(--neon-2); font-weight: 700; font-size: 13.5px; }
#acc-analytics [hidden], #acc-wipes [hidden] { display: none !important; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.an-tile {
  padding: 16px; border-radius: 14px; min-width: 0;
  background: rgba(22, 18, 31, .7); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.an-tile b { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--neon-2); overflow-wrap: anywhere; }
.an-tile span { color: var(--text); font-size: 13px; font-weight: 700; }
.an-tile i { color: var(--muted); font-size: 12px; font-style: normal; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.an-grid .panel, #acc-analytics > #anBody > .panel, #acc-wipes .panel { padding: 22px 24px; }
.an-sub { font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.an-hours { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.an-hour { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--neon-2), var(--neon)); min-height: 3px; }
.an-hour.zero { background: rgba(78, 168, 255, .15); }
.an-hours-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 6px; }
.an-bars { display: flex; flex-direction: column; gap: 12px; }
.an-bar-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.an-bar-top span { color: var(--muted); font-weight: 600; }
.an-bar-track { height: 8px; border-radius: 6px; background: rgba(78, 168, 255, .12); overflow: hidden; }
.an-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--neon), var(--neon-2)); }
.an-list { display: flex; flex-direction: column; }
.an-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.an-row:last-child { border-bottom: 0; }
.an-row span { color: var(--muted); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.an-row b { white-space: nowrap; }
.an-row.good b { color: var(--ok); }
.an-row.bad b { color: var(--danger); }
.an-row.sub { padding-left: 12px; font-size: 12.5px; }
.an-clan-title { margin-top: 30px; }
.wp-card { margin-bottom: 14px; }
.wp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wp-server { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.wp-time { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.wp-mine { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.wp-tag { padding: 3px 10px; border-radius: 8px; font-size: 12.5px; }
.wp-tag.ok, .wp-btn.ok.on { color: var(--ok); background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .45); }
.wp-tag.late, .wp-btn.late.on { color: #FBBF24; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .45); }
.wp-tag.no, .wp-btn.no.on { color: var(--danger); background: rgba(255, 92, 122, .12); border-color: rgba(255, 92, 122, .45); }
.wp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-btn { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); }
.wp-btn:hover:not(:disabled) { border-color: rgba(78, 168, 255, .5); }
.wp-reason { display: flex; gap: 8px; margin-top: 10px; }
.wp-reason[hidden] { display: none; }
.wp-reason input { flex: 1; min-width: 0; }
.wp-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.wp-people-head { font-size: 12.5px; font-weight: 800; margin-bottom: 8px; }
.wp-people.ok .wp-people-head { color: var(--ok); }
.wp-people.late .wp-people-head { color: #FBBF24; }
.wp-people.no .wp-people-head { color: var(--danger); }
.wp-avas { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wp-ava { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.wp-more { color: var(--muted); font-size: 12px; font-weight: 700; }
@media (max-width: 680px) {
  .an-grid, .wp-people-grid { grid-template-columns: 1fr; }
  .an-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-hero { flex-wrap: wrap; }
  .wp-reason { flex-direction: column; }
}


.product-card{margin:20px 0;padding:24px;border:1px solid #55436a;border-radius:16px;background:#151020}.product-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.product-card label{display:flex;flex-direction:column;gap:7px;margin:12px 0}.product-card input,.product-card select,.product-card textarea{background:#21172e;color:#fff;border:1px solid #5b4872;border-radius:8px;padding:12px;max-width:100%;box-sizing:border-box}.product-card textarea{width:100%;font-family:monospace}.product-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.product-card .table-wrap{overflow:auto}.product-card td{padding:10px;overflow-wrap:anywhere}

/* Unified subscription issuance: uses existing cabinet form controls. */
.grant-panel{max-width:680px;padding:28px}.grant-caption{color:var(--muted);margin:0 0 22px;line-height:1.6}.grant-panel .field{margin-bottom:20px}.grant-panel .field small,.grant-hint{font-size:13px;color:var(--muted);line-height:1.6}.grant-hint{margin:0 0 20px}.grant-panel select{width:100%}.grant-advanced{max-width:900px;margin-top:22px}.grant-advanced summary{cursor:pointer;padding:16px 0;color:var(--muted);font-weight:700}.field[hidden],.adm-tab[hidden],.grant-advanced[hidden]{display:none!important}.product-card h3{margin-bottom:12px}.product-card .field input{width:100%}.product-card p{line-height:1.6}.product-card .hwid-hint{margin-top:16px}
@media(max-width:900px){.dash-content{width:100%}}
@media(max-width:600px){.grant-panel,.product-card{padding:20px}.grant-panel .btn-primary{width:100%}.product-actions .btn{flex:1 1 100%}.grant-panel input,.grant-panel select,.product-card input{font-size:16px}.grant-panel .field{margin-bottom:18px}.product-form{grid-template-columns:1fr}.grant-advanced summary{font-size:14px}}

/* Unified product activation / issuance. Hidden products never flash before auth. */
[data-product-card][hidden],[data-download-empty][hidden]{display:none!important}
[data-product-card]{margin-bottom:24px}#productActivateForm,#keyIssueForm{display:grid;gap:18px;max-width:620px}#key-issue-root textarea{width:100%;box-sizing:border-box;padding:14px;border:1px solid #543472;background:#171020;color:#DCEAF8;border-radius:12px;resize:vertical}#keyIssueResult{margin-top:20px;overflow-wrap:anywhere}.product-download-empty p{margin-bottom:18px}#keyIssueRoleField small{display:block;margin-top:8px}#keyManagementRoot .product-form{display:grid;gap:12px}#keyManagementRoot input,#keyManagementRoot select{max-width:100%;background:#1b1426;border:1px solid #503167;color:#DCEAF8;border-radius:10px;padding:10px}#keyManagementRoot .product-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Product subscriptions and readable key history, including narrow screens. */
.subscription-intro,.subscription-note,.subscription-empty{color:var(--muted);line-height:1.6}
.subscription-intro{margin:0 0 20px}
.subscription-products{display:grid;gap:16px}
.subscription-card{padding:24px}
.subscription-card-head,.key-history-head,.key-history-heading,.key-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.subscription-card-head h4{font-size:22px;margin:5px 0 0}
.subscription-eyebrow,.key-history-id{font-size:11px;letter-spacing:.08em;color:var(--muted)}
.subscription-details,.key-history-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 0}
.subscription-details dt,.key-history-details dt{font-size:12px;color:var(--muted);margin-bottom:6px}
.subscription-details dd,.key-history-details dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.subscription-note{font-size:13px;margin:18px 0 0}
.key-history-heading{margin:24px 0 16px}.key-history-heading h4{margin:0;font-size:16px}.key-history-heading>span{font-size:12px;color:var(--muted)}
.key-history-grid{display:grid;gap:12px}
.key-history-card{padding:20px;border:1px solid rgba(170,110,255,.17);border-radius:16px;background:rgba(124,67,194,.06)}
.key-history-head>div{display:grid;gap:7px}.key-history-head code{font-size:16px;letter-spacing:.08em}
.key-history-details{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}
.key-state{font-size:12px;font-weight:600;line-height:1.3;padding:7px 11px;border-radius:20px;white-space:nowrap;background:rgba(170,110,255,.12);color:#A9CDF5}
.key-state.available{color:#6be4a2;background:rgba(61,202,128,.12)}.key-state.revoked{color:#ff9bac;background:rgba(255,92,122,.1)}.key-state.expired{color:#e8c47d;background:rgba(220,170,65,.1)}
.key-history-actions{display:flex;justify-content:flex-end;margin-top:18px}.key-history-actions .btn{padding:8px 14px;font-size:12px}
.key-history-pagination{margin-top:20px}.key-history-pagination>span{font-size:12px;color:var(--muted)}
@media(max-width:560px){.subscription-card,.key-history-card{padding:18px}.key-history-details{grid-template-columns:1fr 1fr}.key-history-details>div:last-child{grid-column:1/-1}.subscription-card-head h4{font-size:20px}.key-history-pagination{gap:8px}.key-history-pagination .btn{padding:9px 12px}}


/* Final clan-only layout fixes. */
#page-home .stats-band,#page-clan .stats-band{grid-template-columns:repeat(2,minmax(0,260px));justify-content:center}
#page-roster .stats-band{margin:0 auto 56px!important;justify-content:center}
#page-roster #rsHero{display:grid;justify-items:center;clear:both;width:100%}
#page-roster #rsHero .rs-hero{margin:0 auto 40px}
@media(min-width:681px){#page-home .feat-grid{grid-template-columns:repeat(2,minmax(0,360px));justify-content:center}}
