:root {
  --bg-primary: #0B0E14;
  --bg-secondary: #111824;
  --bg-card-solid: #121824;
  --bg-card: rgba(18, 24, 36, 0.95);
  --bg-glass-card: rgba(16, 22, 34, 0.65);
  --text-main: #F3F4F6;
  --text-secondary: #94A3B8;
  --text-muted: #7A8BA3;
  --accent-mint: #10B981;
  --accent-mint-bright: #34D399;
  --accent-orange: #F59E0B;
  --accent-gold: #00629B;
  --accent-gold-hover: #00A6D6;
  --blue-400: #60A5FA;
  --border-card: rgba(255,255,255,0.08);
  --border-glass: rgba(255,255,255,0.06);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --bottom-nav-height: 56px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.app-container { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: 48px;
  background: var(--bg-card-solid);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  flex-shrink: 0;
}
.sidebar-accent {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold));
  margin-bottom: 8px;
}
.sidebar-logo {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 20px;
  line-height: 48px;
}
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.sidebar-icon:hover, .sidebar-icon.active {
  color: var(--text-main);
  background: rgba(16,185,129,0.1);
}
.sidebar-icon.active { background: rgba(16,185,129,0.15); }
.sidebar-bottom { margin-top: auto; padding: 8px 0; width: 100%; }

/* MAIN */
.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* TOP HEADER */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-card-solid);
  gap: 12px;
}
.live-ticker { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.15); color: var(--accent-mint-bright); font-weight: 700; font-size: 11px; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }
.ticker-match { font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.ticker-odds { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent-mint); font-size: 13px; }
.user-area { display: flex; align-items: center; gap: 12px; }
.deposit-info { display: flex; align-items: baseline; gap: 4px; font-size: 13px; }
.deposit-label { color: var(--text-muted); }
.deposit-amount { font-weight: 700; color: var(--accent-mint); font-family: 'JetBrains Mono', monospace; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--bg-primary);
}

/* TICKER BANNER */
.ticker-wrap { width: 100%; background: rgba(16,185,129,0.05); border-bottom: 1px solid rgba(74,222,128,0.08); overflow: hidden; white-space: nowrap; position: relative; }
.ticker { display: inline-block; padding: 8px 0; animation: ticker-scroll 40s linear infinite; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* RESPONSIVE TABLE WRAPPER */
.responsive-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.responsive-table-wrapper::-webkit-scrollbar { display: none; }

/* GLASS TABLE */
.glass-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 13px;
}
.glass-table th {
  text-align: left;
  padding: 14px 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(18,24,36,0.6);
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}
.glass-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
  color: var(--text-secondary);
}
.glass-table tr:last-child td { border-bottom: none; }
.glass-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ODDS CELL VARIANTS */
.odds-home { color: var(--accent-mint); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 14px; text-align: center; }
.odds-draw { color: var(--text-secondary); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 14px; text-align: center; }
.odds-away { color: var(--accent-orange); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 14px; text-align: center; }
.odds-best { background: rgba(74,222,128,0.1); padding: 4px 10px; border-radius: var(--radius-sm); color: var(--accent-mint); font-size: 11px; font-weight: 600; white-space: nowrap; }

/* BONUS BANNER */
.bonus-banner {
  background: rgba(74,222,128,0.05);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bonus-title { font-weight: 800; font-size: 15px; color: var(--accent-mint); }
.bonus-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.bonus-cta {
  background: var(--accent-mint);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.bonus-cta:hover { background: var(--accent-mint-bright); }

/* DISCLAIMER */
.disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-glass-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  line-height: 1.6;
}
.disclaimer strong { color: var(--text-secondary); }
.disclaimer a { color: var(--accent-mint); text-decoration: none; }
.disclaimer a:hover { text-decoration: underline; }

/* LIVE DOT */
.live-dot { width: 8px; height: 8px; background: var(--accent-mint); border-radius: 50%; display: inline-block; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }

/* BOTTOM NAV (old page structure, keep for compatibility) */
.bottom-nav { display: none; } /* hide old nav, new one loaded via Tailwind */

/* PAGE CONTENT */
.page-content { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* MOBILE STICKY NAV (Tailwind) */
.mobile-nav-item { transition: color 0.15s; text-decoration: none; }
.mobile-nav-item.active { color: var(--accent-mint); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom); }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-card);
  padding: 24px 24px calc(24px + var(--bottom-nav-height));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3) 60%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-logo-text { font-weight: 800; font-size: 14px; color: var(--text-main); }
.footer-logo-accent { color: var(--accent-mint); }
.footer-link { color: var(--text-muted); font-size: 12px; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: var(--text-main); }
.telegram-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(59,130,246,0.1); color: var(--blue-400); font-size: 12px; padding: 4px 12px; border-radius: 999px; text-decoration: none; transition: background 0.15s; }
.telegram-badge:hover { background: rgba(59,130,246,0.2); }
.age-badge { font-size: 10px; font-weight: 600; color: var(--accent-orange); border: 1px solid rgba(245,158,11,0.3); padding: 2px 8px; border-radius: var(--radius-sm); }

/* === SOCIAL PROOF AVATAR STACK === */
.avatar-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}
.avatar-stack .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary); /* matches page bg → crescent cut-out */
  object-fit: cover;
  box-sizing: border-box;
  margin-right: -10px;
  transition: transform 0.25s ease, z-index 0s, border-color 0.25s ease;
  position: relative;
  cursor: pointer;
}
.avatar-stack .avatar:last-child { margin-right: 0; }
.avatar-stack .avatar:hover {
  transform: translateY(-4px);
  z-index: 10;
  border-color: var(--text-main);
}
.avatar-proof-text {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.5px;
  text-align: center;
}
.avatar-proof-text strong {
  color: var(--text-main);
  font-weight: 700;
}
@media (max-width: 768px) {
  .avatar-stack .avatar {
    width: 30px;
    height: 30px;
    margin-right: -8px;
  }
  .avatar-proof-text { font-size: 12px; }
}

/* SCROLLBAR HIDE */
.data-grid-scroll::-webkit-scrollbar { display: none; }
.data-grid-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* MOBILE BREAKPOINTS */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .page-content { padding: 16px; padding-bottom: calc(var(--bottom-nav-height) + 16px); }
  .glass-table { min-width: 800px; }
  .ticker-match { max-width: 200px; }
  .bonus-banner { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  .top-header { padding: 0 12px; }
  .live-ticker { gap: 8px; }
  .ticker-odds { display: none; }
}
