*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#f0f4f8;
  --bg2:#ffffff;
  --card:#ffffff;
  --border:#dde3ee;
  --accent:#1d4ed8;
  --accent2:#3b82f6;
  --gold:#d97706;
  --green:#059669;
  --red:#dc2626;
  --text:#111827;
  --text2:#6b7280;
  --sidebar-w:220px;
  --topbar-h:60px;
}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);min-height:100vh}
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:#f0f4f8}
::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}

/* SIDEBAR */
.sidebar{
  width:var(--sidebar-w);min-width:var(--sidebar-w);height:100vh;
  background:#fff;border-right:1px solid #e5eaf2;
  display:flex;flex-direction:column;position:fixed;left:0;top:0;z-index:100;
  transition:.3s;overflow-y:auto;box-shadow:2px 0 16px rgba(0,0,0,.08)
}
/* Sidebar logo — matches topbar blue exactly */
.sidebar-logo{
  display:flex;align-items:center;gap:10px;padding:0 18px;
  height:var(--topbar-h);min-height:var(--topbar-h);
  background:linear-gradient(90deg,#0f2770,#1a3a9e) !important;
  flex-shrink:0
}
.logo-icon{
  width:34px;height:34px;background:rgba(255,255,255,.2) !important;
  border:1px solid rgba(255,255,255,.25);
  border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;color:#fff !important
}
.logo-text{
  font-size:19px;font-weight:800;color:#fff !important;
  -webkit-text-fill-color:#fff !important;background:none !important;
  -webkit-background-clip:unset !important;letter-spacing:-.3px;
  flex:1
}
/* Sidebar close button - visible on mobile when sidebar is open */
.sidebar-close-btn{
  display:none;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  width:32px;height:32px;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
  align-items:center;justify-content:center;
  flex-shrink:0;
  transition:.15s;
  margin-left:auto
}
.sidebar-close-btn:hover{background:rgba(255,255,255,.28)}
@media(max-width:768px){
  .sidebar-close-btn{display:flex}
}

.sidebar-nav{flex:1;padding:10px 0;overflow-y:auto}
.nav-item{
  display:flex;align-items:center;gap:11px;padding:11px 18px;color:var(--text2);
  text-decoration:none;font-size:14px;font-weight:500;transition:.15s;
  border-left:3px solid transparent;cursor:pointer
}
.nav-item i{width:17px;font-size:15px}
.nav-item:hover{color:#1d4ed8;background:#eff6ff;border-left-color:#93c5fd}
.nav-item.active{color:#1d4ed8;background:#eff6ff;border-left-color:#1d4ed8;font-weight:600}

.sidebar-balance{padding:14px 18px;border-top:1px solid #e5eaf2;background:#f8fafd;flex-shrink:0}
.balance-label{font-size:10px;color:var(--text2);margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.balance-amount{font-size:14px;font-weight:700;color:var(--gold);display:flex;align-items:center;gap:6px}

/* TOPBAR - full blue like reference image */
.main-wrapper{margin-left:var(--sidebar-w);flex:1;display:flex;flex-direction:column;min-height:100vh}
.topbar{
  height:var(--topbar-h);
  background:linear-gradient(90deg,#0f2770,#1a3a9e,#1d4ed8);
  display:flex;align-items:center;
  padding:0 20px;gap:12px;
  position:sticky;top:0;z-index:90;
  box-shadow:0 3px 16px rgba(15,39,112,.35)
}
.topbar-left{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.menu-btn{background:none;border:none;color:rgba(255,255,255,.8);font-size:20px;cursor:pointer;display:none}
.topbar-brand{color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;gap:8px;letter-spacing:-.3px}
.topbar-brand i{color:#60a5fa}
.topbar-center{flex:1} /* spacer */
.balance-pill{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);
  padding:8px 20px;border-radius:24px;font-size:14px;font-weight:700;
  color:#fff;display:flex;align-items:center;gap:8px;cursor:pointer;
  transition:.2s
}
.balance-pill:hover{background:rgba(255,255,255,.2)}
.balance-pill i.fa-gem{color:#fbbf24}
.topbar-right{display:flex;align-items:center;gap:14px;justify-content:flex-end;position:relative}
/* TRX balance pill in topbar next to logo */
.topbar-trx-bal{
  display:flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);
  padding:6px 14px;border-radius:20px;
  font-size:13px;font-weight:700;color:#fff;
  letter-spacing:.2px;cursor:default;
  transition:.2s
}
.topbar-trx-bal:hover{background:rgba(255,255,255,.2)}
.topbar-trx-unit{font-size:11px;opacity:.8;font-weight:600}
.notif-btn{position:relative;cursor:pointer;font-size:19px;color:rgba(255,255,255,.85)}
.badge{
  position:absolute;top:-6px;right:-8px;background:#ef4444;color:#fff;
  font-size:9px;width:16px;height:16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-weight:700
}
.user-avatar-btn{
  width:36px;height:36px;background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.3);
  border-radius:50%;cursor:pointer;font-size:13px;font-weight:700;
  color:#fff;display:flex;align-items:center;justify-content:center;gap:4px
}

/* CONTENT */
.content{
  flex:1;padding:24px 28px;overflow-y:auto;
  background:#f0f4f8
}
.page{display:none;animation:fadeIn .25s ease}
.page.active{display:block}

@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.page-header{margin-bottom:28px}
.page-header h1{font-size:24px;font-weight:800;color:var(--text)}
.subtitle{color:var(--text2);font-size:13px;margin-top:5px}

/* PAGE LOADER */
.page-loader{
  position:fixed;inset:0;z-index:9998;
  background:rgba(240,244,248,.82);
  backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;
  transition:opacity .18s ease
}
.page-loader.show{opacity:1;pointer-events:all}
.loader-ring{
  display:inline-block;position:relative;
  width:52px;height:52px
}
.loader-ring div{
  box-sizing:border-box;display:block;position:absolute;
  width:44px;height:44px;margin:4px;
  border:4px solid transparent;
  border-top-color:#1d4ed8;
  border-radius:50%;
  animation:loaderSpin .75s cubic-bezier(.5,0,.5,1) infinite
}
.loader-ring div:nth-child(1){animation-delay:-.225s;border-top-color:#1d4ed8}
.loader-ring div:nth-child(2){animation-delay:-.15s;border-top-color:#3b82f6}
.loader-ring div:nth-child(3){animation-delay:-.075s;border-top-color:#93c5fd}
@keyframes loaderSpin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

/* LEVEL PROGRESS */
.level-progress-card{
  background:linear-gradient(135deg,#f8faff,#eef3ff);
  border:1px solid #dde6f8;border-radius:18px;
  padding:18px 24px;margin-bottom:32px;
  display:flex;flex-direction:column;gap:8px;
  box-shadow:0 4px 20px rgba(37,99,235,.07);
  position:relative;overflow:hidden
}
.level-progress-card::before{
  content:'';position:absolute;top:0;right:0;
  width:120px;height:100%;
  background:linear-gradient(135deg,transparent,rgba(37,99,235,.04));
  pointer-events:none
}
.lp-label{font-size:10px;color:var(--text2);display:block;margin-bottom:2px;text-transform:uppercase;letter-spacing:.6px;font-weight:700}
.lp-val{font-size:15px;font-weight:900;color:var(--text);display:block}
.lp-val.amber{color:var(--gold)}
/* lp-top-row: WAGERED left, TARGET right */
.lp-top-row{display:flex;align-items:center;justify-content:space-between;width:100%}
.lp-left{display:flex;flex-direction:column}
.lp-right{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.lp-center{width:100%;flex:none}
.lp-badge{
  text-align:center;font-size:12px;font-weight:800;margin-bottom:10px;
  background:linear-gradient(135deg,#fef3c7,#fde68a);
  border:1px solid #f59e0b;
  color:#92400e;
  display:flex;padding:5px 18px;border-radius:20px;align-items:center;
  justify-content:center;gap:6px;width:fit-content;margin:0 auto 12px;
  box-shadow:0 2px 8px rgba(245,158,11,.2)
}
.progress-track-wrap{position:relative;margin-bottom:12px}

.progress-track{
  background:#dde8f9;border-radius:30px;height:18px;
  overflow:hidden;position:relative;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.1)
}
.progress-fill{
  background:linear-gradient(90deg,#1e3a8a 0%,#2563eb 55%,#38bdf8 100%);
  height:100%;border-radius:30px;min-width:0;
  position:relative;
  transition:width 1.6s cubic-bezier(.25,.46,.45,.94);
  box-shadow:0 3px 12px rgba(37,99,235,.55);overflow:hidden
}
/* Shimmer sweep on fill */
.progress-fill::after{
  content:'';position:absolute;top:0;left:-80%;width:60%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  animation:shimmerBar 2s ease-in-out infinite
}
@keyframes shimmerBar{0%{left:-60%}100%{left:140%}}
.progress-pct{
  position:absolute;right:10px;top:50%;
  transform:translateY(-50%);
  font-size:10px;font-weight:800;color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.35);white-space:nowrap;
  pointer-events:none;z-index:3
}
/* Level up flash */
@keyframes levelUpPulse{
  0%{box-shadow:0 0 0 0 rgba(56,189,248,.8)}
  70%{box-shadow:0 0 0 18px rgba(56,189,248,0)}
  100%{box-shadow:0 0 0 0 rgba(56,189,248,0)}
}
.progress-track.level-up-flash{animation:levelUpPulse .7s ease 4}
.lp-milestones{display:flex;justify-content:space-between;font-size:11px;color:#4b5563;font-weight:600;margin-top:5px}

/* SPIN PAGE LAYOUT */
.spin-page-layout{
  background:#fff;border:1px solid #e2eaf5;border-radius:20px;
  padding:30px 32px;margin-bottom:20px;
  box-shadow:0 2px 16px rgba(0,0,0,.06);
  display:flex;flex-direction:column;align-items:center
}
/* Spin Tagline */
.spin-tagline-wrap{text-align:center;margin-bottom:18px}
.spin-tagline-title{font-size:20px;font-weight:800;color:#1e293b;margin:0 0 6px;letter-spacing:-.3px}
.spin-tagline-sub{font-size:13px;color:#64748b;margin:0 0 12px;font-weight:500}
.spin-games-btn{
  display:inline-flex;align-items:center;gap:8px;
  background:linear-gradient(135deg,#1d4ed8,#4f46e5);
  color:#fff;border:none;padding:10px 22px;border-radius:25px;
  font-size:13px;font-weight:700;cursor:pointer;transition:.2s;
  box-shadow:0 4px 14px rgba(29,78,216,.35);font-family:'Inter',sans-serif
}
.spin-games-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(29,78,216,.45)}
/* Level Button */
.level-btn-row{margin-bottom:16px}
.level-sys-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:linear-gradient(90deg,#f0f6ff,#e8f0fe);
  border:1.5px solid #bfdbfe;color:#1d4ed8;
  padding:11px 28px;border-radius:30px;font-size:14px;font-weight:700;
  cursor:pointer;transition:.2s;box-shadow:0 2px 8px rgba(29,78,216,.1)
}
.level-sys-btn:hover{background:linear-gradient(90deg,#dbeafe,#c7d7fd);box-shadow:0 4px 16px rgba(29,78,216,.2);transform:translateY(-1px)}
.level-sys-btn #current-level-name{color:#d97706;font-weight:800}

/* Wheel centered only */
.wheel-only-center{
  position:relative;display:flex;flex-direction:column;
  align-items:center;margin-bottom:36px;padding:10px 0
}
.wheel-pointer{
  font-size:32px;color:#1d4ed8;position:absolute;top:-18px;z-index:10;
  filter:drop-shadow(0 2px 6px rgba(29,78,216,.4));animation:bounce .9s infinite
}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
#wheelCanvas{
  border-radius:50%;max-width:100%;
  box-shadow:0 8px 40px rgba(0,0,0,.45),0 0 0 10px #111,0 0 0 14px #333,0 0 0 18px #111;
  cursor:pointer
}
/* Captcha centered */
.captcha-center{
  background:#f8fafc;border:1px solid #e2eaf5;border-radius:12px;
  padding:14px 24px;display:flex;align-items:center;gap:12px;
  font-size:14px;color:var(--text);margin-bottom:28px;min-width:300px
}
.captcha-center input{width:18px;height:18px;cursor:pointer;accent-color:var(--accent)}

/* Claim Button Row */
.claim-btn-row{display:flex;flex-direction:column;align-items:center;gap:12px}
.claim-btn{
  background:linear-gradient(135deg,#0f2770,#1d4ed8,#2563eb);color:#fff;border:none;
  padding:18px 72px;border-radius:50px;font-size:18px;font-weight:800;cursor:pointer;
  transition:.2s;display:flex;align-items:center;gap:12px;
  box-shadow:0 6px 24px rgba(15,39,112,.35);letter-spacing:.5px;
  border:2px solid rgba(255,255,255,.15)
}
.claim-btn:hover{transform:translateY(-3px);box-shadow:0 10px 32px rgba(15,39,112,.45)}
.claim-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.claim-btn .spin-icon{transition:transform .4s}
.claim-btn:hover .spin-icon{transform:rotate(180deg)}
.spin-note{font-size:12px;color:var(--text2);font-weight:500}

/* WIN POPUP */
/* WIN TOAST NOTIFICATION */
.win-toast{
  display:none;position:fixed;
  top:24px;right:24px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  border:1px solid rgba(34,197,94,.4);
  border-radius:16px;padding:14px 20px;
  z-index:9999;min-width:220px;
  box-shadow:0 8px 32px rgba(0,0,0,.45),0 0 0 1px rgba(34,197,94,.15);
  overflow:hidden;
  animation:toastSlide .3s cubic-bezier(.34,1.56,.64,1);
  align-items:center;gap:14px;
}
.win-toast.show{display:flex}
.win-toast-icon{
  width:44px;height:44px;border-radius:12px;flex-shrink:0;
  background:linear-gradient(135deg,rgba(34,197,94,.2),rgba(5,150,105,.2));
  border:1px solid rgba(34,197,94,.3);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;color:#22c55e;
  animation:iconSpin .5s ease .2s both
}
.win-toast-body{flex:1}
.win-toast-title{font-size:13px;font-weight:700;color:rgba(255,255,255,.7);margin-bottom:3px}
.win-toast-amount{font-size:20px;font-weight:900;color:#22c55e;letter-spacing:-.3px}
.win-toast-bar{
  position:absolute;bottom:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#22c55e,#059669);
  transform-origin:left;
  animation:toastBar 1s linear forwards
}
@keyframes toastSlide{from{transform:translateX(120px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes toastSlideOut{from{transform:translateX(0);opacity:1}to{transform:translateX(120px);opacity:0}}
@keyframes toastBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes iconSpin{from{transform:rotate(-20deg) scale(.8)}to{transform:rotate(0) scale(1)}}


/* LEVEL MODAL */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:998;align-items:center;justify-content:center;backdrop-filter:blur(3px)}
.modal-overlay.show{display:flex}
.modal-box{background:#fff;border-radius:20px;padding:32px;max-width:640px;width:90%;max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.15);animation:popIn .3s ease}
.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.modal-header h2{font-size:20px;font-weight:800;color:var(--text);display:flex;align-items:center;gap:10px}
.modal-header h2 i{color:#2563eb}
.modal-close{background:none;border:none;font-size:20px;cursor:pointer;color:var(--text2);padding:4px 8px;border-radius:8px}
.modal-close:hover{background:#f1f5f9}
.modal-sub{color:var(--text2);font-size:13px;margin-bottom:20px}
.level-table-wrap{overflow-x:auto}
.level-table{width:100%;border-collapse:collapse;font-size:14px}
.level-table th{background:#eff6ff;color:#1d4ed8;padding:12px 16px;text-align:left;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.5px}
.level-table th:first-child{border-radius:10px 0 0 10px}
.level-table th:last-child{border-radius:0 10px 10px 0}
.level-table td{padding:13px 16px;border-bottom:1px solid #f1f5f9;color:var(--text)}
.level-table tr:last-child td{border:none}
.level-table tr.active-level td{background:#f0fdf4;font-weight:700}
.level-table tr:hover td{background:#f8fafc}
.lvl-name{display:flex;align-items:center;gap:8px;font-weight:600}
.lvl-reward{color:#059669;font-weight:700}
.lvl-wager{color:var(--text2)}
.current-tag{background:#059669;color:#fff;font-size:10px;padding:2px 8px;border-radius:10px;font-weight:700}

/* RECENT CLAIMS */
.recent-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px 24px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.recent-card h3{font-size:15px;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:8px;color:var(--text)}
.wins-list{}
.win-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.win-row:last-child{border:none}
.winner{color:var(--text2)}
.won-amt{color:#059669;font-weight:700}
.won-time{color:#94a3b8;font-size:11px}

/* GAMES NEW */
.games-title-block{text-align:center;margin-bottom:10px;padding:2px 0}
.games-heading{font-size:20px;font-weight:900;color:var(--text);letter-spacing:1px;text-transform:uppercase;margin-bottom:3px}
.games-subheading{font-size:12px;color:var(--text2);line-height:1.4}
.games-subheading strong{color:var(--text);font-weight:700}
.provably-fair{color:#2563eb;font-weight:800;cursor:pointer}
.games-tagline{
  text-align:center;font-size:13px;color:#64748b;
  margin:0 0 14px;font-weight:500;line-height:1.5
}
.games-tagline strong{color:#1e293b;font-weight:700}
/* ===== GAMES PAGE — 3D FULL-FILL ICON GRID ===== */
.games-icon-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  max-width:560px;
  width:100%;
  margin:0 auto 28px;
  padding:0
}
.game-icon-card{
  cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  perspective:600px
}
.game-icon-card:hover{transform:translateY(-8px) rotateX(4deg) scale(1.04)}
.game-icon-img{
  width:100%;aspect-ratio:1/1;
  border-radius:22px;overflow:hidden;
  box-shadow:0 12px 36px rgba(0,0,0,.28),0 4px 12px rgba(0,0,0,.15);
  position:relative;
  display:flex;align-items:center;justify-content:center
}
.game-icon-card:hover .game-icon-img{
  box-shadow:0 20px 50px rgba(0,0,0,.38),0 8px 20px rgba(0,0,0,.2)
}
.game-icon-label{
  font-size:13px;font-weight:800;
  color:#1e293b;text-align:center;letter-spacing:.3px
}
/* games page extra vertical breathing room */
#page-games.active{
  display:flex;flex-direction:column;align-items:center;
  padding-top:16px
}
#page-games.active .level-progress-card{width:100%;max-width:none;margin:0 0 22px;border-radius:0}
#page-games.active .games-tagline{width:100%;max-width:760px;text-align:center;margin:0 auto 14px}
#page-games.active .games-bets-section{width:90%;max-width:760px;margin:0 auto}
#page-games.active .games-icon-grid{margin:0 auto 28px}

/* ===== GAMES BETS SECTION ===== */
.games-bets-section{
  background:#fff;border:1px solid #e5eaf2;border-radius:18px;
  overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.06);
  margin-top:4px
}
.games-bets-tabs{
  display:flex;border-bottom:1px solid #e5eaf2;
  background:#f8fafd
}
.gbets-tab{
  flex:1;padding:12px 0;border:none;background:transparent;
  font-size:13px;font-weight:700;color:#94a3b8;cursor:pointer;
  transition:.18s;font-family:'Inter',sans-serif;
  border-bottom:2px solid transparent;margin-bottom:-1px
}
.gbets-tab.active{color:#1d4ed8;border-bottom-color:#1d4ed8;background:#fff}
.gbets-tab:hover:not(.active){color:#475569;background:#f0f4f8}
.games-bets-table-wrap{overflow-x:auto}
.games-bets-table{width:100%;border-collapse:collapse}
.games-bets-table thead tr{background:#f8fafd}
.games-bets-table th{
  padding:10px 14px;font-size:11px;font-weight:700;
  color:#94a3b8;text-align:left;text-transform:uppercase;
  letter-spacing:.5px;white-space:nowrap
}
.games-bets-table td{
  padding:11px 14px;font-size:12.5px;font-weight:500;color:#334155;
  border-top:1px solid #f1f5f9;white-space:nowrap
}
.games-bets-table tr:hover td{background:#f8fafd}
.no-bets-row td{
  text-align:center;color:#94a3b8;font-size:13px;
  padding:32px 14px!important;font-style:italic
}
.gbet-win{color:#059669;font-weight:700}
.gbet-loss{color:#dc2626;font-weight:700}
.gbet-game-tag{
  display:inline-flex;align-items:center;gap:5px;
  background:#f0f6ff;color:#1d4ed8;padding:3px 9px;
  border-radius:20px;font-size:11px;font-weight:700;border:1px solid #bfdbfe
}

#page-dice{}
.game-pg-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;max-width:900px;margin-left:auto;margin-right:auto}
.back-btn{
  display:flex;align-items:center;gap:8px;background:none;border:1px solid var(--border);
  color:var(--text);padding:7px 14px;border-radius:10px;font-size:14px;font-weight:700;
  cursor:pointer;transition:.2s;font-family:'Inter',sans-serif
}
.back-btn:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.rules-btn{
  display:flex;align-items:center;gap:6px;background:none;border:1px solid var(--border);
  color:var(--text2);padding:7px 13px;border-radius:10px;font-size:12px;font-weight:600;
  cursor:pointer;transition:.2s;font-family:'Inter',sans-serif
}
.rules-btn:hover{background:#f8fafd}

.dice-panel{
  background:#fff;border:1px solid #e5eaf2;border-radius:22px;
  overflow:hidden;max-width:900px;margin:0 auto 22px;
  box-shadow:0 4px 24px rgba(0,0,0,.09)
}
/* Dice dark result display */
.dice-display-bar{
  background:linear-gradient(135deg,#0f172a,#1e293b);
  padding:22px 28px;
  display:flex;align-items:center;justify-content:center;
  min-height:90px
}
.dice-result-num{
  font-size:52px;font-weight:900;color:#fff;
  letter-spacing:-1px;font-family:'Inter',sans-serif;
  text-shadow:0 0 30px rgba(34,197,94,.6);
  transition:color .3s
}
.dice-result-num.win{color:#22c55e;text-shadow:0 0 30px rgba(34,197,94,.8)}
.dice-result-num.lose{color:#ef4444;text-shadow:0 0 30px rgba(239,68,68,.8)}
.dice-form-area{padding:22px 28px}
.dice-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:15px}
.dice-row.three{grid-template-columns:1fr 1fr 1fr}
.dice-label{font-size:11px;font-weight:600;color:#22c55e;margin-bottom:6px;display:block}
.dice-input-wrap{
  display:flex;align-items:center;gap:0;border:1px solid #e5eaf2;
  border-radius:10px;overflow:hidden;background:#f8fafd
}
.dice-input-wrap input{
  flex:1;border:none;background:transparent;padding:9px 10px;
  font-size:13px;font-weight:600;color:var(--text);outline:none;
  font-family:'Inter',sans-serif
}
.dice-input-wrap input[readonly]{color:#6b7280}
.trx-sym{color:#ef4444;font-size:12px;padding:0 8px;flex-shrink:0}
.field-sym{color:#94a3b8;font-size:15px;padding:0 10px;flex-shrink:0}
.dice-quick{display:flex;border-left:1px solid #e5eaf2;flex-shrink:0}
.dice-quick button{
  padding:0 11px;border:none;background:transparent;font-size:12px;font-weight:800;
  color:#16a34a;cursor:pointer;height:38px;border-right:1px solid #e5eaf2;
  transition:.15s;font-family:'Inter',sans-serif
}
.dice-quick button:last-child{border-right:none}
.dice-quick button:hover{background:#dcfce7}

/* Toggle + Roll Button row - centered layout */
.dice-ctrl-row{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:18px}
.dice-toggle-block{display:flex;align-items:center;gap:10px;flex-shrink:0}
.toggle-switch{position:relative;display:inline-block;width:48px;height:26px;cursor:pointer}
.toggle-switch input{opacity:0;width:0;height:0}
.toggle-track{
  position:absolute;inset:0;background:#e5eaf2;border-radius:28px;transition:.3s
}
.toggle-switch input:checked ~ .toggle-track{background:linear-gradient(90deg,#f59e0b,#fb923c)}
.toggle-track::after{
  content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;
  background:#fff;border-radius:50%;transition:.3s;box-shadow:0 2px 4px rgba(0,0,0,.2)
}
.toggle-switch input:checked ~ .toggle-track::after{left:25px}
.toggle-mode-lbl{font-size:12px;font-weight:600;color:var(--text2)}
/* Roll Dice Button - centered, smaller, with press animation */
.dice-roll-btn{
  background:#22c55e;color:#fff;border:none;padding:11px 0;
  border-radius:10px;font-size:14px;font-weight:800;cursor:pointer;
  transition:transform .1s, box-shadow .1s, background .2s;
  letter-spacing:.5px;font-family:'Inter',sans-serif;
  box-shadow:0 4px 0 #15803d;
  position:relative;top:0;
  width:260px;
  text-align:center;
}
.dice-roll-btn:hover{opacity:.92;}
.dice-roll-btn:active{
  transform:translateY(3px);
  box-shadow:0 1px 0 #15803d;
  top:2px;
}

/* Slider */
.dice-slider-row{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.slider-num{font-size:12px;font-weight:600;color:#6b7280;width:20px;text-align:center;flex-shrink:0}
.dice-track-wrap{
  flex:1;height:26px;border-radius:13px;position:relative;cursor:pointer;
  background:#e5eaf2;overflow:visible
}
.dtrack-red{position:absolute;left:0;top:0;bottom:0;background:#ef4444;border-radius:13px 0 0 13px;width:51.5%;transition:.15s}
.dtrack-green{position:absolute;right:0;top:0;bottom:0;background:#22c55e;border-radius:0 13px 13px 0;width:48.5%;transition:.15s}
.dtrack-handle{
  position:absolute;top:50%;transform:translate(-50%,-50%);left:51.5%;
  background:#fff;border:2px solid #cbd5e1;border-radius:6px;
  padding:2px 5px;font-size:10px;color:#94a3b8;font-weight:800;
  box-shadow:0 2px 8px rgba(0,0,0,.15);cursor:grab;z-index:2;transition:left .15s;
  user-select:none;white-space:nowrap
}
/* Result point - colored by win/loss zone */
.dtrack-result{
  position:absolute;top:50%;transform:translate(-50%,-50%);width:4px;height:140%;
  opacity:1;z-index:4;border-radius:3px;
  transition:left .3s ease;
  background:#ef4444;
  box-shadow:0 0 8px 3px rgba(239,68,68,.6);
}
.dtrack-result[data-win="true"]{
  background:#22c55e;
  box-shadow:0 0 8px 3px rgba(34,197,94,.6);
}
.dtrack-result[data-win="false"]{
  background:#ef4444;
  box-shadow:0 0 8px 3px rgba(239,68,68,.6);
}
/* Tooltip bubble on result */
.dtrack-result::before{
  content:attr(data-val);
  position:absolute;bottom:145%;left:50%;transform:translateX(-50%);
  color:#fff;font-size:12px;font-weight:800;
  padding:4px 9px;border-radius:7px;white-space:nowrap;
  pointer-events:none;font-family:'Inter',sans-serif;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  background:#ef4444;
}
.dtrack-result[data-win="true"]::before{
  background:#22c55e;
}
.dtrack-result[data-win="false"]::before{
  background:#ef4444;
}
/* Small triangle under bubble */
.dtrack-result::after{
  content:'';
  position:absolute;bottom:calc(145% - 7px);left:50%;transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:#ef4444;
  pointer-events:none;
}
.dtrack-result[data-win="true"]::after{
  border-top-color:#22c55e;
}
.dtrack-result[data-win="false"]::after{
  border-top-color:#ef4444;
}

/* Auto Options */
#diceAutoOpts{margin-top:8px;border-top:1px solid #f0f4f8;padding-top:20px;animation:fadeIn .2s}
.auto-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.auto-box{background:#f8fafd;border:1px solid #e5eaf2;border-radius:12px;padding:18px}
.auto-box h4{font-size:13px;font-weight:700;color:var(--text);margin-bottom:12px}
.aradio{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text);margin-bottom:8px;cursor:pointer}
.apct{width:60px;border:1px solid #e5eaf2;border-radius:6px;padding:4px 8px;font-size:13px;font-weight:600;font-family:'Inter',sans-serif;outline:none;text-align:center}
/* Auto stop row - 2x2 grid so Total Profit doesnt overflow */
.auto-stop-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}

/* Bets Table */
.dice-bets-section{background:#fff;border:1px solid #e5eaf2;border-radius:18px;max-width:900px;margin:0 auto;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.bets-tab-row{display:flex;border-bottom:2px solid #f0f4f8}
.bets-tab{
  flex:1;padding:14px;border:none;background:transparent;font-size:13px;font-weight:700;
  color:#94a3b8;cursor:pointer;font-family:'Inter',sans-serif;transition:.15s
}
.bets-tab.active{color:#1d4ed8;border-bottom:2px solid #1d4ed8;margin-bottom:-2px}
.bets-tbl-wrap{overflow-x:auto}
.bets-tbl{width:100%;border-collapse:collapse}
.bets-tbl th{padding:10px 16px;font-size:12px;font-weight:700;color:#94a3b8;text-align:left;background:#f8fafd;text-transform:uppercase;letter-spacing:.5px}
.bets-tbl td{padding:10px 16px;font-size:13px;font-weight:500;border-top:1px solid #f0f4f8}
.bets-tbl tr.bet-win td:last-child{color:#059669;font-weight:700}
.bets-tbl tr.bet-loss td:last-child{color:#dc2626;font-weight:700}
.bets-tbl tbody tr:hover{background:#f8fafd}


/* CONTESTS */
.contests-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.contest-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:24px;position:relative;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.contest-card.gold-border{border-color:#fbbf24}
.contest-card.blue-border{border-color:#93c5fd}
.contest-badge{position:absolute;top:16px;right:16px;color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px}
.contest-badge.live{background:#059669}
.contest-badge.upcoming{background:#2563eb}
.contest-card h3{font-size:17px;font-weight:800;margin-bottom:10px}
.prize-pool{color:#d97706;font-size:15px;font-weight:700;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.contest-timer{color:var(--text2);font-size:13px;margin-bottom:14px}
.lb-mini{background:#f8fafc;border-radius:10px;padding:10px;margin-bottom:16px}
.lb-row{display:flex;justify-content:space-between;font-size:13px;padding:4px 0;border-bottom:1px solid #f1f5f9}
.lb-row:last-child{border:none}
.contest-btn{width:100%;background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;border:none;padding:12px;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer}

/* FORMS */
.form-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:28px;max-width:560px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.form-group{margin-bottom:16px}
.form-group label{font-size:13px;color:var(--text2);display:block;margin-bottom:6px;font-weight:500}
.form-input{width:100%;background:#f8fafc;border:1px solid var(--border);color:var(--text);padding:11px 14px;border-radius:10px;font-size:14px;font-family:'Inter',sans-serif;transition:.2s;resize:vertical}
.form-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.1);background:#fff}
.primary-btn{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;border:none;padding:12px 26px;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer;transition:.2s;display:inline-flex;align-items:center;gap:8px}
.primary-btn:hover{opacity:.85}
.address-box{background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-family:monospace;margin-bottom:12px;word-break:break-all}
.copy-btn{background:#2563eb;border:none;color:#fff;padding:6px 12px;border-radius:8px;cursor:pointer;font-size:13px;flex-shrink:0}
.d-stat{background:#f8fafc;border-radius:10px;padding:14px;text-align:center;border:1px solid var(--border)}
.d-stat span{font-size:11px;color:var(--text2);display:block;margin-bottom:4px}
.d-stat strong{font-size:15px;font-weight:700}

/* AFFILIATES */
.aff-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:560px}
.aff-stat-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.aff-num{font-size:22px;font-weight:800;color:#2563eb;margin-bottom:4px}
.aff-label{font-size:11px;color:var(--text2)}

/* SETTINGS */
.settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}
.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9;font-size:14px}
.toggle-row:last-child{border:none}
.toggle{position:relative;display:inline-block;width:44px;height:23px}
.toggle input{display:none}
.slider{position:absolute;cursor:pointer;inset:0;background:#e2e8f0;border-radius:23px;transition:.3s}
.slider:before{content:'';position:absolute;height:17px;width:17px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.toggle input:checked+.slider{background:#2563eb}
.toggle input:checked+.slider:before{transform:translateX(21px)}

/* TOAST */
.toast{position:fixed;bottom:24px;right:24px;background:#1e293b;color:#fff;padding:12px 20px;border-radius:10px;font-size:13px;font-weight:600;z-index:9999;box-shadow:0 4px 20px rgba(0,0,0,.3);animation:fadeIn .3s ease}

/* FOOTER */
.site-footer{
  background:linear-gradient(180deg,#0d1b3e 0%,#091430 100%);
  color:rgba(255,255,255,.75);padding:0;flex-shrink:0
}
.footer-inner{max-width:100%;padding:36px 48px 24px}
.footer-top{text-align:center;margin-bottom:24px}
.footer-brand{
  font-size:22px;font-weight:800;color:#fff;margin-bottom:10px;
  display:flex;align-items:center;justify-content:center;gap:10px
}
.footer-brand i{color:#60a5fa}
.footer-desc{font-size:13px;color:rgba(255,255,255,.55);max-width:560px;margin:0 auto 18px;line-height:1.7}
.footer-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.footer-nav a{
  color:rgba(255,255,255,.75);text-decoration:none;font-size:13px;font-weight:500;
  transition:.2s;padding:3px 6px;border-radius:6px
}
.footer-nav a:hover{color:#fff;background:rgba(255,255,255,.1)}
.dot{color:rgba(255,255,255,.3);font-size:12px}
.footer-lang{
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);
  color:#fff;padding:7px 16px;border-radius:8px;font-size:13px;cursor:pointer;
  font-family:'Inter',sans-serif;outline:none;margin-top:4px
}
.footer-lang option{background:#0d1b3e;color:#fff}
.footer-divider{height:1px;background:rgba(255,255,255,.08);margin:0 0 18px}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;font-size:13px
}
.footer-trx{
  display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.7)
}
.footer-trx i{color:#60a5fa}
.footer-trx strong{color:#4ade80;font-size:14px}
.price-badge{
  background:rgba(74,222,128,.15);color:#4ade80;font-size:11px;font-weight:700;
  padding:2px 8px;border-radius:20px;border:1px solid rgba(74,222,128,.3)
}
.price-badge.red{background:rgba(239,68,68,.15);color:#f87171;border-color:rgba(239,68,68,.3)}
.footer-copy{color:rgba(255,255,255,.45);font-size:12px}

/* ============================================================
   MOBILE BOTTOM NAVIGATION (Dashboard)
   ============================================================ */
.mobile-nav-bar {
  display:none;
  position:fixed;bottom:0;left:0;right:0;z-index:300;
  background:rgba(10,16,40,0.98);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-top:1px solid rgba(255,255,255,.1);
  height:62px;
  padding-bottom:env(safe-area-inset-bottom);
  box-shadow:0 -4px 20px rgba(0,0,0,.3);
}
.mnb-inner {
  display:flex;align-items:stretch;
  height:100%;width:100%;
}
.mnb-item {
  flex:1;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:3px;border:none;background:transparent;
  color:rgba(255,255,255,.45);cursor:pointer;
  font-family:'Inter',sans-serif;
  transition:color .18s,background .18s;
  padding:8px 4px;
  -webkit-tap-highlight-color:transparent;
  position:relative;
}
.mnb-item i { font-size:18px;line-height:1 }
.mnb-item span { font-size:9px;font-weight:600;letter-spacing:.2px;line-height:1 }
.mnb-item.active { color:#60a5fa }
.mnb-item.active::before {
  content:'';
  position:absolute;top:0;left:20%;right:20%;
  height:2px;border-radius:0 0 4px 4px;
  background:linear-gradient(90deg,#60a5fa,#818cf8);
}
.mnb-item:hover { color:#93c5fd }
.mnb-item.mnb-more { color:rgba(255,255,255,.4) }

/* More menu drawer */
.mobile-more-drawer {
  display:none;
  position:fixed;bottom:62px;left:0;right:0;z-index:299;
  background:rgba(10,16,40,0.99);
  backdrop-filter:blur(16px);
  border-top:1px solid rgba(255,255,255,.1);
  padding:12px 16px;
  animation:drawerUp .22s ease;
  max-height:60vh;overflow-y:auto;
}
.mobile-more-drawer.show { display:block }
@keyframes drawerUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.mmd-grid {
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;
}
.mmd-item {
  display:flex;flex-direction:column;align-items:center;
  gap:6px;padding:12px 6px;border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.07);
  color:rgba(255,255,255,.75);cursor:pointer;
  font-size:10px;font-weight:600;
  -webkit-tap-highlight-color:transparent;
  transition:.15s;
}
.mmd-item i { font-size:20px }
.mmd-item:hover,.mmd-item.active { background:rgba(96,165,250,.15);border-color:rgba(96,165,250,.3);color:#60a5fa }
.mmd-close-btn {
  width:100%;margin-top:10px;padding:10px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
  border-radius:10px;color:rgba(255,255,255,.6);
  font-size:13px;font-weight:600;cursor:pointer;
  font-family:'Inter',sans-serif;
}

/* ============================================================
   RESPONSIVE — Main Layout
   ============================================================ */
@media(max-width:768px){
  /* Sidebar: hidden by default on mobile, slides in from left */
  .sidebar{
    transform:translateX(-100%);
    box-shadow:none;
    z-index:200;
    transition:transform .28s cubic-bezier(.4,0,.2,1);
  }
  .sidebar.open{
    transform:translateX(0);
    box-shadow:4px 0 32px rgba(0,0,0,.5);
  }
  .main-wrapper{margin-left:0!important}
  .menu-btn{display:block}

  /* Content padding + bottom padding for mobile nav */
  .content{padding:14px 12px 80px;}
  /* Topbar */
  .topbar{padding:0 12px;gap:8px}
  .topbar-center{display:none}
  .topbar-brand span{display:none}
  .topbar-trx-bal{padding:5px 10px;font-size:12px;gap:5px}
  .topbar-trx-unit{display:none}
  .notif-btn{width:32px;height:32px;font-size:14px}
  .profile-btn{padding:5px 8px}
  /* Show mobile nav bar */
  .mobile-nav-bar{display:flex}
  /* Wheel canvas */
  #wheelCanvas{width:260px!important;height:260px!important}
  /* Spin layout */
  .spin-page-layout{padding:16px 14px!important}
  .claim-btn{padding:14px 40px!important;font-size:15px!important}
  .spin-cooldown-box{padding:20px 16px;max-width:100%}
  .scb-timer{font-size:38px}
  /* Level progress card — mobile: same column layout, just tighter spacing */
  .level-progress-card{
    padding:10px 14px;
    gap:6px;
    border-radius:14px;
    margin-bottom:16px;
  }
  .lp-top-row{ margin-bottom:2px }
  .lp-label{ font-size:10px!important }
  .lp-val{ font-size:12px!important;font-weight:700!important }
  .lp-right{ display:flex }/* Keep target visible on mobile too */
  .lp-center{ width:100% }
  .progress-track-wrap{ margin-bottom:6px }
  .lp-top-row{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:2px;
  }
  /* Games icon grid */
  .games-icon-grid{grid-template-columns:repeat(3,1fr);gap:10px;max-width:100%}
  .game-icon-label{font-size:11px}
  /* Games page */
  #page-games.active .games-icon-grid{max-width:100%}
  #page-games.active .level-progress-card{border-radius:14px!important}
  /* Games bets table */
  .games-bets-table th,.games-bets-table td{padding:8px 10px;font-size:11px}
  /* Affiliates */
  .aff-stats-grid{grid-template-columns:repeat(2,1fr)}
  .aff-rates-grid{grid-template-columns:repeat(2,1fr)}
  .aff-earned-row{grid-template-columns:1fr}
  /* Captcha */
  .captcha-center{min-width:unset;width:100%}
  /* Profile dropdown — anchored to right edge of topbar-right */
  .profile-dropdown{position:absolute;top:54px;right:0;width:min(220px,90vw)}
  /* Notification dropdown — anchored to right edge of topbar-right */
  .notif-dropdown{position:absolute;top:54px;right:0;width:min(320px,96vw)}
  /* Dice panel */
  .dice-panel{border-radius:16px}
  .dice-form-area{padding:14px 14px}
  .dice-row{grid-template-columns:1fr 1fr;gap:10px}
  .dice-row.three{grid-template-columns:1fr 1fr 1fr}
  .dice-ctrl-row{flex-direction:column;gap:12px}
  .dice-roll-btn{width:100%!important}
  .auto-two-col{grid-template-columns:1fr}
  .auto-stop-row{grid-template-columns:repeat(2,1fr)}
  /* Mines grid */
  .mines-panel{padding:16px 14px}
  .mines-grid{padding:12px;gap:7px}
  .mines-cell{height:56px;font-size:20px;border-radius:10px}
  /* Limbo */
  .limbo-display{height:180px}
  .limbo-mult{font-size:38px}
  .limbo-fields-row{flex-direction:column;gap:8px}
  /* Slots */
  .slots-machine-wrap{padding:8px 4px}
  .slot-sym{height:64px;font-size:28px}
  .slots-bet-row{flex-direction:column;gap:8px}
  /* WOF */
  .wof-panel{padding:16px 12px}
  /* Contest */
  .contest-prizes-grid{grid-template-columns:repeat(2,1fr)}
  .cd-num{font-size:36px;padding:10px 14px;min-width:56px}
  .cd-sep{font-size:30px;padding-bottom:14px}
  /* Deposit/Withdraw */
  .dep-card{padding:12px}
  .wdraw-card{padding:12px}
  .dep-address-input{font-size:11px}
  /* Withdraw amount field — buttons visible on mobile */
  .wdraw-field{
    flex-wrap:nowrap;
    gap:4px;
    padding:10px 10px;
    min-width:0;
  }
  .wdraw-input{ min-width:0;flex:1;font-size:14px!important }
  .wdraw-minmax{
    flex-shrink:0;
    padding:6px 8px;
    font-size:11px;
    white-space:nowrap;
    min-width:36px;
  }
  /* Settings */
  .settings-tabs,.aff-tabs{gap:0}
  .stab,.aff-tab{font-size:12px;padding:9px 6px}
  /* Payout */
  .payout-stats-row{grid-template-columns:1fr;gap:10px}
  .payout-tbl th,.payout-tbl td{padding:10px 12px;font-size:12px}
  /* Footer */
  .footer-inner{padding:20px 14px 16px}
  /* Games page tagline */
  .games-tagline{font-size:12px;padding:0 8px}
  /* Page header */
  .page-header h1{font-size:18px}
  /* Bottom bar hide on mobile (we have mobile nav) */
  .dash-bottom-bar{display:none!important}
  /* Auth bottom adjustments */
  .auth-page-nav{padding:0 14px;height:52px}
  /* Topbar brand icon only */
  .topbar-brand{font-size:14px}
  /* Games CTA banner */
  [style*="space-between"] > button { white-space:normal;text-align:center }
}

/* POLICY PAGES */
.policy-section{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.policy-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.policy-section h3{font-size:15px;font-weight:700;color:#1d4ed8;margin-bottom:10px}
.policy-section p{font-size:14px;color:#374151;line-height:1.75;margin-bottom:8px}
.policy-section ul{list-style:none;padding:0;margin:8px 0}
.policy-section ul li{font-size:14px;color:#374151;padding:5px 0 5px 20px;position:relative;line-height:1.6}
.policy-section ul li::before{content:'›';position:absolute;left:0;color:#1d4ed8;font-weight:700;font-size:16px}

/* FAQ */
.faq-list{max-width:760px}
.faq-item{background:#fff;border:1px solid var(--border);border-radius:14px;margin-bottom:12px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.faq-q{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 20px;cursor:pointer;font-size:14px;font-weight:600;
  color:var(--text);transition:.2s
}
.faq-q:hover{background:#f8fafd;color:#1d4ed8}
.faq-q i{color:#94a3b8;transition:transform .3s;font-size:13px;flex-shrink:0}
.faq-q.open i{transform:rotate(180deg);color:#1d4ed8}
.faq-a{
  max-height:0;overflow:hidden;transition:max-height .35s ease,padding .3s ease;
  font-size:14px;color:#6b7280;line-height:1.7;padding:0 20px;background:#f8fafd
}
.faq-a.open{max-height:200px;padding:14px 20px}

/* FOOTER RESPONSIVE */
@media(max-width:640px){
  .footer-bottom{flex-direction:column;text-align:center}
  .footer-inner{padding:28px 20px 18px}
}

/* ===== GEMS GAME ===== */
.gems-panel{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:20px 24px;max-width:560px;margin:0 auto 20px;box-shadow:0 2px 16px rgba(0,0,0,.06)}
.gems-profit-section{margin-bottom:14px}
.gems-profit-box{display:flex;align-items:center;gap:8px;background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:10px 14px;font-size:16px;font-weight:700;color:#ef4444}
.gems-grid-wrap{margin-bottom:14px}
.gems-row{display:grid;gap:5px;margin-bottom:4px}
.gems-row.g-cols-3{grid-template-columns:repeat(3,1fr)}
.gems-row.g-cols-2{grid-template-columns:repeat(2,1fr)}
.gems-cell{background:#4b5563;border-radius:7px;padding:9px 4px;text-align:center;font-size:12px;font-weight:700;color:#9ca3af;cursor:default;transition:.15s;min-height:34px;display:flex;align-items:center;justify-content:center;user-select:none}
.gems-cell.active{background:#1e3a5f;color:#93c5fd;cursor:pointer;border:2px solid #3b82f6;animation:gemsGlow .9s ease-in-out infinite alternate}
.gems-cell.active:hover{background:#1e40af;transform:scale(1.04);color:#fff}
@keyframes gemsGlow{from{box-shadow:0 0 0 rgba(59,130,246,.4)}to{box-shadow:0 0 10px 3px rgba(59,130,246,.5)}}
.gems-cell.gem-win{background:#065f46;color:#34d399;font-size:17px;border:2px solid #34d399}
.gems-cell.gem-bomb{background:#7f1d1d;color:#fca5a5;font-size:17px;border:2px solid #fca5a5}
.gems-cell.gem-win.picked{background:#059669;border-color:#6ee7b7;box-shadow:0 0 12px rgba(5,150,105,.5)}
.gems-cell.gem-bomb.picked{background:#dc2626;border-color:#fca5a5;box-shadow:0 0 12px rgba(220,38,38,.5)}
.gems-cell.future{opacity:.45}
.gems-mode-row{display:flex;align-items:center;gap:20px;margin-bottom:14px}
.gems-mode-opt{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--text2);cursor:pointer;user-select:none}
.gems-mode-opt input{width:15px;height:15px;accent-color:#7c3aed;cursor:pointer}
.gmode-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex-shrink:0}
.gems-start-btn{width:100%;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;border:none;padding:12px;border-radius:11px;font-size:15px;font-weight:800;cursor:pointer;transition:.2s;letter-spacing:.5px;font-family:'Inter',sans-serif;box-shadow:0 4px 14px rgba(37,99,235,.3)}
.gems-start-btn:hover{opacity:.9;transform:translateY(-1px)}
.gems-start-btn.cashout-mode{background:linear-gradient(135deg,#d97706,#f59e0b);box-shadow:0 4px 14px rgba(217,119,6,.35)}
.gems-bets-section{background:#fff;border:1px solid #e5eaf2;border-radius:18px;max-width:560px;margin:0 auto;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}

/* ===== SLOTS GAME ===== */
.slots-panel{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:22px 24px;max-width:640px;margin:0 auto 20px;box-shadow:0 2px 16px rgba(0,0,0,.06)}
.slots-machine-wrap{display:flex;align-items:center;margin-bottom:18px;background:#f0f4f8;border-radius:14px;padding:12px 8px;border:1px solid #e2e8f0;gap:0}
.slots-payline-side{display:flex;flex-direction:column;flex-shrink:0;width:36px}
.pl-row{display:flex;align-items:center;height:80px;opacity:.2;transition:.25s}
.pl-row.active{opacity:1}
.pl-arr{font-size:18px;color:#3b82f6;line-height:1;flex-shrink:0}
.pl-dash{flex:1;height:2px;background:repeating-linear-gradient(90deg,#3b82f6 0,#3b82f6 5px,transparent 5px,transparent 10px)}
.slots-reels-grid{flex:1;display:flex;background:#fff;border-radius:10px;border:2px solid #e2e8f0;overflow:hidden}
.slots-reel-col{flex:1;display:flex;flex-direction:column}
.slots-reel-divider{width:2px;background:#e2e8f0;flex-shrink:0}
.slot-sym{height:80px;display:flex;align-items:center;justify-content:center;font-size:36px;border-bottom:1px solid #f0f4f8;transition:.1s;user-select:none}
.slot-sym:last-child{border-bottom:none}
.slot-sym.mid{background:#f8fafd}
.slot-sym.spinning{animation:symFlash .07s linear infinite}
.slot-sym.win-flash{animation:winGlow .4s ease-in-out 3}
@keyframes symFlash{0%{opacity:.2;transform:scale(.9)}50%{opacity:1;transform:scale(1)}100%{opacity:.2;transform:scale(.9)}}
@keyframes winGlow{0%,100%{background:#f8fafd}50%{background:#dcfce7}}
.swild{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;background:linear-gradient(135deg,#ec4899,#db2777);border-radius:50%;color:#fff;font-size:14px;font-weight:900;margin:0 2px;flex-shrink:0}
.slot-sym .swild{width:42px;height:42px;font-size:20px}
.slots-ctrl-row{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.slots-auto-lbl{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text2);cursor:pointer;flex-shrink:0}
.slots-auto-lbl input{width:16px;height:16px;cursor:pointer}
.slots-spin-btn{flex:1;background:linear-gradient(135deg,#06b6d4,#2563eb);color:#fff;border:none;padding:11px;border-radius:10px;font-size:15px;font-weight:800;cursor:pointer;transition:.15s;font-family:'Inter',sans-serif;box-shadow:0 4px 14px rgba(6,182,212,.3);letter-spacing:.5px}
.slots-spin-btn:hover{opacity:.9;transform:translateY(-1px)}
.slots-spin-btn:active{transform:translateY(2px);box-shadow:0 1px 4px rgba(6,182,212,.2)}
.slots-spin-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.slots-bet-row{display:flex;gap:12px}
.slots-field{flex:1}
.slots-bets-section{background:#fff;border:1px solid #e5eaf2;border-radius:18px;max-width:640px;margin:0 auto;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}

/* ===== MINES GAME ===== */
.mines-panel{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:26px 28px;max-width:640px;margin:0 auto 24px;box-shadow:0 2px 16px rgba(0,0,0,.06)}
.mines-top-row{display:flex;gap:12px;margin-bottom:16px}
.mines-stat-box{flex:1;background:#f8fafd;border:1px solid #e5eaf2;border-radius:12px;padding:12px 16px}
.mines-stat-box label{font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.5px;display:block;margin-bottom:6px}
.mines-stat-val{font-size:22px;font-weight:800;color:#1d4ed8}
.mines-stat-val.profit{color:#059669}
.mines-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px;padding:18px;background:#0f172a;border-radius:16px;border:1px solid #1e293b}
.mines-cell{height:76px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:26px;cursor:default;transition:all .15s;user-select:none;border:2px solid transparent}
.mines-cell.idle{background:linear-gradient(135deg,#1e3a5f 0%,#1e40af 100%);border:1px solid rgba(59,130,246,0.2);color:rgba(147,197,253,0.5);font-size:20px}
.mines-cell.unrevealed{background:linear-gradient(135deg,#1e2d4a 0%,#243b6a 100%);border:1px solid rgba(59,130,246,0.3);cursor:pointer}
.mines-cell.unrevealed:hover{background:linear-gradient(135deg,#2563eb 0%,#3b82f6 100%);border-color:#60a5fa;transform:scale(1.07);box-shadow:0 4px 18px rgba(37,99,235,.4)}
.mines-cell.gem-found{background:linear-gradient(135deg,#065f46,#059669);border-color:#34d399;box-shadow:0 0 14px rgba(52,211,153,.5);animation:mGemPop .25s ease}
.mines-cell.bomb-hit{background:linear-gradient(135deg,#991b1b,#dc2626);border-color:#fca5a5;box-shadow:0 0 18px rgba(220,38,38,.7);animation:mBombShake .3s ease}
.mines-cell.mine-reveal{background:#7f1d1d;color:#fca5a5;border-color:#f87171;opacity:.7}
.mines-cell.gem-faded{background:linear-gradient(135deg,#064e3b,#065f46);color:#6ee7b7;border-color:#065f46;opacity:.45}
@keyframes mGemPop{0%{transform:scale(.6)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes mBombShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
.mines-ctrl-row{display:flex;gap:12px;margin-bottom:14px;align-items:flex-end}
.mines-field{flex:1}
.mines-select{width:100%;padding:10px 12px;border:1px solid #e5eaf2;border-radius:9px;font-size:14px;font-weight:600;font-family:'Inter',sans-serif;background:#fff;color:var(--text);outline:none;cursor:pointer}
.mines-start-btn{width:100%;background:linear-gradient(135deg,#dc2626,#ef4444);color:#fff;border:none;padding:12px;border-radius:11px;font-size:15px;font-weight:800;cursor:pointer;transition:.2s;letter-spacing:.5px;font-family:'Inter',sans-serif;box-shadow:0 4px 14px rgba(220,38,38,.3)}
.mines-start-btn:hover{opacity:.9;transform:translateY(-1px)}
.mines-start-btn.cashout-mode{background:linear-gradient(135deg,#d97706,#f59e0b);box-shadow:0 4px 14px rgba(217,119,6,.35)}
.mines-bets-section{background:#fff;border:1px solid #e5eaf2;border-radius:18px;max-width:640px;margin:0 auto;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}

/* ===== LIMBO GAME ===== */
.limbo-panel{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:20px 24px;max-width:600px;margin:0 auto 20px;box-shadow:0 2px 16px rgba(0,0,0,.06)}
.limbo-display{background:linear-gradient(160deg,#0f172a 0%,#1e3a5f 60%,#0c4a6e 100%);border-radius:14px;height:240px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:0}
.limbo-stars{position:absolute;inset:0;pointer-events:none}
.limbo-star{position:absolute;background:#fff;border-radius:50%;animation:twinkle 2s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:.2}50%{opacity:1}}
.limbo-mult-wrap{z-index:2;text-align:center}
.limbo-mult{font-size:48px;font-weight:900;color:#fff;text-shadow:0 0 30px rgba(99,102,241,.8),0 2px 8px rgba(0,0,0,.5);letter-spacing:-1px;transition:color .2s}
.limbo-mult.win{color:#4ade80;text-shadow:0 0 30px rgba(74,222,128,.8)}
.limbo-mult.lose{color:#f87171;text-shadow:0 0 30px rgba(248,113,113,.8)}
.limbo-rocket{font-size:52px;z-index:2;transition:transform .4s ease;margin-top:12px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.5))}
.limbo-rocket.flying{animation:rocketFly .8s ease-in-out infinite alternate}
.limbo-rocket.crashed{animation:rocketCrash .4s ease forwards}
@keyframes rocketFly{from{transform:translateY(0) rotate(-5deg)}to{transform:translateY(-12px) rotate(5deg)}}
@keyframes rocketCrash{0%{transform:scale(1) rotate(0)}50%{transform:scale(1.3) rotate(20deg)}100%{transform:scale(.8) rotate(45deg);opacity:.3}}
.limbo-fields-row{display:flex;gap:10px;margin-top:14px}
.limbo-field{flex:1}
.limbo-bets-section{background:#fff;border:1px solid #e5eaf2;border-radius:18px;max-width:600px;margin:0 auto;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}

/* ===== WHEEL OF FORTUNE GAME ===== */
.wof-panel{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:22px 24px;max-width:560px;margin:0 auto 20px;box-shadow:0 2px 16px rgba(0,0,0,.06)}
.wof-canvas-wrap{position:relative;display:flex;align-items:center;justify-content:center;margin:8px 0;padding-top:16px}
.wof-pointer{font-size:28px;color:#f59e0b;position:absolute;top:-4px;left:50%;transform:translateX(-50%);z-index:10;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));animation:bounce .9s infinite}
#wofCanvas{border-radius:50%;box-shadow:0 6px 30px rgba(41,181,232,.2),0 0 0 8px #fff,0 0 0 11px #e0f2fe;cursor:pointer;max-width:100%}
.wof-bets-section{background:#fff;border:1px solid #e5eaf2;border-radius:18px;max-width:560px;margin:0 auto;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}
/* ===== NEW PAGES CSS ===== */
.pg-inner{max-width:700px;margin:0 auto;padding:0 8px}
.pg-spacious{padding-top:20px;padding-bottom:40px}
.pg-title-block{text-align:center;margin-bottom:28px}
.pg-title-block h1{font-size:22px;font-weight:900;color:#1e293b;letter-spacing:.5px;text-transform:uppercase;margin-bottom:8px}
.pg-title-block p{font-size:13px;color:#64748b;line-height:1.7;max-width:560px;margin:0 auto}
.contest-countdown{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 0 24px}
.cd-block{display:flex;flex-direction:column;align-items:center}
.cd-num{background:#1e293b;color:#fff;font-size:52px;font-weight:900;padding:14px 22px;border-radius:14px;min-width:80px;text-align:center}
.cd-lbl{font-size:11px;font-weight:700;color:#64748b;margin-top:8px;text-transform:uppercase;letter-spacing:1px}
.cd-sep{font-size:44px;font-weight:900;color:#1e293b;padding-bottom:20px}
.contest-desc{font-size:13px;color:#475569;line-height:1.8;text-align:center;max-width:640px;margin:0 auto 24px}

/* ===== CONTEST HERO ===== */
.contest-hero{
  background:linear-gradient(135deg,#0f2770,#1d4ed8,#3b82f6);
  border-radius:20px;padding:32px 24px;text-align:center;
  margin-bottom:24px;position:relative;overflow:hidden;
}
.contest-hero::before{
  content:'';position:absolute;top:-40px;right:-40px;
  width:160px;height:160px;border-radius:50%;
  background:rgba(255,255,255,.05)
}
.contest-hero-icon{
  width:60px;height:60px;border-radius:16px;
  background:rgba(255,255,255,.15);
  display:flex;align-items:center;justify-content:center;
  font-size:26px;color:#fff;margin:0 auto 14px;
  box-shadow:0 4px 16px rgba(0,0,0,.2)
}
.contest-hero h1{font-size:22px;font-weight:900;color:#fff;margin-bottom:8px}
.contest-hero p{font-size:13px;color:rgba(255,255,255,.8);max-width:420px;margin:0 auto}

/* Contest Timer */
.contest-timer-wrap{text-align:center;margin-bottom:24px}
.ct-label{font-size:11px;font-weight:700;color:#94a3b8;letter-spacing:.8px;text-transform:uppercase;margin-bottom:10px}

/* Contest Info Card */
.contest-info-card{
  background:#f0f7ff;border:1px solid #dbeafe;border-radius:14px;
  padding:16px 20px;margin-bottom:24px;font-size:13px;color:#334155;line-height:1.8
}
.contest-info-card strong{color:#1d4ed8}

/* Games inline button in contest text */
.contest-game-btn{
  display:inline-flex;align-items:center;gap:5px;
  background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;
  border:none;padding:4px 12px;border-radius:20px;
  font-size:12px;font-weight:700;cursor:pointer;
  margin:0 3px;vertical-align:middle;
  box-shadow:0 2px 8px rgba(29,78,216,.3);
  transition:.2s
}
.contest-game-btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(29,78,216,.4)}

/* Prize Pool Grid */
.contest-prizes-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:12px;margin-bottom:24px
}
.contest-prize-card{
  background:#fff;border:2px solid #e2e8f0;border-radius:16px;
  padding:16px 12px;text-align:center;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  transition:.2s
}
.contest-prize-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.1)}
.contest-prize-card.gold{border-color:#f59e0b;background:linear-gradient(135deg,#fffbeb,#fef3c7)}
.contest-prize-card.silver{border-color:#94a3b8;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}
.contest-prize-card.bronze{border-color:#cd7f32;background:linear-gradient(135deg,#fff8f0,#fde8d0)}
.cp-rank{font-size:12px;font-weight:700;color:#64748b;margin-bottom:6px}
.cp-prize{font-size:20px;font-weight:900;color:#1e293b;margin-bottom:4px}
.cp-type{font-size:11px;color:#94a3b8;font-weight:600;text-transform:uppercase;letter-spacing:.4px}

/* Play CTA Button */
.contest-play-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;
  border:none;padding:14px 32px;border-radius:30px;
  font-size:14px;font-weight:700;cursor:pointer;
  box-shadow:0 6px 20px rgba(29,78,216,.35);
  transition:.25s
}
.contest-play-btn:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(29,78,216,.45)}

/* Stat Icon */
.cstat-icon{
  width:36px;height:36px;border-radius:10px;
  background:rgba(37,99,235,.1);color:#2563eb;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;margin:0 auto 8px
}

/* ===== GIFT HERO ===== */
.gift-hero{
  background:linear-gradient(135deg,#064e3b,#059669,#10b981);
  border-radius:20px;padding:32px 24px;text-align:center;margin-bottom:24px;
  position:relative;overflow:hidden
}
.gift-hero-icon{
  width:60px;height:60px;border-radius:16px;
  background:rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;
  font-size:28px;color:#fff;margin:0 auto 14px;
  animation:giftPulse 2s ease infinite
}
@keyframes giftPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.gift-hero h1{font-size:24px;font-weight:900;color:#fff;margin-bottom:8px}
.gift-hero p{font-size:13px;color:rgba(255,255,255,.85);max-width:360px;margin:0 auto}

.gift-redeem-card{
  background:#fff;border:1px solid #e2e8f0;border-radius:20px;
  padding:28px 24px;box-shadow:0 4px 20px rgba(0,0,0,.06);margin-bottom:20px
}
.gift-redeem-inner{margin-bottom:24px}
.gift-input-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}
.gift-code-input{font-size:16px!important;letter-spacing:3px!important;font-weight:700!important}

.gift-how-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;border-top:1px solid #f1f5f9;padding-top:20px;margin-top:4px}
.gift-step{display:flex;align-items:flex-start;gap:10px}
.gs-num{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#059669,#10b981);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.gs-txt{font-size:12px;color:#64748b;line-height:1.5;font-weight:500}

/* ===== SPIN GAMES CTA ===== */
.spin-games-cta{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  border:1px solid #bfdbfe;border-radius:14px;
  padding:14px 20px;margin-bottom:16px;
  flex-wrap:wrap
}
.sgc-text{display:flex;align-items:center;gap:10px;font-size:13px;color:#1e3a8a;flex:1}
.sgc-text i{font-size:18px;color:#2563eb;flex-shrink:0}
.sgc-btn{
  display:flex;align-items:center;gap:7px;
  background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;
  border:none;padding:10px 20px;border-radius:20px;
  font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;
  box-shadow:0 4px 12px rgba(29,78,216,.3);transition:.2s
}
.sgc-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(29,78,216,.4)}

/* ===== SPIN COOLDOWN BOX ===== */
.spin-cooldown-box{
  background:linear-gradient(135deg,#0f172a,#1e293b);
  border:1px solid rgba(37,99,235,.3);border-radius:20px;
  padding:28px 32px;text-align:center;
  box-shadow:0 8px 32px rgba(0,0,0,.2),0 0 0 1px rgba(37,99,235,.1);
  max-width:320px;margin:0 auto
}
.scb-label{
  font-size:11px;font-weight:700;color:rgba(255,255,255,.5);
  text-transform:uppercase;letter-spacing:.8px;margin-bottom:12px;
  display:flex;align-items:center;justify-content:center;gap:7px
}
.scb-timer{
  font-size:52px;font-weight:900;color:#fff;letter-spacing:-1px;
  line-height:1;margin-bottom:10px;
  font-variant-numeric:tabular-nums;
  text-shadow:0 0 30px rgba(37,99,235,.5)
}
.scb-sub{
  font-size:12px;color:rgba(255,255,255,.4);font-weight:500;
  max-width:200px;margin:0 auto;line-height:1.5
}

/* SPIN AGAIN mode — glowing green button after cooldown ends */
.claim-btn.spin-again-mode,
button#claimBtn.spin-again-mode {
  background:linear-gradient(135deg,#059669,#10b981) !important;
  box-shadow:0 6px 24px rgba(16,185,129,.45) !important;
  animation:spinAgainPulse 1.8s ease-in-out infinite !important;
}
.claim-btn.spin-again-mode:hover,
button#claimBtn.spin-again-mode:hover {
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 10px 32px rgba(16,185,129,.6) !important;
}
@keyframes spinAgainPulse {
  0%,100% { box-shadow:0 6px 24px rgba(16,185,129,.45); }
  50%      { box-shadow:0 6px 36px rgba(16,185,129,.75),0 0 0 6px rgba(16,185,129,.15); }
}


.contest-stats-card{background:#fff;border:1px solid #e5eaf2;border-radius:16px;padding:20px 24px}
.contest-stats-card h3{font-size:14px;font-weight:700;color:#1e293b;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.contest-stats-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contest-stat{background:#f8fafd;border:1px solid #e5eaf2;border-radius:12px;padding:16px;text-align:center}
.cstat-label{font-size:10px;font-weight:700;color:#94a3b8;letter-spacing:.8px;text-transform:uppercase;margin-bottom:8px}
.cstat-val{font-size:20px;font-weight:800;color:#1e293b;display:flex;align-items:center;justify-content:center;gap:6px}
.dep-card{background:#fff;border:1px solid #e5eaf2;border-radius:16px;padding:24px}
.dep-network-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #f1f5f9}
.dep-network-label{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase}
.dep-network-badge{background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:800;padding:4px 12px;border-radius:20px}
.dep-address-wrap{display:flex;align-items:center;background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:10px 14px;gap:10px;margin-bottom:14px}
.dep-copy-icon{color:#2563eb;cursor:pointer;font-size:15px;flex-shrink:0}
.dep-address-input{border:none;background:transparent;flex:1;font-size:13px;color:#334155;font-family:'Inter',sans-serif;outline:none;min-width:0}
.dep-warn{background:#dbeafe;color:#1e40af;font-size:12px;padding:10px 14px;border-radius:8px;margin-bottom:16px;line-height:1.5}
.dep-qr-placeholder{font-size:90px;color:#cbd5e1;text-align:center;margin:12px 0}
.dep-qr-label{font-size:12px;color:#94a3b8;text-align:center}
.dep-history-link{display:block;text-align:center;color:#2563eb;font-size:13px;margin-top:10px}
.dep-history-btn{background:none;border:1px solid #e5eaf2;color:#64748b;font-size:13px;padding:10px 18px;border-radius:8px;cursor:pointer;width:100%;font-weight:600}
.form-lbl{display:block;font-size:12px;font-weight:700;color:#64748b;margin-bottom:6px;text-transform:uppercase}
.aff-tabs{display:flex;margin-bottom:20px;border:1px solid #e5eaf2;border-radius:10px;overflow:hidden;background:#f8fafd}
.aff-tab{flex:1;padding:11px;border:none;background:transparent;font-size:13px;font-weight:700;color:#64748b;cursor:pointer;border-bottom:2px solid transparent;transition:.18s}
.aff-tab.active{background:#fff;color:#1d4ed8;border-bottom-color:#1d4ed8}
.aff-earned-card{background:#fff;border:1px solid #e5eaf2;border-radius:14px;padding:20px;margin-bottom:16px}
.aff-earned-card h3{font-size:13px;font-weight:700;color:#1e293b;margin-bottom:14px}
.aff-earned-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.aff-earned-box{display:flex;align-items:center;gap:12px;background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:14px}
.aff-earned-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.aff-earned-icon.blue{background:#dbeafe;color:#1d4ed8}
.aff-earned-lbl{font-size:9px;font-weight:700;color:#94a3b8;text-transform:uppercase;margin-bottom:3px}
.aff-earned-val{font-size:16px;font-weight:800;color:#1e293b}
.aff-avail-row{background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:14px;text-align:center}
.aff-avail-lbl{font-size:9px;font-weight:700;color:#94a3b8;text-transform:uppercase;margin-bottom:4px}
.aff-avail-val{font-size:18px;font-weight:800;color:#1e293b}
.aff-rates-card{background:#fff;border:1px solid #e5eaf2;border-radius:14px;padding:20px;margin-bottom:16px}
.aff-rates-card h3{font-size:13px;font-weight:700;color:#1e293b;margin-bottom:14px}
.aff-rates-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.aff-rate-box{background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:14px;text-align:center}
.aff-rate-icon{font-size:20px;margin-bottom:6px}
.aff-rate-lbl{font-size:9px;font-weight:700;color:#94a3b8;text-transform:uppercase;margin-bottom:4px}
.aff-rate-pct{font-size:22px;font-weight:900;color:#1d4ed8;margin-bottom:2px}
.aff-rate-sub{font-size:10px;color:#94a3b8}
.aff-url-card{background:#fff;border:1px solid #e5eaf2;border-radius:14px;padding:20px}
.aff-url-card h3{font-size:13px;font-weight:700;color:#1e293b;margin-bottom:14px}
.refcontest-leaderboard{background:#fff;border:1px solid #e5eaf2;border-radius:16px;padding:20px;margin-bottom:16px}
.refcontest-leaderboard h3{font-size:14px;font-weight:700;color:#1e293b;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.rc-lb-header{display:grid;grid-template-columns:80px 1fr 1fr 80px;gap:8px;padding:8px 12px;font-size:10px;font-weight:700;color:#94a3b8;text-transform:uppercase}
.rc-lb-row{display:grid;grid-template-columns:80px 1fr 1fr 80px;gap:8px;padding:12px;border-top:1px solid #f1f5f9;font-size:13px;font-weight:600;color:#334155}
.rc-lb-row.gold{background:#fef9c3;border-radius:8px}
.rc-lb-row.silver{background:#f1f5f9;border-radius:8px}
.rc-lb-row.bronze{background:#fef3c7;border-radius:8px}
.gift-card{background:#fff;border:1px solid #e5eaf2;border-radius:16px;padding:32px 28px;text-align:center}
.gift-icon-wrap{font-size:64px;margin-bottom:12px}
.gift-card h3{font-size:18px;font-weight:800;color:#1e293b;margin-bottom:20px}
.gift-input-row{display:flex;gap:10px;margin-bottom:16px}
.gift-redeem-btn{background:#2563eb;color:#fff;border:none;padding:0 20px;border-radius:10px;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap}
.gift-note{font-size:13px;color:#64748b;margin-bottom:18px}
.gift-social-row{display:flex;gap:12px;justify-content:center}
.gift-social-btn{padding:10px 24px;border-radius:10px;text-decoration:none;font-size:13px;font-weight:700;color:#fff}
.gift-social-btn.twitter{background:#1DA1F2}
.gift-social-btn.telegram{background:#0088cc}
.settings-tabs{display:flex;margin-bottom:20px;border:1px solid #e5eaf2;border-radius:10px;overflow:hidden;background:#f8fafd}
.stab{flex:1;padding:11px;border:none;background:transparent;font-size:13px;font-weight:700;color:#64748b;cursor:pointer;border-bottom:2px solid transparent;transition:.18s}
.stab.active{background:#fff;color:#1d4ed8;border-bottom-color:#1d4ed8}
.settings-form-card{background:#fff;border:1px solid #e5eaf2;border-radius:14px;padding:22px;margin-bottom:16px}
.sform-input-wrap{display:flex;align-items:center;gap:10px;background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:10px 14px;margin-bottom:4px}
.sform-input-wrap i{color:#94a3b8;font-size:14px;flex-shrink:0}
.sform-input-wrap .form-input{border:none;background:transparent;flex:1;padding:0}
.settings-save-btn{width:100%;background:#2563eb;color:#fff;border:none;padding:12px;border-radius:10px;font-weight:700;font-size:14px;cursor:pointer;margin-top:14px}
.settings-verified-btn{width:100%;background:#dcfce7;color:#15803d;border:1px solid #bbf7d0;padding:10px;border-radius:10px;font-weight:700;font-size:13px;cursor:default;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:6px}
.settings-sessions-card{background:#fff;border:1px solid #e5eaf2;border-radius:14px;padding:22px}
.settings-sessions-card h3{font-size:14px;font-weight:700;color:#1e293b;margin-bottom:16px}
.sessions-table{width:100%;border-collapse:collapse;font-size:13px}
.sessions-table th{padding:8px 12px;text-align:left;font-size:11px;font-weight:700;color:#94a3b8;text-transform:uppercase;background:#f8fafd}
.sessions-table td{padding:12px;border-top:1px solid #f1f5f9;color:#334155}
.session-online{display:inline-block;width:8px;height:8px;background:#22c55e;border-radius:50%;margin-right:6px}
.session-logout-btn{background:#fee2e2;color:#dc2626;border:none;padding:5px 12px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer}
.contact-card{background:#fff;border:1px solid #e5eaf2;border-radius:16px;padding:24px}
.contact-input-wrap{display:flex;align-items:center;gap:10px;background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:10px 14px;margin-bottom:10px}
.contact-input-wrap i{color:#94a3b8;font-size:14px;flex-shrink:0}
.contact-input-wrap .form-input{border:none;background:transparent;flex:1;padding:0}
.contact-textarea{width:100%;margin-top:10px;margin-bottom:10px;border-radius:10px;resize:vertical;box-sizing:border-box}
.contact-attach{color:#2563eb;font-size:13px;font-weight:600;cursor:pointer;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.contact-no-img{background:#f8fafd;border:1px dashed #cbd5e1;border-radius:8px;padding:14px;text-align:center;font-size:12px;color:#94a3b8;margin-bottom:14px}
.contact-send-btn{width:100%;background:#22c55e;color:#fff;border:none;padding:14px;border-radius:10px;font-weight:800;font-size:14px;cursor:pointer;letter-spacing:.5px}
.auth-outer{display:flex;align-items:center;justify-content:center;min-height:80vh;padding:20px}
.auth-card{background:#fff;border:1px solid #e5eaf2;border-radius:20px;padding:40px 36px;width:100%;max-width:420px;box-shadow:0 8px 40px rgba(0,0,0,.08)}
.auth-logo{font-size:22px;font-weight:900;color:#2563eb;text-align:center;margin-bottom:20px;display:flex;align-items:center;justify-content:center;gap:8px}
.auth-title{font-size:22px;font-weight:800;color:#1e293b;text-align:center;margin-bottom:6px}
.auth-sub{font-size:13px;color:#64748b;text-align:center;margin-bottom:24px}
.auth-form{display:flex;flex-direction:column;gap:12px}
.auth-field{display:flex;align-items:center;gap:10px;background:#f8fafd;border:1px solid #e5eaf2;border-radius:10px;padding:12px 14px}
.auth-field i{color:#94a3b8;font-size:14px;flex-shrink:0}
.auth-input{border:none;background:transparent;flex:1;font-size:14px;color:#1e293b;font-family:'Inter',sans-serif;outline:none}
.auth-btn{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:none;padding:14px;border-radius:10px;font-weight:800;font-size:15px;cursor:pointer;transition:.2s;margin-top:4px}
.auth-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(37,99,235,.35)}
.auth-switch{text-align:center;font-size:13px;color:#64748b;margin-top:4px}
.auth-switch a{color:#2563eb;font-weight:700;text-decoration:none}
.logout-modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(3px)}
.logout-modal-box{background:#fff;border-radius:20px;padding:36px 32px;width:100%;max-width:360px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.logout-modal-icon{font-size:44px;color:#dc2626;margin-bottom:14px}
.logout-modal-box h3{font-size:20px;font-weight:800;color:#1e293b;margin-bottom:8px}
.logout-modal-box p{font-size:14px;color:#64748b;margin-bottom:24px}
.logout-modal-btns{display:flex;gap:12px}
.logout-cancel-btn{flex:1;background:#f1f5f9;color:#64748b;border:none;padding:13px;border-radius:10px;font-weight:700;font-size:14px;cursor:pointer}
.logout-confirm-btn{flex:1;background:#dc2626;color:#fff;border:none;padding:13px;border-radius:10px;font-weight:700;font-size:14px;cursor:pointer}
.nav-logout{color:#dc2626!important;margin-top:8px}
.nav-logout i,.nav-logout span{color:#dc2626!important}
.nav-logout:hover{background:#fee2e2!important}
.tx-check-card{background:#fff;border:1px solid #e5eaf2;border-radius:16px;padding:24px;margin-top:16px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.tx-check-card h3{font-size:15px;font-weight:800;color:#1e293b;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.twofa-status-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #f1f5f9}
.twofa-status-badge{font-size:13px;font-weight:700;color:#dc2626;background:#fee2e2;padding:6px 14px;border-radius:20px;display:flex;align-items:center;gap:6px}
.twofa-status-badge.active{color:#15803d;background:#dcfce7}
.twofa-toggle-btn{background:#2563eb;color:#fff;border:none;padding:9px 18px;border-radius:10px;font-weight:700;font-size:13px;cursor:pointer}
.twofa-step{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-top:1px solid #f8fafd}
.twofa-step-num{width:28px;height:28px;border-radius:50%;background:#2563eb;color:#fff;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.twofa-step-content h4{font-size:14px;font-weight:800;color:#1e293b;margin-bottom:4px}
.twofa-step-content p{font-size:12px;color:#64748b;line-height:1.5;margin-bottom:8px}
.twofa-qr-wrap{background:#f8fafd;border:1px solid #e5eaf2;border-radius:12px;padding:16px;display:inline-block}
.twofa-key-box{display:flex;align-items:center;gap:10px;background:#f0f4ff;border:1px dashed #93c5fd;border-radius:10px;padding:12px 16px;margin-top:6px}
.twofa-copy-key{background:none;border:none;color:#2563eb;cursor:pointer;font-size:16px;padding:0}
.twofa-code-input{max-width:160px;text-align:center;font-size:22px;font-weight:800;letter-spacing:4px}
.contact-img-preview{min-height:44px;background:#f8fafd;border:1px dashed #cbd5e1;border-radius:8px;padding:8px;margin-bottom:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.contact-img-thumb{width:70px;height:70px;object-fit:cover;border-radius:8px;border:1px solid #e5eaf2}
.contact-no-img{font-size:12px;color:#94a3b8;padding:8px;width:100%;text-align:center}/* WITHDRAW CARD */
.wdraw-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px;box-shadow:0 2px 16px rgba(0,0,0,.06)}
.wdraw-field{display:flex;align-items:center;gap:10px;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px;margin-bottom:14px;background:#f8fafd}
.wdraw-field i{color:#94a3b8;font-size:15px;flex-shrink:0}
.wdraw-input{flex:1;border:none;background:transparent;font-size:14px;color:#1e293b;font-family:'Inter',sans-serif;outline:none}
.wdraw-minmax{background:#22c55e;color:#fff;border:none;padding:6px 12px;border-radius:7px;font-weight:700;font-size:12px;cursor:pointer;margin-left:4px}
.wdraw-max{background:#2563eb}
.wdraw-fee-row{display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafd;margin-bottom:14px;font-size:14px;color:#334155}
.wdraw-fee-row i{color:#94a3b8;font-size:14px}
.wdraw-avail{text-align:center;font-size:13px;color:#64748b;margin-bottom:20px}
.wdraw-btn{width:100%;background:#22c55e;color:#fff;border:none;padding:16px;border-radius:12px;font-weight:900;font-size:16px;cursor:pointer;letter-spacing:1px;transition:.2s;box-shadow:0 4px 16px rgba(34,197,94,.3)}
.wdraw-btn:hover{background:#16a34a;transform:translateY(-1px)}
/* AFFILIATES COPY BTN */
.aff-copy-btn{background:#2563eb;color:#fff;border:none;padding:8px 16px;border-radius:8px;font-weight:700;font-size:13px;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:.18s}
.aff-copy-btn:hover{background:#1d4ed8}
/* NOTIFICATIONS */
.notif-btn{position:relative;width:38px;height:38px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;color:#64748b;transition:.18s}
.notif-btn:hover{background:#e2e8f0}
.notif-dropdown{position:absolute;top:56px;right:60px;width:340px;background:#fff;border:1px solid #e5eaf2;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.15);z-index:9999}
.notif-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #f1f5f9;font-weight:700;font-size:14px;color:#1e293b}
.notif-header button{background:none;border:none;color:#2563eb;font-size:12px;cursor:pointer;font-weight:600}
.notif-list{max-height:320px;overflow-y:auto}
.notif-item{display:flex;gap:12px;padding:14px 18px;border-bottom:1px solid #f8fafd;cursor:pointer;transition:.15s}
.notif-item:hover{background:#f8fafd}
.notif-item.unread{background:#f0f4ff}
.notif-icon{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.notif-icon.gift{background:#fef9c3;color:#92400e}
.notif-icon.withdraw{background:#dcfce7;color:#15803d}
.notif-icon.msg{background:#dbeafe;color:#1d4ed8}
.notif-text{flex:1}
.notif-text strong{display:block;font-size:13px;color:#1e293b;margin-bottom:2px}
.notif-text span{font-size:12px;color:#64748b}
.notif-empty{text-align:center;padding:32px;color:#94a3b8;font-size:13px}
/* PROFILE DROPDOWN */
.profile-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:30px;background:#f1f5f9;cursor:pointer;transition:.18s}
.profile-btn:hover{background:#e2e8f0}
.profile-avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}
.profile-dropdown{position:absolute;top:56px;right:8px;width:220px;background:#fff;border:1px solid #e5eaf2;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.15);z-index:9999;overflow:hidden}
.profile-drop-header{display:flex;align-items:center;gap:12px;padding:16px;background:#f8fafd}
.pd-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center}
.pd-name{font-size:14px;font-weight:700;color:#1e293b}
.pd-email{font-size:11px;color:#94a3b8}
.profile-drop-divider{height:1px;background:#f1f5f9}
.profile-drop-item{display:flex;align-items:center;gap:10px;padding:12px 16px;font-size:13px;font-weight:600;color:#334155;text-decoration:none;transition:.15s}
.profile-drop-item:hover{background:#f8fafd;color:#2563eb}
.profile-drop-item i{width:16px;color:#94a3b8}
.profile-drop-item:hover i{color:#2563eb}
.profile-drop-item.text-red{color:#dc2626}
.profile-drop-item.text-red:hover{background:#fee2e2}
.profile-drop-item.text-red i{color:#dc2626}
.topbar-right{position:relative;display:flex;align-items:center;gap:10px}
/* AUTH SPLIT LAYOUT */
.auth-split{display:flex;min-height:100vh;width:100%}
.auth-left{flex:1;background:linear-gradient(160deg,#0f172a 0%,#1e293b 40%,#1d4ed8 100%);padding:48px 40px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:100vh}
.auth-left-logo{font-size:24px;font-weight:900;color:#fff;display:flex;align-items:center;gap:10px;margin-bottom:28px}
.auth-left-logo i{color:#29b5e8}
.auth-left-wheel{
  margin:0 auto 28px;
  width:200px;height:200px;
  display:flex;align-items:center;justify-content:center
}
/* Auth split responsive — on small screens stack vertically, show wheel */
@media(max-width:860px){
  .auth-split{flex-direction:column}
  .auth-left{
    min-height:auto;padding:32px 24px 24px;
    align-items:center;text-align:center;
    flex:none;width:100%
  }
  .auth-left-wheel{margin:0 auto 20px}
  .auth-left-perks{align-items:flex-start;text-align:left;width:100%;max-width:340px;margin:0 auto 20px}
  .auth-right{
    flex:none;width:100%;padding:28px 20px 40px;min-height:auto;
    justify-content:flex-start
  }
}
.auth-left-title{font-size:26px;font-weight:800;color:#fff;margin-bottom:16px;line-height:1.3}
.auth-left-title span{color:#f59e0b}
.auth-left-perks{list-style:none;padding:0;margin-bottom:24px;display:flex;flex-direction:column;gap:10px}
.auth-left-perks li{display:flex;align-items:center;gap:10px;color:#cbd5e1;font-size:13px;line-height:1.4}
.auth-left-perks i{color:#4ade80;font-size:14px;flex-shrink:0}
.auth-left-tagline{font-size:12px;color:#94a3b8;font-style:italic;border-left:3px solid #2563eb;padding-left:12px;line-height:1.6}
.auth-right{flex:0 0 440px;background:#fff;display:flex;align-items:center;justify-content:center;padding:40px 32px;min-height:100vh}
.auth-right-inner{width:100%;max-width:380px}
.auth-logo-sm{font-size:20px;font-weight:900;color:#2563eb;display:flex;align-items:center;gap:8px;margin-bottom:24px}
.auth-forgot-link{color:#2563eb;font-size:12px;font-weight:600;text-decoration:none}
.auth-divider{display:flex;align-items:center;gap:12px;margin:12px 0;color:#94a3b8;font-size:12px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:#e5eaf2}
.auth-terms{font-size:12px;color:#64748b;margin-bottom:8px;display:flex;align-items:flex-start;gap:8px;line-height:1.5}
.auth-terms a{color:#2563eb}
.signup-btn{background:linear-gradient(135deg,#f59e0b,#ef4444)!important;font-size:14px!important}
/* HOME PRIZE WHEEL */
.home-prize-wheel{width:200px;height:200px;border-radius:50%;position:relative;animation:wheelSpin 8s linear infinite;border:6px solid #fff;box-shadow:0 0 0 3px rgba(255,255,255,.2),0 8px 32px rgba(0,0,0,.4)}
.hpw-seg{position:absolute;width:50%;height:50%;top:0;left:50%;transform-origin:0% 100%;display:flex;align-items:center;justify-content:flex-start;padding-left:12px;border-radius:0 100% 0 0;font-size:11px;font-weight:800}
.hpw-seg span{display:block;line-height:1}
.hpw-seg small{font-size:8px;font-weight:600;opacity:.8}
.hpw-s1{background:#e11d48;color:#fff;transform:rotate(0deg) skewY(-30deg)}
.hpw-s2{background:#2563eb;color:#fff;transform:rotate(60deg) skewY(-30deg)}
.hpw-s3{background:#f59e0b;color:#1e293b;transform:rotate(120deg) skewY(-30deg)}
.hpw-s4{background:#7c3aed;color:#fff;transform:rotate(180deg) skewY(-30deg)}
.hpw-s5{background:#059669;color:#fff;transform:rotate(240deg) skewY(-30deg)}
.hpw-s6{background:#0284c7;color:#fff;transform:rotate(300deg) skewY(-30deg)}
.hpw-center{position:absolute;width:40px;height:40px;background:#fff;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;color:#2563eb;font-size:16px;z-index:10;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.hpw-pointer{position:absolute;top:-18px;left:50%;transform:translateX(-50%);color:#f59e0b;font-size:20px;z-index:20;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4));animation:pointerBounce .7s ease-in-out infinite alternate}
@keyframes wheelSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes pointerBounce{from{transform:translateX(-50%) translateY(0)}to{transform:translateX(-50%) translateY(4px)}}

/* ============================================================
   BODY STATE CLASSES
   ============================================================ */
/* ===== BODY STATE CLASSES ===== */
body.logged-out .app-wrapper,
body.logged-out #auth-overlay,
body.logged-out #app-footer,
body.logged-out #dashFooter { display:none!important }
body.logged-out .public-landing { display:block!important }

/* ===== INSTANT FLASH PREVENTION =====
   Applied via JS BEFORE CSS loads — prevents landing page flash on refresh */
.ts-logged-in #public-landing,
.ts-logged-in .public-landing { display:none!important }
.ts-logged-in #auth-overlay   { display:none!important }


body.auth-mode .public-landing { display:none!important }
body.auth-mode .app-wrapper   { display:none!important }
body.auth-mode #auth-overlay  { display:block!important }

body.logged-in .public-landing { display:none!important }
body.logged-in #auth-overlay   { display:none!important }
body.logged-in .app-wrapper    { display:block!important }
body.logged-in #sidebar        { display:flex!important }
body.logged-in .main-wrapper   { margin-left:var(--sidebar-w)!important }
/* Mobile override: sidebar hidden, content full width */
@media(max-width:768px){
  body.logged-in #sidebar        { transform:translateX(-100%)!important }
  body.logged-in .main-wrapper   { margin-left:0!important }
  body.logged-in #sidebar.open   { transform:translateX(0)!important }
}

/* Ensure only ONE dashboard page shows at a time */
.content > .page { display:none !important }
.content > .page.active { display:block !important }

/* Auth overlay - full page */
#auth-overlay {
  display:none;
  min-height:100vh;
  width:100%;
  background:#fff;
  overflow-y:auto;
  position:relative;
  isolation:auto;
}
#auth-overlay > .page { display:none !important }
#auth-overlay > .page.active { display:block !important }

/* ============================================================
   PUBLIC LANDING PAGE
   ============================================================ */
.public-landing {
  display:block;
  background:#fff;
  min-height:100vh;
  font-family:'Inter',sans-serif;
}

/* PUBLIC NAVBAR */
.pub-navbar {
  background:#0f2770;
  position:sticky;top:0;z-index:200;
  box-shadow:0 2px 16px rgba(15,39,112,.3)
}
.pub-nav-inner {
  max-width:1200px;margin:0 auto;
  display:flex;align-items:center;
  padding:0 24px;height:64px;gap:24px
}
.pub-logo {
  display:flex;align-items:center;gap:10px;
  color:#fff;font-size:20px;font-weight:900;
  text-decoration:none;letter-spacing:-.3px
}
.pub-logo-icon {
  width:36px;height:36px;background:rgba(255,255,255,.15);
  border-radius:9px;display:flex;align-items:center;
  justify-content:center;font-size:16px;color:#60a5fa
}
.pub-nav-links {
  display:flex;align-items:center;gap:4px;flex:1;margin-left:16px
}
.pub-nav-link {
  color:rgba(255,255,255,.75);text-decoration:none;
  font-size:14px;font-weight:600;padding:7px 14px;
  border-radius:8px;transition:.2s;
  background:rgba(255,255,255,.08);border:1px solid transparent
}
.pub-nav-link:hover,.pub-nav-link.active {
  color:#fff;background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.2)
}
.pub-nav-right {
  display:flex;align-items:center;gap:10px;margin-left:auto
}
.pub-btn-login {
  background:transparent;border:1.5px solid rgba(255,255,255,.5);
  color:#fff;padding:8px 20px;border-radius:8px;
  font-size:14px;font-weight:700;cursor:pointer;
  transition:.2s;display:flex;align-items:center;gap:6px;
  font-family:'Inter',sans-serif
}
.pub-btn-login:hover { background:rgba(255,255,255,.12);border-color:#fff }
.pub-btn-signup {
  background:#f59e0b;border:none;color:#fff;
  padding:8px 20px;border-radius:8px;
  font-size:14px;font-weight:700;cursor:pointer;
  transition:.2s;display:flex;align-items:center;gap:6px;
  font-family:'Inter',sans-serif;
  box-shadow:0 4px 14px rgba(245,158,11,.4)
}
.pub-btn-signup:hover { background:#d97706;transform:translateY(-1px) }
.pub-menu-btn {
  display:none;background:none;border:none;
  color:#fff;font-size:22px;cursor:pointer;padding:4px 8px
}
.pub-mobile-menu {
  background:#0d1f5e;border-top:1px solid rgba(255,255,255,.1);
  padding:12px 24px
}
.pub-mobile-menu a {
  display:flex;align-items:center;gap:10px;
  color:rgba(255,255,255,.85);text-decoration:none;
  font-size:14px;font-weight:600;padding:11px 0;
  border-bottom:1px solid rgba(255,255,255,.08)
}
.pub-mobile-menu a:last-child{border-bottom:none}

/* HERO */
.pub-hero {
  background:linear-gradient(135deg,#eef4ff 0%,#f8f0ff 50%,#fffbef 100%);
  padding:70px 24px 60px;
  overflow:hidden
}
.pub-hero-inner {
  max-width:1100px;margin:0 auto;
  display:flex;align-items:center;
  justify-content:space-between;gap:60px
}
.pub-hero-text { flex:1;max-width:520px }
.pub-hero-badge {
  display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,#1d4ed8,#7c3aed);
  color:#fff;font-size:12px;font-weight:700;
  padding:6px 16px;border-radius:20px;margin-bottom:20px;
  box-shadow:0 4px 14px rgba(29,78,216,.3)
}
.pub-hero-text h1 {
  font-size:52px;font-weight:900;
  color:#0f172a;line-height:1.1;
  letter-spacing:-1.5px;margin-bottom:18px
}
.pub-hero-text p {
  font-size:16px;color:#475569;
  line-height:1.7;margin-bottom:28px
}
.pub-hero-btns { display:flex;gap:14px;margin-bottom:36px }
.pub-hero-btn-login {
  background:#fff;border:2px solid #e5eaf2;
  color:#1d4ed8;padding:14px 36px;border-radius:12px;
  font-size:16px;font-weight:800;cursor:pointer;
  transition:.2s;font-family:'Inter',sans-serif;
  box-shadow:0 2px 12px rgba(0,0,0,.08)
}
.pub-hero-btn-login:hover {
  border-color:#2563eb;background:#eff6ff;transform:translateY(-2px)
}
.pub-hero-btn-signup {
  background:linear-gradient(135deg,#f59e0b,#ef4444);
  color:#fff;border:none;padding:14px 36px;
  border-radius:12px;font-size:16px;font-weight:800;
  cursor:pointer;transition:.2s;font-family:'Inter',sans-serif;
  box-shadow:0 6px 20px rgba(239,68,68,.35)
}
.pub-hero-btn-signup:hover {
  transform:translateY(-2px);box-shadow:0 8px 28px rgba(239,68,68,.45)
}
.pub-hero-stats {
  display:flex;align-items:center;gap:20px;
  background:#fff;border:1px solid #e5eaf2;
  border-radius:16px;padding:18px 24px;
  box-shadow:0 2px 12px rgba(0,0,0,.06)
}
.pub-stat-num {
  font-size:22px;font-weight:900;color:#1d4ed8;
  letter-spacing:-.5px
}
.pub-stat-lbl { font-size:11px;color:#64748b;font-weight:600;margin-top:2px }
.pub-stat-div { width:1px;height:40px;background:#e5eaf2 }

/* HERO WHEEL VISUAL */
.pub-hero-visual {
  flex-shrink:0;display:flex;flex-direction:column;
  align-items:center;gap:20px
}
.pub-hero-wheel-wrap { position:relative;width:280px;height:280px }
.pub-wheel-glow {
  position:absolute;inset:-20px;
  background:radial-gradient(circle,rgba(29,78,216,.25) 0%,transparent 70%);
  animation:glowPulse 2.5s ease-in-out infinite
}
@keyframes glowPulse{0%,100%{opacity:.5;transform:scale(1)}50%{opacity:1;transform:scale(1.1)}}
.pub-anim-wheel {
  width:280px;height:280px;border-radius:50%;
  position:relative;
  animation:wheelSpin 6s linear infinite;
  border:8px solid #fff;
  box-shadow:0 0 0 4px rgba(29,78,216,.15),0 12px 48px rgba(0,0,0,.18)
}
.paw-center {
  position:absolute;width:52px;height:52px;
  background:linear-gradient(135deg,#0f2770,#2563eb);
  border-radius:50%;top:50%;left:50%;
  transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:20px;z-index:10;
  box-shadow:0 4px 14px rgba(0,0,0,.4)
}
.paw-seg {
  position:absolute;width:50%;height:50%;
  top:0;left:50%;transform-origin:0% 100%;
  display:flex;align-items:center;
  justify-content:flex-start;padding-left:16px;
  border-radius:0 100% 0 0;
  font-size:13px;font-weight:900;
  color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.4)
}
.paw-seg span{display:block;line-height:1}
.paw-seg small{font-size:9px;font-weight:700;opacity:.85}
.paw-s1{background:#e11d48;transform:rotate(0deg) skewY(-18deg)}
.paw-s2{background:#2563eb;transform:rotate(72deg) skewY(-18deg)}
.paw-s3{background:#f59e0b;transform:rotate(144deg) skewY(-18deg);color:#1e293b}
.paw-s4{background:#7c3aed;transform:rotate(216deg) skewY(-18deg)}
.paw-s5{background:#059669;transform:rotate(288deg) skewY(-18deg)}
.pub-wheel-pointer {
  position:absolute;top:-20px;left:50%;
  transform:translateX(-50%);
  color:#f59e0b;font-size:24px;z-index:20;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.5));
  animation:pointerBounce .7s ease-in-out infinite alternate
}
.pub-hero-badges {
  display:flex;flex-direction:column;gap:8px;align-items:flex-start
}
.pub-badge-pill {
  display:flex;align-items:center;gap:8px;
  padding:8px 16px;border-radius:20px;
  font-size:12px;font-weight:700;
  box-shadow:0 2px 8px rgba(0,0,0,.1)
}
.pub-badge-pill.green {background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.pub-badge-pill.blue {background:#dbeafe;color:#1d4ed8;border:1px solid #bfdbfe}
.pub-badge-pill.orange {background:#fef3c7;color:#92400e;border:1px solid #fde68a}

/* LIVE PAYOUTS TICKER */
.pub-ticker-wrap {
  background:linear-gradient(90deg,#0f2770,#1a3a9e);
  padding:14px 0;overflow:hidden;
  display:flex;align-items:center;gap:16px
}
.pub-ticker-label {
  background:rgba(255,255,255,.15);
  color:#fff;font-size:11px;font-weight:800;
  padding:6px 16px;border-radius:0 20px 20px 0;
  white-space:nowrap;letter-spacing:.5px;
  display:flex;align-items:center;gap:6px;flex-shrink:0
}
.pub-ticker {overflow:hidden;flex:1}
.pub-ticker-inner {
  display:flex;gap:32px;
  animation:tickerMove 20s linear infinite;
  white-space:nowrap
}
@keyframes tickerMove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.pub-tick-item {
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:rgba(255,255,255,.8);
  flex-shrink:0
}
.ptick-user {color:#60a5fa;font-weight:700}
.ptick-amt {color:#4ade80;font-weight:800}

/* FEATURES SECTION */
.pub-features {
  background:#fff;padding:80px 24px
}
.pub-features-inner { max-width:1100px;margin:0 auto }
.pub-sec-head { text-align:center;margin-bottom:48px }
.pub-sec-head h2 {
  font-size:36px;font-weight:900;
  color:#0f172a;letter-spacing:-1px;margin-bottom:12px
}
.pub-sec-head p { font-size:16px;color:#64748b;line-height:1.6 }
.pub-features-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px
}
.pub-feat-card {
  background:#fff;border:1.5px solid #e5eaf2;
  border-radius:18px;padding:28px 24px;
  transition:.2s;box-shadow:0 2px 12px rgba(0,0,0,.05)
}
.pub-feat-card:hover {
  transform:translateY(-4px);
  box-shadow:0 8px 28px rgba(0,0,0,.1);
  border-color:#bfdbfe
}
.pub-feat-icon {
  width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;margin-bottom:16px
}
.pub-feat-card h3 {
  font-size:14px;font-weight:800;
  color:#0f172a;margin-bottom:10px;
  letter-spacing:.3px
}
.pub-feat-card p {
  font-size:13px;color:#64748b;line-height:1.7
}

/* FAQ SECTION */
.pub-faq { background:#f8fafc;padding:80px 24px }
.pub-faq-list { max-width:720px;margin:0 auto 0 }
.pub-faq-item {
  background:#fff;border:1px solid #e5eaf2;
  border-radius:14px;margin-bottom:12px;overflow:hidden;
  box-shadow:0 1px 6px rgba(0,0,0,.04)
}
.pub-faq-q {
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 22px;cursor:pointer;
  font-size:15px;font-weight:600;color:#0f172a;
  transition:.2s
}
.pub-faq-q:hover{background:#f0f6ff;color:#1d4ed8}
.pub-faq-q i{color:#94a3b8;transition:transform .3s;font-size:13px;flex-shrink:0}
.pub-faq-q.open i{transform:rotate(180deg);color:#1d4ed8}
.pub-faq-a {
  max-height:0;overflow:hidden;
  transition:max-height .35s ease;
  font-size:14px;color:#64748b;
  line-height:1.7;padding:0 22px;
  background:#f8fafc
}

/* PUBLIC FOOTER */
.pub-footer {
  background:linear-gradient(180deg,#0a1628 0%,#071120 50%,#050d18 100%);
  padding:40px 24px 28px;text-align:center;
  border-top:1px solid rgba(255,255,255,.05)
}
.pub-footer-inner { max-width:800px;margin:0 auto }
.pub-footer-logo {
  font-size:24px;font-weight:900;color:#fff;
  display:flex;align-items:center;justify-content:center;
  gap:10px;margin-bottom:12px
}
.pub-footer-logo i{color:#60a5fa}
.pub-footer p{font-size:13px;color:rgba(255,255,255,.45);margin-bottom:20px;line-height:1.6}
.pub-footer-links{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:20px}
.pub-footer-links a{color:rgba(255,255,255,.65);text-decoration:none;font-size:13px;font-weight:600;transition:.2s}
.pub-footer-links a:hover{color:#fff}
/* Bottom row: social + language side by side */
.footer-bottom-row{
  display:flex;align-items:center;justify-content:center;
  gap:16px;margin:14px 0 10px;flex-wrap:wrap
}
.footer-social-btns{display:flex;align-items:center;gap:8px}
.footer-social-btn{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.6);font-size:15px;
  text-decoration:none;transition:.2s
}
.footer-social-btn:hover{
  background:rgba(96,165,250,.15);
  border-color:rgba(96,165,250,.4);
  color:#60a5fa;
  transform:translateY(-2px);
  box-shadow:0 4px 14px rgba(96,165,250,.2)
}
.pub-footer-copy{font-size:12px;color:rgba(255,255,255,.28);margin-top:6px}
.pub-footer-legal{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin:10px 0 4px;flex-wrap:wrap
}
.pub-footer-legal a{
  font-size:12px;color:rgba(255,255,255,.45);
  text-decoration:none;font-weight:600;
  transition:.2s;letter-spacing:.2px
}
.pub-footer-legal a:hover{color:rgba(255,255,255,.85);text-decoration:underline}

/* TRX LIVE PRICE BAR IN FOOTER */
.footer-trx-bar{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:30px;padding:7px 18px;
  margin-bottom:16px;
}
.footer-trx-live-dot{
  width:7px;height:7px;border-radius:50%;
  background:#22c55e;flex-shrink:0;
  box-shadow:0 0 6px #22c55e;
  animation:livePulse 1.8s ease infinite
}
@keyframes livePulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.3)}}
.footer-trx-label{font-size:12px;font-weight:800;color:rgba(255,255,255,.6);letter-spacing:.5px}
.footer-trx-price{font-size:14px;font-weight:900;color:#fff}
.footer-trx-change{font-size:12px;font-weight:700}
.footer-trx-change.up{color:#22c55e}
.footer-trx-change.down{color:#f87171}





/* AUTH BACK BAR */
.auth-back-bar {
  background:linear-gradient(90deg,#0f2770,#1a3a9e);
  padding:12px 24px
}
.auth-back-bar button {
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);
  color:#fff;padding:8px 18px;border-radius:8px;
  font-size:13px;font-weight:700;cursor:pointer;
  display:flex;align-items:center;gap:8px;
  font-family:'Inter',sans-serif;transition:.2s
}
.auth-back-bar button:hover{background:rgba(255,255,255,.22)}

/* AUTH MODE — full page auth (no sidebar) */
body.auth-mode .auth-split { min-height:calc(100vh - 60px) }

/* APP WRAPPER */
.app-wrapper { display:flex;min-height:100vh;width:100% }


/* RESPONSIVE LANDING */
@media(max-width:900px){
  .pub-hero-inner { flex-direction:column;text-align:center;gap:40px }
  .pub-hero-text { max-width:100% }
  .pub-hero-btns { justify-content:center }
  .pub-hero-stats { justify-content:center }
  .pub-hero-visual { width:100% }
  .pub-hero-wheel-wrap { margin:0 auto }
  .pub-hero-badges { align-items:center;flex-direction:row;justify-content:center;flex-wrap:wrap }
  .pub-hero-text h1 { font-size:38px }
  .pub-features-grid { grid-template-columns:repeat(2,1fr) }
  .pub-nav-links { display:none }
  .pub-menu-btn { display:block }
}
@media(max-width:580px){
  .pub-features-grid { grid-template-columns:1fr }
  .pub-hero-text h1 { font-size:30px }
  .pub-hero-btn-login,.pub-hero-btn-signup { padding:12px 24px;font-size:14px }
}

/* LANDING CANVAS WHEEL WRAPPER */
.pub-canvas-wheel-wrap {
  position:relative;width:280px;height:280px;
  display:inline-block
}
.pub-canvas-wheel-wrap canvas {
  display:block;
  border-radius:50%;
  box-shadow:0 0 0 5px rgba(255,255,255,.15),0 12px 48px rgba(0,0,0,.28);
  background:#1a1a1a
}
.pub-wheel-ptr {
  position:absolute;top:-22px;left:50%;
  transform:translateX(-50%);
  color:#f59e0b;font-size:26px;z-index:10;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.5));
  animation:pointerBounce .7s ease-in-out infinite alternate;
  line-height:1
}

/* GIFT CODE ROW */
.pub-hero-gift-row {
  display:flex;align-items:center;gap:8px;
  margin-bottom:20px;font-size:14px;color:#475569
}
.pub-gift-link {
  color:#f59e0b;font-weight:800;text-decoration:none;
  border-bottom:2px solid #fde68a;
  transition:.2s;padding-bottom:1px
}
.pub-gift-link:hover { color:#d97706;border-bottom-color:#f59e0b }

/* FREE SPINS BADGE */
.free-spins-badge {
  display:inline-flex;align-items:center;gap:8px;
  background:linear-gradient(135deg,#f59e0b,#ef4444);
  color:#fff;padding:10px 24px;border-radius:30px;
  font-size:14px;font-weight:800;margin-bottom:12px;
  box-shadow:0 4px 16px rgba(245,158,11,.4);
  animation:badgePulse 1.5s ease-in-out infinite
}
@keyframes badgePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}

/* 2FA TOGGLE ROW */
.auth-2fa-toggle-row {
  margin-bottom:8px;margin-top:-4px
}
.auth-2fa-lbl {
  display:flex;align-items:center;gap:8px;
  font-size:12px;color:#64748b;cursor:pointer;font-weight:500
}
.auth-2fa-lbl input { width:15px;height:15px;cursor:pointer;accent-color:#2563eb }

/* AUTH PAGE CANVAS WHEEL */
.auth-canvas-wheel-wrap {
  position:relative;
  width:200px;height:200px;
  display:inline-block;
  margin:0 auto
}
.auth-wheel-ptr {
  position:absolute;
  top:-20px;left:50%;
  transform:translateX(-50%);
  color:#f59e0b;font-size:22px;
  z-index:10;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.6));
  animation:pointerBounce .7s ease-in-out infinite alternate;
  line-height:1
}
.auth-wheel-canvas {
  display:block;
  border-radius:50%;
  box-shadow:0 0 0 4px rgba(255,255,255,.12),0 8px 32px rgba(0,0,0,.35)
}

/* ===== AUTH PAGE TOP NAVBAR ===== */
.auth-page-nav {
  position:sticky;top:0;z-index:100;
  background:rgba(15,23,42,0.97);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,0.08);
  padding:0 24px;
  height:58px;display:flex;align-items:center
}
.auth-page-nav-inner {
  width:100%;max-width:1200px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between
}
.auth-page-logo {
  display:flex;align-items:center;gap:8px;
  font-weight:800;font-size:18px;color:#fff;
  letter-spacing:-.3px
}
.auth-page-logo i { color:#2563eb;font-size:20px }
.auth-page-links {
  display:flex;align-items:center;gap:6px
}
.auth-pg-link {
  text-decoration:none;color:rgba(255,255,255,.72);
  font-size:14px;font-weight:500;
  padding:7px 14px;border-radius:8px;
  transition:all .18s
}
.auth-pg-link:hover {
  color:#fff;background:rgba(255,255,255,.08)
}
@media(max-width:520px){
  .auth-page-links { display:none }
}

/* ===== BUTTON LOADING SPINNER ===== */
.btn-loading { opacity:0.88 !important; pointer-events:none }
.btn-spinner {
  display:inline-block;
  width:16px;height:16px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:btnSpin .7s linear infinite;
  vertical-align:middle;
  margin-right:4px
}
@keyframes btnSpin { to { transform:rotate(360deg) } }

/* ===== SIDEBAR EXTRAS ===== */
.sidebar-extras {
  padding:10px 12px 4px;
  border-top:1px solid rgba(255,255,255,.07);
  margin-top:auto;
  display:flex;flex-direction:column;gap:8px
}

/* TRX Price Widget */
.sidebar-trx-price {
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;padding:8px 10px
}
.trx-price-row {
  display:flex;align-items:center;justify-content:space-between
}
.trx-logo {
  font-size:12px;font-weight:700;color:#e84142;
  display:flex;align-items:center;gap:5px
}
.trx-price-val {
  font-size:13px;font-weight:800;color:#fff
}
.trx-price-sub {
  font-size:10px;margin-top:2px;color:#94a3b8
}

/* Language Selector */
.sidebar-lang {
  display:flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;padding:7px 10px
}
.sidebar-lang i { color:#64748b;font-size:13px;flex-shrink:0 }
.sidebar-lang select {
  flex:1;background:transparent;border:none;outline:none;
  color:#cbd5e1;font-size:12px;font-weight:500;cursor:pointer;
  appearance:none
}
.sidebar-lang select option { background:#1e293b;color:#fff }

/* Gift Code Button */
.sidebar-gift-btn {
  width:100%;padding:8px;border:1px solid rgba(245,158,11,.3);
  background:rgba(245,158,11,.08);border-radius:10px;
  color:#f59e0b;font-size:12px;font-weight:600;cursor:pointer;
  transition:all .18s;display:flex;align-items:center;justify-content:center;gap:6px
}
.sidebar-gift-btn:hover {
  background:rgba(245,158,11,.18);border-color:rgba(245,158,11,.6)
}

/* Progress bar label order (label above value) */
.lp-left,.lp-right { flex-direction:column }
.lp-left { align-items:flex-start }
.lp-right { align-items:flex-end; display:flex }
.lp-right { align-items:flex-end }

/* ===== DASHBOARD BOTTOM BAR ===== */
.dash-bottom-bar {
  position:fixed;bottom:0;left:0;right:0;z-index:200;
  background:rgba(10,16,40,0.97);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,.09);
  height:44px;
  display:flex;align-items:center
}
.dbb-inner {
  width:100%;max-width:1400px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 20px;gap:16px
}
/* TRX Price */
.dbb-trx {
  display:flex;align-items:center;gap:7px;
  font-size:12px
}
.dbb-trx-dot {
  width:7px;height:7px;border-radius:50%;
  background:#e84142;flex-shrink:0;
  box-shadow:0 0 5px #e84142
}
.dbb-trx-label { color:#94a3b8;font-weight:600 }
.dbb-trx-price { color:#fff;font-weight:800 }
.dbb-trx-change { font-weight:700;font-size:11px }
/* Links */
.dbb-links { display:flex;align-items:center;gap:4px }
.dbb-link {
  text-decoration:none;color:rgba(255,255,255,.65);
  font-size:12px;font-weight:500;
  padding:5px 11px;border-radius:7px;
  display:flex;align-items:center;gap:5px;
  transition:all .15s
}
.dbb-link:hover { color:#fff;background:rgba(255,255,255,.08) }
.dbb-link i { font-size:11px }
/* Language Button */
.dbb-lang-btn {
  display:flex;align-items:center;gap:6px;
  background:rgba(37,99,235,.15);
  border:1px solid rgba(37,99,235,.3);
  border-radius:8px;padding:5px 12px;
  color:#93c5fd;font-size:12px;font-weight:600;cursor:pointer;
  transition:all .15s
}
.dbb-lang-btn:hover { background:rgba(37,99,235,.25);color:#bfdbfe }
.dbb-lang-btn i:first-child { font-size:13px }

/* No extra bottom padding needed - bottom bar removed */

/* ===== LANGUAGE MODAL ===== */
.lang-modal-bg {
  position:fixed;inset:0;z-index:500;
  background:rgba(0,0,0,.6);backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;
  animation:fadeIn .18s
}
.lang-modal-box {
  background:#fff;border:1px solid #e5eaf2;
  border-radius:16px;width:260px;
  padding:0;animation:popIn .2s ease-out;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  overflow:hidden;max-height:80vh;display:flex;flex-direction:column
}
.lang-modal-header {
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;font-size:14px;font-weight:700;color:#1e293b;
  border-bottom:1px solid #f1f5f9;flex-shrink:0
}
.lang-modal-header i { color:#2563eb;margin-right:6px }
.lang-modal-close {
  background:none;border:none;color:#94a3b8;font-size:15px;cursor:pointer;
  padding:4px 7px;border-radius:6px;transition:all .15s
}
.lang-modal-close:hover { color:#1e293b;background:#f1f5f9 }
/* Vertical list — matches reference image */
.lang-list {
  overflow-y:auto;flex:1
}
.lang-list-item {
  display:flex;align-items:center;gap:10px;
  width:100%;padding:10px 16px;
  border:none;background:transparent;
  font-size:13px;font-weight:500;color:#334155;
  cursor:pointer;text-align:left;transition:.13s;
  border-bottom:1px solid #f8fafd
}
.lang-list-item:hover { background:#f0f6ff;color:#1d4ed8 }
.lang-list-item.active { background:#eff6ff;color:#1d4ed8;font-weight:700 }
.lang-list-item.active .lang-name { color:#1d4ed8 }
.lang-list-item .lang-flag { font-size:18px;flex-shrink:0;width:24px }
.lang-list-item .lang-name { flex:1 }
.lang-check { color:#2563eb;font-size:11px;margin-left:auto }
/* Legacy .lang-item kept for old uses */
.lang-item {
  display:flex;flex-direction:column;align-items:center;gap:4px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);
  border-radius:10px;padding:10px 6px;cursor:pointer;
  color:#cbd5e1;font-size:11px;font-weight:600;
  transition:all .15s
}
.lang-item:hover { background:rgba(37,99,235,.15);border-color:rgba(37,99,235,.4);color:#93c5fd }
.lang-flag { font-size:22px }
@media(max-width:480px){
  .dbb-links { display:none }
}

/* ===== REDUCE WHITE BRIGHTNESS ===== */
/* Auth right panel — slightly warm off-white instead of stark white */
.auth-right { background:#f2f4fa !important }
/* Dashboard content area */
.content { background:#eef1f8 !important }
/* Cards and panels */
.level-progress-card,
.spin-card,
.wins-card,
.game-icon-card,
.dice-panel,
.withdraw-card,
.deposit-card,
.aff-card,
.settings-card,
.contact-card { background:#f5f7fc !important }

/* ===== FOOTER LANGUAGE BUTTON ===== */
.footer-lang-wrap {
  margin:14px 0 6px;
  display:flex;justify-content:center
}
.footer-lang-btn {
  display:inline-flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  border-radius:20px;padding:7px 18px;
  color:rgba(255,255,255,.85);font-size:13px;font-weight:600;
  cursor:pointer;transition:all .18s
}
.footer-lang-btn:hover {
  background:rgba(255,255,255,.15);color:#fff
}
.footer-lang-btn i:first-child { color:#60a5fa }

/* Remove extra bottom padding added by old fixed bar */
.logged-in .content { padding-bottom:0 }

/* ===== PROVABLY FAIR MODALS ===== */
.pf-modal-bg {
  position:fixed;inset:0;z-index:600;
  background:rgba(0,0,0,.55);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;
  animation:fadeIn .15s
}
.pf-modal-box {
  background:#fff;border-radius:12px;
  width:100%;max-width:440px;
  padding:20px 24px;position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  max-height:90vh;overflow-y:auto
}
.pf-modal-header {
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;font-size:16px;font-weight:700;color:#111
}
.pf-modal-header i { margin-right:8px;transition:color .2s }
.pf-modal-close {
  background:none;border:none;font-size:18px;color:#9ca3af;cursor:pointer;
  padding:2px 6px;border-radius:6px;transition:all .15s
}
.pf-modal-close:hover { color:#374151;background:#f3f4f6 }
.pf-field-group { margin-bottom:14px }
.pf-label {
  font-size:12px;font-weight:600;color:#374151;
  margin-bottom:6px;display:block
}
.pf-input-wrap {
  display:flex;align-items:center;gap:10px;
  background:#f9fafb;border:1px solid #e5e7eb;
  border-radius:8px;padding:10px 12px
}
.pf-input-wrap i { color:#9ca3af;font-size:13px;flex-shrink:0 }
.pf-input {
  flex:1;border:none;background:transparent;outline:none;
  font-size:12px;color:#1f2937;font-family:monospace;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
/* Change client seed button */
.pf-change-btn {
  width:100%;padding:13px;
  background:#22c55e;color:#fff;
  border:none;border-radius:8px;
  font-size:13px;font-weight:700;letter-spacing:.5px;
  cursor:pointer;margin-top:4px;transition:all .15s
}
.pf-change-btn:hover { background:#16a34a }
/* Verify button */
.pf-verify-btn {
  width:100%;padding:13px;
  background:#22c55e;color:#fff;
  border:none;border-radius:8px;
  font-size:13px;font-weight:700;letter-spacing:.5px;
  cursor:pointer;margin-top:4px;transition:all .15s
}
.pf-verify-btn:hover { filter:brightness(.9) }

/* Bet Info Stats Row */
.bi-stats-row {
  display:flex;border-bottom:1px solid #f3f4f6;
  margin-bottom:16px;padding-bottom:14px;
  gap:8px;justify-content:space-around
}
.bi-stat { text-align:center }
.bi-stat-label { font-size:11px;font-weight:600;margin-bottom:3px }
.bi-stat-val { font-size:13px;font-weight:700;color:#111 }

/* Roll Slider */
.bi-slider-wrap { margin-bottom:18px }
.bi-slider-track {
  position:relative;height:10px;border-radius:5px;
  overflow:visible;display:flex;margin-bottom:6px
}
.bi-slider-fill-red {
  height:100%;background:#ef4444;border-radius:5px 0 0 5px;
  flex-shrink:0
}
.bi-slider-fill-green {
  height:100%;background:#22c55e;border-radius:0 5px 5px 0;
  flex:1
}
.bi-slider-thumb {
  position:absolute;top:50%;transform:translate(-50%,-50%);
  width:14px;height:14px;
  background:#fff;border:3px solid #374151;border-radius:50%;
  display:flex;align-items:flex-end;justify-content:center;
  z-index:2
}
.bi-thumb-label {
  position:absolute;bottom:20px;left:50%;transform:translateX(-50%);
  background:#059669;color:#fff;font-size:11px;font-weight:800;
  padding:2px 7px;border-radius:5px;white-space:nowrap;transition:background .2s
}
.bi-slider-ends {
  display:flex;justify-content:space-between;
  font-size:11px;color:#9ca3af;font-weight:500;
  margin-top:2px
}

/* Provably Fair Verify Page */
.pf-verify-box {
  background:#fff;border-radius:14px;
  width:100%;max-width:600px;padding:32px 36px;
  position:relative;max-height:90vh;overflow-y:auto;
  box-shadow:0 24px 80px rgba(0,0,0,.35)
}
.pf-verify-title {
  font-size:22px;font-weight:900;letter-spacing:1px;
  color:#111;text-align:center;margin-bottom:12px
}
.pf-verify-desc {
  font-size:12px;color:#059669;line-height:1.6;
  text-align:center;margin-bottom:20px;
  background:#f0fdf4;border-radius:8px;padding:12px
}
.pf-verify-fields { display:flex;flex-direction:column;gap:10px }
.pf-vf-row { display:flex;flex-direction:column;gap:4px }
.bets-tbl tr { cursor:pointer }
.bets-tbl tr:hover td { background:rgba(37,99,235,.04) }
.bet-win:hover td { background:rgba(5,150,105,.06) !important }
.bet-loss:hover td { background:rgba(220,38,38,.06) !important }

/* ===== LANDING PAGE CONTACT SECTION ===== */
.pub-contact-sec {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e5eaf2;
}
.pub-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media(max-width:768px) {
  .pub-contact-grid { grid-template-columns: 1fr; }
}
.pub-contact-card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: .25s;
}
.pub-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37,99,235,.12);
  border-color: #bfdbfe;
}
.pub-contact-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 14px 0 8px;
}
.pub-contact-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}
.pub-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 9px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
.pub-contact-link:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Hide duplicate auth-left-logo (keep only top nav logo) */
.auth-left-logo { display: none !important; }
/* Hide old landing contact section (replaced by modal) */
.pub-contact-sec { display: none !important; }

/* ===== PERFORMANCE: GPU-accelerated auth pages ===== */
.auth-split, .auth-left, .auth-right {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Smooth auth form transitions */
.auth-input, .auth-btn, .auth-field {
  transition: box-shadow .15s, border-color .15s;
}
/* Prevent font layout shift on auth pages */
.auth-page-nav, .auth-right-inner { contain: layout style; }

/* ===== DICE SLIDER: draggable handle ===== */
#dtrackHandle {
  cursor: ew-resize !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .08s;
}
#dtrackHandle:active { transform: translate(-50%,-50%) scale(1.3); }

/* ===== LEVEL MILESTONE: show only active level name ===== */
.lp-milestones {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.lp-milestones span {
  font-size: 12px;
  font-weight: 700;
}
/* ===== PRIVACY NOTIFICATION TOGGLES ===== */
.privacy-toggle-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 0;border-bottom:1px solid #f1f5f9;gap:16px
}
.privacy-toggle-info{flex:1}
.privacy-toggle-title{font-size:14px;font-weight:700;color:#111827;margin-bottom:3px;display:flex;align-items:center;gap:7px}
.privacy-toggle-desc{font-size:12px;color:#6b7280;line-height:1.5}
.priv-toggle{position:relative;display:inline-block;width:50px;height:27px;flex-shrink:0}
.priv-toggle input{opacity:0;width:0;height:0}
.priv-slider{
  position:absolute;inset:0;background:#e5e7eb;border-radius:27px;
  cursor:pointer;transition:.3s;
}
.priv-slider:before{
  content:'';position:absolute;height:21px;width:21px;
  left:3px;bottom:3px;background:#fff;border-radius:50%;
  transition:.3s;box-shadow:0 1px 4px rgba(0,0,0,.2)
}
.priv-toggle input:checked + .priv-slider{background:linear-gradient(135deg,#1d4ed8,#3b82f6)}
.priv-toggle input:checked + .priv-slider:before{transform:translateX(23px)}



/* ===== PAYOUT TABLE PAGE ===== */
.payout-stats-row{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px
}
.payout-stat-box{
  background:#fff;border:1px solid #e2eaf5;border-radius:16px;
  padding:20px;text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.05)
}
.payout-stat-box.green{border-color:#86efac;background:#f0fdf4}
.payout-stat-box.blue{border-color:#bfdbfe;background:#eff6ff}
.payout-stat-num{font-size:26px;font-weight:800;color:#111827;margin-bottom:4px}
.payout-stat-box.green .payout-stat-num{color:#059669}
.payout-stat-box.blue .payout-stat-num{color:#2563eb}
.payout-stat-lbl{font-size:12px;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.payout-table-card{
  background:#fff;border:1px solid #e2eaf5;border-radius:18px;
  overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.07)
}
.payout-table-head{
  padding:18px 24px;font-size:16px;font-weight:800;color:#111827;
  border-bottom:1px solid #f1f5f9
}
.payout-table-wrap{overflow-x:auto}
.payout-tbl{width:100%;border-collapse:collapse}
.payout-tbl thead tr{background:#f8fafd}
.payout-tbl th{
  padding:12px 20px;font-size:12px;font-weight:700;
  color:#6b7280;text-align:center;text-transform:uppercase;letter-spacing:.5px;
  border-bottom:1px solid #f1f5f9
}
.payout-tbl th:first-child{text-align:left}
.payout-tbl td{
  padding:16px 20px;font-size:13px;border-bottom:1px solid #f8fafd;
  vertical-align:middle;color:#374151
}
.payout-tbl td:first-child{font-weight:700;color:#111}
.payout-tbl td:nth-child(2){text-align:center}
.payout-tbl td:nth-child(3){text-align:center}
.payout-tbl tr:hover td{background:#f8fafd}
.payout-tbl tr:last-child td{border-bottom:none}
.payout-user-cell{display:flex;flex-direction:column;gap:2px}
.payout-username{font-weight:800;color:#111;font-size:14px}
.payout-time{font-size:11px;color:#9ca3af;font-weight:500}
.payout-amt-cell{display:flex;flex-direction:column;align-items:center;gap:3px}
.payout-trx-amt{font-size:16px;font-weight:800;color:#111}
.payout-usd-amt{font-size:12px;color:#059669;font-weight:700}
.payout-addr-cell{display:flex;flex-direction:column;gap:4px;align-items:center}
.payout-addr-link{color:#2563eb;font-size:12px;font-weight:600;font-family:monospace;text-decoration:none;word-break:break-all}
.payout-addr-link:hover{text-decoration:underline;color:#1d4ed8}
.payout-txid-link{color:#7c3aed;font-size:11px;font-family:monospace;text-decoration:none}
.payout-txid-link:hover{text-decoration:underline}
.payout-empty{text-align:center;padding:48px 20px;color:#9ca3af}
.payout-empty i{font-size:36px;margin-bottom:12px;display:block;color:#cbd5e1}
.payout-empty p{font-size:14px;margin-bottom:8px;line-height:1.7}
.payout-empty span{font-size:12px;color:#94a3b8}

/* ===== EYE CARE TOGGLE ===== */
.ec-toggle-row{display:flex!important;align-items:center;justify-content:space-between!important;cursor:pointer}
.footer-eyecare-row{display:flex;align-items:center;justify-content:center;margin-bottom:10px;cursor:pointer;transition:opacity .2s}
.footer-eyecare-row:hover{opacity:1!important}
.ec-switch{
  position:relative;width:48px;height:26px;
  background:#334155;border-radius:13px;
  display:flex;align-items:center;padding:2px;
  transition:background .3s;flex-shrink:0;
  cursor:pointer;border:1px solid rgba(255,255,255,.1)
}
.ec-switch.active{background:linear-gradient(135deg,#f59e0b,#ea580c);border-color:rgba(245,158,11,.4)}
.ec-sun{position:absolute;left:5px;font-size:12px;transition:opacity .3s;z-index:1;color:#f8fafc}
.ec-switch.active .ec-sun{opacity:0}
.ec-thumb{
  width:22px;height:22px;background:#fff;border-radius:50%;
  box-shadow:0 2px 6px rgba(0,0,0,.3);
  transition:transform .3s,background .3s;
  position:absolute;left:2px;z-index:2;
}
.ec-switch.active .ec-thumb{
  transform:translateX(22px);
  background:#fff;
}

/* ===== EYE CARE MODE — Complete Dark Blue Night Theme ===== */
body.eye-care-mode {
  background:#0a1628 !important;
  color:#cbd5e1 !important;
}
/* Main content bg */
body.eye-care-mode .content,
body.eye-care-mode #app-wrapper,
body.eye-care-mode main,
body.eye-care-mode .pg-inner {
  background:#0f1e36 !important;
}
/* Sidebar stays dark */
body.eye-care-mode .sidebar {
  background:linear-gradient(180deg,#071020,#0a1628) !important;
  border-right-color:rgba(255,255,255,.05) !important;
}

/* ── ALL CARDS / BOXES / PANELS ── */
body.eye-care-mode .level-progress-card,
body.eye-care-mode .spin-card,
body.eye-care-mode .wins-card,
body.eye-care-mode .game-icon-card,
body.eye-care-mode .dice-panel,
body.eye-care-mode .withdraw-card,
body.eye-care-mode .deposit-card,
body.eye-care-mode .aff-card,
body.eye-care-mode .settings-card,
body.eye-care-mode .contact-card,
body.eye-care-mode .form-card,
body.eye-care-mode .settings-form-card,
body.eye-care-mode .gift-card,
body.eye-care-mode .aff-url-card,
body.eye-care-mode .aff-earned-card,
body.eye-care-mode .payout-stat-box,
body.eye-care-mode .payout-table-card,
/* Deposit page QR card + network box */
body.eye-care-mode .dep-qr-card,
body.eye-care-mode .dep-network-box,
body.eye-care-mode .dep-info-box,
body.eye-care-mode .dep-card-inner,
/* Withdraw page */
body.eye-care-mode .withdraw-inner,
body.eye-care-mode .wdraw-history-card,
/* Contact page */
body.eye-care-mode .contact-inner,
body.eye-care-mode .contact-img-upload-box,
body.eye-care-mode .contact-upload-area,
/* Dice/Games auto panel */
body.eye-care-mode .dice-auto-panel,
body.eye-care-mode .auto-bet-card,
body.eye-care-mode .on-win-card,
body.eye-care-mode .on-loss-card,
body.eye-care-mode .dice-result-card,
body.eye-care-mode .game-stats-row,
/* Referral contest / contests */
body.eye-care-mode .rc-stats-card,
body.eye-care-mode .wager-stats-card,
body.eye-care-mode .contest-card,
body.eye-care-mode .lb-card,
body.eye-care-mode .lb-container,
body.eye-care-mode .ref-lb-wrap,
body.eye-care-mode .wager-lb-wrap,
/* Leaderboard rows */
body.eye-care-mode .lb-row,
body.eye-care-mode .wager-lb-list,
body.eye-care-mode .ref-lb-list,
/* Gift page */
body.eye-care-mode .giftcode-card,
/* Spin page */
body.eye-care-mode .spin-result-card,
/* Affiliates */
body.eye-care-mode .aff-stats-row,
/* Payout proof */
body.eye-care-mode .payout-proof-card,
/* Games pages generic panels */
body.eye-care-mode .limbo-panel,
body.eye-care-mode .slots-panel,
body.eye-care-mode .gems-panel,
body.eye-care-mode .mines-panel,
body.eye-care-mode .wheel-panel,
body.eye-care-mode .game-panel,
body.eye-care-mode .bets-table-wrap,
body.eye-care-mode .bets-table-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#cbd5e1 !important;
}

/* ── UNIVERSAL CATCH-ALL: any div/section with white bg ── */
/* This catches inline-style white backgrounds and any missed classes */
body.eye-care-mode [style*="background:#fff"],
body.eye-care-mode [style*="background: #fff"],
body.eye-care-mode [style*="background:white"],
body.eye-care-mode [style*="background: white"],
body.eye-care-mode [style*="background:#ffffff"],
body.eye-care-mode [style*="background: #ffffff"],
body.eye-care-mode [style*="background:rgb(255, 255, 255)"],
body.eye-care-mode [style*="background-color:#fff"],
body.eye-care-mode [style*="background-color: #fff"],
body.eye-care-mode [style*="background-color:white"],
body.eye-care-mode [style*="background-color:#ffffff"],
body.eye-care-mode [style*="background-color: #ffffff"] {
  background:#152035 !important;
  color:#cbd5e1 !important;
}
/* Light gray backgrounds */
body.eye-care-mode [style*="background:#f"],
body.eye-care-mode [style*="background:#e"],
body.eye-care-mode [style*="background:rgba(255,255,255"],
body.eye-care-mode [style*="background: rgba(255, 255, 255"] {
  background:#1a2a40 !important;
}

/* ── INPUTS / TEXTAREAS / SELECTS ── */
body.eye-care-mode input,
body.eye-care-mode textarea,
body.eye-care-mode select {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.15) !important;
  color:#e2e8f0 !important;
}
body.eye-care-mode input::placeholder,
body.eye-care-mode textarea::placeholder {
  color:#475569 !important;
}
/* Radio buttons visible */
body.eye-care-mode input[type="radio"] {
  accent-color:#60a5fa;
}

/* ── TABLES ── */
body.eye-care-mode table,
body.eye-care-mode .wdraw-history-tbl,
body.eye-care-mode .bets-tbl {
  background:#152035 !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode thead tr,
body.eye-care-mode .wdraw-history-tbl thead tr {
  background:#0f1e36 !important;
}
body.eye-care-mode th,
body.eye-care-mode .wdraw-history-tbl th {
  color:#64748b !important;
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode td,
body.eye-care-mode .wdraw-history-tbl td {
  color:#cbd5e1 !important;
  border-color:rgba(255,255,255,.04) !important;
}
body.eye-care-mode tr:hover td,
body.eye-care-mode .wdraw-history-tbl tr:hover td {
  background:#1a2a40 !important;
}

/* ── IMAGE UPLOAD BOX ── */
body.eye-care-mode .img-upload-preview,
body.eye-care-mode .upload-preview-box,
body.eye-care-mode [id*="upload"],
body.eye-care-mode [class*="upload"] {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
  color:#64748b !important;
}

/* ── LEADERBOARD ROWS (dynamic inline bg) ── */
body.eye-care-mode #wager-lb-list > div,
body.eye-care-mode #ref-lb-list > div {
  background:rgba(255,255,255,.04) !important;
  border-color:rgba(255,255,255,.05) !important;
}

/* ── DICE / LIMBO slider track ── */
body.eye-care-mode .dice-slider-track,
body.eye-care-mode .slider-wrap {
  background:#1e2d45 !important;
}

/* ── TEXT COLORS ── */
body.eye-care-mode h1,
body.eye-care-mode h2,
body.eye-care-mode h3,
body.eye-care-mode h4,
body.eye-care-mode .pg-title-block h1,
body.eye-care-mode .pg-title-block p {
  color:#e2e8f0 !important;
}
body.eye-care-mode p,
body.eye-care-mode label,
body.eye-care-mode span:not(.ec-sun):not(.footer-trx-live-dot):not(.session-online):not(.nav-badge) {
  color:#94a3b8 !important;
}
/* Nav items */
body.eye-care-mode .nav-item { color:#94a3b8 !important; }
body.eye-care-mode .nav-item.active,
body.eye-care-mode .nav-item:hover { color:#fff !important; }

/* ── PAGE HEADER / BOTTOM BAR / AUTH ── */
body.eye-care-mode .auth-right { background:#0f1e36 !important; }
body.eye-care-mode .page-header { background:#071020 !important; }
body.eye-care-mode .dash-bottom-bar { background:rgba(5,12,28,0.98) !important; }

/* ── ALL BORDERS SOFTER ── */
body.eye-care-mode * { border-color:rgba(255,255,255,.06) !important; }

/* ── KEEP COLORED ELEMENTS INTACT ── */
body.eye-care-mode .nav-badge,
body.eye-care-mode .footer-trx-live-dot,
body.eye-care-mode .session-online,
body.eye-care-mode button,
body.eye-care-mode .btn,
body.eye-care-mode [class*="btn-"] { color:inherit !important; }
/* Keep green/orange/red colored text visible */
body.eye-care-mode [style*="color:#22c55e"],
body.eye-care-mode [style*="color:#4ade80"],
body.eye-care-mode [style*="color:#f59e0b"],
body.eye-care-mode [style*="color:#2563eb"],
body.eye-care-mode [style*="color:#60a5fa"],
body.eye-care-mode [style*="color:#ef4444"],
body.eye-care-mode [style*="color:#f87171"] { color:inherit !important; }

/* ── REMAINING WHITE AREAS (dice auto, contact upload, bets table) ── */
/* On Win / On Loss boxes in Dice/Limbo auto mode */
body.eye-care-mode .auto-box {
  background:#152035 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .auto-box h4 {
  color:#94a3b8 !important;
}
/* Contact image preview / attach box */
body.eye-care-mode .contact-img-preview {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
  color:#475569 !important;
}
/* Bets table (My Bets / All Bets) */
body.eye-care-mode .bets-tbl-wrap {
  background:#0f1e36 !important;
}
body.eye-care-mode .bets-tbl th {
  background:#0f1e36 !important;
  color:#64748b !important;
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .bets-tbl td {
  border-color:rgba(255,255,255,.04) !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode .bets-tbl tbody tr:hover {
  background:rgba(255,255,255,.04) !important;
}
body.eye-care-mode .bets-tbl tbody tr:hover td {
  background:transparent !important;
}
/* Tabs (My Bets / All Bets header) */
body.eye-care-mode .bets-tab-row,
body.eye-care-mode .bets-tabs,
body.eye-care-mode .my-bets-header,
body.eye-care-mode .bet-tabs-wrap {
  background:#0f1e36 !important;
  border-color:rgba(255,255,255,.06) !important;
}
/* Stop on Profit / Stop on Loss / Bets / Total Profit row */
body.eye-care-mode .dice-stats-row,
body.eye-care-mode .auto-stats-row {
  background:#152035 !important;
}

/* ── SETTINGS PAGE — ALL REMAINING WHITE BOXES ── */
/* Password change card, 2FA card, privacy card */
body.eye-care-mode .settings-form-card,
body.eye-care-mode .settings-sessions-card,
body.eye-care-mode .settings-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode .settings-sessions-card h3 {
  color:#e2e8f0 !important;
}
/* Input wrappers in settings (sform-input-wrap) */
body.eye-care-mode .sform-input-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
}
body.eye-care-mode .sform-input-wrap i {
  color:#64748b !important;
}
body.eye-care-mode .sform-input-wrap .form-input {
  background:transparent !important;
  color:#e2e8f0 !important;
}
/* Settings verified/save buttons */
body.eye-care-mode .settings-verified-btn {
  background:#1a3a2a !important;
  color:#4ade80 !important;
  border-color:rgba(74,222,128,.2) !important;
}
/* Sessions table */
body.eye-care-mode .sessions-table {
  background:#152035 !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode .sessions-table th {
  background:#0f1e36 !important;
  color:#64748b !important;
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .sessions-table td {
  color:#cbd5e1 !important;
  border-color:rgba(255,255,255,.05) !important;
}
body.eye-care-mode .sessions-table tr:hover td {
  background:rgba(255,255,255,.04) !important;
}
body.eye-care-mode .session-logout-btn {
  background:#1e2d45 !important;
  color:#f87171 !important;
  border:1px solid rgba(248,113,113,.2) !important;
}
/* Privacy toggle rows */
body.eye-care-mode .privacy-toggle-row {
  border-bottom-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .privacy-toggle-title {
  color:#e2e8f0 !important;
}
body.eye-care-mode .privacy-toggle-desc {
  color:#64748b !important;
}
/* 2FA elements */
body.eye-care-mode .twofa-status-row {
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .twofa-qr-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.1) !important;
}
body.eye-care-mode .twofa-key-box {
  background:#1a2a40 !important;
  border-color:rgba(147,197,253,.15) !important;
}
body.eye-care-mode .twofa-step {
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .twofa-step-content h4 {
  color:#e2e8f0 !important;
}
body.eye-care-mode .twofa-step-content p {
  color:#64748b !important;
}
/* Settings tabs */
body.eye-care-mode .settings-tabs {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .stab {
  color:#64748b !important;
}
body.eye-care-mode .stab.active {
  background:#152035 !important;
  color:#e2e8f0 !important;
}

/* ── ALL MODALS (Provably Fair, Bet Info, Verify) ── */
body.eye-care-mode .pf-modal-box,
body.eye-care-mode .pf-verify-box {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode .pf-modal-header {
  color:#e2e8f0 !important;
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .pf-modal-close {
  color:#64748b !important;
  background:transparent !important;
}
body.eye-care-mode .pf-modal-close:hover {
  color:#e2e8f0 !important;
  background:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .pf-label {
  color:#94a3b8 !important;
}
body.eye-care-mode .pf-input-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
}
body.eye-care-mode .pf-input {
  color:#e2e8f0 !important;
}
body.eye-care-mode .pf-verify-title {
  color:#e2e8f0 !important;
}
body.eye-care-mode .pf-verify-desc {
  background:#0d2516 !important;
  color:#4ade80 !important;
}
/* Bet Info stats row & slider */
body.eye-care-mode .bi-stats-row {
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .bi-stat-label {
  color:#64748b !important;
}
body.eye-care-mode .bi-stat-val {
  color:#e2e8f0 !important;
}
body.eye-care-mode .bi-slider-track {
  background:#1e2d45 !important;
}
body.eye-care-mode .bi-slider-thumb {
  background:#1e2d45 !important;
  border-color:#60a5fa !important;
}
body.eye-care-mode .bi-slider-ends {
  color:#475569 !important;
}

/* ── TOPBAR (HEADER BAR) ── */
body.eye-care-mode .topbar,
body.eye-care-mode .page-header {
  background:#071020 !important;
  border-color:rgba(255,255,255,.05) !important;
}
body.eye-care-mode .topbar-trx-bal {
  background:#0f1e36 !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#e2e8f0 !important;
}

/* ── PROFILE DROPDOWN ── */
body.eye-care-mode .profile-dropdown {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .profile-drop-header {
  background:#0f1e36 !important;
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .profile-drop-name {
  color:#e2e8f0 !important;
}
body.eye-care-mode .profile-drop-email {
  color:#64748b !important;
}
body.eye-care-mode .profile-drop-item {
  color:#94a3b8 !important;
  border-color:rgba(255,255,255,.05) !important;
}
body.eye-care-mode .profile-drop-item:hover {
  background:rgba(255,255,255,.05) !important;
  color:#e2e8f0 !important;
}
body.eye-care-mode .profile-drop-divider {
  border-color:rgba(255,255,255,.06) !important;
}

/* ── MODALS (win, rules, general) ── */
body.eye-care-mode .modal-box,
body.eye-care-mode .modal-overlay .modal-box {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode .modal-box h3,
body.eye-care-mode .modal-box h4 {
  color:#e2e8f0 !important;
}
body.eye-care-mode .modal-close-btn {
  background:#1e2d45 !important;
  color:#94a3b8 !important;
}

/* ── DEPOSIT PAGE ELEMENTS ── */
body.eye-care-mode .dep-card,
body.eye-care-mode .tx-check-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode .dep-address-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
}
body.eye-care-mode .dep-address-input {
  background:transparent !important;
  color:#e2e8f0 !important;
}
body.eye-care-mode .dep-warn {
  background:#1a1a0d !important;
  border-color:rgba(245,158,11,.15) !important;
  color:#a16207 !important;
}
body.eye-care-mode .dep-network-badge {
  background:#0f2040 !important;
  color:#60a5fa !important;
}

/* ── NOTIFICATION BELL DROPDOWN ── */
body.eye-care-mode .notif-dropdown {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .notif-header {
  background:#0f1e36 !important;
  border-color:rgba(255,255,255,.06) !important;
  color:#e2e8f0 !important;
}
body.eye-care-mode .notif-item {
  border-color:rgba(255,255,255,.05) !important;
  color:#94a3b8 !important;
}
body.eye-care-mode .notif-empty {
  color:#475569 !important;
}

/* ── FORM INPUTS (all generic .form-input) ── */
body.eye-care-mode .form-input {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
  color:#e2e8f0 !important;
}
body.eye-care-mode .form-input::placeholder {
  color:#475569 !important;
}
body.eye-care-mode .form-input:focus {
  border-color:rgba(96,165,250,.4) !important;
  box-shadow:0 0 0 3px rgba(96,165,250,.08) !important;
}

/* ── GIFT INPUT FIELD ── */
body.eye-care-mode .gift-input-row {
  background:transparent !important;
}

/* ── CONTACT PAGE ── */
body.eye-care-mode .contact-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .contact-input-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.1) !important;
}
body.eye-care-mode .contact-textarea {
  background:#1e2d45 !important;
  color:#e2e8f0 !important;
  border-color:rgba(255,255,255,.1) !important;
}
body.eye-care-mode .contact-attach {
  color:#60a5fa !important;
  border-color:rgba(96,165,250,.2) !important;
}

/* ── CONVERSATION MESSAGES (Support) ── */
body.eye-care-mode #contact-conversation {
  background:transparent !important;
}
body.eye-care-mode .msg-bubble {
  color:#cbd5e1 !important;
}
body.eye-care-mode .msg-bubble.user-msg {
  background:#1d4ed8 !important;
}
body.eye-care-mode .msg-bubble.admin-msg {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.08) !important;
}

/* ── WOF/WHEEL PANEL ── */
body.eye-care-mode .wof-panel {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}

/* ── SLOTS PANEL ── */
body.eye-care-mode .slots-reel-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.1) !important;
}

/* ── PROVABLY FAIR IN-PAGE SECTION ── */
body.eye-care-mode .pf-section {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}

/* ══════════════════════════════════════════════════════
   DICE / LIMBO / ALL GAME INPUTS — complete white fix
   ══════════════════════════════════════════════════════ */

/* Dice input wrapper (Bet Amount, Roll Over, Multiplier, Win Chance) */
body.eye-care-mode .dice-input-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
}
body.eye-care-mode .dice-input-wrap input {
  background:transparent !important;
  color:#e2e8f0 !important;
}
body.eye-care-mode .dice-input-wrap input[readonly] {
  color:#60a5fa !important;
}
/* 2X / ½ quick buttons */
body.eye-care-mode .dice-quick {
  border-left-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .dice-quick button {
  background:#1a2a40 !important;
  color:#94a3b8 !important;
  border-right-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .dice-quick button:hover {
  background:#243550 !important;
  color:#e2e8f0 !important;
}
/* Dice swap button (⇄) */
body.eye-care-mode .dice-swap-btn,
body.eye-care-mode [class*="swap"] {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.1) !important;
  color:#94a3b8 !important;
}
/* Dice % symbol box */
body.eye-care-mode .dice-pct-box,
body.eye-care-mode .dice-input-wrap .dice-pct {
  background:#1a2a40 !important;
  color:#64748b !important;
  border-left-color:rgba(255,255,255,.08) !important;
}

/* Dice panel / form area */
body.eye-care-mode .dice-panel {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .dice-form-area {
  background:#152035 !important;
}
/* Roll result display bar */
body.eye-care-mode .dice-display-bar {
  background:linear-gradient(135deg,#071020,#0a1628) !important;
}

/* On Win / On Loss boxes (auto mode) */
body.eye-care-mode .auto-box {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .auto-box h4 {
  color:#94a3b8 !important;
}
body.eye-care-mode .auto-radio-row {
  color:#94a3b8 !important;
}
body.eye-care-mode .auto-pct-input,
body.eye-care-mode .auto-box input[type="number"],
body.eye-care-mode .auto-box input[type="text"] {
  background:#152035 !important;
  border-color:rgba(255,255,255,.1) !important;
  color:#e2e8f0 !important;
}

/* Stop On Profit / Stop On Loss / Bets / Total Profit row */
body.eye-care-mode .dice-stats-row,
body.eye-care-mode .auto-stats-row {
  background:#0f1e36 !important;
  border-top-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .dice-stats-row .dice-input-wrap,
body.eye-care-mode .auto-stats-row .dice-input-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.1) !important;
}

/* MY BETS / ALL BETS tab row */
body.eye-care-mode .bets-tab-row {
  background:#0f1e36 !important;
  border-color:rgba(255,255,255,.06) !important;
}
body.eye-care-mode .bets-tab {
  background:transparent !important;
  color:#64748b !important;
}
body.eye-care-mode .bets-tab.active {
  color:#60a5fa !important;
  border-bottom-color:#60a5fa !important;
}

/* ══════════════════════════════════════════════════════
   CONTEST / REFERRAL CONTEST — "Your Rank" white box
   ══════════════════════════════════════════════════════ */
body.eye-care-mode .contest-stats-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .contest-stats-card h3 {
  color:#e2e8f0 !important;
}
/* Individual stat box (YOUR RANK, YOUR REFERRALS) */
body.eye-care-mode .contest-stat {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .cstat-label {
  color:#64748b !important;
}
body.eye-care-mode .cstat-val {
  color:#e2e8f0 !important;
}
/* Contest countdown numbers */
body.eye-care-mode .cd-num {
  background:#1a2a40 !important;
  color:#60a5fa !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .cd-lbl {
  color:#64748b !important;
}
body.eye-care-mode .contest-desc {
  color:#94a3b8 !important;
}

/* ══════════════════════════════════════════════════════
   WITHDRAW PAGE — card, fields, MIN/MAX buttons
   ══════════════════════════════════════════════════════ */
body.eye-care-mode .wdraw-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .wdraw-field {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
}
body.eye-care-mode .wdraw-input {
  background:transparent !important;
  color:#e2e8f0 !important;
}
body.eye-care-mode .wdraw-input::placeholder {
  color:#475569 !important;
}
body.eye-care-mode .wdraw-avail {
  color:#94a3b8 !important;
}
body.eye-care-mode .wdraw-avail strong {
  color:#60a5fa !important;
}
body.eye-care-mode .wdraw-fee-row {
  color:#94a3b8 !important;
  border-color:rgba(255,255,255,.06) !important;
}

/* ══════════════════════════════════════════════════════
   SPIN PAGE — spin result card, wins card, claim area
   ══════════════════════════════════════════════════════ */
body.eye-care-mode .spin-result-card,
body.eye-care-mode .wins-card,
body.eye-care-mode .spin-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
  color:#cbd5e1 !important;
}
body.eye-care-mode .spin-result-amount {
  color:#4ade80 !important;
}
body.eye-care-mode .wins-list-item {
  border-bottom-color:rgba(255,255,255,.05) !important;
  color:#94a3b8 !important;
}
body.eye-care-mode .wins-list-item .win-user {
  color:#e2e8f0 !important;
}

/* ══════════════════════════════════════════════════════
   MINES / GEMS / LIMBO / WHEEL — panel inner elements
   ══════════════════════════════════════════════════════ */
body.eye-care-mode .mines-top-row,
body.eye-care-mode .mines-stat-box {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.08) !important;
  color:#94a3b8 !important;
}
body.eye-care-mode .mines-stat-val {
  color:#e2e8f0 !important;
}
/* Gems mode radio options */
body.eye-care-mode .gems-mode-opt {
  color:#94a3b8 !important;
}
/* Slots ctrl row */
body.eye-care-mode .slots-ctrl-row {
  background:#152035 !important;
}
body.eye-care-mode .slots-auto-lbl {
  color:#94a3b8 !important;
}
/* Limbo fields row */
body.eye-care-mode .limbo-fields-row {
  gap:12px;
}
/* Auto toggle label across all games */
body.eye-care-mode .auto-toggle-label,
body.eye-care-mode label[for*="Auto"],
body.eye-care-mode .slots-auto-lbl {
  color:#94a3b8 !important;
}

/* ══════════════════════════════════════════════════════
   DEPOSIT — QR canvas area, info boxes
   ══════════════════════════════════════════════════════ */
body.eye-care-mode #deposit-qr-canvas {
  background:#fff !important;
  border-radius:8px !important;
  padding:8px !important;
  display:inline-block !important;
}
body.eye-care-mode .dep-qr-label {
  color:#64748b !important;
}
body.eye-care-mode .dep-history-link {
  color:#60a5fa !important;
}
body.eye-care-mode .dep-history-section {
  color:#94a3b8 !important;
}

/* ══════════════════════════════════════════════════════
   GLOBAL CATCH-ALL: ANY element with light bg in eye care
   ══════════════════════════════════════════════════════ */
body.eye-care-mode [style*="background:#f8fafd"],
body.eye-care-mode [style*="background: #f8fafd"],
body.eye-care-mode [style*="background:#f9fafb"],
body.eye-care-mode [style*="background: #f9fafb"],
body.eye-care-mode [style*="background:#f0f4ff"],
body.eye-care-mode [style*="background: #f0f4ff"],
body.eye-care-mode [style*="background:#f8fafc"],
body.eye-care-mode [style*="background: #f8fafc"] {
  background:#1a2a40 !important;
}
/* ANY white text color that may be invisible on dark */
body.eye-care-mode [style*="color:#1e293b"],
body.eye-care-mode [style*="color: #1e293b"],
body.eye-care-mode [style*="color:#111827"],
body.eye-care-mode [style*="color: #111827"],
body.eye-care-mode [style*="color:#374151"],
body.eye-care-mode [style*="color: #374151"],
body.eye-care-mode [style*="color:#1f2937"],
body.eye-care-mode [style*="color: #1f2937"] {
  color:#e2e8f0 !important;
}

/* ══════════════════════════════════════════════════════
   SPIN PAGE — wheel card background + surrounding elements
   ══════════════════════════════════════════════════════ */
body.eye-care-mode .spin-page-layout {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
  box-shadow:0 4px 32px rgba(0,0,0,.4) !important;
}
body.eye-care-mode .spin-tagline-title {
  color:#e2e8f0 !important;
}
body.eye-care-mode .spin-tagline-sub {
  color:#94a3b8 !important;
}
body.eye-care-mode .level-sys-btn {
  background:linear-gradient(90deg,#0f1e36,#152035) !important;
  border-color:rgba(96,165,250,.2) !important;
  color:#60a5fa !important;
}
body.eye-care-mode .level-sys-btn #current-level-name {
  color:#f59e0b !important;
}
body.eye-care-mode .captcha-center {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.08) !important;
  color:#94a3b8 !important;
}

/* ══════════════════════════════════════════════════════
   AFFILIATE PAGE — complete fix
   ══════════════════════════════════════════════════════ */
body.eye-care-mode .aff-tabs {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .aff-tab {
  color:#64748b !important;
  background:transparent !important;
}
body.eye-care-mode .aff-tab.active {
  background:#152035 !important;
  color:#60a5fa !important;
}
body.eye-care-mode .aff-earned-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .aff-earned-card h3 {
  color:#e2e8f0 !important;
}
body.eye-care-mode .aff-earned-box {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .aff-earned-icon.blue {
  background:#0f2040 !important;
  color:#60a5fa !important;
}
body.eye-care-mode .aff-earned-lbl {
  color:#64748b !important;
}
body.eye-care-mode .aff-earned-val {
  color:#e2e8f0 !important;
}
body.eye-care-mode .aff-avail-row {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .aff-avail-lbl {
  color:#64748b !important;
}
body.eye-care-mode .aff-avail-val {
  color:#e2e8f0 !important;
}
body.eye-care-mode .aff-rates-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .aff-rates-card h3 {
  color:#e2e8f0 !important;
}
body.eye-care-mode .aff-rate-box {
  background:#1a2a40 !important;
  border-color:rgba(255,255,255,.08) !important;
}
body.eye-care-mode .aff-rate-lbl {
  color:#64748b !important;
}
body.eye-care-mode .aff-rate-pct {
  color:#60a5fa !important;
}
body.eye-care-mode .aff-rate-sub {
  color:#475569 !important;
}
body.eye-care-mode .aff-url-card {
  background:#152035 !important;
  border-color:rgba(255,255,255,.07) !important;
}
body.eye-care-mode .aff-url-card h3 {
  color:#e2e8f0 !important;
}
body.eye-care-mode .aff-url-card .dep-address-wrap {
  background:#1e2d45 !important;
  border-color:rgba(255,255,255,.12) !important;
}
body.eye-care-mode .aff-url-card .dep-address-input {
  color:#94a3b8 !important;
  background:transparent !important;
}
body.eye-care-mode #aff-referrals p {
  color:#64748b !important;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* GPU acceleration for frequently animated elements */
.sidebar, .content, .nav-item, .profile-dropdown,
.spin-wheel-wrap, canvas, .dash-bottom-bar, .pub-footer {
  transform:translateZ(0);
  backface-visibility:hidden;
}
/* Reduce layout recalculations */
.sidebar { contain: strict; }
.nav-item, .profile-drop-item, .dbb-link { contain: layout style; }
/* Smooth scrolling everywhere */
html { scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }
/* Optimize transitions - avoid animating expensive properties */
* { transition-property:color,background-color,border-color,opacity,transform,box-shadow !important; }
/* Prevent flash of unstyled content on page switches */
.page { contain: layout; }

/* ===== WITHDRAW HISTORY TABLE ===== */
.wdraw-history-card{background:#fff;border:1px solid #e2eaf5;border-radius:18px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.07)}
.wdraw-history-head{padding:16px 22px;font-size:15px;font-weight:800;color:#111827;border-bottom:1px solid #f1f5f9;display:flex;align-items:center;gap:8px}
.wdraw-history-head i{color:#2563eb}
.wdraw-history-table-wrap{overflow-x:auto}
.wdraw-history-tbl{width:100%;border-collapse:collapse}
.wdraw-history-tbl thead tr{background:#f8fafd}
.wdraw-history-tbl th{padding:11px 18px;font-size:11px;font-weight:700;color:#6b7280;text-align:left;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid #f1f5f9}
.wdraw-history-tbl th:last-child{text-align:center}
.wdraw-history-tbl td{padding:14px 18px;font-size:13px;border-bottom:1px solid #f8fafd;vertical-align:middle}
.wdraw-history-tbl tr:last-child td{border-bottom:none}
.wdraw-history-tbl tr:hover td{background:#f8fafd}

/* ============================================================
   ADDITIONAL MOBILE RESPONSIVE — Small Phones (≤420px)
   ============================================================ */
@media(max-width:420px){
  :root { --topbar-h:54px }
  .topbar { height:54px }
  .topbar-trx-bal { display:none }
  .content { padding:10px 8px 76px }
  #wheelCanvas { width:220px!important;height:220px!important }
  .spin-page-layout { padding:12px 10px!important }
  .claim-btn { padding:12px 28px!important;font-size:14px!important }
  .level-progress-card { padding:12px 10px;gap:10px }
  .games-icon-grid { gap:8px }
  .game-icon-label { font-size:10px }
  .modal-box { padding:20px 14px;width:95% }
  .dice-display-bar { padding:14px 12px;min-height:70px }
  .dice-result-num { font-size:38px }
  .mines-grid { padding:8px;gap:5px }
  .mines-cell { height:48px;font-size:17px }
  .mines-top-row { flex-wrap:wrap }
  .mines-stat-box { flex:1 1 45% }
  .contest-prizes-grid { grid-template-columns:1fr 1fr }
  .cd-num { font-size:28px;padding:8px 10px;min-width:44px }
  .cd-sep { font-size:24px;padding-bottom:12px }
  .wdraw-history-tbl th, .wdraw-history-tbl td { padding:8px 10px;font-size:11px }
  .payout-tbl th, .payout-tbl td { padding:8px 8px;font-size:11px }
  .auth-right { padding:20px 14px 32px }
  .auth-right-inner { max-width:100% }
  .mmd-grid { grid-template-columns:repeat(4,1fr) }
  .mobile-nav-bar { height:58px }
  .mobile-more-drawer { bottom:58px }
}

/* ============================================================
   ADDITIONAL MOBILE RESPONSIVE — Landing Page
   ============================================================ */
@media(max-width:768px){
  /* Hero section */
  .pub-hero { padding:40px 16px 36px }
  .pub-hero-inner { gap:28px }
  .pub-hero-text h1 { font-size:32px;letter-spacing:-1px }
  .pub-hero-text p { font-size:14px }
  .pub-hero-btns { gap:10px;flex-wrap:wrap }
  .pub-hero-btn-login, .pub-hero-btn-signup { padding:12px 24px;font-size:14px;flex:1;min-width:120px;text-align:center;justify-content:center }
  .pub-hero-stats { padding:14px 16px;gap:14px;flex-wrap:wrap;justify-content:center }
  .pub-hero-wheel-wrap { width:220px;height:220px }
  #landingWheelCanvas { width:220px!important;height:220px!important }
  .pub-canvas-wheel-wrap { width:220px;height:220px }
  .pub-hero-badges { flex-direction:column;align-items:center }

  /* Navbar mobile */
  .pub-nav-inner { padding:0 16px;height:56px }
  .pub-nav-links { display:none }
  .pub-menu-btn { display:block }

  /* Features */
  .pub-features { padding:48px 16px }
  .pub-features-grid { grid-template-columns:1fr;gap:14px }
  .pub-sec-head h2 { font-size:26px }

  /* FAQ */
  .pub-faq { padding:48px 16px }
  .pub-faq-q { padding:14px 16px;font-size:14px }
  .pub-faq-a { padding:0 16px }
  .pub-faq-a.open { padding:12px 16px }

  /* Footer */
  .pub-footer { padding:28px 16px 20px }
  .pub-footer-links { gap:14px;flex-wrap:wrap }

  /* Gift row */
  .pub-hero-gift-row { justify-content:center;flex-wrap:wrap }
}

@media(max-width:480px){
  .pub-hero-text h1 { font-size:26px }
  .pub-features-grid { grid-template-columns:1fr }
  .pub-hero-wheel-wrap { width:190px;height:190px }
  #landingWheelCanvas { width:190px!important;height:190px!important }
  .pub-canvas-wheel-wrap { width:190px;height:190px }
  .pub-hero-badge { font-size:11px;padding:5px 12px }
}

/* ============================================================
   TOUCH & USABILITY IMPROVEMENTS
   ============================================================ */
@media(max-width:768px){
  /* Better touch targets */
  .nav-item, .mnb-item, .mmd-item { min-height:44px }
  .auth-btn, .pub-btn-login, .pub-btn-signup { min-height:44px }
  .claim-btn, .dice-roll-btn, .mines-start-btn { min-height:48px }
  .back-btn, .rules-btn { min-height:40px }

  /* Prevent horizontal scroll on page */
  body { overflow-x:hidden }
  .app-wrapper, .main-wrapper { overflow-x:hidden }

  /* Tables: horizontal scroll */
  .games-bets-table-wrap, .bets-tbl-wrap,
  .wdraw-history-table-wrap, .payout-table-wrap,
  .level-table-wrap { overflow-x:auto;-webkit-overflow-scrolling:touch }

  /* Input fields: prevent zoom on iOS */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  textarea,
  select { font-size:16px!important }

  /* Dice slider: better touch */
  .dice-track-wrap { height:32px }
  .dtrack-handle { padding:4px 8px;font-size:11px }

  /* Win toast: adjust for mobile */
  .win-toast { right:8px;top:8px;min-width:180px;border-radius:12px }
  .win-toast-amount { font-size:17px }

  /* Modals: full width on mobile */
  .modal-overlay { padding:16px 8px;align-items:flex-end }
  .modal-box { border-radius:20px 20px 0 0;max-height:85vh;width:100%;max-width:100% }

  /* Profile/notif dropdowns — handled above with position:fixed for proper mobile viewport anchoring */

  /* Games CTA banner: stack on mobile */
  .spin-page-layout [style*="justify-content:space-between"] {
    flex-direction:column!important;
    gap:10px!important;
  }

  /* Level modal table */
  .level-table th, .level-table td { padding:10px 10px;font-size:12px }

  /* Gems panel */
  .gems-panel { max-width:100%;padding:14px 12px }
  .gems-cell { border-radius:6px;min-height:40px }

  /* Referral contest leaderboard */
  .rc-lb-header, .rc-lb-row {
    grid-template-columns:60px 1fr 1fr 60px;
    font-size:11px;
    padding:8px 10px;
  }

  /* Page back button */
  .game-pg-header { margin-bottom:14px }
  .back-btn { font-size:12px;padding:6px 10px }
  .rules-btn { font-size:11px;padding:6px 10px }

  /* Dice display bar */
  .dice-display-bar { padding:16px 16px;min-height:76px }
  .dice-result-num { font-size:44px }

  /* Limbo panel */
  .limbo-panel { max-width:100%;padding:14px 12px }
  .limbo-rocket { font-size:40px }
}

/* ============================================================
   LOGGED-IN MOBILE: bottom padding for nav bar
   ============================================================ */
body.logged-in .content {
  padding-bottom:76px!important;
}
@media(min-width:769px){
  body.logged-in .content {
    padding-bottom:24px!important;
  }
  .mobile-nav-bar { display:none!important }
  .mobile-more-drawer { display:none!important }
}

/* ============================================================
   AUTH PAGES MOBILE
   ============================================================ */
@media(max-width:520px){
  .auth-page-links { display:none }
  .auth-split { flex-direction:column }
  .auth-left {
    min-height:auto;padding:24px 16px 20px;
    align-items:center;text-align:center;
    flex:none;width:100%
  }
  .auth-left-wheel { margin-bottom:14px }
  .auth-right {
    flex:none;width:100%;
    padding:20px 16px 40px;
    min-height:auto;justify-content:flex-start;
    background:#f2f4fa!important;
  }
  .auth-right-inner { max-width:100% }
  .auth-left-title { font-size:20px }
  .auth-left-perks { width:100%;max-width:320px;margin:0 auto 16px }
  .auth-btn { padding:13px;font-size:14px }
  .signup-btn { font-size:13px!important }
}

/* ============================================================
   SPIN PAGE: Games CTA banner stack on mobile
   ============================================================ */
@media(max-width:520px){
  /* Override inline style for CTA banner */
  #page-spin .spin-page-layout > div:first-child {
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  #page-spin .spin-page-layout > div:first-child button {
    width:100%!important;
    margin-top:4px;
  }
  /* Wheel pointer */
  .wheel-pointer { font-size:24px;top:-14px }
  /* Captcha box */
  .captcha-center { padding:10px 12px;flex-direction:column;text-align:center;gap:8px }
  /* Spin note */
  .spin-note { font-size:11px;text-align:center }
}

/* ============================================================
   OVERFLOW SAFETY NET
   ============================================================ */
@media(max-width:768px){
  /* Prevent any element from causing horizontal overflow */
  .page, .content > * { max-width:100%;box-sizing:border-box }
  canvas { max-width:100%!important }
  img { max-width:100%!important }
  table { table-layout:auto }
  pre, code { overflow-x:auto;word-break:break-all }
  /* SVG icons in game cards */
  .game-icon-img svg { max-width:100%;height:auto }
}
/* ===== AFFILIATE REFERRALS TABLE ===== */
.aff-ref-tbl-head {
  display:grid;grid-template-columns:1fr 80px 70px 70px 90px;
  gap:0;padding:10px 20px;
  background:#f8fafd;border-bottom:1px solid #f1f5f9;
  font-size:10px;font-weight:700;color:#64748b;
  text-transform:uppercase;letter-spacing:.6px
}
/* Eye care: referrals table header */
body.eye-care-mode .aff-ref-tbl-head {
  background:#0f1e36 !important;
  color:#475569 !important;
  border-color:rgba(255,255,255,.05) !important;
}
body.eye-care-mode #aff-referrals-list > div {
  border-bottom-color:rgba(255,255,255,.04) !important;
  color:#94a3b8 !important;
}
body.eye-care-mode #aff-referrals-list > div span[style*="color:#111827"] {
  color:#e2e8f0 !important;
}

/* ============================================================
   LANDING PAGE — MOBILE FORCE FIX (high-specificity overrides)
   Ensures proper stacking on ALL mobile browsers
   ============================================================ */
@media screen and (max-width:767px) {
  /* NAVBAR: hide desktop links, show hamburger only */
  #public-landing .pub-nav-links  { display:none !important; }
  #public-landing .pub-nav-right  { display:none !important; }
  #public-landing .pub-menu-btn   { display:flex !important; }
  #public-landing .pub-nav-inner  { padding:0 14px !important; height:52px !important; }

  /* HERO: stack text above wheel */
  #public-landing .pub-hero { padding:28px 16px 24px !important; overflow:hidden !important; }
  #public-landing .pub-hero-inner {
    flex-direction:column !important;
    align-items:center !important;
    text-align:center !important;
    gap:24px !important;
    max-width:100% !important;
  }
  #public-landing .pub-hero-text  { max-width:100% !important; flex:none !important; }
  #public-landing .pub-hero-text h1 { font-size:26px !important; letter-spacing:-.5px !important; margin-bottom:12px !important; }
  #public-landing .pub-hero-text p  { font-size:13px !important; margin-bottom:16px !important; }
  #public-landing .pub-hero-btns { justify-content:center !important; gap:10px !important; margin-bottom:16px !important; }
  #public-landing .pub-hero-btn-login,
  #public-landing .pub-hero-btn-signup { padding:11px 22px !important; font-size:14px !important; }

  /* STATS ROW */
  #public-landing .pub-hero-stats { flex-wrap:wrap !important; justify-content:center !important; gap:10px !important; padding:12px 14px !important; }
  #public-landing .pub-stat-div   { display:none !important; }

  /* HERO WHEEL: centered, smaller */
  #public-landing .pub-hero-visual {
    width:100% !important; flex-shrink:0 !important;
    display:flex !important; flex-direction:column !important;
    align-items:center !important; gap:14px !important;
  }
  #public-landing .pub-hero-wheel-wrap,
  #public-landing .pub-canvas-wheel-wrap { width:220px !important; height:220px !important; }
  #public-landing #landingWheelCanvas   { width:220px !important; height:220px !important; }
  #public-landing .pub-anim-wheel       { width:220px !important; height:220px !important; }

  /* BADGES: horizontal wrap */
  #public-landing .pub-hero-badges { flex-direction:row !important; flex-wrap:wrap !important; justify-content:center !important; gap:8px !important; }

  /* FEATURES GRID: single column */
  #public-landing .pub-features-grid   { grid-template-columns:1fr !important; }
  #public-landing .pub-features        { padding:32px 14px !important; }
  #public-landing .pub-sec-head h2     { font-size:22px !important; }

  /* FAQ */
  #public-landing .pub-faq { padding:32px 14px !important; }

  /* FOOTER */
  #public-landing .pub-footer { padding:20px 14px !important; }
  #public-landing .pub-footer-links { gap:10px !important; flex-wrap:wrap !important; }

  /* GIFT CODE ROW */
  #public-landing .pub-hero-gift-row { justify-content:center !important; margin-bottom:12px !important; }
}
