/* ============================================================================
   Rollon CASINO - MAIN STYLESHEET
   Exact replica of reference design
   ============================================================================ */

:root {
  --bg:       #0f212e;
  --bg2:      #1a2c38;
  --bg3:      #213743;
  --sidebar-bg: #0c1d29;
  --sidebar-bg2: #0a1620;
  --accent:   #00d4aa;
  --accent2:  #f59e0b;
  --blue:     #2f7bed;
  --green:    #00e701;
  --red:      #ed4163;
  --text:     #ffffff;
  --text2:    #8a9bb0;
  --muted:    #557086;
  --border:   #2d4a5a;
  --card:     #213743;
  --header-height: 57px;
  --sidebar-width: 280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { vertical-align: middle; display: inline-block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* === LOGO === */
.logo-text { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; user-select: none; }
.logo-text-lg { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -0.5px; cursor: pointer; user-select: none; }
.logo-diamond { color: var(--blue); }

/* === HEADER === */
.site-header {
  background: var(--bg2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
}
.sidebar-toggle-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: 0.2s;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
/* Item 7: arrow rotation */
.sidebar-toggle-btn svg { transition: transform 0.25s ease; }
body.sidebar-open .sidebar-toggle-btn svg,
body.sidebar-collapsed .sidebar-toggle-btn svg { transform: rotate(180deg); }
.header-logo { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-btn { border-radius: 8px; padding: 7px 14px; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; transition: 0.15s; }
.header-btn-outline { background: rgba(255,255,255,0.07); border: 1px solid var(--border); }
.header-btn-outline:hover { background: rgba(255,255,255,0.12); }
.header-btn-primary { background: var(--blue); border: none; }
.header-btn-primary:hover { background: #3a88f5; }

/* === APP GRID === */
#app { min-height: 100vh; }
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  background: var(--bg);
}
@media (min-width: 1024px) { .app-grid { grid-template-columns: var(--sidebar-width) 1fr; transition: grid-template-columns 0.25s ease; } }
/* Item 7: Desktop collapsed sidebar — icons only */
@media (min-width: 1024px) {
  body.sidebar-collapsed .app-grid { grid-template-columns: 68px 1fr; }
  body.sidebar-collapsed .sidebar { width: 68px; transition: width 0.25s ease; overflow: hidden; }

  /* Hide all text labels — the direct <span> child of .nav-item (not .nav-icon, not .nav-badge) */
  body.sidebar-collapsed .sidebar-logo,
  body.sidebar-collapsed .user-info,
  body.sidebar-collapsed .nav-section-label,
  body.sidebar-collapsed .sidebar-divider-thin,
  body.sidebar-collapsed .sidebar-social,
  body.sidebar-collapsed .nav-badge,
  body.sidebar-collapsed .support-text,
  body.sidebar-collapsed .support-badge,
  body.sidebar-collapsed .sidebar-footer-text { display: none !important; }

  /* Hide any direct span that isn't the icon wrapper (i.e. label text) */
  body.sidebar-collapsed .nav-item > span:not(.nav-icon) { display: none !important; }

  /* Sidebar support card - collapse to icon only */
  body.sidebar-collapsed .sidebar-support { justify-content: center !important; padding: 10px 8px !important; margin: 8px 8px !important; }

  /* User card compacts to avatar only */
  body.sidebar-collapsed .sidebar-user-card { justify-content: center; padding: 12px 8px; margin: 0 8px 10px; }
  body.sidebar-collapsed .sidebar-user-card .user-avatar { margin: 0 auto; }

  /* Nav item containers center their icon */
  body.sidebar-collapsed .sidebar .nav-item,
  body.sidebar-collapsed .sidebar-nav > a { justify-content: center !important; padding: 10px 8px !important; gap: 0 !important; }

  /* Logo text hidden, diamond can stay or go */
  body.sidebar-collapsed .sidebar-logo { display: none !important; }

  /* Trim divider margins in compact view */
  body.sidebar-collapsed .sidebar-divider { margin: 4px 8px; }

  /* Belt-and-suspenders: hide anything the sidebar designates as footer text */
  body.sidebar-collapsed .sidebar-footer > *:not(.sidebar-avatar):not(.footer-icon) { display: none !important; }
}

/* === SIDEBAR === */
.sidebar {
  display: none;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--bg2);
  position: fixed;
  top: var(--header-height);
  left: 0; bottom: 0;
  width: var(--sidebar-width);
  z-index: 999;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.sidebar.open { display: block; animation: slide-sidebar 0.25s ease; }
@keyframes slide-sidebar { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (min-width: 1024px) {
  .sidebar { display: block; position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); z-index: 1; }
}
.sidebar-inner { width: 100%; height: 100%; background: linear-gradient(var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%); overflow-y: auto; scrollbar-width: none; }
.sidebar-inner::-webkit-scrollbar { display: none; }
.sidebar-content { display: flex; flex-direction: column; height: 100%; }
.sidebar-logo { padding: 22px 18px 16px; display: flex; align-items: center; }

.sidebar-user-card {
  margin: 0 12px 10px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; display: flex; align-items: center; gap: 12px; transition: background 0.15s;
}
.sidebar-user-card:hover { background: rgba(255,255,255,0.07); }
.user-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 14px; font-weight: 700; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 0 16px 8px; }
.sidebar-divider-thin { height: 1px; background: rgba(255,255,255,0.05); margin: 8px 10px; }

.sidebar-nav { flex: 1; padding: 0 6px; overflow-y: auto; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-section-label { padding: 10px 0; font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 1px; }

.nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border: none; border-radius: 12px; background: none; color: var(--text2);
  font-size: 15px; font-weight: 500; cursor: pointer; text-align: left;
  text-decoration: none; transition: 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.nav-item.active { background: rgba(47,123,237,0.12); color: #fff; font-weight: 800; }
.nav-item.nav-disabled { color: rgba(205,216,224,0.4); cursor: default !important; }
.nav-item.nav-disabled:hover { background: none !important; color: rgba(205,216,224,0.4) !important; }
.nav-item.nav-disabled .nav-icon svg { opacity: 0.5; }
.nav-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.nav-item.active .nav-icon svg circle,
.nav-item.active .nav-icon svg path,
.nav-item.active .nav-icon svg line,
.nav-item.active .nav-icon svg polyline,
.nav-item.active .nav-icon svg rect { stroke: var(--blue); }

.nav-badge { margin-left: 4px; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 5px; letter-spacing: 0.3px; }
.nav-badge-soon { background: var(--accent2); color: var(--bg); }
.nav-badge-new { background: var(--accent2); color: var(--bg); }
.nav-badge-beta { background: rgba(0,212,170,0.15); border: 1px solid rgba(0,212,170,0.4); color: rgb(0,212,170); }

/* Social Links */
.sidebar-social { padding: 8px 14px 4px; border-top: 1px solid rgba(255,255,255,0.05); }
.social-icons { display: flex; gap: 8px; 
    
}
.social-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.15s;
background: rgba(255,255,255,0.082);
  border: 1px solid rgba(255,255,255,0.133);
    
}

.social-icon:hover { opacity: 0.8; transform: scale(1.05); }

/* Support Card */
.sidebar-support {
  margin: 8px 12px 12px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(0,212,170,0.05));
  border: 1px solid rgba(0,212,170,0.2);
  display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.2s;
}
.sidebar-support:hover { background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,212,170,0.08)); }
.support-icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(0,212,170,0.15); border: 1px solid rgba(0,212,170,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.support-text { flex: 1; }
.support-title { font-size: 14px; font-weight: 700; color: #fff; }
.support-subtitle { font-size: 12px; color: var(--text2); margin-top: 1px; }
.support-badge { background: var(--accent); border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 800; color: var(--bg); }

/* Sidebar Overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 990; opacity: 0; transition: opacity 0.25s; }
.sidebar-overlay.active { display: block; opacity: 1; }

/* === MAIN CONTENT === */
.main-content { grid-area: 1/1; overflow-y: auto; min-width: 0; background: var(--bg); min-height: calc(100vh - var(--header-height)); padding-bottom: 70px; }
@media (min-width: 1024px) { .main-content { grid-area: 1/2; padding-bottom: 0; } }
.page-container { padding: 0; }
@media (min-width: 768px) { .page-container { padding: 0; } }
@media (min-width: 1024px) { .page-container { padding: 0; } }

/* === FOOTER === */
.site-footer { margin: 8px 16px 0; }
.footer-inner { padding: 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; }
.footer-brand { margin-bottom: 20px; }
.footer-logo { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-description { font-size: 13px; color: var(--text2); line-height: 1.6; max-width: 480px; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; margin-bottom: 20px; }
.footer-col-title { font-size: 11px; font-weight: 800; color: #fff; letter-spacing: 0.5px; margin-bottom: 10px; }
.footer-link { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; cursor: pointer; transition: color 0.15s; text-decoration: none; }
.footer-link:hover { color: var(--text2); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0 0 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copyright { font-size: 11px; color: var(--muted); }
.footer-badges { display: flex; gap: 12px; align-items: center; }
.footer-age-badge { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--muted); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; color: var(--muted); }
.footer-responsible { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* === BOTTOM NAV === */
/* ═══ Item 4: Mobile Bottom Nav — pixel-match to mobile-menu.html ═══ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgb(26,44,56);
  border-top: 1px solid rgb(45,74,90);
  display: flex;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1024px) { .bottom-nav { display: none !important; } }

/* Full reset so <button> and <a> behave identically inside the nav */
.bottom-nav .bn-item {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 0%;
  min-width: 0;
  height: 60px;
  margin: 0;
  border: 0;
  border-top: 2px solid transparent;
  background: transparent;
  box-shadow: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: rgb(85,112,134);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav .bn-item:focus { outline: none; }
.bottom-nav .bn-item::-moz-focus-inner { border: 0; padding: 0; }

.bottom-nav .bn-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(85,112,134);
  line-height: 0;
  width: 22px;
  height: 22px;
}
.bottom-nav .bn-ic svg { display: block; width: 22px; height: 22px; }

.bottom-nav .bn-lbl {
  font-size: 10px;
  color: rgb(85,112,134);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1px;
}

.bottom-nav .bn-cas-outer { fill: none; }

.bottom-nav .bn-item:active .bn-ic { opacity: 0.7; }
.bottom-nav .bn-item.bn-disabled { cursor: default; }

/* Active state — teal top border, teal icon + label */
.bottom-nav .bn-item.active { border-top-color: rgb(0,212,170); }
.bottom-nav .bn-item.active .bn-ic { color: rgb(0,212,170); }
.bottom-nav .bn-item.active .bn-lbl { color: rgb(0,212,170); }
/* Casino (active) gets the signature teal tinted fill on outer circle */
.bottom-nav .bn-item.active .bn-cas-outer { fill: rgba(0,212,170,0.09); }

/* SOON badge for Sports */
.bottom-nav .bn-badge {
  position: absolute;
  top: 4px;
  right: 50%;
  transform: translateX(14px);
  background: rgb(245,158,11);
  color: rgb(15,33,46);
  font-size: 7px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Legacy class kept for backwards-compat (old pages still using .bottom-nav-item) */
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-decoration: none; cursor: pointer; transition: color 0.2s; font-size: 11px; font-weight: 500; flex: 1; height: 100%; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--blue); }

/* === HERO BANNER === */
.hero-banner { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); border-radius: 12px; padding: 20px; margin-bottom: 24px; color: #000; min-height: 120px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; position: relative; }
@media (min-width: 1024px) { .hero-banner { border-radius: 20px; min-height: 200px; padding: 32px; } }
.hero-banner h1 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.hero-banner p { font-size: 14px; opacity: 0.9; }

/* === CARDS === */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: all 0.3s ease; }
.card:hover { border-color: var(--accent); }
.section-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }

/* === GRIDS === */
.grid { display: grid; gap: 12px; }
@media (min-width: 480px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } .grid-6 { grid-template-columns: repeat(6, 1fr); } }

.hscroll { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 0; }
.hscroll > * { flex-shrink: 0; scroll-snap-align: start; width: 140px; min-width: 140px; }
@media (min-width: 768px) { .hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow-x: unset; padding: 0; } .hscroll > * { width: auto; flex-shrink: unset; } }

/* === GAME TILES === */
.game-tile { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.game-tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.game-image { width: 100%; aspect-ratio: 1; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); overflow: hidden; }
.game-image img { width: 100%; height: 100%; object-fit: cover; }
.game-info { padding: 12px; }
.game-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-provider { font-size: 11px; color: var(--muted); }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; border: none; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #3a88f5; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: #00e8bb; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-icon { background: none; border: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 8px; transition: all 0.2s ease; }
.btn-icon:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-input, .form-select { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; font-family: inherit; transition: border-color 0.2s; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--blue); }
.form-input::placeholder { color: var(--muted); }

/* === SEARCH === */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.search-bar:focus-within { border-color: rgba(0,212,170,0.5); box-shadow: 0 0 0 3px rgba(0,212,170,0.08); }
.search-bar input { flex: 1; background: none; border: none; color: var(--text); font-size: 14px; outline: none; }
.search-bar input::placeholder { color: var(--muted); }

.filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.filter-pill:hover, .filter-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-pill:active { transform: scale(0.95); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-header .see-all {
    font-size: 12px; color: var(--text2); background: var(--bg3); border: 1px solid var(--border); padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: 0.15s; text-decoration: none;  }
.section-header .see-all:hover { color: #fff; background: #253f55; border-color: #3d6070; }
.see-all{

  height: 30px;
  border-radius: 8px;
  background: rgb(30,51,69);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #cdd8e0;
  font-size: 18px;
  font-family: inherit;
  line-height: 1;
  padding: 0 10px;
  transition: .15s;
    
}

/* === MODALS === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 16px; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(0.8); transition: transform 0.3s ease; }
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 24px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }
.modal-body { margin-bottom: 20px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; }

/* === TABLES === */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--bg3); padding: 12px; text-align: left; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text2); }
.table tr:hover { background: rgba(0,212,170,0.05); }

/* === BADGES === */
.badge { display: inline-block; padding: 4px 8px; font-size: 12px; font-weight: 600; border-radius: 4px; background: var(--bg3); color: var(--muted); }
.badge-success { background: rgba(0,231,1,0.1); color: var(--green); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--accent2); }
.badge-danger { background: rgba(237,65,99,0.1); color: var(--red); }
.badge-info { background: rgba(20,117,225,0.1); color: var(--blue); }

/* === ALERTS === */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border-left: 4px solid; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.alert-success { background: rgba(0,231,1,0.1); border-color: var(--green); color: var(--green); }
.alert-error { background: rgba(237,65,99,0.1); border-color: var(--red); color: var(--red); }
.alert-warning { background: rgba(245,158,11,0.1); border-color: var(--accent2); color: var(--accent2); }
.alert-info { background: rgba(20,117,225,0.1); border-color: var(--blue); color: var(--blue); }

/* === STATS === */
.stat { background: var(--card); border: 1px solid var(--border); padding: 16px; border-radius: 12px; text-align: center; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; }

/* === ANIMATIONS === */
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,231,1,0.5); } 50% { box-shadow: 0 0 0 4px rgba(0,231,1,0); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in-bet { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-slide-up { animation: slide-up 0.3s ease; }
.animate-fade-in { animation: fade-in 0.3s ease; }
.animate-pulse { animation: pulse-dot 2s infinite; }

/* === LOADING === */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px 20px; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state-message { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* === UTILITIES === */
.text-center { text-align: center; } .text-right { text-align: right; } .text-left { text-align: left; }
.flex { display: flex; } .flex-col { flex-direction: column; } .flex-center { align-items: center; justify-content: center; } .flex-between { align-items: center; justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.p-1 { padding: 4px; } .p-2 { padding: 8px; } .p-3 { padding: 12px; } .p-4 { padding: 16px; }
.m-1 { margin: 4px; } .m-2 { margin: 8px; } .m-3 { margin: 12px; } .m-4 { margin: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; } .visible { display: block !important; }
.opacity-50 { opacity: 0.5; } .opacity-75 { opacity: 0.75; }

/* === RESPONSIVE === */
@media (max-width: 767px) { .desktop-only { display: none !important; } }
@media (min-width: 1024px) { .desktop-only { display: block !important; } .mobile-only { display: none !important; } }

/* === Preloader === */
#rl-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(circle at center, rgb(20,40,55), rgb(10,22,32));
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
    transition: opacity 0.35s ease;
}
#rl-preloader.rl-hide { opacity: 0; pointer-events: none; }
#rl-preloader .rl-pre-logo {
    font-size: 30px; font-weight: 900; color: #fff; letter-spacing: 2px;
    display: flex; align-items: center; gap: 4px;
}
#rl-preloader .rl-pre-logo span {
    color: rgb(47,123,237); font-size: 32px;
    animation: rl-pre-spin 2.4s ease-in-out infinite;
}
#rl-preloader .rl-pre-bar {
    position: relative; width: 180px; height: 3px;
    background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden;
}
#rl-preloader .rl-pre-bar span {
    position: absolute; top: 0; left: -40%; height: 100%; width: 40%;
    background: linear-gradient(90deg, transparent, rgb(47,123,237), rgb(0,212,170), transparent);
    animation: rl-pre-slide 1.4s ease-in-out infinite;
}
@keyframes rl-pre-spin { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.15); } }
@keyframes rl-pre-slide { 0% { left: -40%; } 100% { left: 100%; } }


/* ───────────────────────────────────────────────────────────
   Game iframe wrap — desktop positioning fix
   Drop this into css/main.css (anywhere in the file).
   Fixes invisible-game bug caused by inset:auto in game-modal.php
   clobbering top/left/right/bottom values.
   ─────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .game-iframe-wrap {
        inset: var(--header-height, 57px) 0 0 var(--sidebar-width, 260px) !important;
    }
    body.sidebar-collapsed .game-iframe-wrap {
        inset: var(--header-height, 57px) 0 0 68px !important;
    }
}

