/* TickBit — "lucky ticket" premium casino-lite. Deep emerald ground,
   gold-foil accents, ticket-perforation motifs. Original to this project. */
:root {
  --bg: #07211a;
  --bg2: #0c2c23;
  --panel: #0f342a;
  --panel2: #123a2f;
  --line: #1c4d3d;
  --ink: #eef7f1;
  --ink-dim: #a9c9bd;
  --ink-faint: #6f9385;
  --gold: #f0c358;
  --gold-hi: #ffe08a;
  --gold-dim: #b8933c;
  --emerald: #1fae7a;
  --ruby: #e0556b;
  --win: #4fd18b;
  --lose: #6f9385;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  background: radial-gradient(1100px 700px at 15% -10%, #113a2d 0%, var(--bg) 55%), var(--bg);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---- foil text ---- */
.foil {
  background: linear-gradient(100deg, var(--gold-dim) 0%, var(--gold-hi) 25%, var(--gold) 50%, var(--gold-hi) 75%, var(--gold-dim) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(7,33,26,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .2px; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(155deg, var(--gold-hi), var(--gold-dim)); display: grid; place-items: center; color: #23180a; font-size: 18px; box-shadow: 0 4px 14px rgba(240,195,88,.35); }
.navlinks { display: flex; gap: 26px; align-items: center; }
.navlinks a { color: var(--ink-dim); font-size: 14.5px; font-weight: 600; }
.navlinks a:hover { color: var(--gold-hi); }
.navcta { display: flex; gap: 10px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 11px 20px; font-weight: 700; font-size: 14.5px; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(155deg, var(--gold-hi), var(--gold-dim)); color: #241a06; box-shadow: 0 8px 22px rgba(240,195,88,.25); }
.btn-gold:hover { box-shadow: 0 10px 28px rgba(240,195,88,.4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold-hi); }
.btn-emerald { background: linear-gradient(155deg, #29c98b, #10775a); color: #04221a; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- ticket card (perforated) ---- */
.ticket {
  position: relative;
  background: linear-gradient(175deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background-image: radial-gradient(circle at 10px 7px, var(--bg) 6px, transparent 6.5px);
  background-size: 20px 14px; background-repeat: repeat-x;
}
.ticket::before { top: -1px; }
.ticket::after { bottom: -1px; transform: rotate(180deg); }
.ticket-pad { padding: 26px 22px; }

/* ---- hero ---- */
.hero { padding: 64px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); background: rgba(240,195,88,.1); border: 1px solid rgba(240,195,88,.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; margin: 0 0 18px; font-weight: 900; letter-spacing: -.5px; }
.hero p.sub { font-size: 18px; color: var(--ink-dim); max-width: 620px; margin: 0 auto 30px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- ticket showcase row (hero visual — not a split layout) ---- */
.showcase { display: flex; justify-content: center; gap: 26px; margin: 60px 0 10px; flex-wrap: wrap; }
.mini-ticket { width: 190px; padding: 24px 16px; text-align: center; transform: rotate(var(--r, 0deg)); transition: transform .25s ease; }
.mini-ticket:hover { transform: rotate(0deg) translateY(-6px); }
.mini-ticket .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 16px 0 12px; }
.mini-ticket .cell { aspect-ratio: 1; border-radius: 11px; background: linear-gradient(160deg, #1a4636, #0c2a21); display: grid; place-items: center; font-size: 30px; border: 1px solid var(--line); }
.mini-ticket .tag { font-size: 15px; font-weight: 800; color: var(--gold-hi); letter-spacing: .06em; }
.mini-ticket .amt { font-size: 21px; font-weight: 900; color: var(--win); }

/* ---- sections ---- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; font-weight: 900; }
.section-head p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step .num { width: 36px; height: 36px; border-radius: 10px; background: rgba(240,195,88,.12); border: 1px solid rgba(240,195,88,.3); color: var(--gold-hi); font-weight: 900; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 14px; line-height: 1.55; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tiers-3 { grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; max-width: 980px; margin: 0 auto; }
.tier-card { padding: 24px 20px; text-align: center; position: relative; }
.tier-card > *:not(.tier-bg) { position: relative; z-index: 1; }
.tier-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .35s ease; z-index: 0; }
.tier-card:hover .tier-bg { opacity: .5; }
.tiers:not(.tiers-3) .tier-bg { background-image: linear-gradient(rgba(7,33,26,.55), rgba(7,33,26,.8)), url(/img/first.jpg); }
.tiers-3 .tier-bg { background-image: linear-gradient(rgba(7,33,26,.55), rgba(7,33,26,.8)), url(/img/first2.jpg); }
.tier-card .tname { font-weight: 900; font-size: 18px; margin-bottom: 4px; }
.tier-card .tprice { font-size: 30px; font-weight: 900; color: var(--gold-hi); margin: 6px 0 10px; }
.tier-card .tblurb { color: var(--ink-dim); font-size: 13px; margin-bottom: 14px; min-height: 34px; }
.tier-card .tjack { font-size: 12.5px; color: var(--win); font-weight: 700; }
.tier-bronze .tprice { color: #d8a15e; }
.tier-silver .tprice { color: #cfd8dd; }
.tier-gold .tprice { color: var(--gold-hi); }
.tier-diamond .tprice { color: #8fe3ff; }

.streak-strip { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.streak-day { width: 74px; padding: 14px 6px; text-align: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.streak-day.day7 { border-color: var(--gold); background: linear-gradient(160deg, rgba(240,195,88,.18), rgba(240,195,88,.04)); }
.streak-day .d { font-size: 11px; color: var(--ink-faint); font-weight: 700; margin-bottom: 6px; }
.streak-day .ic { font-size: 20px; }

.refban { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; flex-wrap: wrap; }
.refban h3 { margin: 0 0 6px; font-size: 22px; }
.refban p { margin: 0; color: var(--ink-dim); }

footer { border-top: 1px solid var(--line); padding: 56px 0 0; color: var(--ink-faint); font-size: 13px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-grid > * { min-width: 0; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-dim); font-size: 13.5px; line-height: 1.6; max-width: 320px; margin: 0 0 18px; }
.footer-coins { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-coins img { width: 22px; height: 22px; border-radius: 50%; background: var(--panel); padding: 3px; border: 1px solid var(--line); }
.footer-col h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-dim); font-size: 13.5px; }
.footer-col a:hover { color: var(--gold-hi); }
.footer-note { color: var(--ink-faint); font-size: 12.5px; line-height: 1.55; margin: 0; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- legal (terms/policy) ---- */
.legal { padding: 48px 0 80px; max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: 30px; margin: 0 0 6px; }
.legal .updated { color: var(--ink-faint); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 18.5px; color: var(--gold-hi); margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-dim); font-size: 14.5px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 20px; margin: 8px 0; }
.legal a.back { display: inline-block; margin-bottom: 24px; color: var(--gold-hi); font-weight: 700; font-size: 14px; }
footer a { color: var(--ink-dim); }

/* ---- faq accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.faq-item { overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: transparent; border: none; color: var(--ink); font-family: var(--font); font-size: 15.5px; font-weight: 800; text-align: left; cursor: pointer; }
.faq-q:hover { color: var(--gold-hi); }
.faq-chevron { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(240,195,88,.12); border: 1px solid rgba(240,195,88,.3); color: var(--gold-hi); display: grid; place-items: center; font-size: 16px; font-weight: 900; transition: transform .2s ease; }
.faq-item.open .faq-chevron { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { margin: 0; padding: 0 22px 20px; color: var(--ink-dim); font-size: 14.5px; line-height: 1.65; }

/* ---- auth ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 400px; position: relative; z-index: 1; }
.auth-decor { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.auth-decor-left { left: 3%; }
.auth-decor-right { right: 3%; }
@media (min-width: 1320px) { .auth-decor { display: block; } }
.mini-ticket-lg { width: 340px; padding: 48px 34px; }
.mini-ticket-lg .tag { font-size: 22px; }
.mini-ticket-lg .row3 { gap: 16px; margin: 30px 0 24px; }
.mini-ticket-lg .cell { font-size: 52px; border-radius: 18px; }
.mini-ticket-lg .amt { font-size: 36px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; cursor: pointer; }
.checkbox-field input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold-hi); cursor: pointer; }
.checkbox-field a { color: var(--gold-hi); text-decoration: underline; }
.tabs2 { display: flex; gap: 6px; background: var(--bg2); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.tabs2 button { flex: 1; padding: 10px; border: none; background: transparent; color: var(--ink-dim); font-weight: 700; border-radius: 9px; cursor: pointer; font-size: 14px; }
.tabs2 button.active { background: linear-gradient(155deg, var(--gold-hi), var(--gold-dim)); color: #241a06; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-dim); margin-bottom: 6px; font-weight: 700; }
.field input { width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 14.5px; }
.field input:focus { outline: none; border-color: var(--gold-dim); }
.authlogo { text-align: center; margin-bottom: 22px; }

/* ---- app shell ---- */
.appshell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; min-width: 0; }
.sidebar { background: var(--bg2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 6px 8px 20px; }
.sidenav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidenav button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: none; background: transparent; color: var(--ink-dim); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.sidenav button.active { background: rgba(240,195,88,.12); color: var(--gold-hi); }
.sidenav button:hover:not(.active) { background: var(--panel); color: var(--ink); }
.sidefoot { border-top: 1px solid var(--line); padding-top: 14px; }
.balancepill { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.balancepill .lbl { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.balancepill .val { font-size: 20px; font-weight: 900; color: var(--gold-hi); }
.balancerow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-addfunds { flex: none; width: 26px; height: 26px; border-radius: 8px; border: none; background: linear-gradient(155deg, var(--gold-hi), var(--gold-dim)); color: #241a06; font-weight: 900; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(240,195,88,.3); transition: transform .12s ease; }
.btn-addfunds:hover { transform: scale(1.08); }
.btn-subfunds { background: var(--panel2); color: var(--ink-dim); border: 1px solid var(--line); box-shadow: none; }
.btn-subfunds:hover { border-color: var(--gold-dim); color: var(--gold-hi); }
.main { padding: 28px 32px; max-width: 1040px; margin: 0 auto; width: 100%; min-width: 0; }
.viewhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.viewhead h1 { margin: 0; font-size: 26px; font-weight: 900; }
.view { display: none; }
.view.active { display: block; }

/* mobile topbar (hidden on desktop) */
.topbar { display: none; }

/* ---- scratch game ---- */
.playgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.playgrid > * { min-width: 0; }
.card-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.pick-btn { padding: 14px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font-weight: 700; text-align: center; }
.pick-btn small { display: block; color: var(--ink-dim); font-weight: 600; font-size: 11.5px; margin-top: 3px; }
.pick-btn small.pick-max { color: var(--win); font-weight: 800; margin-top: 5px; }
.pick-btn.active { border-color: var(--gold); background: rgba(240,195,88,.1); color: var(--gold-hi); }
.pick-btn[disabled] { opacity: .45; cursor: not-allowed; }

.scratch-area { padding: 30px; text-align: center; }
.scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 380px; margin: 0 auto 22px; }
.scell { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0a2a21; border: 1px solid var(--line); }
.scell .sym { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.scell canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; touch-action: none; }
.scell.revealed canvas { display: none; }
.scell.revealed { box-shadow: inset 0 0 0 2px var(--gold); }

.result-banner { margin-top: 10px; padding: 16px; border-radius: 12px; font-weight: 800; font-size: 16px; display: none; }
.result-banner.show { display: block; }
.result-banner.win { background: rgba(79,209,139,.14); border: 1px solid rgba(79,209,139,.4); color: var(--win); }
.result-banner.lose { background: rgba(111,147,133,.1); border: 1px solid var(--line); color: var(--ink-dim); }

/* ---- BTC predict ---- */
.predict-phase { font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 8px; }
.predict-price { font-size: 40px; font-weight: 900; margin: 4px 0; }
.predict-timer { font-size: 14px; color: var(--ink-dim); font-weight: 700; margin-bottom: 18px; }
.predict-updown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.predict-updown .btn { min-width: 120px; }

.sidecard { padding: 20px; margin-bottom: 16px; }
.sidecard h3 { margin: 0 0 12px; font-size: 15px; }
.paytable-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; text-align: left; }
.paytable-tier {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(175deg, rgba(240,195,88,.05), rgba(240,195,88,.01));
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.pt-title {
  font-weight: 800; font-size: 12.5px; color: var(--gold-hi); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: 8px; border-bottom: 1px solid rgba(240,195,88,.18);
}
.paytable-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.paychip { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; }
.paychip .pc-sym { font-weight: 700; }
.paychip .pc-amt { font-weight: 900; color: var(--win); }
.streak-mini { display: flex; flex-direction: column; gap: 6px; }
.streak-bar { height: 10px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.streak-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold-hi)); border-radius: 6px; transition: width .3s ease; }
.streak-bar-label { font-size: 12px; font-weight: 800; color: var(--ink-faint); }

/* ---- wallet ---- */
.coin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.coin-tabs button {
  position: relative; overflow: hidden; flex: none;
  padding: 9px 14px 9px 32px; border-radius: 999px; border: 1px solid var(--line);
  background-color: var(--panel); color: var(--ink-dim); font-weight: 700; cursor: pointer;
  background-image: var(--icon), linear-gradient(var(--panel), var(--panel));
  background-repeat: no-repeat; background-position: 9px center, 0 0; background-size: 17px 17px, auto;
  white-space: nowrap; font-size: 13.5px;
}
.coin-tabs button.active { border-color: var(--gold); color: var(--gold-hi); background-color: rgba(240,195,88,.1); }
.coin-tabs::-webkit-scrollbar { height: 6px; }
.coin-tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.coin-tabs::-webkit-scrollbar-track { background: transparent; }
.dep-warn { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(224,85,107,.1); border: 1px solid rgba(224,85,107,.35); color: var(--ruby); font-size: 12.5px; line-height: 1.5; }
.dep-warn strong { color: var(--ink); }
.deposit-box { display: flex; gap: 28px; align-items: center; padding: 26px; flex-wrap: wrap; }
.deposit-box img { width: 160px; height: 160px; border-radius: 12px; background: #fff; padding: 8px; }
.addrbox { flex: 1; min-width: 240px; }
.addrbox .addr { font-family: ui-monospace, Consolas, monospace; background: var(--bg2); border: 1px solid var(--line); padding: 12px; border-radius: 10px; word-break: break-all; font-size: 13.5px; margin: 10px 0; }

table.datatable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.datatable th { text-align: left; color: var(--ink-faint); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
table.datatable td { padding: 10px 10px; border-bottom: 1px solid var(--line); }
table.datatable tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.win { background: rgba(79,209,139,.15); color: var(--win); }
.badge.buy { background: rgba(240,195,88,.12); color: var(--gold-hi); }
.badge.deposit { background: rgba(31,174,122,.18); color: var(--emerald); }
.badge.withdraw { background: rgba(224,85,107,.15); color: var(--ruby); }
.badge.referral { background: rgba(143,227,255,.14); color: #8fe3ff; }
.badge.bonus { background: rgba(240,195,88,.12); color: var(--gold-hi); }
.badge.pending { background: rgba(240,195,88,.12); color: var(--gold-hi); }
.badge.approved { background: rgba(79,209,139,.15); color: var(--win); }
.badge.rejected { background: rgba(224,85,107,.15); color: var(--ruby); }

/* ---- referrals ---- */
.refcode-box { display: flex; align-items: center; gap: 14px; padding: 22px; flex-wrap: wrap; }
.refcode-box code { font-size: 20px; font-weight: 900; color: var(--gold-hi); background: var(--bg2); padding: 10px 18px; border-radius: 10px; letter-spacing: 1px; }
.reflevels { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.reflevel { padding: 14px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-align: center; min-width: 100px; }
.reflevel .pct { font-size: 20px; font-weight: 900; color: var(--gold-hi); }
.reflevel .lv { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; }

/* ---- support tickets ---- */
.support-ticket { padding: 18px 20px; margin-bottom: 14px; }
.support-ticket .sth { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.support-ticket .sth b { font-size: 14.5px; }
.badge.open { background: rgba(240,195,88,.12); color: var(--gold-hi); }
.badge.closed { background: var(--panel); color: var(--ink-faint); }
.support-msg { padding: 10px 13px; border-radius: 12px; margin: 6px 0; max-width: 85%; font-size: 13.5px; line-height: 1.5; }
.support-msg.user { background: rgba(240,195,88,.1); border: 1px solid rgba(240,195,88,.25); margin-left: auto; border-bottom-right-radius: 3px; }
.support-msg.support { background: var(--bg2); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.support-msg .who { font-size: 10.5px; opacity: .7; display: block; margin-bottom: 3px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.support-reply { display: flex; gap: 8px; margin-top: 10px; }
.support-reply input { flex: 1; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 13.5px; }
.support-hint { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }

/* ---- leaderboard ---- */
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 28px; text-align: center; font-weight: 900; color: var(--ink-faint); }
.lb-row:nth-child(1) .lb-rank { color: var(--gold-hi); font-size: 17px; }
.lb-row:nth-child(2) .lb-rank { color: #cfd8dd; font-size: 15px; }
.lb-row:nth-child(3) .lb-rank { color: #d8a15e; font-size: 15px; }
.lb-name { flex: 1; font-weight: 700; }
.lb-amt { font-weight: 900; color: var(--win); }
.lb-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.lb-toggle button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-dim); font-weight: 700; cursor: pointer; }
.lb-toggle button.active { border-color: var(--gold); color: var(--gold-hi); background: rgba(240,195,88,.1); }

/* ---- toast ---- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: #14382c; border: 1px solid var(--gold-dim); color: var(--ink); padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; opacity: 0; transition: all .25s ease; pointer-events: none; z-index: 999; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: var(--ruby); color: #ffd7dc; }

/* ---- admin ---- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tabs button { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-dim); font-weight: 700; cursor: pointer; }
.admin-tabs button.active { border-color: var(--gold); color: var(--gold-hi); background: rgba(240,195,88,.1); }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 18px; text-align: center; }
.stat-card .n { font-size: 24px; font-weight: 900; color: var(--gold-hi); }
.stat-card .l { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; margin-top: 4px; }
.tier-editor { display: grid; gap: 8px; }
.tier-editor .erow { display: grid; grid-template-columns: 60px 1fr 90px 90px; gap: 8px; align-items: center; font-size: 13px; }
.tier-editor input { width: 100%; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 13px; }
.evline { margin-top: 10px; font-size: 12.5px; color: var(--ink-dim); }

/* ---- misc ---- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 > * { min-width: 0; }
.muted { color: var(--ink-dim); }
.mt { margin-top: 18px; }
.center { text-align: center; }
.hidden { display: none !important; }

.topbar .brand { font-size: 16.5px; gap: 8px; }
.topbar .brand .mark { width: 28px; height: 28px; font-size: 15px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-right select { max-width: 82px; font-size: 12.5px; padding: 8px 6px !important; }
#btn-logout-mobile { padding: 8px 6px 8px 10px !important; border-left: 1px solid var(--line); border-radius: 0 !important; }
.topbar-balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.topbar-balance .lbl { display: none; }
.topbar-balance .val { font-size: 13.5px; font-weight: 900; color: var(--gold-hi); }

@media (max-width: 900px) {
  .appshell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 0; z-index: 30; gap: 10px; }
  .main { padding: 20px 16px; }
  .playgrid { grid-template-columns: 1fr; }
  .tiers, .tiers-3, .steps { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .navlinks { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tiers, .tiers-3, .steps { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .deposit-box { flex-direction: column; text-align: center; }
  .deposit-box img { margin: 0 auto; }
  .addrbox { min-width: 0; width: 100%; }
}

/* ---- first-deposit promo banner (hero) ---- */
.promo-banner {
  display: flex; align-items: center; gap: 16px; text-align: left;
  max-width: 640px; margin: 28px auto 0; padding: 16px 22px;
  border-radius: 14px; border: 1px solid rgba(240,195,88,.45);
  background: linear-gradient(100deg, rgba(240,195,88,.14), rgba(240,195,88,.05));
  box-shadow: 0 0 0 1px rgba(240,195,88,.08), 0 10px 30px rgba(240,195,88,.12);
  animation: promoPulse 2.6s ease-in-out infinite;
}
.promo-icon { flex: none; font-size: 34px; line-height: 1; }
.promo-title { font-weight: 900; font-size: 15.5px; color: var(--gold-hi); letter-spacing: .01em; margin-bottom: 3px; text-transform: uppercase; }
.promo-sub { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }
.promo-sub strong { color: var(--ink); }
@keyframes promoPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(240,195,88,.08), 0 10px 30px rgba(240,195,88,.12); }
  50% { box-shadow: 0 0 0 1px rgba(240,195,88,.2), 0 10px 34px rgba(240,195,88,.28); }
}
@media (max-width: 560px) { .promo-banner { flex-direction: column; text-align: center; gap: 8px; } }

/* ---- floating online-support button, fixed top-right ---- */
.support-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px;
  background: linear-gradient(155deg, var(--gold-hi), var(--gold-dim));
  color: #241a06; font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 22px rgba(240,195,88,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240,195,88,.5); }
.support-fab span { display: none; }
@media (min-width: 640px) { .support-fab span { display: inline; } }
@media (max-width: 520px) { .support-fab { right: 18px; padding: 13px; } .support-fab span { display: none; } }
