:root {
  --gold: #f2cc54;
  --gold-dark: #8a6600;
  --gold-accent: #8a6600;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-light: #8e8e93;
  --text-faint: #b0b0b5;
  --border: rgba(0, 0, 0, 0.08);
  --border-soft: rgba(0, 0, 0, 0.06);
  --bg: #f8f8fa;
  --bg-soft: #f0f0f2;
  --white: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --discord: #5865f2;
  --telegram: #4dc4f0;
  --danger: #dc2626;
  --success: #22c55e;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] {
  --text: #f2f2f3;
  --text-muted: #a8a8ad;
  --text-light: #86868b;
  --text-faint: #5a5a5f;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.07);
  --bg: #121214;
  --bg-soft: #1c1c1f;
  --white: #1a1a1d;
  --nav-bg: rgba(26, 26, 29, 0.75);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --gold-accent: #f0c94a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4 { font-weight: 500; margin: 0; }

p { margin: 0; line-height: 1.6; color: var(--text-muted); }

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--gold-dark); }
.btn-gold:hover { opacity: 0.9; }
.btn-telegram { background: var(--telegram); color: #fff; }
.btn-telegram:hover { opacity: 0.9; }
.btn.full { width: 100%; }
.btn.small { padding: 9px 18px; font-size: 13px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 24px;
}
.nav-wrap {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; justify-self: start; }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-text { font-size: 18px; letter-spacing: -0.5px; transition: color 0.2s ease; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo:hover .logo-text { color: var(--gold-accent); }

.main-nav { display: flex; gap: 32px; justify-self: center; }
.main-nav a {
  position: relative; display: inline-block; padding-bottom: 4px;
  font-size: 14px; font-weight: 300; color: var(--text-muted);
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: translateX(-50%); transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 5px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { background: rgba(242, 204, 84, 0.15); color: var(--gold-accent); transform: translateY(-2px); }
.icon-btn:active { transform: translateY(0) scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg {
  position: absolute; top: 50%; left: 50%; width: 20px; height: 20px;
  transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.theme-toggle .theme-icon-sun { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg) scale(0.4); }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(0.4); }

.search-wrap { position: relative; }
.search-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; max-width: calc(100vw - 48px);
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  box-shadow: var(--shadow); padding: 12px; z-index: 50;
}
.search-panel input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-soft); font-family: inherit; font-size: 14px; color: var(--text); margin-bottom: 10px;
}
.search-panel input:focus { outline: none; border-color: var(--gold); }
.search-results { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.search-result {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
  text-align: left; width: 100%;
}
.search-result:hover { background: var(--bg-soft); }
.search-result img { width: 36px; height: 36px; object-fit: contain; background: var(--bg); border-radius: 6px; flex-shrink: 0; }
.search-result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-result-info strong { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-info small { font-size: 12px; color: var(--text-light); }
.search-hint { font-size: 13px; color: var(--text-light); text-align: center; padding: 12px 0; }
.search-highlight { animation: search-flash 1.4s ease; }
@keyframes search-flash {
  0%, 100% { box-shadow: none; }
  20%, 60% { box-shadow: 0 0 0 3px var(--gold); }
}

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile sidebar */
.mobile-sidebar {
  position: fixed; top: 0; right: -320px;
  width: 300px; height: 100%;
  background: var(--white);
  z-index: 60;
  padding: 24px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: right 0.25s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-sidebar.open { right: 0; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 60px; }
.mobile-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 12px; border-radius: 10px;
  color: var(--text-muted); font-size: 15px;
}
.mobile-link:hover { background: var(--bg-soft); color: var(--text); }
.mobile-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-icon svg { width: 18px; height: 18px; }
.btn-icon { margin-right: 4px; }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 55;
}
.sidebar-overlay.open { display: block; }

/* Hero */
.hero { padding-top: 24px; scroll-margin-top: 96px; }
.hero-grid {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
}
.hero-banner {
  position: relative;
  border-radius: 24px;
  min-height: 340px;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  background: url('../assets/img/back.png') center/cover no-repeat;
  overflow: hidden;
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to top, black, transparent 80%);
}
.hero-badge {
  position: relative;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(242, 204, 84, 0.15);
  border: 1px solid rgba(242, 204, 84, 0.3);
  color: var(--gold);
  font-size: 13px;
}
.hero-banner h1 {
  position: relative;
  color: var(--white);
  font-size: 48px;
  letter-spacing: -1px;
  font-weight: 600;
}
.hero-banner p {
  position: relative;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 480px;
}
.hero-banner .btn { position: relative; align-self: flex-start; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.social-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--border-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-icon svg, .social-icon img { width: 20px; height: 20px; }
.icon-discord { background: rgba(88, 101, 242, 0.15); color: var(--discord); }
.icon-telegram { background: rgba(77, 196, 240, 0.15); color: var(--telegram); }
.social-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.social-text strong { font-size: 14px; font-weight: 400; }
.social-text small { font-size: 13px; color: var(--text-muted); font-weight: 300; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-card {
  padding: 18px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.status-row { display: flex; align-items: center; gap: 10px; }
.status-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-faint);
  transition: background 0.2s, box-shadow 0.2s;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 12px var(--success); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.status-row strong { font-size: 14px; font-weight: 400; }
.status-card small { font-size: 13px; color: var(--text-muted); font-weight: 300; padding-left: 22px; }
.ip-btn {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-soft); border-radius: 10px;
  padding: 12px; font-size: 13px; color: var(--text-muted);
  transition: background 0.15s;
}
.ip-btn:hover { background: #e6e6e9; }
.ip-btn svg { width: 16px; height: 16px; }
.ip-btn.copied { color: var(--gold-accent); }

/* Cards row */
.cards-row { display: grid; grid-template-columns: 380px 1fr; gap: 24px; margin-top: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.currency-card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 24px; }
.currency-card label { display: block; font-size: 13px; color: var(--text-light); font-weight: 300; margin-bottom: 12px; }
#amountRange {
  width: 100%; appearance: none; height: 6px; border-radius: 2px;
  background: var(--border); margin-bottom: 24px; cursor: pointer;
}
#amountRange::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border);
}
#amountRange::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--white);
  background: var(--gold); box-shadow: 0 0 0 1px var(--border);
}
.convert-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.convert-box {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 5px; padding: 10px 12px;
}
.convert-box small { display: block; font-size: 10px; color: var(--text-faint); margin-bottom: 6px; }
.convert-box strong { font-size: 14px; font-weight: 500; }
.convert-input { display: flex; align-items: baseline; gap: 4px; }
.convert-input input {
  width: 100%; min-width: 0; border: none; background: transparent; padding: 0;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--text);
  appearance: textfield;
}
.convert-input input:focus { outline: none; }
.convert-input input::-webkit-outer-spin-button,
.convert-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.convert-input span { font-size: 14px; font-weight: 500; flex-shrink: 0; }
.gold-text { color: var(--gold-accent); }
.wild-text { color: #e0333f; }
.convert-arrow { color: var(--text-light); font-size: 18px; }

.purchases-card { overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.book-icon { width: 32px; height: 32px; object-fit: contain; }
.card-head h3 { font-size: 22px; line-height: 1.3; flex: 1; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button {
  width: 32px; height: 32px; border-radius: 16px; background: var(--bg-soft);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.carousel-controls button:hover { background: #e6e6e9; }
.purchases-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
  padding-bottom: 4px;
}
.purchases-track::-webkit-scrollbar { display: none; }
.purchase-item {
  flex: 0 0 148px; background: var(--bg-soft); border-radius: 10px; padding: 20px 12px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.purchase-item .item-icon { width: 44px; height: 44px; margin-bottom: 8px; }
.purchase-item p { font-size: 13px; color: var(--text); font-weight: 400; margin: 0; }
.purchase-item small { font-size: 12px; color: var(--text-light); font-weight: 300; }
.purchase-item small.user { color: var(--text-faint); }

.item-icon {
  border-radius: 6px;
  background: linear-gradient(145deg, var(--c1, var(--gold)), var(--c2, var(--gold-dark)));
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -3px 4px rgba(0,0,0,0.2);
}

.item-icon.item-icon-img {
  background: var(--bg-elevated, rgba(255,255,255,0.06));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.item-icon.item-icon-img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}

.item-icon.item-icon-wilds {
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

/* Shop */
.shop { margin-top: 64px; }
.shop h2 {
  font-size: 32px; letter-spacing: -0.5px; margin-bottom: 24px;
  background: linear-gradient(97deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-layout { 
  display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; 
}
.shop-sidebar { display: flex; flex-direction: column; gap: 20px; }
.server-card h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px;
  color: var(--text-muted); font-weight: 300; margin-bottom: 14px;
}
.category-list { display: flex; flex-direction: column; gap: 6px; }
.category-btn {
  display: flex; align-items: center; gap: 12px; text-align: left; position: relative;
  padding: 10px 12px; border-radius: 5px; font-size: 14px; color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.category-btn::before {
  content: ""; position: absolute; left: -12px; top: 20%; bottom: 20%; width: 3px;
  background: var(--gold); border-radius: 3px;
  transform: scaleY(0); transform-origin: center; opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.category-btn.active { background: rgba(242, 204, 84, 0.1); color: var(--text); font-weight: 400; }
.category-btn.active::before { transform: scaleY(1); opacity: 1; }
.category-btn:not(.active):hover {
  background: var(--bg-soft); color: var(--text); transform: translateX(4px);
}
.category-btn:not(.active):hover::before {
  transform: scaleY(0.55); opacity: 1; background: var(--text-faint);
}
.cat-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cat-icon svg { width: 16px; height: 16px; }
.category-btn:hover .cat-icon { transform: scale(1.2) rotate(-8deg); }

.promo-slider { border-radius: var(--radius-md); overflow: hidden; }
.promo-track { display: flex; transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.promo-slide {
  flex: 0 0 100%; padding: 36px 24px; text-align: center;
  min-height: 380px;
  color: #e3ffff; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.promo-slide > * { opacity: 0; transform: translateY(16px); }
.promo-slide.slide-active > * { animation: promo-fade-up 0.5s ease forwards; }
.promo-slide.slide-active > *:nth-child(1) { animation-delay: 0.05s; }
.promo-slide.slide-active > *:nth-child(2) { animation-delay: 0.12s; }
.promo-slide.slide-active > *:nth-child(3) { animation-delay: 0.19s; }
.promo-slide.slide-active > *:nth-child(4) { animation-delay: 0.26s; }
@keyframes promo-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.telegram-promo {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.15), transparent 60%),
    linear-gradient(160deg, #33bcf6, #0e75a1);
}
.promo-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 10px; }
.telegram-promo h4 { font-size: 20px; line-height: 1.3; color: #fff; }
.telegram-promo p { font-size: 14px; color: rgba(227,255,255,0.85); margin-bottom: 16px; }

.vote-promo {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.15), transparent 60%),
    linear-gradient(160deg, #6fdf8f, #1c8f4f);
}
.vote-promo h4 { font-size: 20px; line-height: 1.3; color: #fff; margin-bottom: 10px; }
.vote-promo p { font-size: 14px; color: rgba(227,255,255,0.85); margin-bottom: 16px; }
.btn-vote { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-vote:hover { background: rgba(255, 255, 255, 0.28); }
.btn-vote .arrow { font-size: 16px; }
.btn-telegram, .btn-vote { margin-top: auto; }

.promo-dots { display: flex; justify-content: center; gap: 6px; padding: 14px 0; transition: background 0.4s ease; }
.promo-dots.dots-telegram { background: #0e75a1; }
.promo-dots.dots-vote { background: #1c8f4f; }
.promo-dot { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); transition: background 0.2s, width 0.2s; }
.promo-dot.active { background: #fff; width: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image {
  aspect-ratio: 1; border-radius: 14px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  overflow: hidden; position: relative;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-discount-badge {
  position: absolute; top: 8px; right: 8px; background: var(--danger, #dc2626);
  color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px;
  line-height: 1.4;
}
.product-card h4 { font-size: 15px; margin-bottom: 16px; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border-soft); padding-top: 16px;
}
.product-footer strong { font-size: 18px; font-weight: 500; }
.product-price { display: flex; flex-direction: column; gap: 2px; }
.product-price-old { font-size: 12px; font-weight: 400; color: var(--text-faint); }
.product-price strong { color: var(--text); }

.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--text-light); font-size: 14px; }

/* Info / Rules / FAQ */
.info, .rules, .faq { margin-top: 64px; }
.info h2, .rules h2, .faq h2 { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 24px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.info-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.info-icon { font-size: 32px; display: block; margin-bottom: 16px; }
.info-item h4 { font-size: 16px; margin-bottom: 8px; }
.info-item p { font-size: 13px; }

.rules-list {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 32px 32px 52px; display: flex; flex-direction: column; gap: 16px;
}
.rules-list li { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px;
}
.faq-item summary { cursor: pointer; font-size: 15px; font-weight: 400; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; margin-right: 12px; color: var(--gold-accent); font-weight: 600; }
.faq-item[open] summary::before { content: "–"; }
.faq-item p { font-size: 13px; margin-top: 12px; padding-left: 24px; }
.faq-item a { color: var(--gold-accent); text-decoration: underline; }

/* Footer */
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-text { font-size: 20px; font-weight: 600; }
.footer-brand p { font-size: 11px; color: var(--text-faint); opacity: 0.8; max-width: 260px; }
.footer-col h4 { font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-light); font-weight: 300; margin-bottom: 12px; }
.footer-col a:hover { color: var(--text); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials .social-round {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.25s ease;
}
.social-round svg, .social-round img {
  width: 18px; height: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-socials .social-round:hover { transform: translateY(-4px) scale(1.1); }
.footer-socials .social-round:hover svg,
.footer-socials .social-round:hover img { transform: rotate(-10deg) scale(1.12); }
.footer-socials .social-round:active { transform: translateY(-1px) scale(0.94); }
.social-round.discord { background: rgba(88, 101, 242, 0.15); color: var(--discord); }
.social-round.discord:hover { background: rgba(88, 101, 242, 0.28); box-shadow: 0 8px 18px rgba(88, 101, 242, 0.35); }
.social-round.telegram { background: rgba(77, 196, 240, 0.15); color: var(--telegram); }
.social-round.telegram:hover { background: rgba(77, 196, 240, 0.28); box-shadow: 0 8px 18px rgba(77, 196, 240, 0.35); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; }
.footer-bottom small { font-size: 12px; color: var(--text-faint); }

/* Back to top (mobile only) */
.back-to-top {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--gold); color: var(--gold-dark); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 768px) {
  .back-to-top { display: flex; }
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1d1d1f; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Buy modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: modal-overlay-in 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes modal-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.buy-modal {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 40px);
  overflow-y: auto; background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  animation: modal-pop-in 0.32s cubic-bezier(0.25, 1.1, 0.4, 1.2);
}
@keyframes modal-pop-in {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text-light);
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.buy-modal-image {
  width: 96px; height: 96px; border-radius: 16px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.buy-modal-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.buy-modal-glyph { font-size: 48px; font-weight: 600; }
.buy-modal h3 { font-size: 18px; margin-bottom: 8px; }
.buy-modal-sub { font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.buy-modal-promo-info {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px; padding: 10px 12px;
  animation: promo-info-in 0.25s ease;
}
.buy-modal-promo-info[hidden] { display: none; }
@keyframes promo-info-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.buy-modal-promo-info-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, 0.18); color: var(--success);
}
.buy-modal-promo-info-icon svg { width: 14px; height: 14px; }
.buy-modal-promo-info-body { min-width: 0; }
.buy-modal-promo-info-title { display: block; font-size: 12px; font-weight: 600; color: var(--success); }
.buy-modal-promo-info-price { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.buy-modal-promo-info-price s { color: var(--text-faint); margin-right: 5px; }
.buy-modal-promo-info-price strong { color: var(--text); font-weight: 600; }
.buy-modal label {
  align-self: flex-start; font-size: 13px; font-weight: 400; color: var(--text);
  margin-top: 12px; margin-bottom: 8px;
}
.buy-modal input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); font-family: inherit; font-size: 14px; color: var(--text);
}
.buy-modal input:focus { outline: none; border-color: var(--gold); }
.buy-modal-label {
  align-self: flex-start; font-size: 13px; color: var(--text-muted); margin-top: 16px; margin-bottom: 10px;
}
.payment-methods { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.payment-method {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 12px; color: var(--text-light);
}
.payment-method .payment-icon { display: flex; align-items: center; justify-content: center; }
.payment-method .payment-icon svg { width: 22px; height: 22px; }
.payment-method.active { background: rgba(242, 204, 84, 0.15); border-color: var(--gold); color: var(--gold-accent); }
.payment-method:disabled { opacity: 0.5; cursor: not-allowed; }
.buy-modal .btn.full { margin-top: 4px; }
.buy-modal-disclaimer { display: block; font-size: 11px; color: var(--text-faint); margin-top: 14px; line-height: 1.5; }
#buyModalForm {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
#buyModalForm[hidden] { display: none; }
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
}
.btn-outline:hover { background: var(--bg-soft); color: var(--text); }
.buy-modal-crypto {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding-top: 8px;
}
.buy-modal-crypto[hidden] { display: none; }
.buy-modal-crypto-status {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text);
}
.buy-modal-crypto-status.is-success { color: var(--success); }
.buy-modal-crypto-status.is-error { color: var(--danger); }
.buy-modal-crypto-spinner {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); border-top-color: var(--gold);
  animation: crypto-spin 0.8s linear infinite;
}
@keyframes crypto-spin { to { transform: rotate(360deg); } }
.buy-modal-crypto-amount { font-size: 13px; color: var(--text-muted); }
.buy-modal-crypto-amount strong { color: var(--text); font-weight: 600; }

/* Rules page */
.rules-hero {
  padding: 48px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.rules-hero .hero-badge { align-self: center; }
.rules-hero h1 { font-size: 36px; letter-spacing: -0.5px; }
.rules-hero p { max-width: 560px; font-size: 15px; }

.rules-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  align-items: start; padding-bottom: 64px;
}
.rules-nav {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 12px; box-shadow: var(--shadow);
}
.rules-nav a {
  position: relative; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.rules-nav a::before {
  content: ""; position: absolute; left: -8px; top: 20%; bottom: 20%; width: 3px;
  background: var(--gold); border-radius: 3px;
  transform: scaleY(0); transform-origin: center; opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.rules-nav a:hover { background: var(--bg-soft); color: var(--text); transform: translateX(4px); }
.rules-nav a:hover::before { transform: scaleY(0.55); opacity: 1; background: var(--text-faint); }
.rules-nav a.active { background: rgba(242, 204, 84, 0.15); color: var(--gold-accent); font-weight: 500; }
.rules-nav a.active::before { transform: scaleY(1); opacity: 1; }

.rules-content { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.rules-block h2 { font-size: 24px; }
.rules-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.rules-updated { font-size: 12px; font-weight: 300; color: var(--text-faint); white-space: nowrap; }
.rules-block { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }

.rule-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 18px 20px; transition: box-shadow 0.15s, transform 0.15s;
}
.rule-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.rule-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.rule-num {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--gold-accent);
  background: rgba(242, 204, 84, 0.15); padding: 3px 8px; border-radius: 6px;
}
.rule-head h3 { font-size: 15px; font-weight: 500; }
.rule-desc { font-size: 14px; line-height: 1.6; }
.rule-desc a { color: var(--gold-accent); text-decoration: underline; }
.rule-penalty {
  display: inline-flex; margin-top: 10px; font-size: 12px; font-weight: 500;
  color: var(--danger); background: rgba(220, 38, 38, 0.08);
  padding: 5px 10px; border-radius: 6px;
}

.rules-note-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rules-note-list p { font-size: 14px; line-height: 1.6; }

.mod-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mod-chip { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--bg-soft); color: var(--text-muted); }
.mod-chip.banned { background: rgba(220, 38, 38, 0.08); color: var(--danger); }
.mod-chip.allowed { background: rgba(34, 197, 94, 0.1); color: #16803c; }

.rule-sublist { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.rule-sublist strong { display: block; font-size: 13px; margin-bottom: 4px; }
.rule-sublist p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Programs block */
.programs-section { padding-bottom: 64px; scroll-margin-top: 96px; }
.programs-card { padding: 0; overflow: hidden; }
.programs-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--text);
}
.programs-title { display: flex; align-items: center; gap: 8px; }
.programs-x { color: var(--text-faint); font-weight: 400; }
.programs-chevron { width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.2s ease; }
.programs-card.collapsed .programs-chevron { transform: rotate(-180deg); }
.programs-body {
  max-height: 8000px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.05s;
}
.programs-card.collapsed .programs-body {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.programs-body-inner { padding: 0 24px 24px; }
.programs-warning {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(242, 204, 84, 0.12); border: 1px solid rgba(242, 204, 84, 0.35);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 20px;
}
.programs-warning p { font-size: 13px; line-height: 1.6; color: var(--text); }
.warning-link { color: var(--gold-accent); font-weight: 600; text-decoration: underline; }
.warning-link:hover { color: var(--danger); }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.program-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-soft);
  transition: background 0.15s, border-color 0.15s;
}
.program-item:hover { background: var(--white); border-color: var(--gold); }
.program-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: rgba(88, 101, 242, 0.12); color: var(--discord);
  display: flex; align-items: center; justify-content: center;
}
.program-icon svg { width: 18px; height: 18px; }
.program-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.program-info strong { font-size: 13px; font-weight: 600; }
.program-info small {
  font-size: 11px; color: var(--text-light); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.program-arrow { flex-shrink: 0; font-size: 16px; color: var(--text-faint); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .social-card, .status-card { flex: 1 1 220px; }
  .cards-row { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-wrap { grid-template-columns: auto 1fr; }
  .main-nav { display: none; }
  .nav-actions { justify-self: end; align-items: center; }
  .burger { display: flex; }
  .hero-banner h1 { font-size: 34px; }
  .hero-side { flex-direction: column; }
  .social-card, .status-card { flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .rules-list { padding: 24px 24px 24px 40px; }
  .programs-grid { grid-template-columns: 1fr; }
  .search-panel {
    position: fixed; left: 16px; right: 16px; top: 88px;
    width: auto; max-width: none;
  }
  .social-card { padding: 12px 14px; gap: 10px; border-radius: 14px; }
  .social-icon { width: 32px; height: 32px; border-radius: 10px; }
  .social-icon svg, .social-icon img { width: 16px; height: 16px; }
  .social-text strong { font-size: 13px; }
  .social-text small { font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 10px; }
  .product-card h4 { font-size: 13px; }
  .product-footer strong { font-size: 15px; }
  .product-footer .btn.small { padding: 7px 10px; font-size: 12px; }
  .rules-nav {
    flex-wrap: nowrap; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 6px; padding: 8px;
  }
  .rules-nav::-webkit-scrollbar { display: none; }
  .rules-nav a {
    flex-shrink: 0; white-space: nowrap; padding: 8px 14px; font-size: 13px;
  }
  .rules-nav a::before { display: none; }
  .rules-nav a:hover { transform: none; }
}
/* Mod checker */
.modchecker-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.modchecker-desc strong { color: var(--text); }

.modchecker-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 32px 20px; border-radius: var(--radius-md, 12px);
  border: 1.5px dashed var(--border); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.modchecker-drop:hover, .modchecker-drop.is-drag { border-color: var(--gold); background: rgba(242, 204, 84, 0.06); }
.modchecker-drop-icon { color: var(--text-light); margin-bottom: 4px; }
.modchecker-drop-icon svg { width: 26px; height: 26px; }
.modchecker-drop strong { font-size: 14px; font-weight: 500; color: var(--text); }
.modchecker-drop small { font-size: 12px; color: var(--text-light); }

.modchecker-results { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }

.modchecker-loading { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; padding: 10px 4px; }
.modchecker-spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border);
  border-top-color: var(--gold); animation: modchecker-spin 0.7s linear infinite; flex: none;
}
@keyframes modchecker-spin { to { transform: rotate(360deg); } }

.modchecker-card {
  border-radius: var(--radius-md, 12px); border: 1.5px solid var(--border);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.modchecker-card--success { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.06); }
.modchecker-card--warning { border-color: rgba(217, 119, 6, 0.5); background: rgba(217, 119, 6, 0.06); }
.modchecker-card--danger { border-color: rgba(220, 38, 38, 0.5); background: rgba(220, 38, 38, 0.06); }

.modchecker-card-head { display: flex; align-items: flex-start; gap: 12px; }
.modchecker-card-icon { flex: none; width: 28px; height: 28px; }
.modchecker-card--success .modchecker-card-icon { color: var(--success); }
.modchecker-card--warning .modchecker-card-icon { color: #d97706; }
.modchecker-card--danger .modchecker-card-icon { color: var(--danger); }
.modchecker-card-icon svg { width: 100%; height: 100%; }
.modchecker-card-title { flex: 1; min-width: 0; }
.modchecker-card-title strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.modchecker-card--success .modchecker-card-title strong { color: var(--success); }
.modchecker-card--warning .modchecker-card-title strong { color: #d97706; }
.modchecker-card--danger .modchecker-card-title strong { color: var(--danger); }
.modchecker-card-title small { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; word-break: break-all; }
.modchecker-report-btn {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-soft);
  background: var(--bg-soft); color: var(--text-muted); font-size: 12px; font-family: inherit;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.modchecker-report-btn:hover { background: var(--border-soft); color: var(--text); border-color: var(--gold); }
.modchecker-report-btn svg { width: 14px; height: 14px; flex: none; }

.modchecker-badge {
  display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 100px;
  font-size: 12px; background: rgba(220, 38, 38, 0.12); color: var(--danger);
}

.modchecker-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--text-light); }

.modchecker-again { margin-top: 4px; }

.modchecker-error {
  border-color: rgba(220, 38, 38, 0.5); background: rgba(220, 38, 38, 0.06); color: var(--danger);
  font-size: 13px; padding: 12px 14px; border-radius: var(--radius-md, 12px); border-width: 1.5px; border-style: solid;
}

.modchecker-list { display: flex; flex-direction: column; gap: 14px; }
.modchecker-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.modchecker-pager-btn {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 13px; font-family: inherit; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.modchecker-pager-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--text); }
.modchecker-pager-btn.active { background: var(--gold); color: var(--gold-dark); border-color: var(--gold); font-weight: 600; }
.modchecker-pager-btn:disabled { opacity: 0.35; cursor: default; }
