/* ============================================================
   ROYAL WAGER X - Premium Dark Gold Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-0: #050508;
  --bg-1: #0b0b14;
  --bg-2: #111120;
  --bg-3: #18182e;
  --bg-card: #14142a;
  --bg-card-h: #1c1c38;

  --gold-0: #a0720a;
  --gold-1: #c8920e;
  --gold-2: #e8b42a;
  --gold-3: #f5d060;
  --gold-4: #fff8e1;
  --gold-glow: rgba(232,180,42,0.35);

  --purple-1: #5b1a96;
  --purple-2: #8b2be2;
  --purple-glow: rgba(139,43,226,0.3);

  --green: #00e676;
  --green-dim: rgba(0,230,118,0.15);
  --red: #ff3d57;
  --red-dim: rgba(255,61,87,0.15);
  --blue: #2979ff;
  --orange: #ff9100;

  --text-1: #ffffff;
  --text-2: #c8c8e0;
  --text-3: #7878a0;
  --text-gold: var(--gold-2);

  --border: rgba(255,255,255,0.07);
  --border-gold: rgba(232,180,42,0.3);

  --header-h: 68px;
  --bottom-h: 60px;
  --ticker-h: 34px;
  --sidebar-w: 270px;
  --sidebar-r: 260px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--gold-0); border-radius: 3px; }

/* ══════════════════════════════════════════════
   LOGO SVG STYLES
══════════════════════════════════════════════ */
.logo-wrap { display:flex; align-items:center; gap:10px; cursor:pointer; }
.logo-svg { height: 42px; width: auto; }
.logo-text-main {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3), var(--gold-1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.logo-sub { font-size: 9px; letter-spacing: 3px; color: var(--gold-1); text-transform:uppercase; }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(5,5,8,0.95);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
}

.header-left { display:flex; align-items:center; gap:10px; min-width:200px; }

.user-avatar-wrap {
  width: 40px; height: 40px; border-radius: var(--r-full);
  border: 2px solid var(--gold-2);
  background: linear-gradient(135deg,#5b1a96,#1a1a3e);
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 16px; color: var(--gold-3); cursor:pointer;
  box-shadow: 0 0 12px var(--gold-glow);
  flex-shrink:0;
}
.user-info-wrap { display:flex; flex-direction:column; }
.user-name {
  font-size: 13px; font-weight: 700; color: var(--text-1);
  display:flex; align-items:center; gap:6px;
}
.vip-tag {
  background: linear-gradient(90deg,var(--gold-1),var(--gold-3));
  color: var(--bg-0); font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: var(--r-full);
  display:flex; align-items:center; gap:3px;
}
.user-balance { font-size: 12px; color: var(--gold-3); font-weight:600; display:flex; align-items:center; gap:4px; }
.balance-add {
  width:16px; height:16px; border-radius:var(--r-full); background:var(--gold-2);
  color:var(--bg-0); font-size:10px; font-weight:900;
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
}

.header-center { flex:1; display:flex; justify-content:center; }

.header-right { display:flex; align-items:center; gap:4px; min-width:200px; justify-content:flex-end; }
.h-nav-btn {
  display:flex; flex-direction:column; align-items:center; gap:2px;
  padding: 6px 10px; border-radius: var(--r-sm); cursor:pointer;
  transition: background .2s, color .2s;
  color: var(--text-3); font-size: 11px; position:relative;
}
.h-nav-btn i { font-size: 16px; }
.h-nav-btn:hover { background: var(--bg-3); color: var(--gold-2); }
.h-nav-badge {
  position:absolute; top:4px; right:4px;
  background: var(--red); color:#fff; font-size:8px; font-weight:700;
  width:14px; height:14px; border-radius:var(--r-full);
  display:flex; align-items:center; justify-content:center;
}

/* ══════════════════════════════════════════════
   LAYOUT WRAPPER
══════════════════════════════════════════════ */
.page-wrap {
  display: flex;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bottom-h) + var(--ticker-h));
  min-height: 100vh;
}

/* ── Sidebars ── */
.sidebar-l, .sidebar-r {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.sidebar-r { width: var(--sidebar-r); }

.center-col { flex: 1; min-width: 0; padding: 12px; display:flex; flex-direction:column; gap:14px; }

/* ── Sidebar Card ── */
.s-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.s-card-header { display:flex; align-items:center; justify-content:space-between; }
.s-card-title { font-weight: 700; font-size: 13px; color: var(--gold-2); }
.s-card-icon { font-size: 22px; }
.s-card p { font-size: 11px; color: var(--text-2); }

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg,var(--gold-1),var(--gold-3));
  color: var(--bg-0); font-weight: 700; font-size: 12px;
  padding: 8px 16px; border-radius: var(--r-full);
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: 0 4px 14px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--gold-glow); }
.btn-outline {
  background: transparent; color: var(--gold-2);
  border: 1px solid var(--border-gold); font-weight: 600; font-size: 12px;
  padding: 7px 16px; border-radius: var(--r-full);
  transition: background .2s, transform .2s;
}
.btn-outline:hover { background: var(--bg-3); transform: translateY(-1px); }

/* Podium */
.podium-wrap { display:flex; justify-content:center; align-items:flex-end; gap:6px; margin-top:4px; }
.podium-block {
  width: 32px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  display:flex; align-items:center; justify-content:center;
  font-size: 12px; font-weight: 700; color: var(--bg-0);
}
.podium-block.p1 { height:44px; background:var(--gold-2); }
.podium-block.p2 { height:32px; background:#a8a8c0; }
.podium-block.p3 { height:24px; background:#c87533; }

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #1a0a3e 0%, #080818 70%);
  border: 1px solid var(--border-gold);
}
.hero-bg {
  position:absolute; inset:0;
  background-size: cover; background-position:center;
  opacity: 0.35;
}
.hero-overlay {
  position:absolute; inset:0;
  background: radial-gradient(ellipse at 50% 100%, rgba(139,43,226,.4) 0%, transparent 70%),
              linear-gradient(to top, rgba(5,5,8,.9) 0%, transparent 60%);
}
/* Animated particles */
.hero-particles { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.hero-particles span {
  position:absolute; width:3px; height:3px; border-radius:50%;
  background:var(--gold-2); opacity:0;
  animation: particleFloat var(--dur,4s) var(--delay,0s) infinite ease-in-out;
}
@keyframes particleFloat {
  0%   { opacity:0; transform:translateY(100%) scale(0); }
  30%  { opacity:.8; }
  100% { opacity:0; transform:translateY(-120%) scale(1.5); }
}

.hero-content { position:relative; text-align:center; z-index:2; padding:30px 20px; }
.hero-crown { font-size: 36px; margin-bottom:6px; animation: crownBob 3s ease-in-out infinite; }
@keyframes crownBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-badge {
  width: 72px; height: 72px; border-radius: var(--r-full);
  background: linear-gradient(135deg,#1a0a3e,#0b0b20);
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 30px var(--gold-glow), 0 0 60px var(--purple-glow);
  display:flex; align-items:center; justify-content:center;
  font-family:'Cinzel',serif; font-size:26px; font-weight:900;
  color: var(--gold-3); margin:0 auto 10px;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100%{box-shadow:0 0 30px var(--gold-glow),0 0 60px var(--purple-glow)}
  50%{box-shadow:0 0 50px var(--gold-glow),0 0 100px var(--purple-glow)}
}
.hero-title {
  font-family: 'Cinzel',serif; font-weight: 900;
  font-size: clamp(32px,5vw,60px);
  background: linear-gradient(135deg,var(--gold-2),var(--gold-3),var(--gold-1));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  line-height:1; margin-bottom:8px; text-shadow:none;
}
.hero-sub {
  font-size: 13px; letter-spacing: 4px; text-transform:uppercase;
  color: var(--text-2); margin-bottom:18px;
}
.hero-admin-btn {
  position:absolute; top:12px; right:12px; z-index:3;
  background: rgba(255,255,255,0.08); border:1px solid var(--border);
  color:var(--text-3); font-size:11px; padding:5px 10px;
  border-radius:var(--r-sm); cursor:pointer; transition:.2s;
}
.hero-admin-btn:hover { color:var(--gold-2); border-color:var(--border-gold); }

/* ══════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════ */
.sec-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 12px;
}
.sec-title {
  font-family: 'Cinzel',serif; font-weight: 700;
  font-size: 16px; color: var(--gold-2);
  display:flex; align-items:center; gap:8px;
}
.sec-title::before {
  content:''; width:4px; height:20px; background:linear-gradient(to bottom,var(--gold-2),var(--gold-0));
  border-radius:2px;
}
.sec-badge {
  background:var(--red); color:#fff; font-size:8px; font-weight:700;
  padding:2px 6px; border-radius:var(--r-full); animation:badgePulse2 1.5s infinite;
}
@keyframes badgePulse2{0%,100%{opacity:1}50%{opacity:.6}}
.sec-see-all {
  font-size:11px; color:var(--gold-1); cursor:pointer; transition:.2s;
  border-bottom:1px dashed var(--border-gold);
}
.sec-see-all:hover{color:var(--gold-3);}

/* ══════════════════════════════════════════════
   HORIZONTAL SCROLL ROWS
══════════════════════════════════════════════ */
.h-scroll-row {
  display:flex; gap:10px; overflow-x:auto; padding-bottom:4px;
  scrollbar-width:none;
}
.h-scroll-row::-webkit-scrollbar{display:none;}

/* ══════════════════════════════════════════════
   GAME CARDS
══════════════════════════════════════════════ */
.game-card {
  flex-shrink:0;
  width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .25s, border-color .25s;
  position:relative;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--gold-1);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 20px var(--gold-glow);
}
.game-card.featured { border-color:var(--gold-2); box-shadow:0 0 20px var(--gold-glow); }
.game-card.featured::before {
  content:'HOT'; position:absolute; top:8px; right:8px; z-index:2;
  background:var(--red); color:#fff; font-size:8px; font-weight:800;
  padding:2px 6px; border-radius:var(--r-full);
}
.game-card.new-badge::after {
  content:'NEW'; position:absolute; top:8px; right:8px; z-index:2;
  background:var(--green); color:var(--bg-0); font-size:8px; font-weight:800;
  padding:2px 6px; border-radius:var(--r-full);
}

.game-thumb {
  width:100%; height:90px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  position:relative; font-size:36px;
  background-size:cover; background-position:center;
}
.game-thumb-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom,transparent 40%,rgba(20,20,42,.9));
}
.game-thumb-default {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:38px;
}

.game-info { padding:8px 10px; }
.game-name { font-weight:700; font-size:12px; color:var(--text-1); margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-players { font-size:10px; color:var(--text-3); }
.game-players span { color:var(--green); font-weight:600; }

/* ══════════════════════════════════════════════
   SLOTS ROW CARDS (wider)
══════════════════════════════════════════════ */
.slot-card {
  flex-shrink:0; width:160px;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden; cursor:pointer;
  transition:transform .25s var(--spring), box-shadow .25s, border-color .25s;
  position:relative;
}
.slot-card:hover {
  transform:translateY(-5px) scale(1.02);
  border-color:var(--purple-2);
  box-shadow:0 12px 32px rgba(0,0,0,.5), 0 0 20px var(--purple-glow);
}
.slot-thumb {
  width:100%; height:100px;
  display:flex; align-items:center; justify-content:center; font-size:44px;
  background-size:cover; background-position:center; position:relative;
}
.slot-thumb-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom,transparent 50%,var(--bg-card));
}
.slot-info { padding:8px 10px; }
.slot-name { font-weight:700; font-size:12px; color:var(--text-1); }
.slot-rtp { font-size:10px; color:var(--text-3); }
.slot-rtp span { color:var(--gold-2); font-weight:600; }
.jackpot-badge {
  position:absolute; top:8px; left:8px; z-index:2;
  background:linear-gradient(90deg,var(--gold-1),var(--gold-3));
  color:var(--bg-0); font-size:8px; font-weight:800;
  padding:2px 7px; border-radius:var(--r-full);
}

/* ══════════════════════════════════════════════
   AVIATOR CARDS (special)
══════════════════════════════════════════════ */
.aviator-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}
.av-card {
  border-radius:var(--r-lg); overflow:hidden; cursor:pointer;
  border:1px solid var(--border); position:relative;
  transition:transform .25s var(--spring), box-shadow .25s;
  background:var(--bg-card);
  min-height:130px; display:flex; flex-direction:column;
}
.av-card:hover{transform:translateY(-5px);box-shadow:0 12px 32px rgba(0,0,0,.6);}
.av-card-bg {
  position:absolute; inset:0; background-size:cover; background-position:center; opacity:.3;
}
.av-card-content { position:relative; z-index:1; padding:16px; flex:1; display:flex; flex-direction:column; }
.av-icon { font-size:36px; margin-bottom:8px; }
.av-name { font-family:'Cinzel',serif; font-weight:700; font-size:14px; margin-bottom:4px; }
.av-desc { font-size:10px; color:var(--text-2); flex:1; }
.av-multiplier {
  margin-top:10px; background:rgba(0,0,0,.4); border-radius:var(--r-sm);
  padding:4px 8px; font-size:10px; color:var(--gold-2); font-weight:700;
  display:inline-block;
}
.av-tag {
  position:absolute; top:10px; right:10px; z-index:2;
  font-size:8px; font-weight:800; padding:2px 7px; border-radius:var(--r-full);
}

/* ══════════════════════════════════════════════
   ONLINE PLAYERS RIGHT SIDEBAR
══════════════════════════════════════════════ */
.online-panel { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; }
.online-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-bottom:1px solid var(--border);
  background:var(--bg-3);
}
.online-title { font-weight:700; font-size:13px; color:var(--gold-2); display:flex; align-items:center; gap:6px; }
.online-dot { width:8px; height:8px; border-radius:50%; background:var(--green); display:inline-block; animation:dotPulse 1.5s infinite; }
@keyframes dotPulse{0%,100%{box-shadow:0 0 0 0 var(--green-dim)}50%{box-shadow:0 0 0 5px transparent}}
.online-count { font-size:13px; color:var(--green); font-weight:700; }

.player-row {
  display:flex; align-items:center; gap:10px;
  padding:8px 14px; border-bottom:1px solid var(--border); transition:.2s;
}
.player-row:hover{background:var(--bg-3);}
.player-row:last-child{border-bottom:none;}
.p-avatar {
  width:32px; height:32px; border-radius:var(--r-full); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px; color:#fff;
}
.p-name { font-size:12px; font-weight:600; }
.p-balance { font-size:10px; color:var(--gold-2); }
.p-level {
  margin-left:auto; width:28px; height:28px; border-radius:var(--r-full);
  border:2px solid; display:flex; align-items:center; justify-content:center;
  font-size:9px; font-weight:700; flex-shrink:0;
}
.p-status { font-size:8px; color:var(--green); text-align:center; }

.invite-earn-btn {
  width:100%; background:linear-gradient(135deg,var(--purple-1),var(--purple-2));
  color:#fff; font-weight:700; font-size:13px;
  padding:12px; border-radius:var(--r-lg); margin-top:8px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 4px 16px var(--purple-glow);
  transition:transform .2s var(--spring), box-shadow .2s;
}
.invite-earn-btn:hover{transform:translateY(-3px);box-shadow:0 8px 24px var(--purple-glow);}

/* ══════════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════════ */
.bottom-bar {
  position:fixed; bottom:var(--ticker-h); left:0; right:0; z-index:900;
  height:var(--bottom-h);
  background:rgba(5,5,8,.97);
  border-top:1px solid var(--border-gold);
  display:flex; align-items:center;
  backdrop-filter:blur(16px);
}
.bottom-nav-group { display:flex; align-items:center; padding:0 8px; gap:2px; }
.b-nav-btn {
  display:flex; flex-direction:column; align-items:center; gap:1px;
  padding:6px 12px; border-radius:var(--r-sm); cursor:pointer;
  color:var(--text-3); font-size:9px; transition:.2s;
}
.b-nav-btn i{font-size:16px;}
.b-nav-btn:hover{color:var(--gold-2);}
.b-nav-btn.active{color:var(--gold-2);}

.play-now-cta {
  flex:1; display:flex; align-items:center; justify-content:center;
}
.play-now-btn {
  background:linear-gradient(135deg,var(--gold-1),var(--gold-3));
  color:var(--bg-0); font-family:'Cinzel',serif; font-weight:800;
  font-size:14px; padding:0 32px; height:46px; border-radius:var(--r-full);
  display:flex; align-items:center; gap:10px;
  box-shadow:0 4px 20px var(--gold-glow);
  transition:transform .2s var(--spring), box-shadow .2s;
  letter-spacing:.5px;
}
.play-now-btn:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 8px 32px var(--gold-glow);}
.play-sub{font-size:9px;font-family:'Poppins',sans-serif;font-weight:500;opacity:.8;}

.bottom-refer {
  display:flex; align-items:center; gap:8px; padding:0 16px;
  border-left:1px solid var(--border);
}
.bottom-refer-text { font-size:10px; }
.bottom-refer-text .r-title{font-weight:700;color:var(--gold-2);}
.bottom-refer-text .r-sub{color:var(--text-3);}
.invite-sm-btn {
  background:var(--purple-2); color:#fff; font-size:9px; font-weight:700;
  padding:4px 10px; border-radius:var(--r-full); white-space:nowrap; cursor:pointer;
}

.bottom-safe { display:flex; align-items:center; gap:8px; padding:0 16px; border-left:1px solid var(--border); }
.safe-shield { width:32px; height:32px; background:var(--green-dim); border-radius:var(--r-full); display:flex; align-items:center; justify-content:center; color:var(--green); font-size:14px; }
.safe-text .s-title{font-size:10px;font-weight:700;color:var(--green);}
.safe-text .s-sub{font-size:9px;color:var(--text-3);}

/* ══════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════ */
.ticker-bar {
  position:fixed; bottom:0; left:0; right:0; z-index:901;
  height:var(--ticker-h); background:var(--bg-3);
  border-top:1px solid var(--border); overflow:hidden;
  display:flex; align-items:center;
}
.ticker-track {
  display:flex; gap:40px; white-space:nowrap;
  animation:tickerScroll 30s linear infinite;
}
.ticker-track:hover{animation-play-state:paused;}
@keyframes tickerScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.ticker-item { font-size:11px; color:var(--text-2); display:flex; align-items:center; gap:6px; }
.ticker-item i{color:var(--gold-2);}

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,.8); backdrop-filter:blur(8px);
  display:none; align-items:center; justify-content:center;
  animation:fadeIn .25s ease;
}
.modal-overlay.open{display:flex;}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal-box {
  background:var(--bg-2); border:1px solid var(--border-gold);
  border-radius:var(--r-xl); padding:28px;
  width:min(420px,95vw); position:relative;
  animation:slideUp .3s var(--spring);
}
@keyframes slideUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.modal-close {
  position:absolute; top:12px; right:14px;
  font-size:20px; color:var(--text-3); cursor:pointer; transition:.2s;
}
.modal-close:hover{color:var(--text-1);}
.modal-logo { text-align:center; margin-bottom:16px; }
.modal-title { text-align:center; font-family:'Cinzel',serif; font-weight:700; font-size:20px; color:var(--gold-2); }
.modal-sub { text-align:center; font-size:12px; color:var(--text-3); margin-bottom:20px; }
.form-group { margin-bottom:14px; }
.form-label { font-size:12px; font-weight:600; color:var(--text-2); margin-bottom:5px; display:block; }
.form-input {
  width:100%; padding:10px 14px;
  background:var(--bg-3); border:1px solid var(--border);
  border-radius:var(--r-md); color:var(--text-1); font-size:13px;
  transition:border-color .2s;
}
.form-input:focus{outline:none;border-color:var(--gold-1);}
.btn-submit {
  width:100%; background:linear-gradient(135deg,var(--gold-1),var(--gold-3));
  color:var(--bg-0); font-weight:700; font-size:14px;
  padding:12px; border-radius:var(--r-full);
  box-shadow:0 4px 16px var(--gold-glow); transition:transform .2s, box-shadow .2s;
}
.btn-submit:hover{transform:translateY(-2px);box-shadow:0 8px 24px var(--gold-glow);}
.modal-footer { text-align:center; font-size:12px; color:var(--text-3); margin-top:14px; }
.modal-footer a { color:var(--gold-2); cursor:pointer; border-bottom:1px solid var(--border-gold); }

/* ══════════════════════════════════════════════
   SECTION TRANSITION
══════════════════════════════════════════════ */
.section-transition {
  position:fixed; inset:0; z-index:9999;
  background:var(--bg-0); display:none;
  align-items:center; justify-content:center; flex-direction:column; gap:16px;
}
.section-transition.active{display:flex;}
.st-logo { font-family:'Cinzel',serif; font-size:48px; font-weight:900; color:var(--gold-2); }
.st-text { font-size:14px; color:var(--text-2); letter-spacing:3px; }
.st-dots{display:flex;gap:6px;}
.st-dot{width:8px;height:8px;border-radius:50%;background:var(--gold-2);animation:stDot 1.2s infinite;}
.st-dot:nth-child(2){animation-delay:.2s;}
.st-dot:nth-child(3){animation-delay:.4s;}
@keyframes stDot{0%,80%,100%{transform:scale(.5);opacity:.3}40%{transform:scale(1);opacity:1}}

/* ══════════════════════════════════════════════
   SPORTS PAGE
══════════════════════════════════════════════ */
.sports-nav {
  width:200px; flex-shrink:0; padding:12px;
  background:var(--bg-1); border-right:1px solid var(--border);
  overflow-y:auto; height:calc(100vh - var(--header-h));
  position:sticky; top:var(--header-h);
}
.sports-nav-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:var(--r-md); cursor:pointer;
  font-size:13px; font-weight:500; color:var(--text-2);
  transition:.2s; margin-bottom:2px; position:relative;
}
.sports-nav-item:hover{background:var(--bg-3);color:var(--gold-2);}
.sports-nav-item.active{background:linear-gradient(90deg,rgba(232,180,42,.15),transparent);color:var(--gold-2);border-left:3px solid var(--gold-2);}
.sports-nav-item.live-item{color:var(--red);}
.live-count{background:var(--red);color:#fff;font-size:9px;font-weight:700;padding:1px 6px;border-radius:var(--r-full);}

.sports-main { flex:1; padding:12px; display:flex; flex-direction:column; gap:12px; overflow-y:auto; }

.bet-slip-panel {
  width:280px; flex-shrink:0; padding:12px;
  background:var(--bg-1); border-left:1px solid var(--border);
  overflow-y:auto; height:calc(100vh - var(--header-h));
  position:sticky; top:var(--header-h);
}
.bet-slip-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}
.bet-slip-title{font-weight:700;font-size:14px;color:var(--gold-2);}
.my-bets-tab{font-size:12px;color:var(--text-3);cursor:pointer;transition:.2s;}
.my-bets-tab:hover{color:var(--gold-2);}

.bet-item {
  background:var(--bg-3); border:1px solid var(--border);
  border-radius:var(--r-md); padding:10px 12px; margin-bottom:8px;
  position:relative;
}
.bet-item-close { position:absolute; top:8px; right:8px; font-size:14px; color:var(--text-3); cursor:pointer; }
.bet-match { font-size:11px; color:var(--text-3); }
.bet-team { font-size:13px; font-weight:600; margin:2px 0; }
.bet-odd { font-size:16px; font-weight:700; color:var(--gold-2); }

.bet-total-row { display:flex; justify-content:space-between; font-size:12px; margin:8px 0 4px; }
.bet-total-row .label{color:var(--text-3);}
.bet-total-row .value{font-weight:700;color:var(--text-1);}
.max-win { color:var(--green); font-weight:700; font-size:14px; }

.place-bet-btn {
  width:100%; background:linear-gradient(135deg,var(--gold-1),var(--gold-3));
  color:var(--bg-0); font-weight:800; font-size:14px;
  padding:13px; border-radius:var(--r-lg);
  box-shadow:0 4px 16px var(--gold-glow); transition:transform .2s;
}
.place-bet-btn:hover{transform:translateY(-2px);}

.live-match-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:14px; cursor:pointer;
  transition:border-color .2s;
}
.live-match-card:hover{border-color:var(--border-gold);}
.lm-league { font-size:10px; color:var(--text-3); display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.live-pill { background:var(--red); color:#fff; font-size:8px; font-weight:700; padding:1px 6px; border-radius:var(--r-full); animation:badgePulse2 1s infinite; }
.lm-teams { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.lm-team { display:flex; flex-direction:column; align-items:center; gap:4px; }
.lm-team-icon { font-size:24px; }
.lm-team-name { font-size:11px; font-weight:600; }
.lm-score { font-size:22px; font-weight:800; color:var(--gold-2); }
.lm-time { font-size:10px; color:var(--text-3); }
.lm-odds { display:flex; gap:6px; }
.odd-btn {
  flex:1; background:var(--bg-3); border:1px solid var(--border);
  border-radius:var(--r-sm); padding:6px; text-align:center;
  font-size:11px; font-weight:700; cursor:pointer; transition:.2s;
}
.odd-btn:hover{background:var(--border-gold);color:var(--gold-2);border-color:var(--gold-1);}
.odd-btn.selected{background:var(--gold-1);color:var(--bg-0);}
.odd-label{font-size:8px;font-weight:400;color:var(--text-3);display:block;}

.sports-hero {
  border-radius:var(--r-xl); overflow:hidden; position:relative;
  min-height:220px; display:flex; align-items:flex-end;
  background:linear-gradient(135deg,#0a1930,#0d0d1a);
  border:1px solid var(--border-gold);
}
.sports-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.4;}
.sports-hero-overlay{position:absolute;inset:0;background:linear-gradient(to right,rgba(5,5,8,.9) 0%,transparent 60%),linear-gradient(to top,rgba(5,5,8,.7) 0%,transparent 60%);}
.sports-hero-content{position:relative;z-index:2;padding:28px;}
.sports-hero-tag{font-size:10px;color:var(--gold-2);letter-spacing:3px;text-transform:uppercase;margin-bottom:8px;}
.sports-hero-title{font-family:'Cinzel',serif;font-weight:900;font-size:clamp(22px,3vw,40px);color:#fff;line-height:1.1;margin-bottom:12px;}
.sports-hero-title span{color:var(--gold-3);}

/* ══════════════════════════════════════════════
   TOP EVENTS SIDEBAR
══════════════════════════════════════════════ */
.top-events-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;margin-top:8px;}
.tep-header{padding:10px 14px;background:var(--bg-3);border-bottom:1px solid var(--border);font-weight:700;font-size:13px;color:var(--gold-2);display:flex;justify-content:space-between;align-items:center;}
.tep-item{padding:10px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;cursor:pointer;transition:.2s;}
.tep-item:hover{background:var(--bg-3);}
.tep-item:last-child{border-bottom:none;}
.tep-icon{font-size:16px;}
.tep-name{font-size:12px;font-weight:600;flex:1;}
.tep-count{font-size:11px;color:var(--green);font-weight:700;}

/* ══════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════ */
.admin-wrap{display:flex;min-height:100vh;}
.admin-sidebar{width:240px;background:var(--bg-1);border-right:1px solid var(--border);padding:20px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh;overflow-y:auto;}
.admin-logo{padding:8px 12px;margin-bottom:16px;border-bottom:1px solid var(--border);padding-bottom:16px;}
.admin-nav-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--r-md);cursor:pointer;font-size:13px;color:var(--text-2);transition:.2s;}
.admin-nav-item:hover{background:var(--bg-3);color:var(--gold-2);}
.admin-nav-item.active{background:linear-gradient(90deg,rgba(232,180,42,.12),transparent);color:var(--gold-2);border-left:3px solid var(--gold-2);}
.admin-nav-section{font-size:9px;color:var(--text-3);letter-spacing:2px;text-transform:uppercase;padding:14px 14px 4px;margin-top:8px;}

.admin-main{flex:1;padding:24px;overflow-y:auto;}
.admin-header{margin-bottom:24px;}
.admin-title{font-family:'Cinzel',serif;font-size:24px;font-weight:800;color:var(--gold-2);}
.admin-sub{font-size:13px;color:var(--text-3);margin-top:4px;}

.admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-bottom:24px;}
.stat-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-lg);padding:18px;position:relative;overflow:hidden;}
.stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;}
.stat-card.gold::before{background:linear-gradient(90deg,var(--gold-1),var(--gold-3));}
.stat-card.green::before{background:var(--green);}
.stat-card.red::before{background:var(--red);}
.stat-card.blue::before{background:var(--blue);}
.stat-icon{font-size:28px;margin-bottom:8px;}
.stat-value{font-size:24px;font-weight:800;color:var(--text-1);}
.stat-label{font-size:11px;color:var(--text-3);margin-top:2px;}

.admin-section{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-xl);padding:20px;margin-bottom:20px;}
.admin-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.admin-section-title{font-weight:700;font-size:15px;color:var(--gold-2);display:flex;align-items:center;gap:8px;}

.image-upload-zone {
  border:2px dashed var(--border-gold); border-radius:var(--r-lg);
  padding:28px; text-align:center; cursor:pointer; transition:.2s;
  background:var(--bg-3);
}
.image-upload-zone:hover{border-color:var(--gold-2);background:rgba(232,180,42,.05);}
.image-upload-zone i{font-size:36px;color:var(--gold-1);margin-bottom:10px;}
.image-upload-zone p{font-size:13px;color:var(--text-2);}
.image-upload-zone small{font-size:10px;color:var(--text-3);}

.admin-table{width:100%;border-collapse:collapse;}
.admin-table th{text-align:left;padding:10px 14px;font-size:11px;color:var(--text-3);letter-spacing:1px;text-transform:uppercase;border-bottom:1px solid var(--border);}
.admin-table td{padding:12px 14px;border-bottom:1px solid var(--border);font-size:13px;vertical-align:middle;}
.admin-table tr:hover td{background:var(--bg-3);}
.admin-table tr:last-child td{border-bottom:none;}

.game-thumb-admin{width:48px;height:36px;border-radius:var(--r-sm);overflow:hidden;border:1px solid var(--border);}
.game-thumb-img{width:100%;height:100%;object-fit:cover;background:var(--bg-3);display:flex;align-items:center;justify-content:center;font-size:20px;}
.status-badge{font-size:9px;font-weight:700;padding:2px 8px;border-radius:var(--r-full);}
.status-active{background:var(--green-dim);color:var(--green);}
.status-inactive{background:var(--red-dim);color:var(--red);}

.action-btn{font-size:11px;padding:4px 10px;border-radius:var(--r-sm);cursor:pointer;transition:.2s;border:1px solid var(--border);}
.action-btn.edit{color:var(--gold-2);border-color:var(--border-gold);}
.action-btn.edit:hover{background:rgba(232,180,42,.1);}
.action-btn.del{color:var(--red);border-color:rgba(255,61,87,.3);}
.action-btn.del:hover{background:var(--red-dim);}

.tab-bar{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:16px;}
.tab-btn{padding:8px 16px;font-size:12px;font-weight:600;color:var(--text-3);cursor:pointer;border-bottom:2px solid transparent;transition:.2s;}
.tab-btn.active{color:var(--gold-2);border-bottom-color:var(--gold-2);}
.tab-btn:hover{color:var(--gold-1);}

/* Mobile nav tabs */
.mobile-tabs{display:none;position:fixed;bottom:var(--ticker-h);left:0;right:0;z-index:900;background:var(--bg-1);border-top:1px solid var(--border-gold);height:56px;}

@media (max-width:1100px){
  .sidebar-l,.sidebar-r{display:none;}
  .sports-nav{display:none;}
  .bet-slip-panel{display:none;}
}
@media (max-width:768px){
  .bottom-refer,.bottom-safe{display:none;}
  .h-nav-btn span{display:none;}
  .user-info-wrap{display:none;}
}
