/* =========================================================
   AETHER NETWORK — Premium Minecraft Server & Store Styles
   ========================================================= */

:root {
  --bg: #0B0D12;
  --bg-2: #0E1119;
  --bg-3: #12151e;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.05);
  --panel-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);
  --text: #E9EBF1;
  --muted: #98A1B0;
  --faint: #5F6674;
  --em: #34D399;
  --em-hover: #10B981;
  --em-soft: rgba(52, 211, 153, 0.14);
  --em-glow: rgba(52, 211, 153, 0.4);
  --cy: #22D3EE;
  --ind: #818CF8;
  --gold: #F59E0B;
  --ruby: #F43F5E;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

/* Кастомный премиальный скроллбар */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--em);
}

/* Текстурный микрошум */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(52, 211, 153, 0.28);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

i[data-lucide] {
  display: inline-block;
}

svg.lucide {
  vertical-align: middle;
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 13px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #34D399, #14B8A6);
  color: #04150E;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -12px rgba(52, 211, 153, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 44px -12px rgba(52, 211, 153, 0.75);
}

.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
  border-radius: 11px;
}

.btn-block {
  width: 100%;
}

/* ============ ШАПКА ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.14em;
  transition: transform 0.2s;
}
.logo:hover {
  transform: scale(1.02);
}

.logo svg {
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

/* Исправлена проблема: стили для a И button внутри .nav-links */
.nav-links a,
.nav-links button {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--panel-2);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Кнопка переключения звука */
.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  transition: 0.2s;
}
.sound-toggle:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--panel-2);
}
.sound-toggle.muted {
  color: var(--faint);
}

.ip-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 8px 8px 14px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ip-pill:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.ip-pill .cp {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--em);
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s;
}

.ip-pill .cp:hover {
  background: var(--em-soft);
}

.ip-pill.copied .cp {
  background: var(--em);
  color: #04150E;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.burger span:nth-child(1) {
  top: 17px;
}
.burger span:nth-child(2) {
  top: 25px;
}

body.menu-open .burger span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Мобильное меню */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(11, 13, 18, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

body.menu-open .mnav {
  opacity: 1;
  pointer-events: auto;
}

.mnav a,
.mnav button {
  font-size: 24px;
  font-weight: 800;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  text-align: left;
}

body.menu-open .mnav a,
body.menu-open .mnav button {
  opacity: 1;
  transform: none;
}

.mnav a:nth-child(2) { transition-delay: 0.05s; }
.mnav a:nth-child(3) { transition-delay: 0.1s; }
.mnav a:nth-child(4) { transition-delay: 0.15s; }
.mnav a:nth-child(5) { transition-delay: 0.2s; }
.mnav .m-ip {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--em);
  border: none;
  margin-top: 26px;
  letter-spacing: 0.06em;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px 24px 100px;
}

#orbs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 42%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 42%, #000 15%, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 890px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  margin-bottom: 4px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(38px, 6.8vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 24px 0 22px;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #34D399 10%, #22D3EE 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 19px);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 46px auto 0;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(16, 19, 26, 0.65);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 12px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

.hb-live {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 18px;
}

.hb-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em);
  animation: pulse 2.2s infinite;
}

.hb-live .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
}

.hb-live .num.tick {
  animation: tickn 0.45s var(--ease);
}

@keyframes tickn {
  0% { color: var(--em); transform: translateY(-3px); }
  100% { color: var(--text); transform: none; }
}

.hb-live .lbl {
  color: var(--muted);
  font-size: 13px;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 24px;
}

.spark i {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(52, 211, 153, 0.25), var(--em));
  height: 30%;
  transition: height 0.6s var(--ease);
}

.hb-sep {
  width: 1px;
  height: 26px;
  background: var(--line-2);
}

.hb-ip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
}

.hb-ip .ip {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.hb-ip .ver {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--em);
  background: var(--em-soft);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 6px;
  padding: 2px 7px;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--em);
  background: var(--em-soft);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 10px;
  padding: 8px 13px;
  transition: 0.25s;
}

.copy-btn:hover {
  background: rgba(52, 211, 153, 0.24);
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: var(--em);
  color: #04150E;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  z-index: 2;
  animation: hint 2.6s infinite;
}

@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============ СЕКЦИИ ============ */
.sec {
  padding: 110px 0;
  position: relative;
}

.sec-head {
  margin-bottom: 52px;
  max-width: 660px;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--em);
}

.sec-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--em);
  transform: rotate(45deg);
  border-radius: 1.5px;
}

.sec h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 16px 0 14px;
}

.sec-sub {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 580px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-em {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.14), transparent 70%);
  width: 600px;
  height: 600px;
}

.glow-ind {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.13), transparent 70%);
  width: 560px;
  height: 560px;
}

.sec > .container {
  position: relative;
  z-index: 1;
}

/* Появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============ ПРЕИМУЩЕСТВА (bento) ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bcard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  display: flex;
  flex-direction: column;
}

.bcard:hover {
  transform: translateY(-4px);
  background: var(--panel-2);
}

.bcard-big {
  grid-column: span 7;
  grid-row: span 2;
  padding: 36px;
}

.bcard-sm {
  grid-column: span 5;
}

.bico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--em-soft);
  color: var(--em);
  border: 1px solid rgba(52, 211, 153, 0.22);
  margin-bottom: 20px;
  flex: none;
}

.bico svg {
  width: 22px;
  height: 22px;
}

.bcard h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.bcard p {
  color: var(--muted);
  font-size: 15px;
}

/* Прожекторная подсветка карточек */
.spot {
  position: relative;
}

.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 211, 153, 0.08), transparent 42%);
}

.spot:hover::before {
  opacity: 1;
}

.spot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 211, 153, 0.45), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.spot:hover::after {
  opacity: 1;
}

/* Терминал античита */
.term {
  margin-top: auto;
  background: rgba(6, 8, 12, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  height: 162px;
  overflow: hidden;
  margin-top: 26px;
}

.term .th {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.term .th .tdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--em);
  animation: pulse 2s infinite;
}

.term .tl {
  color: #7C8595;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: tin 0.3s var(--ease);
}

.term .tl b {
  color: var(--em);
  font-weight: 600;
}

.term .tl .w {
  color: #E0B05A;
}

@keyframes tin {
  from { opacity: 0; transform: translateY(6px); }
}

/* ============ РЕЖИМЫ (слайдер) ============ */
.modes-wrap {
  position: relative;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  scrollbar-width: none;
  cursor: grab;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.mcard {
  flex: none;
  width: 302px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, background 0.3s;
  user-select: none;
}

.mcard:hover {
  background: var(--panel-2);
  border-color: var(--line-2);
}

.mcard.feat {
  width: 430px;
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.08), rgba(99, 102, 241, 0.05) 60%, var(--panel));
  border-color: rgba(52, 211, 153, 0.25);
}

.mcard .mtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.mtag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 7px;
}

.mtag.hot {
  color: var(--em);
  border-color: rgba(52, 211, 153, 0.3);
  background: var(--em-soft);
}

.mcard h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mcard.feat h3 {
  font-size: 25px;
}

.mcard .md {
  color: var(--muted);
  font-size: 14.5px;
  margin: 10px 0 24px;
  flex: 1;
}

.mstats {
  display: flex;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mstat .v {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mstat .v .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--em);
}

.mstat .k {
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-top: 2px;
}

.rail-btns {
  display: flex;
  gap: 10px;
  position: absolute;
  top: -78px;
  right: 0;
}

.rbtn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}

.rbtn:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.24);
}

.rbtn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ============ МАГАЗИН ============ */
.shop {
  background: linear-gradient(180deg, var(--bg), #0C1018 40%, var(--bg));
}

.shop-ctrl {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
}

.tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 5px;
}

.tab {
  padding: 10px 20px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: 0.25s;
}

.tab:hover {
  color: var(--text);
}

.tab.on {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(34, 211, 238, 0.12));
  color: var(--em);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.28);
}

/* Промокод в панели магазина */
.promo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 12px;
}

.promo-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 0;
  width: 130px;
  text-transform: uppercase;
}

.promo-bar input::placeholder {
  color: var(--faint);
  text-transform: none;
}

.promo-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--em);
  transition: 0.2s;
}
.promo-btn:hover {
  background: var(--em-soft);
}

.promo-applied-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--em-soft);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--em);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.promo-applied-badge.active {
  display: inline-flex;
}

/* Поле ввода ника с миниатюрой скина игрока */
.nick-wrap {
  margin-left: auto;
  position: relative;
}

.nick-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 14px 0 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.nick-field:focus-within {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.skin-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  image-rendering: pixelated;
  background: #191e2b;
  border: 1px solid var(--line);
  display: block;
}

.nick-field input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 0;
  width: 170px;
}

.nick-field input::placeholder {
  color: var(--faint);
}

.nick-ok {
  color: var(--em);
  opacity: 0;
  transition: opacity 0.25s;
}

.nick-wrap.valid .nick-ok {
  opacity: 1;
}

.nick-err {
  position: absolute;
  left: 4px;
  top: calc(100% + 7px);
  font-size: 12.5px;
  color: #F8718A;
  opacity: 0;
  transform: translateY(-4px);
  transition: 0.25s;
  white-space: nowrap;
  pointer-events: none;
}

.nick-wrap.error .nick-err {
  opacity: 1;
  transform: none;
}

.nick-wrap.error .nick-field {
  border-color: rgba(248, 113, 138, 0.6);
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
  align-items: start;
}

.cat-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cat-panel.active {
  display: grid;
  animation: fadeup 0.45s var(--ease);
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
}

/* Тарифы */
.tariff {
  position: relative;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
}

.tariff .in {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}

.tariff:hover .in {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.t-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.t-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.t-name .tico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  color: var(--em);
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}

.t-name .tico svg {
  width: 18px;
  height: 18px;
}

.t-for {
  color: var(--faint);
  font-size: 12.5px;
  margin: 4px 0 22px;
  padding-left: 45px;
}

.price {
  font-family: var(--mono);
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.price b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-block;
}

.price span {
  color: var(--faint);
  font-size: 13px;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

.feat {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.feat li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: #C6CBD6;
  align-items: flex-start;
}

.feat li svg {
  width: 16px;
  height: 16px;
  color: var(--em);
  flex: none;
  margin-top: 3px;
}

.feat li.off {
  color: var(--faint);
}

.feat li.off svg {
  color: var(--faint);
}

.tariff .buy {
  margin-top: auto;
}

/* Выделенный тариф */
@property --a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.t-featured {
  padding: 1.5px;
  border-radius: calc(var(--r-lg) + 2px);
  position: relative;
  background: conic-gradient(from var(--a), transparent 0deg, rgba(52, 211, 153, 0.9) 80deg, rgba(34, 211, 238, 0.65) 150deg, transparent 230deg, transparent 360deg);
  animation: rot 6s linear infinite;
  box-shadow: 0 0 70px -18px rgba(52, 211, 153, 0.4);
}

@keyframes rot {
  to { --a: 360deg; }
}

.t-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #04150E;
  background: linear-gradient(135deg, #34D399, #14B8A6);
  border-radius: 8px;
  padding: 5px 12px;
  box-shadow: 0 6px 20px -6px rgba(52, 211, 153, 0.6);
}

/* Валюта и кейсы */
.pcard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.3s;
  position: relative;
}

.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.pcard .amt {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pcard .amt svg {
  width: 26px;
  height: 26px;
  color: var(--em);
}

.pcard .note {
  color: var(--faint);
  font-size: 13px;
  margin: 6px 0 22px;
}

.pill {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em);
  background: var(--em-soft);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 4px 10px;
  border-radius: 7px;
}

.chances {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 26px;
}

.ch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.ch .ck {
  width: 92px;
  color: var(--muted);
  font-family: var(--mono);
  flex: none;
}

.ch .track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.ch .fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1s var(--ease);
}

.ch .cv {
  width: 38px;
  text-align: right;
  font-family: var(--mono);
  color: var(--muted);
}

.case-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-demo-case {
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-demo-case:hover {
  background: var(--panel-2);
  color: var(--cy);
  border-color: rgba(34, 211, 238, 0.3);
}

/* Панель доверия */
.trust {
  position: sticky;
  top: 100px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

.trust h3 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust h3 svg {
  width: 18px;
  height: 18px;
  color: var(--em);
}

.trust-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.trust-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.trust-item .ti {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--em-soft);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.trust-item .ti svg {
  width: 17px;
  height: 17px;
}

.trust-item b {
  font-size: 14.5px;
  display: block;
}

.trust-item p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.pays {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pay {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 5px 11px;
}

.trust .fine {
  color: var(--faint);
  font-size: 12px;
  margin-top: 18px;
  line-height: 1.55;
}

/* ============ СТАТИСТИКА ============ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.03), transparent 30%, rgba(99, 102, 241, 0.04) 80%);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: left;
  padding-left: 26px;
  border-left: 1px solid var(--line-2);
}

.stat .v {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.03em;
}

.stat .v em {
  font-style: normal;
  color: var(--em);
  font-size: 0.55em;
  vertical-align: 0.28em;
  margin-left: 2px;
}

.stat .k {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* ============ ТОП ДОНАТЕРОВ ============ */
.lead-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.lcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.35s var(--ease), background 0.3s;
}

.lcard:hover {
  transform: translateY(-4px);
  background: var(--panel-2);
}

.lcard.first {
  border-color: rgba(52, 211, 153, 0.3);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.06), var(--panel));
}

.lcard .rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.14em;
}

.lcard.first .rank {
  color: var(--em);
}

.luser {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 20px;
}

.ava {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  flex: none;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.lcard.first .ava {
  box-shadow: 0 0 24px -6px rgba(52, 211, 153, 0.55);
}

.luser b {
  font-size: 16.5px;
  display: block;
}

.luser span {
  color: var(--faint);
  font-size: 12.5px;
}

.lsum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.lsum .v {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
}

.lsum .n {
  color: var(--faint);
  font-size: 12.5px;
}

.lead-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.lrow {
  display: grid;
  grid-template-columns: 56px 44px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 15px 26px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  transition: background 0.2s;
}

.lrow:first-child {
  border-top: none;
}

.lrow:hover {
  background: var(--panel-2);
}

.lrow .pos {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 13px;
}

.lrow .ava {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.lrow .sum {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--muted);
}

.lrow .cnt {
  color: var(--faint);
  font-size: 12.5px;
}

/* ============ ВИКИ / ПРАВИЛА ============ */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.wcard {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  text-align: left;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
  width: 100%;
}

.wcard:hover {
  transform: translateY(-4px);
  background: var(--panel-2);
  border-color: var(--line-2);
}

.wcard .bico {
  margin-bottom: 0;
}

.wcard b {
  font-size: 16.5px;
  display: block;
  margin-bottom: 5px;
}

.wcard p {
  color: var(--muted);
  font-size: 13.5px;
}

.wmeta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.rule {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.rule .num {
  font-family: var(--mono);
  color: var(--em);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding-top: 4px;
  flex: none;
}

.rule b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 5px;
}

.rule p {
  color: var(--muted);
  font-size: 14px;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 780px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: var(--line-2);
  background: var(--panel-2);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15.5px;
}

.faq-q .chev {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex: none;
  transition: transform 0.35s var(--ease), color 0.3s, border-color 0.3s;
}

.faq-q .chev svg {
  width: 16px;
  height: 16px;
}

.faq-item.open .chev {
  transform: rotate(180deg);
  color: var(--em);
  border-color: rgba(52, 211, 153, 0.35);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-in {
  overflow: hidden;
}

.faq-a p {
  color: var(--muted);
  font-size: 14.5px;
  padding: 0 24px 24px;
  max-width: 640px;
}

/* ============ ФУТЕР ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  background: #0A0C10;
}

.f-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 56px;
}

.f-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 24px;
  max-width: 300px;
}

.f-col b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
  font-family: var(--mono);
  font-weight: 600;
}

.f-col a,
.f-col button {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
  text-align: left;
}

.f-col a:hover,
.f-col button:hover {
  color: var(--em);
}

.f-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12.5px;
}

.f-bottom .legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.f-bottom button {
  color: var(--faint);
  font-size: 12.5px;
}

.f-bottom button:hover {
  color: var(--muted);
}

/* ============ МОДАЛКИ ОБЩИЕ ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.m-back {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.m-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 32px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.modal.show .m-panel {
  transform: none;
}

.m-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: 0.2s;
}

.m-close:hover {
  color: var(--text);
  background: var(--panel-2);
}

.m-close svg {
  width: 16px;
  height: 16px;
}

.m-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.m-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

/* Модалка оформления покупки */
.order {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 24px;
}

.order .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.order .row:first-child {
  border-top: none;
}

.order .row span {
  color: var(--muted);
}

.order .row b {
  font-family: var(--mono);
  font-weight: 600;
}

.order .row.user-row {
  align-items: center;
}

.order .user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order .user-badge img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  image-rendering: pixelated;
}

.order .row.total b {
  color: var(--em);
  font-size: 18px;
}

.order .discount-val {
  color: var(--cy);
  font-family: var(--mono);
  font-weight: 700;
}

.pay-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
  width: 100%;
}

.pay-opt:hover {
  border-color: var(--line-2);
}

.pay-opt.on {
  border-color: rgba(52, 211, 153, 0.5);
  background: var(--em-soft);
}

.pay-opt .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  flex: none;
  position: relative;
  transition: 0.2s;
}

.pay-opt.on .radio {
  border-color: var(--em);
}

.pay-opt.on .radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--em);
}

.pay-opt svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
  flex: none;
}

.pay-opt.on svg {
  color: var(--em);
}

.pay-opt b {
  font-size: 14.5px;
  display: block;
}

.pay-opt span {
  color: var(--faint);
  font-size: 12px;
}

.demo-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

/* Успех покупки */
.success {
  display: none;
  text-align: center;
  padding: 14px 4px 4px;
}

.success.show {
  display: block;
  animation: fadeup 0.5s var(--ease);
}

.check-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  position: relative;
}

.check-ring svg {
  width: 84px;
  height: 84px;
}

.check-ring .ring {
  stroke: rgba(52, 211, 153, 0.25);
  stroke-width: 2;
  fill: none;
}

.check-ring .mk {
  stroke: var(--em);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.6s 0.25s var(--ease) forwards;
}

.check-ring .cring {
  stroke: var(--em);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  animation: draw 0.8s 0.05s var(--ease) forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.success h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.success p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 340px;
  margin: 0 auto 28px;
}

.success p b {
  color: var(--text);
}

/* Спиннер */
.spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(4, 21, 14, 0.3);
  border-top-color: #04150E;
  animation: sp 0.7s linear infinite;
}

@keyframes sp {
  to { transform: rotate(360deg); }
}

/* ============ МОДАЛКА: РУЛЕТКА КЕЙСОВ (НОВАЯ ФИЧА) ============ */
.case-roulette-panel {
  max-width: 600px;
}

.roulette-container {
  position: relative;
  background: #07090D;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  margin: 20px 0 24px;
  overflow: hidden;
  height: 124px;
  display: flex;
  align-items: center;
}

/* Маркер центра рулетки */
.roulette-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--em);
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 12px var(--em);
}
.roulette-marker::before,
.roulette-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}
.roulette-marker::before {
  top: 0;
  border-top: 8px solid var(--em);
}
.roulette-marker::after {
  bottom: 0;
  border-bottom: 8px solid var(--em);
}

.roulette-tape {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  position: absolute;
  left: 0;
  transition: transform 0.1s linear;
  will-change: transform;
}

.r-item {
  width: 96px;
  height: 96px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  padding: 8px 4px;
  transition: border-color 0.2s;
}

.r-item.common { border-color: #6B7280; }
.r-item.rare { border-color: #22D3EE; box-shadow: 0 0 12px rgba(34, 211, 238, 0.15) inset; }
.r-item.epic { border-color: #818CF8; box-shadow: 0 0 14px rgba(129, 140, 248, 0.2) inset; }
.r-item.legend { border-color: var(--gold); box-shadow: 0 0 18px rgba(245, 158, 11, 0.3) inset; }

.r-item .r-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.r-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 86px;
}

.r-winner-box {
  display: none;
  text-align: center;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  margin-bottom: 20px;
  animation: fadeup 0.4s var(--ease);
}
.r-winner-box.show {
  display: block;
}
.r-winner-box h4 {
  font-size: 18px;
  color: var(--em);
  margin-bottom: 4px;
}
.r-winner-box p {
  color: var(--muted);
  font-size: 13.5px;
}

/* ============ МОДАЛКА: КОМАНДЫ СЕРВЕРА (НОВАЯ ФИЧА) ============ */
.cmd-modal-panel {
  max-width: 680px;
}

.cmd-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cmd-tab {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.2s;
}
.cmd-tab:hover {
  color: var(--text);
  background: var(--panel-2);
}
.cmd-tab.on {
  background: var(--em-soft);
  color: var(--em);
  border-color: rgba(52, 211, 153, 0.35);
}

.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  transition: 0.2s;
}
.cmd-row:hover {
  background: var(--panel-2);
  border-color: var(--line-2);
}

.cmd-info {
  flex: 1;
}

.cmd-name {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--em);
  font-size: 14.5px;
  margin-bottom: 2px;
}

.cmd-desc {
  color: var(--muted);
  font-size: 13px;
}

.cmd-copy-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
  flex: none;
}
.cmd-copy-btn:hover {
  border-color: var(--em);
  color: var(--em);
}

/* ============ ТЕКСТОВАЯ МОДАЛКА ============ */
.doc-body {
  color: var(--muted);
  font-size: 14.5px;
}

.doc-body p {
  margin-bottom: 14px;
}

.doc-body h4 {
  color: var(--text);
  margin: 20px 0 8px;
  font-size: 15.5px;
}

/* ============ ТОСТЫ ============ */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: rgba(18, 21, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
  animation: tin 0.4s var(--ease);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.hide {
  opacity: 0;
  transform: translateX(20px);
}

.toast .tico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.toast .tico svg {
  width: 16px;
  height: 16px;
}

.toast.ok .tico {
  background: var(--em-soft);
  color: var(--em);
}

.toast.err .tico {
  background: rgba(248, 113, 138, 0.14);
  color: #F8718A;
}

.toast.info .tico {
  background: rgba(129, 140, 248, 0.14);
  color: var(--ind);
}

.toast b {
  font-size: 14px;
  display: block;
}

.toast p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 1px;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .ip-pill { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bcard-big, .bcard-sm { grid-column: span 1; grid-row: auto; }
  .shop-grid { grid-template-columns: 1fr; }
  .trust { position: static; }
  .nick-wrap { margin-left: 0; width: 100%; }
  .nick-field { width: 100%; }
  .nick-field input { width: 100%; flex: 1; }
}

@media (max-width: 820px) {
  .sec { padding: 80px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .lead-top { grid-template-columns: 1fr; }
  .wiki-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .cat-panel { grid-template-columns: 1fr; }
  .mcard.feat { width: 300px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .f-brand { grid-column: span 2; }
  .hb-sep { display: none; }
  .hb-live { padding-right: 0; margin-bottom: 6px; }
  .hb-ip { padding-left: 0; }
  .lrow { grid-template-columns: 40px 34px 1fr auto; gap: 12px; padding: 14px 18px; }
  .lrow .cnt { display: none; }
  .hero-actions .btn { width: 100%; }
  .scroll-hint { display: none; }
  .promo-bar { width: 100%; }
  .promo-bar input { flex: 1; }
}

@media (max-width: 480px) {
  .bcard, .tariff .in, .pcard { padding: 24px; }
  .hero-bar { padding: 12px 14px; }
  .toasts { left: 16px; right: 16px; max-width: none; }
  .m-panel { padding: 26px 20px; }
  .case-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============ СЕЛЕКТОР СРОКА ПРИВИЛЕГИЙ ============ */
.duration-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 4px;
}

.dur-tab {
  padding: 8px 14px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
  white-space: nowrap;
}

.dur-tab:hover {
  color: var(--text);
  background: var(--panel-2);
}

.dur-tab.on {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(34, 211, 238, 0.15));
  color: var(--em);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35);
}

/* Бейджи префиксов Minecraft */
.mc-prefix {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

.mc-prefix.vip {
  background: rgba(85, 255, 85, 0.14);
  color: #55FF55;
  border: 1px solid rgba(85, 255, 85, 0.3);
}

.mc-prefix.fly {
  background: rgba(85, 255, 255, 0.14);
  color: #55FFFF;
  border: 1px solid rgba(85, 255, 255, 0.3);
}

.mc-prefix.creative {
  background: rgba(255, 85, 255, 0.14);
  color: #FF55FF;
  border: 1px solid rgba(255, 85, 255, 0.3);
}

.mc-prefix.mod {
  background: rgba(85, 85, 255, 0.18);
  color: #5555FF;
  border: 1px solid rgba(85, 85, 255, 0.35);
}

/* Чистый стиль срока под ценой */
.price span {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  display: block;
  margin-top: 3px;
  white-space: nowrap;
}

/* ============ СЕКЦИЯ VANILA+ SHOWCASE ============ */
.vanila-showcase {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.vanila-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--em-soft);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--em);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.vanila-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.vanila-head h3 {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.vanila-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  line-height: 1.6;
}

.vanila-stats {
  display: flex;
  gap: 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 22px;
}

.vanila-stat .val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vanila-stat .lbl {
  color: var(--faint);
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  margin-top: 2px;
}

.vanila-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.vanila-feat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: 0.3s;
}

.vanila-feat-card:hover {
  background: var(--panel-2);
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.vanila-feat-card .vf-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--em-soft);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.vanila-feat-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.vanila-feat-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Блок команды в модалке чекаута */
.command-notice-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
  text-align: left;
}

.command-notice-box .cmd-lbl {
  font-size: 11.5px;
  color: var(--faint);
  font-family: var(--mono);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.command-notice-box .cmd-text {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--em);
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rejoin-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  color: #FCD34D;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 14px;
  text-align: left;
}
.rejoin-tip svg {
  flex: none;
  margin-top: 2px;
}

@media (max-width: 820px) {
  .vanila-grid {
    grid-template-columns: 1fr;
  }
  .vanila-head {
    flex-direction: column;
  }
  .vanila-stats {
    width: 100%;
    justify-content: space-around;
  }
  .duration-selector {
    width: 100%;
    overflow-x: auto;
  }
}
