/* ═══════════════════════════════════════════════
   CANDY365 — RED GOLD LUXURY CASINO (RESPONSIVE)
   ═══════════════════════════════════════════════ */

:root {
  /* RED PALETTE */
  --r1: #e8192c;
  --r2: #ff3347;
  --r3: #c0102a;
  --r4: #8b0000;
  --r-glow: rgba(232,25,44,.4);
  --r-soft: rgba(232,25,44,.1);

  /* GOLD */
  --gold:  #f5c842;
  --gold2: #e8a800;
  --gold3: #fff3b0;
  --gold-soft: rgba(245,200,66,.12);

  /* DARK BG */
  --bg:    #090910;
  --bg2:   #0f0f18;
  --bg3:   #161625;
  --card:  #141422;
  --card2: #1c1c30;

  /* TEXT */
  --white: #fff;
  --text:  #d8d8e8;
  --dim:   #6a6a8a;

  /* BORDERS */
  --border:  rgba(232,25,44,.18);
  --border2: rgba(245,200,66,.3);

  /* STATUS */
  --success: #00e676;
  --danger:  #ff4444;
  --warning: #ffaa00;

  /* TYPOGRAPHY */
  --font-body: 'Sarabun', sans-serif;
  --font-head: 'Orbitron', sans-serif;
  --font-deco: 'Cinzel', serif;

  /* LAYOUT — desktop */
  --sidebar-w: 220px;
  --nav-h:     54px;
  --bot-h:     62px;
  --radius:    14px;
  --radius-sm: 9px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* app-wrap is a transparent pass-through */
.app-wrap { min-height: 100vh; }

/* ═══════════════════════════════
   SIDEBAR — fixed, always visible on desktop
   ═══════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(9,9,16,.98);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 400;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(20px);
}
.sidebar::-webkit-scrollbar { width: 3px; }

.sidebar-top {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo {
  font-family: var(--font-deco);
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 3px;
  cursor: pointer;
  text-align: center;
  text-shadow: 0 0 16px var(--r-glow);
}

.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-btn {
  width: 100%;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  letter-spacing: .3px;
}
.sb-reg {
  background: linear-gradient(135deg, var(--r1), var(--r4));
  color: #fff;
  box-shadow: 0 0 12px var(--r-glow);
}
.sb-reg:hover { box-shadow: 0 0 20px var(--r-glow); }
.sb-login {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border2);
}
.sb-login:hover { background: var(--gold-soft); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  flex-shrink: 0;
}
.menu {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  position: relative;
  font-family: var(--font-body);
  text-align: left;
}
.menu:hover, .menu.active {
  background: var(--r-soft);
  color: var(--white);
}
.menu.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--r1);
  border-radius: 0 3px 3px 0;
}
.menu-icon { font-size: 1.1rem; flex-shrink: 0; }
.menu-label { font-size: .8rem; font-weight: 600; }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 10px;
  flex-shrink: 0;
}

.sidebar-cats {
  padding: 6px 8px 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.sidebar-cat-title {
  font-size: .62rem;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 4px 6px;
}
.cat-item {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s;
}
.cat-item:hover { background: var(--r-soft); color: var(--white); }
.cat-item .cat-icon { font-size: 1rem; }

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

/* ═══════════════════════════════
   NAV — fixed top bar
   ═══════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--nav-h);
  background: rgba(9,9,16,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 100;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
  line-height: 1;
}
.menu-toggle:hover { background: var(--r-soft); }
.logo {
  font-family: var(--font-deco);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
  cursor: pointer;
  letter-spacing: 3px;
  text-shadow: 0 0 16px var(--r-glow);
  flex: 1;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nbtn {
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  border: none;
  white-space: nowrap;
}
.nbtn-out {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.nbtn-out:hover { border-color: var(--r1); color: var(--r2); }
.nbtn-wh {
  background: linear-gradient(135deg, var(--r1), var(--r4));
  color: #fff;
  box-shadow: 0 0 12px var(--r-glow);
}
.nbtn-wh:hover { transform: translateY(-1px); box-shadow: 0 0 20px var(--r-glow); }
.nbtn-outline {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
  padding-bottom: 24px;
  min-height: 100vh;
  min-width: 0;
}

/* ═══ BANNER ═══ */
.banner-section { position: relative; overflow: hidden; }
.banner-wrap { position: relative; overflow: hidden; max-width: 1500px; margin: auto; }
.slides { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}
.slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/5;
}
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .2s;
}
.dot.active { background: var(--gold); width: 20px; border-radius: 3px; }
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 5;
  transition: background .2s;
}
.banner-arrow:hover { background: rgba(232,25,44,.6); }
.arrow-l { left: 12px; }
.arrow-r { right: 12px; }

/* ═══ SECTION ═══ */
.section { padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
.sec-header { margin-bottom: 16px; }
.sec-tag {
  font-size: .7rem;
  font-weight: 700;
  color: var(--r1);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sec-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-head);
}
.sec-desc { font-size: .82rem; color: var(--dim); margin-top: 4px; }

/* ═══ TICKER ═══ */
.ticker-wrap {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--bg2), var(--bg3));
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  gap: 12px;
  overflow: hidden;
}
.ticker-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--r1);
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.ticker {
  display: flex;
  gap: 36px;
  animation: tickerMove 26s linear infinite;
  white-space: nowrap;
  font-size: .78rem;
  color: var(--text);
}
.ticker span { color: var(--gold); font-weight: 700; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  padding: 48px 24px 36px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232,25,44,.18), transparent);
  pointer-events: none;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--r1);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: .3; }
  90% { opacity: .1; }
  100% { opacity: 0; transform: translateY(-180px) rotate(360deg); }
}
.hero-tag {
  position: relative;
  font-size: .75rem;
  color: var(--dim);
  margin-bottom: 14px;
}
.hero h1 {
  position: relative;
  font-family: var(--font-deco);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hld { color: var(--text); font-size: 1.1rem; display: block; }
.hl { color: var(--gold); text-shadow: 0 0 24px rgba(245,200,66,.5); }
.hero-sub { position: relative; font-size: .88rem; color: var(--dim); margin-bottom: 20px; line-height: 1.6; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.cta-main {
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--r1), var(--r4));
  color: #fff;
  border: none;
  border-radius: 28px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 22px var(--r-glow);
  transition: all .2s;
  white-space: nowrap;
}
.cta-main:hover { transform: translateY(-2px); box-shadow: 0 0 32px var(--r-glow); }
.cta-sec {
  padding: 13px 26px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border2);
  border-radius: 28px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.cta-sec:hover { background: var(--gold-soft); }
.stats-bar {
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-i {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
}
.stat-i:last-child { border-right: none; }
.sv { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--gold); }
.sl { font-size: .65rem; color: var(--dim); margin-top: 3px; }

/* ═══ CATEGORY TABS ═══ */
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-tab .cat-icon { font-size: 1.2rem; }
.cat-tab.active, .cat-tab:hover {
  background: var(--r-soft);
  border-color: var(--r1);
  color: var(--white);
}

/* ═══ GAME GRID ═══ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.game-card:hover { border-color: var(--r1); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,25,44,.2); }
.game-thumb {
  aspect-ratio: 3/4;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-rtp {
  position: absolute;
  bottom: 5px; left: 5px;
  background: rgba(0,0,0,.75);
  color: var(--gold);
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.game-info { padding: 7px 9px; }
.game-title { font-size: .7rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-provider { font-size: .62rem; color: var(--dim); }

/* ═══ PROVIDER GRID ═══ */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.provider-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.provider-card:hover { border-color: var(--r1); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,25,44,.2); }
.provider-thumb {
  aspect-ratio: 3/4;
  background: var(--card2);
  overflow: hidden;
}
.provider-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 16px; }
.provider-card span { display: block; font-size: .7rem; font-weight: 700; color: var(--text); padding: 6px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══ PROMO CARDS ═══ */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 12px; }
.promo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  display: flex;
}
.promo-card:hover { border-color: var(--r1); transform: translateY(-2px); }
.promo-img {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: 1px;
}
.pi1 { background: linear-gradient(135deg, #8b0000, #c0102a); }
.pi2 { background: linear-gradient(135deg, #1a0a00, #5c3500); }
.pi3 { background: linear-gradient(135deg, #0a0a1a, #2a1a5a); }
.promo-body { padding: 14px; flex: 1; }
.promo-pct { font-family: var(--font-head); font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.promo-title { font-size: .85rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.promo-desc { font-size: .75rem; color: var(--dim); line-height: 1.5; margin-bottom: 10px; }
.promo-btn {
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--r1), var(--r4));
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ═══ CARDS & GRIDS ═══ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.feature-card { padding: 20px 16px; text-align: center; }
.feat-icon { font-size: 2rem; margin-bottom: 10px; }
.feat-title { font-weight: 700; color: var(--white); font-size: .9rem; margin-bottom: 6px; }
.feat-desc { font-size: .78rem; color: var(--dim); line-height: 1.6; }

/* ═══ SLOT DEMO ═══ */
.game-wrap {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--r1);
  border-radius: 50%;
  margin-right: 6px;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.2} }
.reels-area {
  display: flex;
  gap: 10px;
  padding: 24px 18px;
  justify-content: center;
}
.reel {
  width: 80px; height: 80px;
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: border-color .2s;
}
.win-display {
  text-align: center;
  padding: 8px 18px;
  font-size: .88rem;
  min-height: 36px;
}
.win-text { color: var(--gold); font-weight: 700; font-family: var(--font-head); }
.lose-text { color: var(--dim); }
.game-controls { padding: 0 18px 18px; }
.bet-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.bet-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--r-soft);
  border: 1px solid var(--r1);
  color: var(--r2);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .15s;
}
.bet-btn:hover { background: rgba(232,25,44,.2); }
.bet-display { font-family: var(--font-head); font-size: 1rem; color: var(--gold); min-width: 70px; text-align: center; }
.spin-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--r1), var(--r4));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px var(--r-glow);
  transition: all .2s;
  letter-spacing: 1px;
}
.spin-btn:hover { transform: translateY(-2px); box-shadow: 0 0 28px var(--r-glow); }
.spin-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ═══ DEPOSIT / FORMS ═══ */
.step-indicator { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; }
.step {
  flex: 1;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  color: var(--dim);
  text-align: center;
  white-space: nowrap;
}
.step.active { background: var(--r-soft); border-color: var(--r1); color: var(--r2); font-weight: 700; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: .78rem; color: var(--dim); margin-bottom: 6px; font-weight: 600; }
.fg input, .fg select, .fg textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}
.fg input:focus, .fg select:focus { border-color: var(--r1); box-shadow: 0 0 0 3px rgba(232,25,44,.1); }
.fg select option { background: var(--bg3); }
.fhint { font-size: .72rem; color: var(--dim); margin-top: 4px; }
.ferr { color: var(--danger); font-size: .8rem; }
.btn-full {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--r1), var(--r4));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 0 14px var(--r-glow);
  transition: all .2s;
  letter-spacing: .5px;
}
.btn-full:hover { transform: translateY(-1px); box-shadow: 0 0 22px var(--r-glow); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border2);
  box-shadow: none;
}
.btn-outline:hover { background: var(--gold-soft); box-shadow: none; }
.bank-box {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}
.bank-name { font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.bank-acc { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: 4px; }
.bank-holder { font-size: .8rem; color: var(--dim); margin-bottom: 12px; }
.copy-btn { padding: 7px 18px; background: var(--r-soft); border: 1px solid var(--r1); color: var(--r2); border-radius: 20px; font-family: var(--font-body); font-size: .78rem; cursor: pointer; }
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
  position: relative;
}
.upload-zone:hover { border-color: var(--r1); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-text { font-size: .8rem; color: var(--dim); }
#slipPreview { max-width: 100%; max-height: 200px; margin-top: 10px; border-radius: var(--radius-sm); display: none; }

/* ═══ MEMBER DASHBOARD ═══ */
.member-header {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.balance-sub { font-size: .75rem; color: var(--dim); margin-bottom: 4px; }
.balance-display {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,200,66,.4);
}

/* ═══ ADMIN ═══ */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 8px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.tab.active, .tab:hover { background: var(--r-soft); border-color: var(--r1); color: var(--r2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th { background: var(--card2); color: var(--dim); font-weight: 600; padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text); }
tr:hover td { background: rgba(232,25,44,.04); }

/* ═══ MODALS ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 0 40px rgba(232,25,44,.15), 0 0 80px rgba(0,0,0,.6);
  animation: modalIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn { from{opacity:0;transform:scale(.94)translateY(8px)}to{opacity:1;transform:none} }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--r1); }
.modal-logo {
  font-family: var(--font-deco);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 3px;
}
.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 20px;
}

/* ═══ TOAST ═══ */
#toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--card);
  border: 1px solid var(--r1);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: .85rem;
  color: var(--text);
  box-shadow: 0 0 20px var(--r-glow);
  animation: toastIn .3s ease;
  max-width: 280px;
}
@keyframes toastIn { from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none} }

/* ═══ FOOTER ═══ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 36px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.footer-logo { font-family: var(--font-deco); font-size: 1.3rem; font-weight: 900; color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.footer-desc { font-size: .8rem; color: var(--dim); line-height: 1.6; margin-bottom: 14px; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.fsocial {
  background: var(--r-soft);
  border: 1px solid var(--r1);
  color: var(--r2);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s;
}
.fsocial:hover { background: rgba(232,25,44,.2); }
.footer-h { font-weight: 700; color: var(--gold); margin-bottom: 10px; font-size: .85rem; }
.footer-link { display: block; color: var(--dim); font-size: .8rem; margin-bottom: 6px; text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--r2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: .75rem; color: var(--dim); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.fbadge {
  background: var(--r-soft);
  border: 1px solid var(--r1);
  color: var(--r2);
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* ═══ PAGES ═══ */
.page { display: none; }
.page.active { display: block; }

/* ═══ BOTTOM MENU — mobile only ═══ */
.bottom-menu {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bot-h);
  background: rgba(9,9,16,.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 300;
  align-items: center;
}
.bottom-menu-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 0;
  background: transparent;
  border: none;
  color: var(--dim);
  font-family: var(--font-body);
  cursor: pointer;
  transition: color .2s;
}
.bmi-icon { font-size: 1.2rem; line-height: 1; }
.bottom-menu-item small { font-size: .6rem; font-weight: 600; }
.bottom-menu-item.active, .bottom-menu-item:hover { color: var(--r2); }

.bmi-center { padding-bottom: 10px; }
.bmi-center-circle {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--r1), var(--r4));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--r-glow), 0 -4px 16px var(--r-glow);
  margin-top: -22px;
  margin-bottom: 3px;
  border: 3px solid rgba(9,9,16,.98);
}
.bmi-center:hover .bmi-center-circle { box-shadow: 0 0 30px var(--r-glow); }

/* ═══ FLOATING CONTACTS ═══ */
.float-contacts {
  position: fixed;
  right: 16px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 290;
}
.float-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.float-btn:hover { transform: scale(1.12); }
.float-line { background: #06C755; }
.float-tg   { background: #229ED9; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--r3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--r1); }

/* ═══ PARTICLES ═══ */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ═══════════════════════════════
   RESPONSIVE — MOBILE ≤ 768px
   ═══════════════════════════════ */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  /* Sidebar becomes overlay */
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }

  /* Nav goes full width */
  nav { left: 0; }

  /* Hamburger visible */
  .menu-toggle { display: flex; align-items: center; }

  /* Main no left margin */
  .main {
    margin-left: 0;
    padding-bottom: calc(var(--bot-h) + 8px);
  }

  /* Bottom nav shows */
  .bottom-menu { display: flex; }

  /* Float contacts above bottom nav */
  .float-contacts { bottom: calc(var(--bot-h) + 10px); right: 10px; }

  /* Layout adjustments */
  .section { padding: 14px 14px; }
  .ticker-wrap { padding: 7px 14px; }
  .hero { padding: 24px 14px 20px; }
  .hero h1 { font-size: 1.4rem; }
  .hld { font-size: .95rem; }
  .hero-sub { font-size: .8rem; }
  .cta-main, .cta-sec { padding: 10px 18px; font-size: .82rem; }
  .stats-bar { gap: 0; }
  .sv { font-size: .8rem; }
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .promo-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { padding: 20px 14px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .slide img { aspect-ratio: 16/7; }
}

@media (max-width: 480px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .nav-links .nbtn-out { display: none; }
  .hero h1 { font-size: 1.2rem; }
  .cta-main, .cta-sec { padding: 9px 14px; font-size: .78rem; }
}
