/* TonPlay — Official Mirror */
:root {
  --gold: #f5c518;
  --gold2: #ffd700;
  --blue: #0088cc;
  --ton: #0098ea;
  --dark: #0a0a12;
  --dark2: #0f0f1e;
  --dark3: #15152a;
  --card: #1a1a2e;
  --card2: #1e1e38;
  --text: #e8e8f0;
  --muted: #8888aa;
  --green: #00d084;
  --red: #ff4757;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated BG */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
@media(min-width:769px){
  #bg-canvas { opacity: 1; }
}

.page-wrap {
  position: relative;
  z-index: 1;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,18,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,152,234,0.2);
  padding: 0 20px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--ton); }
.nav-cta {
  background: linear-gradient(135deg, var(--ton), #006bb3);
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,152,234,0.4) !important; }

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,152,234,0.15);
  border: 1px solid rgba(0,152,234,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ton);
  margin-bottom: 24px;
}
.hero-badge span { width:6px; height:6px; background:var(--ton); border-radius:50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }
.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--ton); }
.hero h1 .gold { color: var(--gold); }
.hero-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary {
  background: linear-gradient(135deg, var(--ton), #0066aa);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,152,234,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,152,234,0.5); }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e6a000);
  color: #000;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(245,197,24,0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,197,24,0.5); }

/* STATS ROW */
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--ton); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(135deg, rgba(0,152,234,0.12), rgba(245,197,24,0.08));
  border: 1px solid rgba(0,152,234,0.3);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 auto 50px;
  max-width: 1200px;
}
.promo-text h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.promo-text p { color: var(--muted); font-size: 14px; }
.promo-code {
  background: rgba(245,197,24,0.12);
  border: 1.5px dashed var(--gold);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold);
  cursor: pointer;
  transition: all .2s;
  user-select: all;
}
.promo-code:hover { background: rgba(245,197,24,0.2); transform: scale(1.02); }

/* SECTION WRAPPER */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,152,234,0.3); box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.card-icon { font-size: 32px; margin-bottom: 14px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* BONUS CARDS */
.bonus-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
}
.bonus-card:hover { transform: translateY(-4px); border-color: rgba(0,152,234,0.4); }
.bonus-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--card), rgba(245,197,24,0.08));
}
.bonus-card.featured::before {
  content: '⭐ ХИТ';
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
}
.bonus-amount { font-size: 36px; font-weight: 900; color: var(--ton); margin: 12px 0 8px; }
.bonus-amount.gold { color: var(--gold); }
.bonus-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.bonus-tag {
  display: inline-block;
  background: rgba(0,152,234,0.15);
  color: var(--ton);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* GAMES */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(0,152,234,0.3); }
.game-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--card2), var(--dark3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  overflow: hidden;
}
.game-label {
  padding: 12px 14px;
}
.game-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.game-provider { font-size: 12px; color: var(--muted); }
.game-rtp {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,208,132,0.2);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
}
.faq-q {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after { content: '+'; color: var(--ton); font-size: 20px; flex-shrink: 0; transition: .2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 12px;
}
.faq-item.open .faq-a { display: block; }

/* SEO BLOCK */
.seo-block {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  margin-top: 50px;
}
.seo-block h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.seo-block h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--ton); }
.seo-block p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 10px; }
.seo-block a { color: var(--ton); text-decoration: none; }
.seo-block a:hover { text-decoration: underline; }
.seo-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.seo-key {
  background: rgba(0,152,234,0.1);
  border: 1px solid rgba(0,152,234,0.2);
  color: var(--ton);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
}
.seo-key:hover { background: rgba(0,152,234,0.2); }

/* STEPS */
.steps { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.step {
  flex: 1;
  min-width: 200px;
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--ton);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* PAYMENTS */
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.pay-item {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* REVIEWS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;
  transition: .2s;
}
.review-card:hover { border-color: rgba(0,152,234,0.3); transform: translateY(-2px); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ton), #003366);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.review-name { font-size: 15px; font-weight: 700; }
.review-meta { font-size: 12px; color: var(--muted); }
.review-stars { color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.review-text { font-size: 14px; color: var(--muted); line-height: 1.6; }
.review-date { font-size: 12px; color: rgba(136,136,170,0.6); margin-top: 10px; }
.review-win {
  display: inline-block;
  background: rgba(0,208,132,0.15);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
}

/* FOOTER */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: .2s;
}
.footer-col a:hover { color: var(--ton); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(136,136,170,0.5);
  line-height: 1.7;
}

/* CHAT */
#chat-toggle {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  background: var(--ton);
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,152,234,0.4);
  transition: .2s;
}
#chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,152,234,0.5); }
#chat-badge {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
#chat-window {
  position: fixed;
  bottom: 80px; right: 24px;
  width: 320px;
  max-height: 420px;
  background: var(--card);
  border: 1px solid rgba(0,152,234,0.3);
  border-radius: 16px;
  z-index: 999;
  display: none;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  overflow: hidden;
}
#chat-window.open { display: flex; }
#chat-header {
  background: linear-gradient(135deg, var(--ton), #0055aa);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chat-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  background: var(--dark3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 88%;
}
.chat-msg-name { font-weight: 700; font-size: 12px; color: var(--ton); margin-bottom: 2px; }
.chat-msg-country { font-size: 11px; color: var(--muted); }

/* POPUP */
#popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#popup.show { opacity: 1; pointer-events: auto; }
#popup-box {
  background: var(--card);
  border: 1px solid rgba(0,152,234,0.4);
  border-radius: 20px;
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popIn .3s ease;
}
@keyframes popIn { from{transform:scale(.8);opacity:0} to{transform:scale(1);opacity:1} }
#popup-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
#popup-box .popup-icon { font-size: 48px; margin-bottom: 16px; }
#popup-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
#popup-box p { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
#popup-promo {
  background: rgba(245,197,24,0.1);
  border: 1.5px dashed var(--gold);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
}

/* TG NOTIFY */
#tg-notify {
  position: fixed;
  top: 70px; right: -280px;
  z-index: 1500;
  background: var(--card);
  border: 1px solid rgba(0,152,234,0.3);
  border-radius: 10px;
  padding: 8px 12px;
  width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: right .4s ease;
}
#tg-notify.show { right: 12px; }
#tg-notify-icon { font-size: 18px; flex-shrink: 0; }
#tg-notify-text { flex: 1; }
#tg-notify-text strong { display: block; font-size: 12px; margin-bottom: 1px; }
#tg-notify-text span { font-size: 11px; color: var(--muted); }
#tg-notify-close { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 0; }

/* ONLINE COUNTER */
#online-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,208,132,0.1);
  border: 1px solid rgba(0,208,132,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 20px;
}
#online-counter::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* RATING BAR */
.rating-bar { margin: 8px 0; }
.rating-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.rating-label { width: 30px; color: var(--muted); text-align: right; flex-shrink: 0; }
.rating-track { flex: 1; height: 6px; background: var(--dark3); border-radius: 3px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.rating-count { width: 30px; color: var(--muted); font-size: 12px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 28px; }
  .promo-banner { flex-direction: column; text-align: center; }
  .section { padding: 40px 16px; }
  .footer-top { flex-direction: column; }
  #chat-window { width: calc(100vw - 32px); right: 16px; }
}

/* Copy protection */
.noselect { user-select: none; }

/* ─── REFERRAL BLOCK ─────────────────────────────────── */
#ref-banner {
  position: fixed;
  bottom: 90px;
  left: 20px;
  z-index: 990;
  width: 300px;
  background: linear-gradient(135deg, #0f0f24, #1a1a3a);
  border: 1px solid rgba(245,197,24,0.4);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  animation: slideInLeft .5s ease;
}
@keyframes slideInLeft {
  from { transform: translateX(-340px); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}
#ref-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(245,197,24,0.2); }
#ref-banner-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none; border: none;
  color: var(--muted); font-size: 18px; cursor: pointer;
  line-height: 1;
}
.ref-banner-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.ref-banner-icon { font-size: 28px; flex-shrink: 0; }
.ref-banner-title { font-size: 14px; font-weight: 800; line-height: 1.3; }
.ref-banner-title span { color: var(--gold); }
.ref-banner-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.ref-banner-levels {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.ref-lvl {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: .2s;
}
.ref-lvl.active { background: rgba(245,197,24,0.12); border-color: rgba(245,197,24,0.4); }
.ref-lvl-num { font-size: 16px; font-weight: 900; color: var(--gold); }
.ref-lvl-label { color: var(--muted); font-size: 10px; margin-top: 2px; }
.ref-banner-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), #e6a000);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.ref-banner-btn:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(245,197,24,0.4); }

/* ─── REFERRAL POPUP ─────────────────────────────────── */
#ref-popup {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#ref-popup.show { opacity: 1; pointer-events: auto; }
#ref-popup-box {
  background: var(--card);
  border: 1px solid rgba(245,197,24,0.35);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 460px;
  width: 90%;
  position: relative;
  animation: popIn .3s ease;
  text-align: center;
}
#ref-popup-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer;
}
.ref-popup-icon { font-size: 52px; margin-bottom: 14px; }
.ref-popup-title { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.ref-popup-title span { color: var(--gold); }
.ref-popup-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.ref-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.ref-tier {
  background: var(--dark3);
  border-radius: 12px;
  padding: 14px 8px;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: .2s;
}
.ref-tier.best {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--dark3), rgba(245,197,24,0.08));
}
.ref-tier.best::before {
  content: '🔥';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 16px;
}
.ref-tier-friends { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ref-tier-reward { font-size: 20px; font-weight: 900; color: var(--ton); }
.ref-tier-reward.gold { color: var(--gold); }
.ref-tier-extra { font-size: 11px; color: var(--muted); margin-top: 4px; }

.ref-link-box {
  background: var(--dark3);
  border: 1px dashed rgba(0,152,234,0.4);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ton);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  word-break: break-all;
  text-align: left;
}
.ref-copy-btn {
  background: var(--ton);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: .2s;
}
.ref-copy-btn:hover { background: #006bb3; }

.ref-share-btns { display: flex; gap: 8px; justify-content: center; }
.ref-share-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.ref-share-btn.tg { background: #229ed9; color: #fff; }
.ref-share-btn.vk { background: #4a76a8; color: #fff; }
.ref-share-btn:hover { transform: translateY(-2px); opacity: .9; }

/* notification dot on ref banner */
.ref-pulse {
  position: absolute;
  top: -4px; right: -4px;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  #ref-banner { width: calc(100vw - 40px); }
}

/* ─── WINS TICKER ─────────────────────────────────────── */
#wins-ticker {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(90deg, rgba(10,10,18,0) 0%, rgba(10,10,18,0.97) 4%, rgba(10,10,18,0.97) 96%, rgba(10,10,18,0) 100%);
  border-bottom: 1px solid rgba(245,197,24,0.15);
  border-top: 1px solid rgba(245,197,24,0.08);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
#wins-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
  will-change: transform;
}
#wins-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.win-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 13px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.win-flag { font-size: 14px; flex-shrink: 0; }
.win-name { color: var(--muted); font-size: 12px; }
.win-game { color: var(--text); font-weight: 600; font-size: 12px; }
.win-amount { font-weight: 900; font-size: 13px; }
.win-amount.big  { color: #ff4757; }
.win-amount.mid  { color: var(--gold); }
.win-amount.norm { color: var(--green); }
.win-mult { font-size: 11px; color: var(--muted); }
.win-dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .5;
}

/* pop-in new win notification */
#win-popup-live {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 995;
  width: 260px;
  background: var(--card);
  border: 1px solid rgba(0,208,132,0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transform: translateX(300px);
  transition: transform .4s ease;
  pointer-events: none;
}
#win-popup-live.show { transform: translateX(0); }
.wpl-icon { font-size: 24px; flex-shrink: 0; }
.wpl-text { flex: 1; }
.wpl-name { font-size: 12px; color: var(--muted); }
.wpl-amount { font-size: 16px; font-weight: 900; color: var(--green); }
.wpl-game { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   MOBILE FULL ADAPTATION
   ═══════════════════════════════════════════════════════ */

/* Hamburger menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(10,10,18,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 20px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  transition: .2s;
}
.nav-mobile-menu a:hover { background: rgba(255,255,255,0.06); }
.nav-mobile-menu a.nav-cta {
  background: linear-gradient(135deg, var(--ton), #006bb3);
  color: #fff;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 56px; }

  /* Wins ticker */
  #wins-ticker { top: 56px; }
  .win-item { padding: 0 14px; }
  .win-mult { display: none; }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 30px 16px 20px;
    min-height: auto;
  }
  .hero > div:last-child { display: none; } /* hide phone mockup */
  .hero h1 { font-size: 28px; letter-spacing: -.5px; }
  .hero-desc { font-size: 15px; }
  .hero-btns { flex-direction: column; }
  .hero-btns a { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { gap: 16px; justify-content: space-around; }
  .stat-num { font-size: 22px; }

  /* Promo banner */
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    margin: 0 12px 30px;
  }
  .promo-code { font-size: 26px; letter-spacing: 4px; }
  .promo-banner .btn-primary { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: 32px 16px; }
  .section-title { font-size: 22px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 18px; }

  /* Bonus cards */
  .bonus-card { padding: 20px; }
  .bonus-amount { font-size: 28px; }

  /* Games grid */
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-name { font-size: 12px; }
  .game-provider { font-size: 11px; }

  /* Steps */
  .steps { flex-direction: column; gap: 12px; }
  .step { min-width: auto; }

  /* Payments */
  .payments-grid { gap: 8px; }
  .pay-item { font-size: 13px; padding: 10px 14px; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; gap: 14px; }

  /* SEO block */
  .seo-block { padding: 20px 16px; }
  .seo-keys { gap: 6px; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-col { min-width: auto; }

  /* Chat */
  #chat-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 72px;
    max-height: 360px;
  }
  #chat-toggle { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }

  /* Ref banner */
  #ref-banner {
    width: calc(100vw - 24px);
    left: 12px;
    bottom: 72px;
  }

  /* Win popup live */
  #win-popup-live {
    right: 12px;
    bottom: 72px;
    width: calc(100vw - 100px);
  }

  /* Popups */
  #popup-box { padding: 24px 18px; }
  #ref-popup-box { padding: 24px 16px; }
  .ref-tiers { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .ref-tier-reward { font-size: 15px; }

  /* Promo code big */
  #popup-promo { font-size: 26px; letter-spacing: 3px; }

  /* Hero SEO section */
  .hero-badge { font-size: 12px; padding: 5px 12px; }

  /* Online counter */
  #online-counter { font-size: 12px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 24px; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .ref-tiers { grid-template-columns: 1fr; }
  .ref-share-btns { flex-direction: column; }
}

/* ─── POPUP REF BLOCK ────────────────────────────────── */
.popup-ref-block {
  background: rgba(0,152,234,0.07);
  border: 1px solid rgba(0,152,234,0.2);
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}
.popup-ref-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  text-align: center;
}
.popup-ref-tiers {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.popup-ref-tier {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.popup-ref-tier.best {
  border-color: var(--gold);
  background: rgba(245,197,24,0.06);
}
.popup-ref-num {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}
.popup-ref-reward {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}
.popup-ref-reward.gold {
  color: var(--gold);
}
.popup-ref-invite-btn {
  width: 100%;
  padding: 9px;
  background: linear-gradient(90deg, var(--accent), #006bb3);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.popup-ref-invite-btn:hover { opacity: .85; }

/* ─── POPUP PROMO ROW (copy icon only) ──────────────── */
.popup-promo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.popup-promo-big {
  flex: 1;
  font-size: 22px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  text-align: center;
  letter-spacing: 3px;
}
.popup-copy-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,197,24,0.12);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.popup-copy-icon:hover { background: rgba(245,197,24,0.22); }

/* ─── POPUP REF SHARE BUTTONS ────────────────────────── */
.popup-ref-share {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.popup-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  color: #fff;
}
.popup-share-btn:hover { opacity: .85; }
.popup-share-btn.tg  { background: #0098ea; }
.popup-share-btn.vk  { background: #4a76a8; }
.popup-share-btn.wa  { background: #25d366; }

/* ─── HIDE LEFT REF BANNER ───────────────────────────── */
#ref-banner { display: none !important; }

/* ─── POPUP PROMO + SHARE (v3) ───────────────────────── */
.pp-promo-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}
.pp-promo-code {
  flex: 1;
  background: rgba(245,197,24,0.08);
  border: 2px dashed var(--gold);
  border-radius: 10px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
  text-align: center;
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
}
.pp-copy-btn {
  width: 48px;
  min-width: 48px;
  background: rgba(245,197,24,0.12);
  border: 2px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  padding: 0;
}
.pp-copy-btn:hover { background: rgba(245,197,24,0.25); }
.pp-copy-icon { line-height: 1; pointer-events: none; }

.pp-ref-block {
  background: rgba(0,152,234,0.07);
  border: 1px solid rgba(0,152,234,0.2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.pp-ref-title {
  font-size: 13px;
  font-weight: 700;
  color: #a0d8ff;
  text-align: center;
  margin-bottom: 10px;
}
.pp-ref-tiers {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pp-ref-tier {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.pp-ref-best {
  border-color: var(--gold) !important;
  background: rgba(245,197,24,0.06) !important;
}
.pp-ref-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}
.pp-ref-rew {
  font-size: 12px;
  font-weight: 700;
  color: #60b8ff;
  margin-top: 2px;
}
.pp-gold { color: var(--gold) !important; }

.pp-share-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pp-share-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: transform .15s, opacity .15s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pp-share-row button:hover {
  transform: translateY(-2px);
  opacity: .9;
}
.pp-share-row button:active { transform: translateY(0); }
.pp-share-tg { background: linear-gradient(135deg,#0098ea,#006bb3); }
.pp-share-vk { background: linear-gradient(135deg,#4c75a3,#365f8e); }
.pp-share-wa { background: linear-gradient(135deg,#25d366,#1aa851); }
