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

:root{
  --bg: #0a0a0a;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.5);
  --card: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
  --card-hover: rgba(255,255,255,0.06);
  --accent: #00ff88;
  --accent2: #00e676;
  --accent-soft: rgba(0,255,136,.10);
  --accent-mid: rgba(0,255,136,.18);
  --accent-strong: rgba(0,255,136,.28);
  --accent-glow: rgba(0,255,136,.22);
  --good: #00ff88;
  --bad: #ff4d6a;
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 240px;
  --glass: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: blur(20px);
}

*{ box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── Layout ─── */
.layout{ display:flex; min-height:100vh; }

/* ─── Sidebar ─── */
.sidebar{
  width: var(--sidebar-w);
  border-right: 1px solid var(--glass-border);
  background: rgba(10,10,10,.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.brand{ display:flex; align-items:center; gap:10px; margin-bottom:24px; padding: 0 4px; }
.siteLogo{
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.brandText{
  font-family: 'Space Grotesk', sans-serif;
  font-weight:700; font-size:18px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #00ff88 0%, #00e676 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav{ display:flex; flex-direction:column; gap:2px; margin: 0 0 24px; }
.navItem{
  text-decoration:none;
  color: rgba(255,255,255,.6);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
  border-left: 3px solid transparent;
}
.navItem:hover{
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.04);
}
.navItem.active{
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.navItem svg{ width: 18px; height: 18px; flex-shrink: 0; }

.sideSection{ flex: 1; overflow-y: auto; }

.sideTitle{
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
  padding: 0 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.muted{ color: var(--muted); font-size:12px; }
.tiny{ font-size:11px; }

.tickerList{ display:flex; flex-direction:column; gap:4px; }
.tickerRow{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  color: rgba(255,255,255,.7);
  transition: all .2s ease;
  font-size: 13px;
}
.tickerRow:hover{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.tickerRow.active{
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  color: var(--accent);
}
.tickerRow.active .px{ color: var(--accent); }

.tickerRow .l, .tickerRow .r{ display:flex; align-items:center; gap:8px; }

.tokenIconImg{
  width: 24px; height: 24px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  padding: 2px;
}

.sym{ font-weight:700; font-size: 13px; }
.px{ font-weight:700; font-size: 12px; color: rgba(255,255,255,.7); }

/* HOPIUM coming soon */
.tickerRow.comingSoon{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0.7;
  cursor: not-allowed;
}
.tickerRow.comingSoon:hover{ transform: none !important; border-color: transparent; background: transparent; }
.tickerRow.comingSoon .tickerLeft{ display: flex; align-items: center; gap: 10px; }
.tickerRow.comingSoon .tickerBadge{ margin-left: auto; }

.tickerIconImg{
  width: 24px; height: 24px;
  border-radius: 50%;
}
.tickerBadge{
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-mid);
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
}

.sidebarFooter{
  padding: 12px 4px 0;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}
.sidebarFooterBtn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s ease;
}
.sidebarFooterBtn:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.sidebarContent{ flex: 1; overflow: auto; }

/* ─── Main ─── */
.main{ flex:1; display:flex; flex-direction:column; }

/* ─── Topbar ─── */
.topbar{
  position: relative;
  z-index: 5000;
  display:flex;
  align-items:center;
  justify-content: flex-end;
  padding: 10px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10,10,10,.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.topRight{ display:flex; gap:10px; align-items:center; }

.pill{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 13px;
}
.pill #balance{
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,255,136,.3);
}

.btn{
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor:pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s ease;
}
.btn:hover{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }

/* ─── Content Grid ─── */
.content{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: 1.65fr .75fr;
  gap:12px;
  padding:12px;
}
@media (max-width:1150px){ .content{ grid-template-columns:1fr; } }

.panel{
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  overflow: hidden;
}

.panelRight{
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
}

.panelHead{ margin-bottom:10px; }
.h{ font-weight:700; font-size: 14px; }

/* ─── Chart Stage ─── */
.chartStage{
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 12;
  width: 100%;
  max-height: 72vh;
  padding: 12px;
  background: linear-gradient(135deg,
    rgba(10,10,10,.8) 0%,
    rgba(10,10,10,.6) 60%,
    rgba(0,255,136,.06) 100%
  );
}

#chart{
  width:100%; height:100%;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.4);
  display:block;
}

#gridOverlay{
  position:absolute;
  inset: 12px;
  border-radius: var(--radius);
  overflow:hidden;
  pointer-events:auto;
  will-change: transform;
}

.gridOverlayInner{
  width:100%; height:100%;
  display:grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(12, 1fr);
}

.gridCell{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.3);
  border-right: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
  user-select:none;
  cursor:pointer;
  position: relative;
  transition: all .15s ease;
  min-width:0; min-height:0;
  border-radius: 2px;
}
.gridCell:hover{
  background: rgba(0,255,136,.06);
  color: rgba(0,255,136,.9);
  backdrop-filter: blur(4px);
}

.gridCell.betActive{
  background: rgba(0,255,136,.14) !important;
  border: 1px solid rgba(0,255,136,.5) !important;
  color: rgba(255,255,255,.96) !important;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0,255,136,.18),
    0 0 20px rgba(0,255,136,.2),
    0 8px 24px rgba(0,0,0,.4);
}
.gridCell.betWon{
  background: rgba(0,255,136,0.85) !important;
  border: 1px solid rgba(0,255,136,0.95) !important;
  color: #062a1e !important;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0,255,136,.3),
    0 0 20px rgba(0,255,136,.25),
    0 8px 24px rgba(0,0,0,.4);
}
.gridCell.betLost{
  background: rgba(255,77,106,0.8) !important;
  border: 1px solid rgba(255,77,106,0.95) !important;
  color: #2a000e !important;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255,77,106,.3),
    0 0 20px rgba(255,77,106,.2),
    0 8px 24px rgba(0,0,0,.4);
}

.gridCell .betCellInner{
  width:100%; height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:4px;
  text-align:center;
}
.gridCell .betAmt{ font-weight:800; font-size:15px; line-height:1; }
.gridCell .betMult{ font-weight:700; font-size:11px; opacity:.9; }

/* ─── Price Tag ─── */
.priceTag{
  position:absolute;
  left: 20px;
  bottom: 20px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(10,10,10,.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.priceBig{
  font-weight:800; font-size:18px; color: rgba(255,255,255,.95);
  letter-spacing: -.02em;
}

/* ─── Bet Panel ─── */
.betPanel{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 0;
  padding: 0 20px;
  margin: 0 auto;
  border-top: none;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  height: 56px;
  position: relative;
  bottom: 0;
  box-shadow: 0 -4px 30px rgba(0,255,136,.04), 0 0 0 1px rgba(255,255,255,.03);
}

.betPanel > *:not(:last-child)::after{
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,.08);
}

.betPanelLeft{
  display:flex;
  align-items:center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  position: relative;
  padding-right: 16px;
}

.betTitle{
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  min-width: 80px;
}

.betAmountRow{
  display:flex;
  align-items:center;
  gap: 6px;
}

.betDollar{ color: var(--accent); font-weight:700; font-size: 13px; }

#betAmount{
  width: 60px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.4);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease;
  text-align: center;
}
#betAmount:focus{
  border-color: var(--accent-mid);
  box-shadow: 0 0 12px rgba(0,255,136,.15);
}

.betSliderWrap{
  flex: 1;
  min-width: 140px;
  position: relative;
  padding-right: 16px;
}

.betMinMax{
  display:flex;
  justify-content:space-between;
  color: rgba(255,255,255,.25);
  font-size: 9px;
  font-weight: 500;
  margin-top: 2px;
}

.betPanelRight{
  display:flex;
  align-items:center;
  gap: 16px;
  position: relative;
  padding-left: 16px;
}

.betMeta{
  display:flex;
  flex-direction:column;
  gap: 2px;
  align-items:flex-end;
  text-align:right;
  position: relative;
  padding-right: 16px;
}

.betBalancePill{
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,136,.12);
  background: rgba(0,255,136,.05);
  min-width: 120px;
  text-align:center;
  transition: box-shadow .2s ease;
}
.betBalancePill:hover{
  box-shadow: 0 0 16px rgba(0,255,136,.12);
}
.betBalLabel{ font-size: 10px; color: var(--muted); }
.betBalValue{
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  margin-top: 2px;
  text-shadow: 0 0 16px rgba(0,255,136,.35);
}

/* ─── Footer ─── */
.footer{
  text-align:center;
  padding: 18px 16px;
  color: rgba(255,255,255,.3);
  font-size: 12px;
  letter-spacing: .02em;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ─── Wallet Menu ─── */
.walletWrap{ position: relative; display:inline-block; z-index: 6000; }
.walletMenu{
  position:absolute;
  right:0;
  top:48px;
  width: 360px;
  background: rgba(12,12,12,0.95);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  border-radius: var(--radius);
  padding: 16px;
  z-index: 6500;
  backdrop-filter: var(--glass-blur);
  pointer-events:auto;
}
.walletMenu.hidden{ display:none; }

.walletMenuHead{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:12px; }
.wmTitle{ font-weight:700; font-size:14px; }
.wmAddr{ font-size:11px; opacity:0.6; word-break:break-all; text-align:right; max-width: 200px; }

.wmSection{ margin-top: 14px; }
.wmLabel{ font-size:11px; color: rgba(255,255,255,.5); margin-bottom: 6px; font-weight: 500; }
.wmRow{ display:flex; gap: 8px; }
.wmInput{
  flex:1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color:#fff;
  outline:none;
  font-size: 13px;
  transition: border-color .2s ease;
  pointer-events:auto;
}
.wmInput:focus{ border-color: var(--accent-mid); }
.wmHint{ margin-top:5px; font-size:10px; color: rgba(255,255,255,.4); line-height:1.4; }

.wmBtn{
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color:#fff;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  cursor:pointer;
  white-space:nowrap;
  font-weight: 600;
  font-size: 12px;
  transition: all .2s ease;
  pointer-events:auto;
}
.wmBtn:hover{ background: rgba(255,255,255,0.08); }

.wmBtnGold{
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
}
.wmBtnGold:hover{ background: var(--accent-mid); }

.wmBtnDanger{
  width:100%;
  margin-top: 10px;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
}
.wmBtnDanger:hover{ background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }

.wmDivider{
  height:1px;
  background: var(--glass-border);
  margin: 14px 0;
}

.wmBalances{ justify-content:space-between; }
.wmBal{
  flex:1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 10px;
}
.wmBalLabel{ font-size:10px; color: var(--muted); font-weight: 500; }
.wmBalVal{ font-size:14px; font-weight:700; margin-top:4px; }

/* ─── Toasts ─── */
.toastHost{
  position: fixed;
  left: 16px;
  bottom: 16px;
  display:flex;
  flex-direction: column;
  gap:10px;
  z-index: 99999;
  pointer-events:none;
}
.toast{
  min-width: 240px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(10,10,10,0.85);
  border: 1px solid var(--glass-border);
  color:#fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  backdrop-filter: var(--glass-blur);
  opacity:0;
  transform: translateY(8px);
  animation: toastIn .2s ease forwards;
}
.toast .tTitle{ font-weight:700; font-size:13px; }
.toast .tMsg{ font-size:12px; opacity:0.7; margin-top:3px; line-height:1.3; }
.toast.good{ border-color: rgba(0,255,136,0.25); }
.toast.warn{ border-color: rgba(0,255,136,0.30); }
.toast.bad{ border-color: rgba(255,77,106,0.25); }
.toast.info{ border-color: rgba(0,255,136,0.30); }

@keyframes toastIn{ to{ opacity:1; transform: translateY(0); } }

/* ─── Chart Loading ─── */
.chartLoading{
  position:absolute;
  inset:0;
  background: rgba(10,10,10,0.8);
  border-radius: var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 50;
  opacity:0;
  pointer-events:none;
  transition: opacity .35s ease;
}
.chartLoading.hidden{ opacity:0; pointer-events:none; }
.chartLoading:not(.hidden){ opacity:1; pointer-events:auto; }

.chartLoadingInner{
  text-align:center;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(10,10,10,0.6);
  backdrop-filter: var(--glass-blur);
}
.chartLoadingTitle{ font-weight:700; margin-top:10px; font-size: 14px; }
.chartLoadingSub{ margin-top:4px; font-size:12px; color: var(--muted); }
.spinner{
  width:24px;height:24px;border-radius:50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  margin: 0 auto;
  animation: spin .8s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ─── Bets Disabled ─── */
.betsDisabled{
  position:absolute;
  inset: 54px 12px 12px 12px;
  border-radius: var(--radius);
  background: rgba(10,10,10,0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 20;
}
.betsDisabled.hidden{ display:none; }
.betsDisabledInner{ text-align: center; padding: 20px; }
.betsDisabledTitle{ font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.betsDisabledSub{ font-size: 12px; color: var(--muted); }
.panelRight.disabled{ filter: grayscale(.5); opacity: .75; }

/* ─── Bets List ─── */
.bets{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.betsEmpty{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.45);
  font-size: 12px;
  text-align: center;
}
.betRow{
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.02);
  transition: all .2s ease;
}
.betRow.open{ border-color: rgba(0,255,136,.18); }
.betRow.won{ border-color: rgba(0,255,136,.3); }
.betRow.lost{ border-color: rgba(255,77,106,.3); }

.betRowTop{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.betPair{ font-weight:700; font-size: 13px; color: rgba(255,255,255,.9); }
.betStatus{ font-size:10px; color: rgba(255,255,255,.5); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

.betRowMid{
  margin-top: 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.betRowMid .betMeta{ font-size:12px; color: rgba(255,255,255,.6); font-weight:600; }
.betPnl{ font-size:12px; font-weight:800; color: rgba(255,255,255,.8); }
.betRow.won .betPnl{ color: var(--good); }
.betRow.lost .betPnl{ color: var(--bad); }

@keyframes betRowFadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}
.betRow.fadeOut {
  animation: betRowFadeOut 700ms ease forwards;
  pointer-events: none;
}

.betPending{
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.8;
  text-transform: uppercase;
}

/* Token lock */
.tickerRow.lockedSwitch{
  opacity: 0.35;
  cursor: not-allowed;
}
.tickerRow.lockedSwitch:hover{
  border-color: transparent;
  background: transparent;
}

/* ─── Views ─── */
.view.hidden{ display:none; }
.view{ animation: viewIn 160ms ease; }
@keyframes viewIn{
  from{ opacity:0; transform: translateY(4px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ─── Range Slider ─── */
input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--range-progress, 50%),
    rgba(255,255,255,0.15) var(--range-progress, 50%),
    rgba(255,255,255,0.15) 100%
  );
  border-radius: 4px;
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track{
  height: 4px;
  background: transparent;
  border-radius: 4px;
}
input[type="range"]::-moz-range-track{
  height: 4px;
  background: transparent;
  border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(0,0,0,0.4);
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(0,255,136,.35), 0 2px 6px rgba(0,0,0,.4);
  transition: transform .15s ease;
}
input[type="range"]::-moz-range-thumb{
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(0,0,0,0.4);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,255,136,.35), 0 2px 6px rgba(0,0,0,.4);
}
input[type="range"]:hover::-webkit-slider-thumb{
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(0,255,136,.5), 0 2px 6px rgba(0,0,0,.4);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none; appearance: none; margin: 0;
}
input[type="number"]{ -moz-appearance: textfield; appearance: textfield; }

/* ─── Profile ─── */
.profileContent{ grid-template-columns: 1fr; }
.profileWrap{ max-width: 1050px; margin: 0 auto; }

.profileHeaderCard{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
}
.profileIdentity{ display:flex; align-items:center; gap: 14px; min-width: 0; }
.profileAvatar{
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
}
.profileName{
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}
.profileHeadlineStats{ display:flex; gap: 18px; align-items:flex-end; }
.profileStatRight{ text-align:right; min-width: 140px; }
.profileBig{
  font-weight: 800;
  font-size: 20px;
  margin-top: 4px;
}
.profileBig.good{ color: var(--good); }
.profileBig.bad{ color: var(--bad); }

.profileStatsGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.profileMiniCard{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
}
.profileMiniBig{
  font-weight: 800;
  font-size: 20px;
  margin-top: 6px;
}

.profileRecent{
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
}
.profileRecentHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.profileTradesList{ display:flex; flex-direction:column; gap: 10px; }

.tradeGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tradePager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-top: 8px;
}
.tradePagerInfo{ font-size: 12px; color: var(--muted); }

.btnSmall{
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.btnSmall:disabled{ opacity: 0.4; cursor: not-allowed; }

.tradeRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: all .2s ease;
}
.tradeRow:hover{ background: rgba(255,255,255,.04); }

.tradeLeft{ display:flex; align-items:center; gap: 12px; min-width: 0; }
.tradeSymBadge{
  width: 34px; height: 34px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  color: rgba(255,255,255,.7);
  flex: 0 0 auto;
  overflow: hidden;
}
.tradeSymBadge img{ width: 22px; height: 22px; object-fit: contain; }
.tradeMain{ min-width: 0; }
.tradeTitle{ font-weight: 700; font-size: 13px; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; max-width: 520px; }
.tradeSub{ margin-top: 2px; font-size: 11px; color: var(--muted); }
.tradeRight{ text-align:right; flex: 0 0 auto; }
.tradePnl{ font-weight: 800; font-size: 13px; }
.tradePnl.good{ color: var(--good); }
.tradePnl.bad{ color: var(--bad); }
.tradeMeta{ margin-top: 3px; font-size: 11px; color: var(--muted); }

/* ─── Leaderboard ─── */
.leaderboardContent{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.lbTop3{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lbTop3 .lbCardBig{ grid-column: 1 / -1; }

.lbCard{
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: var(--glass-blur);
  transition: all .2s ease;
}
.lbCard:hover{ background: rgba(255,255,255,.05); }

.lbCardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.lbIdent{ display:flex; align-items:center; gap: 12px; }
.lbAvatar{
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}
.lbName{ font-weight: 700; font-size: 16px; }
.lbSub{ font-size: 11px; color: var(--muted); }
.lbPnl{ font-weight: 800; font-size: 16px; }
.lbPnl.pos{ color: var(--good); }
.lbPnl.neg{ color: var(--bad); }

.lbStats{
  margin-top: 12px;
  display:flex;
  gap: 16px;
  align-items:center;
  flex-wrap: wrap;
}
.lbStat{ min-width: 100px; }
.lbStat .k{ font-size: 11px; color: var(--muted); }
.lbStat .v{ font-size: 15px; font-weight: 700; }
.lbBar{
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  margin-top: 6px;
}
.lbBar > div{ height: 100%; background: var(--accent); border-radius: 999px; }

.lbListCard{
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
}
.lbListHead{
  padding: 14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.lbScroll{
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}

.lbTable{ display:flex; flex-direction: column; }
.lbRow{
  display:grid;
  grid-template-columns: 70px 1fr 160px 120px 120px;
  gap: 10px;
  padding: 12px 16px;
  align-items:center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .15s ease;
  font-size: 13px;
}
.lbRow:hover{ background: rgba(255,255,255,.02); }
.lbRowHead{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.lbRow .right{ text-align: right; }
.lbUserCell{ display:flex; flex-direction: column; gap: 2px; }
.lbUserCell .u1{ font-weight: 600; }
.lbUserCell .u2{ font-size: 11px; color: var(--muted); }

/* ─── Wallet Modal ─── */
.walletModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.walletModal.hidden { display: none; }
.walletModalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.walletModalCard {
  position: relative;
  width: 380px;
  max-width: 92%;
  background: rgba(12,12,12,.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  backdrop-filter: var(--glass-blur);
}
.walletModalHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
#walletModalClose {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 16px;
  transition: color .2s ease;
}
#walletModalClose:hover{ color: var(--text); }

.walletOptionBtn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
  font-weight: 600;
}
.walletOptionBtn:hover { background: rgba(255,255,255,.06); }
.walletOptionX {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
.walletOptionIcon{
  width: 22px; height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 22px;
}
.walletDivider {
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 12px;
  margin: 4px 0;
  position: relative;
}
.walletDivider::before,
.walletDivider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--glass-border);
}
.walletDivider::before { left: 0; }
.walletDivider::after { right: 0; }

/* ─── Scrollbar ─── */
html{
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,136,.4) rgba(255,255,255,.04);
}
::-webkit-scrollbar{ width: 8px; height: 8px; }
::-webkit-scrollbar-track{ background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb{
  background: rgba(0,255,136,.25);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover{ background: rgba(0,255,136,.4); background-clip: padding-box; }
::-webkit-scrollbar-corner{ background: transparent; }

/* ─── Mobile ─── */
.mobileMenuBtn { display: none !important; }
.topTitle { display: none !important; }

#gridOverlay.gridOverlayWrap{
  position: absolute;
  inset: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

.mobilePlaceholder{ display: none; }

/* ─── Desktop Lock ─── */
@media (min-width: 901px){
  html, body{ height: 100%; }
  body{ overflow: hidden; }
  .layout{ height: 100vh; overflow: hidden; }
  .sidebar{ height: 100vh; position: sticky; top: 0; overflow: hidden; }
  .main{ height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  .topbar{ position: sticky; top: 0; z-index: 50; flex: 0 0 auto; }
  .view{ flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .viewScroll{
    height: 100%; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
  }
  .footer{ flex: 0 0 auto; }
}

/* ─── Responsive ─── */
@media (max-width: 900px){
  html, body{ height: auto; }
  body{ overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .layout{ height: auto; min-height: 100svh; overflow: visible; display: block; }
  .main{ height: auto; min-height: 100svh; overflow: visible; display: block; width: 100%; max-width: 100%; margin-left: 0 !important; }

  .mobileMenuBtn {
    display: grid !important;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,.3);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    place-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .topTitle {
    display: block !important;
    justify-self: center;
    font-weight: 700;
    letter-spacing: .14em;
    font-size: 12px;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
  }

  .topbar{
    position: sticky;
    top: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .sidebar{
    position: fixed;
    top: 0; left: 0;
    height: 100dvh;
    width: min(86vw, 340px);
    transform: translateX(-105%);
    transition: transform 240ms ease;
    z-index: 2100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    background: rgba(10,10,10,0.95);
    box-shadow: 0 18px 60px rgba(0,0,0,0.65);
  }
  body.sidebarOpen .sidebar{ transform: translateX(0); }
  body.sidebarOpen::before{
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2050;
  }

  #panelRight{ display: none !important; }
  .content{ padding: 10px; gap: 10px; }
  .panel{ width: 100%; max-width: 100%; }

  .chartStage{
    position: relative;
    width: 100%;
    height: 62vh !important;
    min-height: 460px !important;
    aspect-ratio: 1 / 1;
    max-height: 78vh;
    overflow: hidden;
  }

  #chart{ display: none !important; }

  #gridOverlay .gridOverlayInner{
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #mobilePlaceholder.mobilePlaceholder{
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1000;
    pointer-events: none;
  }

  #chartLoading{ display: none !important; }
  .betPanel{ opacity: 0.35; filter: grayscale(1); pointer-events: none; }
  #panelRight{ opacity: 0.35; filter: grayscale(1); pointer-events: none; }

  .betPanel{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .betPanelLeft{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }
  .betTitle{ margin: 0 !important; white-space: nowrap; }
  .betAmountRow{
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
  #betAmount{ width: 86px !important; }

  .betSliderWrap{ display: none !important; }

  .betPanelRight{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .betBalancePill{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .betMeta{
    order: 3;
    width: 100%;
    text-align: center !important;
  }
  #status, #pair{ display: inline-block; width: 100%; }

  .walletMenu{
    right: 0; left: auto;
    width: min(92vw, 420px);
    max-height: calc(100dvh - 74px);
    overflow: auto;
  }
  .footer{ padding-bottom: calc(18px + env(safe-area-inset-bottom)); position: relative; }

  .sidebarFooter{
    position: sticky;
    bottom: 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(10,10,10,0), rgba(10,10,10,0.95) 40%);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
  }
  .sidebarFooterBtn{ flex: 1; text-align: center; }

  .view{ flex: none; min-height: auto; overflow: visible; }
  .viewScroll{ height: auto; overflow: visible; padding: 12px; }
  .lbScroll{ max-height: none; overflow: visible; }
  .lbRowHead{ position: static; }

  .priceTag{ left: 14px; bottom: 14px; max-width: 70%; }
  .priceBig{ font-size: 17px; }

  @media (max-width: 520px){
    .chartStage{ min-height: 300px; max-height: 72vh; }
  }

  @media (max-width: 380px){
    .topbar{ padding: 8px 10px; grid-template-columns: 42px 1fr auto; }
  }
}

@media (max-width: 900px){
  .lbTop3{ grid-template-columns: 1fr; }
  .lbRow{ grid-template-columns: 55px 1fr 120px 90px 90px; }
  .profileHeaderCard{ flex-direction: column; align-items:flex-start; }
  .profileHeadlineStats{ width:100%; justify-content:space-between; }
  .profileStatRight{ text-align:left; }
  .profileStatsGrid{ grid-template-columns: 1fr; }
  .tradeGrid{ grid-template-columns: 1fr; }
}

/* ─── Leaderboard shell mode (mobile) ─── */
@media (max-width: 900px){
  body.lbShell{ overflow: hidden; height: 100%; }
  body.lbShell .layout{ height: 100dvh; overflow: hidden; }
  body.lbShell .main{
    height: 100dvh; overflow: hidden;
    display: flex; flex-direction: column; min-height: 0;
  }
  body.lbShell .topbar{ position: sticky; top: 0; z-index: 2000; flex: 0 0 auto; }
  body.lbShell .view{ flex: 1 1 auto; min-height: 0; overflow: hidden; }
  body.lbShell #viewLeaderboard{
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  }
  body.lbShell #viewLeaderboard .viewScroll{
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }
  body.lbShell #viewLeaderboard .lbScroll{ max-height: none; overflow: visible; }
  body.lbShell #viewLeaderboard .lbRowHead{ position: static; }
}

/* ─── Status indicator dot ─── */
#status{
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ─── Polish: Topbar green gradient bottom border ─── */
.topbar::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-mid) 50%, transparent);
}

/* ─── Polish: Bet panel green glow border-top ─── */
.betPanel{
  border-top: 1px solid rgba(0,255,136,.2) !important;
  box-shadow: 0 -1px 8px rgba(0,255,136,.08);
}

/* ─── Polish: Grid container green glow ─── */
#chart{
  box-shadow: 0 0 20px rgba(0,255,136,.04), inset 0 0 30px rgba(0,0,0,.2);
}

/* ─── Polish: Pulsing green dot for Connected status ─── */
#status::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes statusPulse{
  0%,100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: .4; transform: scale(.8); }
}

/* ─── Polish: My Bets panel top green accent ─── */
.panelRight::before{
  content: "";
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
}

/* ─── Polish: Grid cell hover inner shadow ─── */
.gridCell:hover{
  box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
}

/* ─── Polish: Live dot indicator for ticker rows ─── */
.liveDot{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
  flex-shrink: 0;
  animation: statusPulse 2.5s ease-in-out infinite;
}

/* ─── Polish: COMING SOON badge ─── */
.tickerBadge{
  font-size: 8px !important;
  letter-spacing: .12em !important;
  padding: 2px 8px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(0,255,136,.25) !important;
  background: rgba(0,255,136,.06) !important;
  text-transform: uppercase;
}

/* ─── Polish: Powered by Solana ─── */
.sidebarPowered{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  margin-top: auto;
  margin-bottom: 8px;
  font-size: 10px;
  color: rgba(255,255,255,.3);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ─── Polish: Follow on X outlined button ─── */
.sidebarFooterBtn{
  border: 1px solid rgba(255,255,255,.1) !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  color: rgba(255,255,255,.55) !important;
}
.sidebarFooterBtn:hover{
  border-color: rgba(255,255,255,.2) !important;
  color: rgba(255,255,255,.8) !important;
  background: rgba(255,255,255,.03) !important;
}

/* ─── Polish: Nav icon colors ─── */
.navItem svg{ color: rgba(255,255,255,.4); transition: color .2s ease; }
.navItem:hover svg{ color: rgba(255,255,255,.7); }
.navItem.active svg{ color: var(--accent); }

/* ─── Polish: Consistent transitions ─── */
*, *::before, *::after{ transition-timing-function: ease; }

/* ═══════════════════════════════════════════════
   VISUAL FEATURES
   ═══════════════════════════════════════════════ */

/* ─── 1. Ticker Tape (REMOVED) ─── */

/* ─── 2. Confetti ─── */
.confetti-container{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}
.confetti-particle{
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 1;
  will-change: transform, opacity;
  animation: confettiFall 2.5s ease-out forwards;
}
@keyframes confettiFall{
  0%{ transform: translate(0,0) rotate(0deg) scale(1); opacity:1; }
  100%{ transform: translate(var(--cx), var(--cy)) rotate(var(--cr)) scale(0.3); opacity:0; }
}

/* ─── 3. Sound / Mute Button ─── */
.mute-btn{
  padding: 6px 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
}
.mute-btn.unmuted{
  border-color: var(--accent-mid) !important;
  color: var(--accent) !important;
}

/* ─── 4. Gradient Glow on Selected Cell ─── */
.gridCell.betActive{
  animation: cellPulseGreen 1.5s ease-in-out infinite !important;
}
@keyframes cellPulseGreen{
  0%,100%{ box-shadow: 0 0 8px rgba(0,255,136,.25), 0 0 20px rgba(0,255,136,.15); }
  50%{ box-shadow: 0 0 16px rgba(0,255,136,.5), 0 0 35px rgba(0,255,136,.25); }
}
.gridCell.cell-flash-gold{
  animation: cellFlashGold .6s ease-out forwards !important;
}
@keyframes cellFlashGold{
  0%{ box-shadow: 0 0 30px rgba(255,215,0,.8), 0 0 60px rgba(255,215,0,.4); background: rgba(255,215,0,.5) !important; }
  100%{ box-shadow: 0 0 8px rgba(0,255,136,.2); }
}
.gridCell.cell-flash-red{
  animation: cellFlashRed .6s ease-out forwards !important;
}
@keyframes cellFlashRed{
  0%{ box-shadow: 0 0 30px rgba(255,77,106,.8), 0 0 60px rgba(255,77,106,.4); }
  100%{ box-shadow: none; opacity: 0.4; }
}

/* ─── 5. Win Streak Badge ─── */
.win-streak-badge{
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,102,0,.15), rgba(255,204,0,.1));
  border: 1px solid rgba(255,153,0,.3);
  font-size: 13px;
  font-weight: 800;
  color: #ffcc00;
  margin-bottom: 8px;
  width: fit-content;
}
.win-streak-badge.hidden{ display: none; }
.win-streak-fire{ flex-shrink: 0; }
.win-streak-label{ font-weight: 500; font-size: 11px; color: rgba(255,204,0,.7); }
.win-streak-badge.streak-bump{
  animation: streakBump .4s ease;
}
@keyframes streakBump{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.15); }
  100%{ transform: scale(1); }
}

/* (Sparklines and social feed CSS removed — unused features) */

/* ─── Header: Connect with X button ─── */
.btn-connect-x{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-connect-x:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}
.btn-connect-x svg{ flex-shrink: 0; }

/* ─── Header: Username ─── */
.header-username{
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

/* ─── Header: Deposit button ─── */
.btn-deposit{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-mid);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-deposit:hover{
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ─── Deposit/Withdraw Modal ─── */
.dw-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity .25s ease;
}
.dw-modal-overlay.hidden{
  display: none;
}
.dw-modal-overlay.fade-out{
  opacity: 0;
}

.dw-modal{
  position: relative;
  width: 400px;
  max-width: 92vw;
  background: rgba(14,14,14,.92);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 40px rgba(0,255,136,.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: dwModalIn .25s ease forwards;
  display: flex;
  flex-direction: column;
}
@keyframes dwModalIn{
  from{ opacity:0; transform: scale(.95) translateY(8px); }
  to{ opacity:1; transform: scale(1) translateY(0); }
}

.dw-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}
.dw-modal-tabs{
  display: flex;
  gap: 4px;
}
.dw-tab{
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}
.dw-tab:hover{ color: rgba(255,255,255,.8); }
.dw-tab.active{
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
}
.dw-modal-close{
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color .2s ease;
}
.dw-modal-close:hover{ color: #fff; }

.dw-tab-content{
  padding: 16px 20px;
}
.dw-tab-content.hidden{ display: none; }

.dw-section{ margin-bottom: 16px; }
.dw-section:last-child{ margin-bottom: 0; }
.dw-label{
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
  font-weight: 500;
}
.dw-row{ display: flex; gap: 8px; }
.dw-input{
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: #fff;
  outline: none;
  font-size: 13px;
  transition: border-color .2s ease;
}
.dw-input:focus{ border-color: var(--accent-mid); }
.dw-hint{
  margin-top: 5px;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  line-height: 1.4;
}
.dw-btn{
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: 12px;
  transition: all .2s ease;
}
.dw-btn:hover{ background: rgba(255,255,255,.08); }
.dw-btn-accent{
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
}
.dw-btn-accent:hover{ background: var(--accent-mid); }
.dw-btn-danger{
  width: 100%;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
}
.dw-btn-danger:hover{ background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }

.dw-balances{
  display: flex;
  gap: 8px;
}
.dw-bal{
  flex: 1;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 10px;
}
.dw-bal-label{ font-size: 10px; color: var(--muted); font-weight: 500; }
.dw-bal-val{ font-size: 14px; font-weight: 700; margin-top: 4px; }

.dw-modal-footer{
  padding: 0 20px 16px;
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
  margin-top: 0;
}

/* (DEV MODE badge removed) */

/* Mobile Blocker Overlay */
.mobile-blocker {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
@media (max-width: 768px) {
  .mobile-blocker { display: flex; }
}
.mobile-blocker-card {
  text-align: center;
  max-width: 400px;
  padding: 48px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.mobile-blocker-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}
.mobile-blocker-title {
  font-size: 28px;
  font-weight: 800;
  color: #00ff88;
  margin: 0 0 12px;
}
.mobile-blocker-msg {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  margin: 0 0 32px;
}
.mobile-blocker-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #00ff88, #00e676);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.mobile-blocker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,255,136,.3);
}
