/* ============================================================
   BARON BINGO — style.css
   Aesthetic: Neon-lit casino floor meets Ethiopian nights
   ============================================================ */

/* Block text selection / long-press copy everywhere (native-app feel), but
   keep real inputs selectable so typing/pasting still works. */
*, *::before, *::after {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Pending deposit/withdraw counters blink while there's something waiting. */
@keyframes stat-blink-kf { 0%,100% { color:#ff4444; } 50% { color:#a78bfa; } }
.stat-blink { animation: stat-blink-kf 1s steps(1,end) infinite; }
/* The WHOLE pending-deposit/withdraw box blinks (not just the number) so it's hard
   to miss. Background + border pulse; the value stays gold and readable. */
@keyframes box-blink-kf {
  0%,100% { background:rgba(255,68,68,0.20); border-color:rgba(255,68,68,0.75); box-shadow:0 0 0 0 rgba(255,68,68,0); }
  50%     { background:rgba(167,139,250,0.18); border-color:rgba(167,139,250,0.85); box-shadow:0 0 14px 1px rgba(255,120,0,0.35); }
}
.admin-stat-box.box-blink { animation: box-blink-kf 1s steps(1,end) infinite; }

/* Block button in the admin user profile. */
.upm-btn-block { background: rgba(255,68,68,0.14); color: #ff6b6b; border: 1px solid rgba(255,68,68,0.4); }
.upm-btn-block.is-blocked { background: rgba(0,230,118,0.14); color: #00e676; border-color: rgba(0,230,118,0.4); }

/* Optional image-link field in the admin send-message modal. */
.smm-image-input {
  width: 100%; margin-bottom: 10px; padding: 10px 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 0.82rem;
}
.smm-image-input::placeholder { color: var(--text-dim); }

/* ===== MORE OPTIONS (admin) ===== */
.mo-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tab {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-dim); font-family: var(--font-am); font-size: 0.82rem; white-space: nowrap;
}
.mo-tab.active { background: linear-gradient(135deg, var(--purple), #7b1fa2); color: #fff; border-color: transparent; }
.mo-period { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.mo-period::-webkit-scrollbar { display: none; }
.mo-period button, .mo-period input {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-dim); font-family: var(--font-am); font-size: 0.78rem;
}
.mo-period button.active { background: var(--cyan); color: #002; border-color: transparent; font-weight: 700; }
.mo-content { padding: 4px 6px 40px; }
.mo-empty { text-align: center; color: var(--text-dim); padding: 40px 0; font-family: var(--font-am); }

.mo-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mo-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.mo-stat-val { font-size: 1.15rem; font-weight: 800; color: var(--gold); font-family: var(--font-main); }
.mo-stat-lbl { font-size: 0.74rem; color: var(--text-dim); margin-top: 4px; font-family: var(--font-am); }
.mo-stat-sub { font-size: 0.68rem; color: var(--cyan); margin-top: 2px; }
/* tappable stat cards (Stake / Deposit expand into a detail panel) */
.mo-stat-tap { cursor: pointer; transition: 0.15s; }
.mo-stat-tap:active { transform: scale(0.97); }
.mo-stat-tap .mo-stat-lbl { color: var(--gold); }
/* expandable detail panels + section separators */
.mo-section-label { margin: 16px 2px 8px; font-size: 0.82rem; font-weight: 800; color: var(--text); font-family: var(--font-am); }
.mo-seemore-btn { display:block; width:100%; padding:11px; border-radius:12px; border:1px dashed rgba(255,255,255,.22); background:transparent; color:var(--cyan); font:inherit; font-weight:700; font-size:.85rem; cursor:pointer; }
.mo-seemore-btn:active { transform: scale(.99); }
.mo-detail { margin-top: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.mo-detail-title { font-size: 0.78rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; font-family: var(--font-am); }
.mo-detail-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 0.82rem; font-family: var(--font-am); }
.mo-detail-row:first-of-type { border-top: none; }
.mo-detail-cnt { font-weight: 600; color: var(--text-dim); font-size: 0.7rem; margin-left: 6px; }
.mo-detail-total { font-weight: 800; color: var(--gold); border-top: 1px solid var(--gold); margin-top: 4px; }
.mo-detail-empty { text-align: center; color: var(--text-dim); padding: 12px 0; font-size: 0.8rem; font-family: var(--font-am); }

/* ===== REFERRAL / AGENT screens ===== */
.ref-wrap { padding: 12px 14px 40px; }
.ref-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ref-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.ref-card-title { font-size: 0.82rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; font-family: var(--font-am); }
.ref-note { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 10px; line-height: 1.5; font-family: var(--font-am); }
.ref-note b { color: var(--cyan); }
.ref-link-box { display: flex; gap: 8px; align-items: center; }
.ref-link-input { flex: 1; min-width: 0; background: var(--bg, #0a0e1a); border: 1px solid var(--border); border-radius: 10px; padding: 10px; color: var(--text); font-size: 0.78rem; }
.ref-copy-btn, .ref-share-btn { border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ref-copy-btn { background: rgba(52,211,153,0.16); color: var(--cyan); white-space: nowrap; }
.ref-share-btn { width: 100%; margin-top: 10px; background: linear-gradient(135deg, #29ADFF, #8b5cf6); color: #fff; padding: 12px; }
.ref-copy-btn:active, .ref-share-btn:active { transform: scale(0.97); }
.ref-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.84rem; font-family: var(--font-am); }
.ref-row:first-of-type { border-top: none; }
.ref-row-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-row-amt { color: var(--gold); font-weight: 700; white-space: nowrap; }

.mo-list { display: flex; flex-direction: column; gap: 8px; }
.mo-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.mo-rank { width: 24px; text-align: center; font-weight: 800; color: var(--gold); font-family: var(--font-main); }
.mo-row-main { flex: 1; min-width: 0; }
.mo-row-name { font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-row-sub { font-size: 0.72rem; color: var(--text-dim); }
.mo-row-amt { font-weight: 800; color: var(--green); font-family: var(--font-main); font-size: 0.92rem; }
.mo-unblock { padding: 6px 12px; border-radius: 8px; background: rgba(0,230,118,0.15); color: var(--green); border: 1px solid rgba(0,230,118,0.4); cursor: pointer; font-family: var(--font-am); font-size: 0.78rem; }

/* online-count tag on the users sort button */
.ust-online-tag { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #22c55e; color: #04160d; font-size: 0.6rem; font-weight: 800; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; }
#userSortToggle { position: relative; overflow: visible; }
/* Game View toolbar: View picker · Add game · Change-order toggle */
.mo-gv-toolbar { display: flex; gap: 8px; margin-bottom: 10px; position: relative; }
.mo-gv-tool { flex: 1; padding: 9px 8px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 0.8rem; font-family: var(--font-am, inherit); white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 5px; }
.mo-gv-tool.on { background: var(--purple); color: #fff; border-color: transparent; }
.mo-gv-viewmenu { position: absolute; top: 46px; left: 0; z-index: 30; background: var(--panel, #1a1640); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 10px 28px rgba(0,0,0,0.5); min-width: 150px; }
.mo-gv-viewmenu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: none; color: var(--text); cursor: pointer; font-size: 0.82rem; }
.mo-gv-viewmenu button.active, .mo-gv-viewmenu button:active { background: var(--purple); color: #fff; }
.mo-sub-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mo-sub-tab { flex: 1 0 auto; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; font-size: 0.8rem; white-space: nowrap; }
.mo-sub-tab.active { background: var(--purple); color: #fff; border-color: transparent; }
.mo-layout-row { display: flex; gap: 8px; margin-bottom: 12px; }
.mo-layout-btn { flex: 1; padding: 8px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; font-size: 0.8rem; }
.mo-layout-btn.active { background: var(--purple); color: #fff; border-color: transparent; }
.mo-games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mo-game { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.mo-game-icon { height: 56px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.mo-game-img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.mo-game-name { font-weight: 700; font-size: 0.86rem; margin-top: 6px; }
.mo-game-count { font-size: 0.74rem; color: var(--cyan); margin: 4px 0 8px; }
.mo-game-icon-input { width: 100%; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); font-size: 0.72rem; margin-bottom: 6px; }
.mo-game-save { width: 100%; padding: 7px; border-radius: 8px; background: linear-gradient(135deg,var(--gold),var(--gold2)); color: #000; border: none; cursor: pointer; font-family: var(--font-am); font-size: 0.76rem; }
/* Game View tiles: tap to open settings, press-hold to drag-reorder */
.mo-gv-hint { font-size: 0.68rem; color: var(--text-dim); text-align: center; margin: -4px 0 10px; opacity: 0.8; }
.mo-games-drag .mo-game { cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease; }
/* Only in reorder mode do tiles capture the touch (so normal browsing scrolls freely) */
.mo-games-drag.gv-reorder-on .mo-game { touch-action: none; }
.mo-games-drag.gv-reorder-on .mo-game::after { content: "⠿"; position: absolute; top: 6px; right: 8px; color: var(--gold); font-size: 0.8rem; opacity: 0.7; }
.mo-games-drag.gv-reorder-on .mo-game { position: relative; }
.mo-games-drag .mo-game:active { transform: scale(0.97); }
.mo-game-cta { font-size: 0.7rem; color: var(--gold); font-weight: 700; margin-top: 6px; }
/* While dragging: lift it AND make it transparent to hit-testing so elementFromPoint
   returns the tile UNDER the finger (not the dragged one) — that's what lets it swap. */
.mo-game.gv-dragging { opacity: 0.85; transform: scale(1.06); box-shadow: 0 10px 24px rgba(0,0,0,0.5); z-index: 5; border-color: var(--gold); pointer-events: none; }
/* Per-game settings screen: game icon + name inside the sub-header title */
.sub-title .gs-hero-img { width: 24px; height: 24px; object-fit: cover; border-radius: 6px; vertical-align: -6px; margin-right: 4px; }
.sub-title .gs-hero-emoji { margin-right: 4px; }

/* Hub icon layouts (admin-chosen). */
.games-grid.layout-icon3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.games-grid.layout-icon2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hub-cell { display: flex; flex-direction: column; gap: 4px; }
/* Icon tile: the image FILLS the whole square box; name overlays the bottom. */
.game-card.game-iconmode {
  position: relative; aspect-ratio: 1 / 1; width: 100%; padding: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* Flat fill (no diagonal corner sheen); a custom icon image overrides this. */
  background-color: rgba(255,255,255,0.05); background-image: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.game-card.game-iconmode .gc-icon { margin: auto; font-size: 2.6rem; }   /* emoji fallback, centered */
.game-card.game-iconmode .gc-name-ov {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; padding: 16px 6px 6px; text-align: center; color: #fff;
  font-weight: 700; font-size: 0.82rem; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
/* Player count OUTSIDE the icon box (below it). */
.gc-count-out { text-align: center; font-size: 0.76rem; color: #a78bfa; font-weight: 700; }
.gc-count-empty { visibility: hidden; }   /* reserves the count line's height on Coming-Soon tiles */
/* Player count inside the list-layout card. */
.gc-count { font-size: 0.72rem; color: #a78bfa; font-weight: 700; margin-top: 3px; }
/* Virtual games (spin, …) show a blinking "live" badge instead of a player count. */
.gc-live { display: inline-flex; align-items: center; gap: 5px; color: #00e676; font-weight: 700; }
.gc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #00e676; box-shadow: 0 0 6px #00e676; animation: live-blink-kf 1s ease-in-out infinite; }
@keyframes live-blink-kf { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
.gc-icon-img { padding: 0 !important; }
.gc-icon-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; max-width: 64px; max-height: 64px; }
/* Coming-Soon / maintenance icon tiles: full colour (no dimming), just a corner
   badge so the grid layout marks them like the list layout does. */
.game-card.game-iconmode .gc-soon-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(0,0,0,0.66); color: var(--gold);
  font-size: 0.62rem; font-weight: 800; font-family: var(--font-am);
  padding: 2px 7px; border-radius: 99px; border: 1px solid rgba(167,139,250,0.4);
}

/* ===== Home announcement banner (16:5 carousel) ===== */
.ann-banner {
  position: relative; width: 100%; aspect-ratio: 16 / 5;
  overflow: hidden; border-radius: 14px; margin: 5px 0 4px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.ann-track { display: flex; height: 100%; transition: transform 0.5s ease; }
.ann-slide {
  flex: 0 0 100%; height: 100%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.ann-dots { display: flex; gap: 5px; justify-content: center; margin: 8px 0 2px; }
.ann-dots:empty { display: none; }
.ann-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; }
.ann-dot.active { background: var(--gold); width: 16px; border-radius: 3px; }

/* Announcement editor (More Option → 🖼) */
.mo-ann-hint { color: var(--text-dim); font-size: 0.76rem; margin-bottom: 10px; }
.mo-ann-list { display: flex; flex-direction: column; gap: 8px; }
.mo-ann-row { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.mo-ann-idx { width: 22px; text-align: center; font-weight: 800; color: var(--gold); }
.mo-ann-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mo-ann-fields input { width: 100%; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); font-size: 0.74rem; }
.mo-ann-save { width: 100%; margin-top: 12px; padding: 11px; border-radius: 10px; background: linear-gradient(135deg,var(--gold),var(--gold2)); color: #000; border: none; cursor: pointer; font-family: var(--font-am); font-weight: 700; }

:root {
  --bg:         #0b0a1f;
  --bg2:        #120f2e;
  --bg3:        #1a1640;
  --surface:    rgba(255,255,255,0.04);
  --border:     rgba(255,255,255,0.07);
  --gold:       #a78bfa;
  --gold2:      #ec4899;
  --cyan:       #34d399;
  --green:      #00e676;
  --red:        #ff4444;
  --purple:     #d500f9;
  --text:       rgba(255,255,255,0.92);
  --text-dim:   rgba(255,255,255,0.4);
  --radius:     16px;
  --font-head:  'Poppins', 'Noto Sans Ethiopic', sans-serif;
  --font-body:  'Poppins', 'Noto Sans Ethiopic', sans-serif;
  --font-am:    'Noto Sans Ethiopic', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html, body {
  height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  overscroll-behavior: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(52,211,153,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(213,0,249,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(167,139,250,0.03) 0%, transparent 70%),
    var(--bg);
}

button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
a { color: inherit; text-decoration: none; }
input { outline: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #1a1e35, #0f1225);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SIDE MENU ===== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.overlay.open { opacity: 1; visibility: visible; }

.side-menu {
  position: fixed;
  top: 0; right: -310px;
  width: 290px; height: 100%;
  background: linear-gradient(180deg, #151238 0%, #0e0c26 100%);
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 300;
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.side-menu.open { right: 0; }

.menu-inner { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; height: 100%; }

.menu-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.menu-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #000;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.menu-name { font-weight: 700; font-size: 0.95rem; }
.menu-phone { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; font-family: var(--font-am); }

.menu-balance-box {
  background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(139,92,246,0.08));
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.mbl-label { font-size: 0.7rem; color: var(--text-dim); font-family: var(--font-am); }
.mbl-value { font-size: 1.9rem; font-weight: 900; color: var(--cyan); font-family: var(--font-head); }
.mbl-curr { font-size: 0.75rem; color: var(--text-dim); }

.menu-nav { display: flex; flex-direction: column; gap: 4px; }
.menu-nav-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
  border: 1px solid transparent;
  font-family: var(--font-am);
}
.menu-nav-btn:hover, .menu-nav-btn:active {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
}
.mnb-icon { font-size: 1.1rem; }
.menu-footer { margin-top: auto; text-align: center; font-size: 0.62rem; color: rgba(255,255,255,0.2); padding-top: 10px; }

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(5,8,18,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.menu-toggle {
  width: auto; height: 32px;
  padding: 0 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: 0.2s;
}
.menu-toggle:active { transform: scale(0.92); }
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
}

.top-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(167,139,250,0.4);
}
.top-logo span { color: var(--cyan); }

.top-balance {
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(139,92,246,0.1));
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(52,211,153,0.2);
  font-weight: 700; font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.75rem;
}
.tb-coin { font-size: 0.9rem; }

/* Top bar buttons disabled state during game */
.top-bar-disabled .menu-toggle,
.top-bar-disabled .top-balance {
  opacity: 0.35 !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* ===== SCREENS ===== */
.screens { margin-top: 48px; min-height: calc(100vh - 48px); }

.screen {
  display: none;
  min-height: calc(100vh - 48px);
  padding: 16px 14px 80px;
  animation: screenIn 0.3s ease;
}
.screen.active { display: block; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HOME SCREEN ===== */
.home-hero {
  padding: 20px 4px 16px;
  text-align: center;
}
.hero-title {
  font-family: var(--font-am);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.stake-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

/* ===== GAME HUB (home) ===== */
.hero-back {
  position: absolute; left: 6px; top: 14px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-am);
  font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.home-hero { position: relative; }

.games-grid {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 8px;
}
/* "virtual" section divider in the game grid. Spans the full width in the icon
   grid layouts (grid-column) and reads as a quiet lowercase label. */
.games-section-label {
  grid-column: 1 / -1;
  margin: 10px 2px 0;
  font-size: .95rem; font-weight: 600; letter-spacing: .3px;
  color: var(--text-dim); text-transform: lowercase;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.game-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 18px 16px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  cursor: pointer; color: var(--text);
  transition: transform .12s ease, border-color .12s ease;
}
.game-card:active { transform: scale(0.98); }
.gc-icon {
  font-size: 2.4rem; line-height: 1;
  width: 56px; height: 56px; flex: 0 0 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); border-radius: 16px;
}
.gc-info { flex: 1; min-width: 0; }
.gc-name {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.25rem; letter-spacing: 1px; color: var(--text);
}
.gc-desc {
  font-family: var(--font-am); font-size: 0.74rem;
  color: var(--text-dim); margin-top: 3px;
}
.gc-cta {
  flex: 0 0 auto; font-family: var(--font-am);
  font-size: 0.72rem; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.gc-play { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; }
.gc-soon { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--border); }
/* all live games look equal — only a truly Coming-Soon (no URL) card is dimmed */

/* ===== APP LOADING SCREEN ===== */
.app-loading {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(circle at 50% 35%, var(--bg3), var(--bg));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.app-loading.hidden { display: none; }
.al-logo { font-family: var(--font-head); font-weight: 900; font-size: 1.9rem; letter-spacing: 2px; color: var(--gold); }
.al-logo span { color: var(--cyan); }
.al-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid rgba(167,139,250,0.22); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
.al-text { font-family: var(--font-am); color: var(--text-dim); font-size: 0.9rem; }

/* ===== SERVICE / MAINTENANCE — full-screen block above everything ===== */
.service-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: radial-gradient(circle at 50% 30%, var(--bg3), var(--bg));
  display: flex; align-items: center; justify-content: center;
}
.service-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px;
}
.service-emoji { font-size: 4rem; }
.service-title { font-family: var(--font-am); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.service-sub { font-family: var(--font-am); font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; }

/* ===== ADMIN USERS — search box + sort dropdown ===== */
.admin-users-toolbar { position: relative; margin-bottom: 10px; }
.aut-search-row { display: flex; gap: 8px; }
.user-search-input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-am); font-size: 0.85rem;
}
.user-sort-toggle {
  flex: 0 0 auto; width: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--gold); font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.user-sort-menu {
  display: none; flex-direction: column; gap: 3px;
  margin-top: 8px; padding: 6px; border-radius: 14px;
  background: var(--bg3); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.user-sort-menu.open { display: flex; }
.user-sort-menu button {
  text-align: left; padding: 11px 14px; border-radius: 10px;
  background: transparent; border: none; color: var(--text);
  font-family: var(--font-am); font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.user-sort-menu button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000;
}
.ac-meta { font-size: 0.68rem; color: var(--text-dim); margin-top: 2px; }
.wd-phone { display: inline-flex; align-items: center; gap: 6px; }
.wd-copy-btn {
  padding: 2px 4px; cursor: pointer;
  background: transparent; border: none;
  color: var(--cyan); font-size: 0.72rem;
}
.wd-regphone { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); margin-top: 4px; }

/* ===== PHONE REGISTRATION MODAL ===== */
.phone-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7);
  display: none;
}
.phone-overlay.active { display: block; }
.phone-modal {
  position: fixed; z-index: 10001; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(340px, 88vw); padding: 22px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: none; opacity: 0; transition: opacity .15s ease, transform .15s ease;
}
.phone-modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pm-title { font-family: var(--font-am); font-weight: 700; font-size: 1.15rem; color: var(--gold); }
.pm-sub { font-family: var(--font-am); font-size: 0.82rem; color: var(--text-dim); margin: 6px 0 14px; }

/* ===== ADMIN USER PROFILE — phone row ===== */
.upm-phone-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; margin: 8px 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.upm-phone-label { font-size: 1rem; }
.upm-phone-val { flex: 1; min-width: 80px; font-family: var(--font-main); color: var(--text); font-size: 0.9rem; }
.upm-phone-input {
  flex: 1; min-width: 120px; padding: 6px 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 0.9rem;
}
.upm-phone-btn {
  padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--cyan); font-family: var(--font-am); font-size: 0.75rem; font-weight: 600;
}
.upm-phone-btn.upm-phone-save { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; border-color: transparent; }

.stake-card {
  position: relative;
  border-radius: 20px;
  padding: 18px 14px 14px;
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.stake-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px; opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.stake-card:active { transform: scale(0.97); }

/* Themes */
.sc-gold::before { background: radial-gradient(circle at 50% 20%, rgba(167,139,250,0.14) 0%, transparent 70%); }
.sc-gold:active, .sc-gold.selected { border-color: rgba(167,139,250,0.4); box-shadow: 0 6px 28px rgba(167,139,250,0.12); }
.sc-gold:active::before, .sc-gold.selected::before { opacity: 1; }
.sc-gold .sc-ring { background: linear-gradient(135deg, #a78bfa, #ec4899); box-shadow: 0 4px 18px rgba(167,139,250,0.3); }
.sc-gold .sc-amount { color: #a78bfa; }

.sc-green::before { background: radial-gradient(circle at 50% 20%, rgba(0,230,118,0.14) 0%, transparent 70%); }
.sc-green:active, .sc-green.selected { border-color: rgba(0,230,118,0.4); box-shadow: 0 6px 28px rgba(0,230,118,0.12); }
.sc-green:active::before, .sc-green.selected::before { opacity: 1; }
.sc-green .sc-ring { background: linear-gradient(135deg, #00c853, #69f0ae); box-shadow: 0 4px 18px rgba(0,200,83,0.3); }
.sc-green .sc-amount { color: #69f0ae; }

.sc-cyan::before { background: radial-gradient(circle at 50% 20%, rgba(52,211,153,0.14) 0%, transparent 70%); }
.sc-cyan:active, .sc-cyan.selected { border-color: rgba(52,211,153,0.4); box-shadow: 0 6px 28px rgba(52,211,153,0.12); }
.sc-cyan:active::before, .sc-cyan.selected::before { opacity: 1; }
.sc-cyan .sc-ring { background: linear-gradient(135deg, #8b5cf6, #34d399); box-shadow: 0 4px 18px rgba(52,211,153,0.3); }
.sc-cyan .sc-amount { color: #34d399; }

.sc-purple::before { background: radial-gradient(circle at 50% 20%, rgba(213,0,249,0.14) 0%, transparent 70%); }
.sc-purple:active, .sc-purple.selected { border-color: rgba(213,0,249,0.4); box-shadow: 0 6px 28px rgba(213,0,249,0.12); }
.sc-purple:active::before, .sc-purple.selected::before { opacity: 1; }
.sc-purple .sc-ring { background: linear-gradient(135deg, #aa00ff, #e040fb); box-shadow: 0 4px 18px rgba(170,0,255,0.3); }
.sc-purple .sc-amount { color: #e040fb; }

.sc-ring {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 10px;
  transition: transform 0.3s;
}
.stake-card:active .sc-ring { transform: scale(1.12) rotate(-6deg); }
.sc-amount { font-size: 1.5rem; font-weight: 900; line-height: 1; font-family: var(--font-head); }
.sc-curr { font-size: 0.62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }
.sc-divider { width: 28px; height: 1.5px; background: rgba(255,255,255,0.08); border-radius: 2px; margin: 10px 0; }

.sc-meta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sc-players {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.7rem; color: var(--text-dim);
}
.sc-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%,100%{opacity:.3} 50%{opacity:1} }

.sc-prize { font-size: 0.68rem; color: var(--text-dim); }
.sc-prize-val { font-weight: 800; color: rgba(255,255,255,0.75); }

.sc-phase {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.3px;
  font-family: var(--font-am);
}
.phase-join { background: rgba(0,230,118,0.14); color: #00e676; border: 1px solid rgba(0,230,118,0.3); }
.phase-started { background: rgba(255,68,68,0.14); color: #ff6b6b; border: 1px solid rgba(255,68,68,0.3); animation: phaseGlow 1s ease-in-out infinite alternate; }
.phase-none { background: rgba(120,120,120,0.1); color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.08); }

@keyframes phaseGlow { from{box-shadow:none} to{box-shadow:0 0 10px rgba(255,68,68,0.4)} }

.sc-phase-dot { width: 4px; height: 4px; border-radius: 50%; }
.phase-join .sc-phase-dot { background: #00e676; animation: livePulse 1s infinite; }
.phase-started .sc-phase-dot { background: #ff6b6b; animation: livePulse 0.6s infinite; }
.phase-none .sc-phase-dot { background: rgba(255,255,255,0.25); }

.sc-timer {
  width: 100%; display: flex; align-items: center; gap: 5px;
}
.sc-timer-bar {
  flex: 1; height: 2.5px; border-radius: 2px;
  background: rgba(255,255,255,0.07); overflow: hidden;
}
.sc-timer-fill { height: 100%; border-radius: 2px; transition: width 1s linear; }
.tf-join { background: linear-gradient(90deg, #00c853, #69f0ae); }
.tf-started { background: linear-gradient(90deg, #ff4444, #ec4899); }
.sc-timer-val { font-size: 0.6rem; color: var(--text-dim); font-weight: 700; min-width: 22px; text-align: right; }

/* ===== SUB HEADER ===== */
.sub-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  padding-top: 4px;
}
.back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--cyan); font-size: 1rem;
  transition: 0.2s;
}
.back-btn:active { transform: scale(0.9); }
.sub-title { flex: 1; font-size: 1.1rem; font-weight: 800; font-family: var(--font-am); }
.sub-badge {
  padding: 4px 12px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(236,72,153,0.15));
  color: var(--gold); border: 1px solid rgba(167,139,250,0.25);
  font-size: 0.75rem; font-weight: 800;
  font-family: var(--font-head);
}

/* ===== CARD PICKER ===== */
.card-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  max-height: 280px;
  overflow-y: auto;
}
.cp-num {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 7px;
  font-weight: 700; font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.cp-num:active { transform: scale(0.88); }
.cp-num.taken { opacity: 0.2; pointer-events: none; background: rgba(255,68,68,0.1); color: #ff4444; }
.cp-num.selected {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000; border-color: transparent;
  box-shadow: 0 0 12px rgba(167,139,250,0.35);
  font-weight: 900;
}

.card-preview-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 14px; gap: 6px; }
.cp-label { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }

.bingo-preview {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 3px; width: 150px;
  min-height: 150px;
  background: rgba(0,0,0,0.3);
  padding: 8px; border-radius: 12px;
  border: 1px solid var(--border);
}
.bp-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  font-size: 0.6rem; font-weight: 700;
  color: rgba(255,255,255,0.55);
}
.bp-cell.bp-free { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; font-size: 0.5rem; }

/* ===== WINNER CARD (shown on the result screen to prove a real card won) ===== */
.result-winner-card {
  margin: 10px auto 4px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 3px; width: 160px;
  background: rgba(0,0,0,0.3);
  padding: 8px; border-radius: 12px;
  border: 1px solid var(--border);
}
.rwc-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  font-size: 0.62rem; font-weight: 700;
  color: rgba(255,255,255,0.5);
}
.rwc-cell.rwc-free { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; font-size: 0.48rem; }
.rwc-cell.rwc-daubed { background: rgba(52,211,153,0.28); color: #fff; }
.rwc-cell.rwc-win { background: linear-gradient(135deg, #00c853, #64dd17); color: #000; box-shadow: 0 0 8px rgba(0,200,83,0.6); }
.rwc-caption { grid-column: 1 / -1; text-align: center; font-size: 0.72rem; color: var(--gold); font-family: var(--font-am); margin-top: 6px; }

/* Game-detail: text on the left, the winner's re-drawn card on the right. */
.gid-detail-flex { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.gid-detail-main { flex: 1; min-width: 150px; }
.gid-wincard { flex-shrink: 0; }
.gid-wincard-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 140px;
  background: rgba(0,0,0,0.3); padding: 7px; border-radius: 12px; border: 1px solid var(--border); }
.gid-wincard-cap { text-align: center; font-size: 0.66rem; color: var(--gold); font-family: var(--font-am); margin-top: 6px; }

/* ===== Final-board replay in a game's detail (XOXO 3×3, Dama 8×8) ===== */
.gid-board { margin: 12px auto 2px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.gid-board-cap { text-align: center; font-size: 0.68rem; color: var(--gold); font-family: var(--font-am); margin-top: 7px; }
/* XOXO */
.xob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(72vw, 220px);
  background: rgba(0,0,0,0.3); padding: 8px; border-radius: 12px; border: 1px solid var(--border); }
.xob-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border-radius: 8px; font-size: 1.7rem; font-weight: 900; line-height: 1; }
.xob-cell.xob-x { color: #4fc3f7; }
.xob-cell.xob-o { color: #ff8a65; }
.xob-cell.xob-win { background: linear-gradient(135deg, #00c853, #64dd17); color: #003; box-shadow: 0 0 10px rgba(0,200,83,0.55); }
/* Dama */
.dmb-grid { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  width: min(82vw, 300px); aspect-ratio: 1/1;
  border: 5px solid #5a3b22; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,0.5); }
.dmb-cell { min-width: 0; min-height: 0; }
.dmb-cell { position: relative; display: flex; align-items: center; justify-content: center; }
.dmb-cell.dmb-light { background: #d9b48a; }
.dmb-cell.dmb-dark  { background: #7a5230; }
.dmb-p { width: 74%; height: 74%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #a78bfa; box-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.dmb-p.dmb-p0 { background: radial-gradient(circle at 32% 30%, #f0d3a4, #c8965a); border: 1px solid #7a5230; }
.dmb-p.dmb-p1 { background: radial-gradient(circle at 32% 30%, #4a4a4a, #141414); border: 1px solid #000; }
.dmb-p.dmb-king { box-shadow: 0 0 0 2px #a78bfa, 0 1px 3px rgba(0,0,0,0.55); }

/* ===== LIVE GAMES (read-only spectator) ===== */
.live-wrap { padding: 4px 0 30px; }
.live-count { font-size: 0.8rem; font-weight: 800; color: #ff5252; margin: 4px 2px 10px; font-family: var(--font-am); }
.live-note { font-size: 0.72rem; color: var(--gold); margin: 6px 2px 10px; font-family: var(--font-am); }
.live-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px; margin-bottom: 10px; cursor: pointer; transition: 0.15s; }
.live-row:active { transform: scale(0.98); }
.live-badge { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.live-bingo { background: rgba(52,211,153,0.14); }
.live-ludo { background: rgba(213,0,249,0.16); }
.live-dama { background: rgba(184,134,59,0.20); }
.live-xoxo { background: rgba(0,200,150,0.16); }
.live-info { flex: 1; min-width: 0; }
.live-line { font-size: 0.85rem; color: var(--text); font-family: var(--font-am); }
.live-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; font-family: var(--font-am); }
.live-go { color: #ff5252; font-weight: 800; white-space: nowrap; }
.live-numgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 10px; }
.live-num { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 4px;
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); font-size: 0.6rem; font-weight: 700; }
.live-num.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; }
.live-pl { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-top: 8px; }
.live-pl.turn { border-color: var(--gold); box-shadow: 0 0 10px rgba(167,139,250,0.25); }
.live-pl-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; font-family: var(--font-am); }
.live-toks { display: flex; gap: 6px; flex-wrap: wrap; }
.live-tok { min-width: 26px; height: 26px; padding: 0 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; background: rgba(255,255,255,0.06); color: var(--text); }
.live-tok.done { background: rgba(0,200,83,0.25); color: #00e676; }
.live-tok.base { background: rgba(255,255,255,0.04); color: var(--text-dim); }
.live-tok.run { background: rgba(52,211,153,0.18); color: var(--cyan); }

/* ===== NOTIFICATION BELL — blinking red dot while there are unread messages ===== */
@keyframes notifPulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,68,68,0.75); }
  50%      { transform: scale(1.3); box-shadow: 0 0 0 7px rgba(255,68,68,0); }
}
#notifBadge.notif-blink { animation: notifPulse 1s ease-in-out infinite; }
@keyframes bellWiggle {
  0%, 90%, 100% { transform: rotate(0); }
  93% { transform: rotate(12deg); }
  96% { transform: rotate(-12deg); }
}
.notif-bell-btn.has-unread > span:first-child {
  display: inline-block;
  animation: bellWiggle 2s ease-in-out infinite;
  transform-origin: 50% 0;
}

/* ===== CTA BTN ===== */
.cta-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000; border-radius: 14px;
  font-weight: 900; font-size: 1rem;
  letter-spacing: 0.5px; margin-top: 14px;
  transition: 0.2s;
  font-family: var(--font-am);
}
.cta-btn:active { transform: scale(0.97); }

/* ===== LOBBY ===== */
.lobby-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px;
  min-height: calc(100vh - 140px);
  text-align: center;
}
.lobby-spinner {
  width: 60px; height: 60px;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinning { animation: spin 0.6s linear infinite; }
.lobby-title { font-family: var(--font-am); font-size: 1rem; font-weight: 700; }
.lobby-count { font-size: 1.4rem; font-weight: 900; color: var(--gold); font-family: var(--font-head); }
.lobby-players {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; max-width: 300px;
}
.lp-chip {
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 600;
}
.lp-chip.lp-bot { color: rgba(255,255,255,0.45); }
.lp-chip.lp-real { color: var(--cyan); border-color: rgba(52,211,153,0.3); }
.cancel-btn {
  padding: 10px 28px; border-radius: 12px;
  background: rgba(255,68,68,0.15); border: 1px solid rgba(255,68,68,0.3);
  color: var(--red); font-weight: 700; font-size: 0.88rem;
  transition: 0.2s;
}
.cancel-btn:active { transform: scale(0.95); }

/* ===== GAME SCREEN ===== */
#screen-game { padding: 8px 8px 20px; }

.game-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg3); border-radius: 12px;
  padding: 8px 12px; margin-bottom: 8px;
  border: 1px solid var(--border);
}
.gtb-left { display: flex; align-items: center; gap: 8px; }
.gtb-round {
  font-size: 0.65rem; font-weight: 800;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
}
.gtb-players { font-size: 0.7rem; color: var(--cyan); font-weight: 600; }
.gtb-prize {
  font-size: 0.8rem; font-weight: 900; color: var(--gold);
  font-family: var(--font-head);
  text-shadow: 0 0 14px rgba(167,139,250,0.4);
}
.gtb-leave {
  padding: 5px 12px; border-radius: 8px;
  background: rgba(255,68,68,0.12); border: 1px solid rgba(255,68,68,0.25);
  color: var(--red); font-size: 0.7rem; font-weight: 700;
  transition: 0.2s;
}
.gtb-leave:active { transform: scale(0.93); }

.game-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* LEFT: CALL ZONE */
.call-zone {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.call-zone-title {
  font-size: 0.55rem; font-weight: 900;
  letter-spacing: 2px; text-align: center;
  color: var(--text-dim); text-transform: uppercase;
}

.bingo-headers {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.bh {
  text-align: center;
  font-size: 0.7rem; font-weight: 900;
  font-family: var(--font-head);
  padding: 3px 0;
  border-radius: 4px;
}
.bh-b { color: #ff5252; background: rgba(255,82,82,0.1); }
.bh-i { color: #a78bfa; background: rgba(167,139,250,0.1); }
.bh-n { color: #00e676; background: rgba(0,230,118,0.1); }
.bh-g { color: #34d399; background: rgba(52,211,153,0.1); }
.bh-o { color: #e040fb; background: rgba(224,64,251,0.1); }

.current-call-wrap {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,0.35);
  border-radius: 12px; padding: 8px 4px;
  border: 1px solid rgba(167,139,250,0.15);
}
.current-call-letter {
  font-size: 0.65rem; font-weight: 900;
  color: var(--gold); letter-spacing: 1px;
  font-family: var(--font-head);
}
.current-call-number {
  font-size: 2rem; font-weight: 900;
  line-height: 1;
  font-family: var(--font-head);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: numberPop 0.35s ease;
}
@keyframes numberPop {
  from { transform: scale(1.4); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.call-history {
  display: flex; gap: 4px; overflow-x: auto;
  padding: 2px 0; scrollbar-width: none;
}
.call-history::-webkit-scrollbar { display: none; }
.ch-ball {
  min-width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; flex-shrink: 0;
  color: #000;
}
.chb-b { background: linear-gradient(135deg, #ff5252, #ff1744); color: #fff; }
.chb-i { background: linear-gradient(135deg, #ec4899, #a78bfa); }
.chb-n { background: linear-gradient(135deg, #00c853, #00e676); }
.chb-g { background: linear-gradient(135deg, #8b5cf6, #34d399); color: #fff; }
.chb-o { background: linear-gradient(135deg, #aa00ff, #e040fb); color: #fff; }

.called-list-label { font-size: 0.52rem; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.called-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px 2px;
}
.cg-col-header {
  text-align: center;
  font-size: 0.6rem; font-weight: 900;
  font-family: var(--font-head);
  padding: 2px 0;
  border-radius: 4px;
  margin-bottom: 1px;
}
.cg-col-header.cg-hb { color: #ff5252; background: rgba(255,82,82,0.15); }
.cg-col-header.cg-hi { color: #a78bfa; background: rgba(167,139,250,0.15); }
.cg-col-header.cg-hn { color: #00e676; background: rgba(0,230,118,0.15); }
.cg-col-header.cg-hg { color: #34d399; background: rgba(52,211,153,0.15); }
.cg-col-header.cg-ho { color: #e040fb; background: rgba(224,64,251,0.15); }
.cg-num {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.52rem; font-weight: 700;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.cg-num.cg-called { color: #000; }
.cg-num.cg-b.cg-called { background: linear-gradient(135deg,#ff5252,#ff1744); color: #fff; }
.cg-num.cg-i.cg-called { background: linear-gradient(135deg,#ec4899,#a78bfa); }
.cg-num.cg-n.cg-called { background: linear-gradient(135deg,#00c853,#00e676); }
.cg-num.cg-g.cg-called { background: linear-gradient(135deg,#8b5cf6,#34d399); color: #fff; }
.cg-num.cg-o.cg-called { background: linear-gradient(135deg,#aa00ff,#e040fb); color: #fff; }

/* RIGHT: PLAYER CARD */
.player-card-zone {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.pcz-label {
  font-size: 0.55rem; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim);
}

.bingo-card-header {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px; width: 100%;
}
.bch {
  text-align: center;
  font-size: 0.7rem; font-weight: 900;
  font-family: var(--font-head);
  padding: 3px 0; border-radius: 4px;
}
.bch-b { color: #ff5252; background: rgba(255,82,82,0.12); }
.bch-i { color: #a78bfa; background: rgba(167,139,250,0.12); }
.bch-n { color: #00e676; background: rgba(0,230,118,0.12); }
.bch-g { color: #34d399; background: rgba(52,211,153,0.12); }
.bch-o { color: #e040fb; background: rgba(224,64,251,0.12); }

.bingo-card {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 3px; width: 100%;
}
.gc-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-weight: 700; font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  position: relative;
}
.gc-cell:active { transform: scale(0.88); }
.gc-cell.gc-free { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #000; font-size: 0.55rem; font-weight: 900; cursor: default; }
.gc-cell.gc-called {
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.06);
}
.gc-cell.gc-daubed {
  background: linear-gradient(135deg, rgba(52,211,153,0.3), rgba(139,92,246,0.2));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(52,211,153,0.2);
}
.gc-cell.gc-win {
  animation: winCell 0.5s ease-in-out infinite alternate;
}
@keyframes winCell {
  from { box-shadow: 0 0 8px rgba(167,139,250,0.3); border-color: var(--gold); }
  to   { box-shadow: 0 0 22px rgba(167,139,250,0.7); border-color: var(--gold2); }
}

.bingo-shout-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #ff4444, #ff1744);
  color: #fff; border-radius: 12px;
  font-weight: 900; font-size: 1rem;
  letter-spacing: 2px; opacity: 0.6;
  pointer-events: auto;
  transition: all 0.3s;
  font-family: var(--font-head);
  border: 2px solid rgba(255,100,100,0.4);
}
.bingo-shout-btn.ready {
  opacity: 1;
  border-color: #ff1744;
  box-shadow: 0 0 18px rgba(255,68,68,0.5);
  animation: bingoBtnPulse 0.8s ease-in-out infinite alternate;
}
@keyframes bingoBtnPulse {
  from { box-shadow: 0 0 18px rgba(255,68,68,0.4); }
  to   { box-shadow: 0 0 36px rgba(255,68,68,0.7); }
}
.bingo-shout-btn:active { transform: scale(0.96); }

/* Players strip */
.players-strip {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 0 2px;
  scrollbar-width: none; margin-top: 6px;
}
.players-strip::-webkit-scrollbar { display: none; }
.ps-chip {
  flex-shrink: 0;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 0.65rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.ps-chip.ps-self { color: var(--cyan); border-color: rgba(52,211,153,0.3); }
.ps-chip.ps-bot { color: var(--text-dim); }
.ps-chip.ps-out { opacity: 0.35; text-decoration: line-through; }

/* ===== RESULT ===== */
.result-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px;
  min-height: calc(100vh - 140px); text-align: center;
}
.result-emoji { font-size: 4.5rem; animation: resultPop 0.5s ease; }
@keyframes resultPop {
  from { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.result-title {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-head);
}
.result-title.loss {
  background: linear-gradient(135deg, #ff4444, #ff1744);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result-amount { font-size: 2rem; font-weight: 900; color: var(--cyan); font-family: var(--font-head); }
.result-amount.loss { color: var(--red); }
.result-winner { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }
.result-sub { font-size: 0.8rem; color: var(--text-dim); font-family: var(--font-am); }

/* ===== DEPOSIT ===== */
.deposit-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 16px;
}
.dc-title { font-size: 1rem; font-weight: 700; color: var(--cyan); margin-bottom: 14px; font-family: var(--font-am); }
.dc-field-label { font-size: 0.68rem; color: var(--text-dim); margin-top: 12px; margin-bottom: 4px; font-family: var(--font-am); }
.dc-field-val { font-weight: 700; font-size: 1rem; }
.dc-copy-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.4);
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border);
}
.dc-copy-row span { font-weight: 700; color: var(--cyan); letter-spacing: 1.5px; font-size: 0.95rem; }
.copy-btn {
  padding: 6px 12px; border-radius: 7px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 600;
  transition: 0.2s;
}
.copy-btn:active { transform: scale(0.93); background: rgba(255,255,255,0.15); }

.dc-input {
  width: 100%; padding: 12px 14px; margin-top: 4px;
  border-radius: 10px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.25s;
}
.dc-input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(52,211,153,0.12); }
.dc-input::placeholder { color: rgba(255,255,255,0.2); }

.history-section { margin-top: 20px; }
.hs-title { font-size: 0.8rem; font-weight: 700; color: var(--cyan); margin-bottom: 10px; font-family: var(--font-am); }

.history-list { display: flex; flex-direction: column; gap: 7px; }
.hist-gidrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hist-viewgame {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.62rem; font-weight: 700; color: var(--gold, #e6b545);
  background: rgba(230,181,69,0.12); border: 1px solid rgba(230,181,69,0.35);
  border-radius: 6px; padding: 1px 7px; cursor: pointer; line-height: 1.5;
}
.hist-viewgame:active { transform: scale(0.96); }
.hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border-left: 3px solid var(--cyan);
  font-size: 0.82rem;
  transition: background 0.2s;
}
.hist-item.hist-dep { border-left-color: var(--green); }
.hist-item.hist-win { border-left-color: var(--gold); }
.hist-item.hist-bet { border-left-color: var(--red); }
.hist-item.hist-withdraw { border-left-color: var(--cyan); }

.hist-left  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hist-label { font-weight: 600; font-family: var(--font-am); font-size: 0.83rem; overflow: hidden; }
.hist-date { font-size: 0.62rem; color: var(--text-dim); margin-top: 2px; font-family: var(--font-main); letter-spacing: 0.3px; }
.hist-date  { font-size: 0.62rem; color: rgba(255,255,255,0.35); font-family: var(--font-main); }
.hist-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.hist-amount { font-weight: 800; font-size: 0.9rem; }
.hist-amount.pos { color: var(--green); }
.hist-amount.neg { color: var(--red); }

/* Status badges */
.hist-badge {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-main);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.hist-badge-pending   { background: rgba(255,165,0,0.18);  color: #f472b6; }
.hist-badge-approved  { background: rgba(0,200,83,0.18);   color: #00c853; }
.hist-badge-cancelled { background: rgba(255,68,68,0.18);  color: #ff4444; }

/* keep old class for backward compat */
.hist-status { font-size: 0.62rem; color: rgba(167,139,250,0.8); font-style: italic; }

/* ===== CONFETTI ===== */
.confetti-wrap {
  position: fixed; inset: 0; pointer-events: none; z-index: 9990; overflow: hidden;
}
.conf-piece {
  position: absolute; top: -12px;
  animation: confFall linear forwards;
}
@keyframes confFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== GIFT OVERLAY (admin broadcast) ===== */
.gift-overlay{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.72);backdrop-filter:blur(3px);animation:giftFade .25s ease;padding:24px}
@keyframes giftFade{from{opacity:0}to{opacity:1}}
.gift-card{width:100%;max-width:320px;text-align:center;padding:26px 22px;border-radius:24px;
  background:linear-gradient(160deg,#1a1f3a,#0d1024);border:1px solid rgba(167,139,250,.35);
  box-shadow:0 0 40px rgba(167,139,250,.25);animation:giftPop .35s cubic-bezier(.2,.8,.3,1.2)}
@keyframes giftPop{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
.gift-title{font-size:1.15rem;font-weight:800;color:#a78bfa;margin-bottom:16px}
/* Transparent PNGs render with NO background box, so their transparency shows through. */
.gift-img{max-width:160px;max-height:160px;object-fit:contain;margin:0 auto 14px;display:block;background:transparent}
.gift-emoji{font-size:76px;margin-bottom:14px}
.gift-amount{font-size:1.8rem;font-weight:800;color:#00e676;margin-bottom:20px}
.gift-claim-btn{width:100%;padding:15px;border:none;border-radius:16px;font-size:1.05rem;font-weight:800;
  color:#0d1024;background:linear-gradient(135deg,#a78bfa,#ec4899);cursor:pointer}
.gift-claim-btn:disabled{opacity:.6}
/* Admin preview — a checkered ground so transparency is visible while composing. */
.gift-admin-preview{display:flex;flex-direction:column;align-items:center;gap:8px;margin:12px 0;padding:14px;border-radius:14px;
  background-color:#2a2a2a;
  background-image:linear-gradient(45deg,#3a3466 25%,transparent 25%),linear-gradient(-45deg,#3a3466 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#3a3466 75%),linear-gradient(-45deg,transparent 75%,#3a3466 75%);
  background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.gift-admin-img{max-width:120px;max-height:120px;object-fit:contain;background:transparent}
.gift-admin-emoji{font-size:56px}
.gift-admin-amt{font-size:1.1rem;font-weight:800;color:#00e676}
/* Gift campaign banner (pre countdown / after image) — fills the announcement slot. */
.gift-banner{background-size:cover;background-position:center;background-repeat:no-repeat;
  display:flex;align-items:center;justify-content:center}
.gift-banner-nobg{background:linear-gradient(135deg,#3a2a00,#1a1030)}
.gift-banner-inner{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6px;background:rgba(0,0,0,.42)}
.gbc-label{font-size:.95rem;font-weight:700;color:#a78bfa;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.gbc-time{font-family:var(--font-orbitron,monospace);font-size:1.9rem;font-weight:900;color:#fff;letter-spacing:2px;
  text-shadow:0 2px 8px rgba(0,0,0,.7)}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* No-players state */
.sc-no-players-label {
  font-size: 0.62rem; color: rgba(255,255,255,0.25);
  font-family: var(--font-am);
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

/* Call counter in game topbar */
.gtb-call-count {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== ADMIN PANEL ===== */
#screen-admin { padding-bottom:40px; overflow-y:auto; height:100%; }
.admin-stats-row { display:flex; gap:10px; padding:12px 16px 0; }
.admin-stat-box { flex:1; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:12px 8px; text-align:center; }
.asb-val { font-family:var(--font-main); font-size:1.4rem; font-weight:900; color:#a78bfa; }
.asb-lbl { font-size:0.6rem; color:rgba(255,255,255,0.4); font-family:var(--font-am); margin-top:2px; }
.admin-tabs { display:flex; gap:8px; padding:14px 16px 6px; }
.admin-tab { flex:1; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:20px; color:rgba(255,255,255,0.5); font-size:0.72rem; font-family:var(--font-main); padding:8px 4px; cursor:pointer; transition:all 0.2s; }
.admin-tab.active { background:rgba(167,139,250,0.15); border-color:rgba(167,139,250,0.4); color:#a78bfa; }
.admin-panel { padding:10px 6px; }
.admin-list { display:flex; flex-direction:column; gap:10px; }
.admin-empty { text-align:center; color:rgba(255,255,255,0.3); font-family:var(--font-am); padding:40px 0; font-size:0.85rem; }
.admin-window-hint { text-align:center; color:rgba(255,255,255,0.4); font-family:var(--font-am); font-size:0.72rem; padding:2px 0 4px; }
.admin-card { background:rgba(255,255,255,0.04); border-radius:14px; padding:14px; border-left:3px solid transparent; display:flex; flex-direction:column; gap:8px; }
.acard-pending  { border-left-color:#f472b6; background:rgba(255,165,0,0.06); }
.acard-approved { border-left-color:#00c853; background:rgba(0,200,83,0.05); }
.acard-cancelled{ border-left-color:#ff4444; background:rgba(255,68,68,0.05); }
.acard-user     { border-left-color:#00b4d8; background:rgba(0,180,216,0.05); }
.ac-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ac-meta { font-size:0.72rem; color:rgba(255,255,255,0.5); font-family:var(--font-am); flex-wrap:wrap; }
.ac-user { flex:1; min-width:0; }
.ac-name { font-family:var(--font-main); font-size:0.88rem; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ac-uid { font-size:0.65rem; color:rgba(255,255,255,0.35); font-family:var(--font-main); }
.ac-amount { font-family:var(--font-main); font-weight:800; font-size:1rem; flex-shrink:0; }
.ac-amount.pos { color:#00c853; } .ac-amount.neg { color:#ff4444; }
.ac-status { font-size:0.72rem; font-family:var(--font-main); font-weight:600; }
.st-pending { color:#f472b6; } .st-approved { color:#00c853; } .st-cancelled { color:#ff4444; }
.ac-actions { display:flex; gap:8px; margin-top:4px; }
.ac-btn { flex:1; padding:9px 6px; border:none; border-radius:10px; font-size:0.78rem; font-family:var(--font-main); font-weight:700; cursor:pointer; transition:transform 0.15s; }
.ac-btn:active { transform:scale(0.96); }
.ac-approve { background:linear-gradient(135deg,#00c853,#007c39); color:#fff; }
.ac-cancel  { background:linear-gradient(135deg,#ff4444,#b71c1c); color:#fff; }

/* Call counter */
.gtb-call-count { font-family:var(--font-main); font-size:0.72rem; font-weight:700; color:rgba(255,255,255,0.7); background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:20px; padding:4px 10px; letter-spacing:0.5px; white-space:nowrap; }

/* ===== WITHDRAW SCREEN ===== */
.withdraw-balance-box { display:flex; align-items:center; justify-content:space-between; background:rgba(255,165,0,0.08); border:1px solid rgba(255,165,0,0.25); border-radius:12px; padding:14px 18px; margin-bottom:18px; }
.wbb-label { font-family:var(--font-am); font-size:0.82rem; color:var(--text-dim); }
.wbb-amount { font-family:var(--font-main); font-size:1.15rem; font-weight:700; color:#f472b6; }
.withdraw-note { display:flex; gap:8px; align-items:flex-start; background:rgba(255,200,0,0.06); border:1px solid rgba(255,200,0,0.18); border-radius:10px; padding:12px 14px; margin:14px 0; font-family:var(--font-am); font-size:0.78rem; color:rgba(255,220,100,0.85); line-height:1.5; }
.withdraw-cta { background:linear-gradient(135deg,#ff8c00,#e65c00) !important; box-shadow:0 4px 18px rgba(255,100,0,0.35) !important; }

/* ===== WALLET MODAL ===== */
.wallet-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:900; backdrop-filter:blur(6px); }
.wallet-modal-overlay.active { display:block; }
.wallet-modal { display:none; position:fixed; left:50%; top:50%; transform:translate(-50%,-40%) scale(0.92); width:min(320px,88vw); background:linear-gradient(160deg,#1c1c3a 0%,#12122a 100%); border:1px solid rgba(255,255,255,0.1); border-radius:24px; z-index:901; opacity:0; transition:opacity 0.25s ease,transform 0.28s cubic-bezier(0.34,1.4,0.64,1); overflow:hidden; box-shadow:none; }
.wallet-modal.active { display:block; opacity:1; transform:translate(-50%,-50%) scale(1); }
.wallet-modal::before { content:''; display:block; height:3px; background:linear-gradient(90deg,#a78bfa,#ff8c00,#a78bfa); background-size:200% 100%; animation:wm-shine 2.5s linear infinite; }
@keyframes wm-shine { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.wm-inner { padding:22px 20px 24px; }
.wm-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.wm-label { font-family:var(--font-am); font-size:0.78rem; color:rgba(255,255,255,0.4); }
.wm-close-btn { background:rgba(255,255,255,0.08); border:none; color:rgba(255,255,255,0.5); width:28px; height:28px; border-radius:50%; font-size:0.9rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.wm-balance-row { display:flex; align-items:baseline; gap:8px; margin-bottom:22px; padding:16px; background:rgba(167,139,250,0.06); border-radius:14px; border:1px solid rgba(167,139,250,0.15); }
.wm-coin { font-size:1.4rem; }
.wm-balance { font-family:var(--font-main); font-size:1.9rem; font-weight:900; color:#a78bfa; flex:1; }
.wm-curr-tag { font-family:var(--font-main); font-size:0.75rem; color:rgba(167,139,250,0.5); font-weight:600; align-self:center; }
/* Admin panel header refresh, next to "More Option" */
.admin-refresh-btn { width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:rgba(213,0,249,0.14); border:1px solid rgba(213,0,249,0.30); border-radius:50%; cursor:pointer; flex-shrink:0; }
.admin-refresh-btn:active { transform:scale(.9); }
.admin-refresh-btn img { width:17px; height:17px; }
.wm-refresh { align-self:center; width:34px; height:34px; padding:0; margin-left:6px; display:inline-flex; align-items:center; justify-content:center; background:rgba(167,139,250,0.10); border:1px solid rgba(167,139,250,0.22); border-radius:50%; cursor:pointer; flex-shrink:0; }
.wm-refresh:active { transform:scale(.9); }
.wm-refresh img { width:18px; height:18px; }
.wm-buttons { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.wm-btn { display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 10px; border:none; border-radius:16px; cursor:pointer; transition:transform 0.15s; }
.wm-btn:active { transform:scale(0.95); }
.wm-btn-icon { font-size:1.8rem; line-height:1; }
.wm-btn-name { font-family:var(--font-main); font-size:0.9rem; font-weight:800; color:#fff; }
.wm-btn-sub { font-size:0.65rem; font-family:var(--font-am); color:rgba(255,255,255,0.7); }
.wm-deposit { background:linear-gradient(145deg,#00b248,#005c28); box-shadow:none; }
.wm-withdraw { background:linear-gradient(145deg,#e67e00,#7a3800); box-shadow:none; }

/* ═══════════════════════════════════════════════════════
   NOTIFICATION MODAL
════════════════════════════════════════════════════════ */
.notif-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1100;opacity:0;pointer-events:none;transition:opacity .25s}
.notif-overlay.active{opacity:1;pointer-events:all}
.notif-modal{position:fixed;bottom:-100%;left:0;right:0;max-height:75vh;background:var(--card-bg,#1a1a2e);border-radius:22px 22px 0 0;z-index:1101;display:flex;flex-direction:column;transition:bottom .3s cubic-bezier(.4,0,.2,1)}
.notif-modal.active{bottom:0}
.notif-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;border-bottom:1px solid rgba(255,255,255,.08)}
.notif-modal-title{font-size:1rem;font-weight:700;color:#fff}
.notif-close-btn{background:none;border:none;color:rgba(255,255,255,.5);font-size:1.1rem;cursor:pointer;padding:4px 8px}
.notif-list{overflow-y:auto;flex:1;padding:8px 0}
.notif-empty{text-align:center;color:rgba(255,255,255,.35);padding:32px;font-size:.85rem}
.notif-item{padding:12px 18px;border-bottom:1px solid rgba(255,255,255,.06);transition:background .15s}
.notif-item.notif-unread{background:rgba(196,181,253,.07);border-left:3px solid #c4b5fd}
.notif-item-from{font-size:.7rem;font-weight:700;color:#c4b5fd;margin-bottom:3px}
.notif-item-msg{font-size:.82rem;color:#e0e0e0;white-space:pre-wrap;line-height:1.5}
.notif-item-time{font-size:.65rem;color:rgba(255,255,255,.3);margin-top:4px}

/* ═══════════════════════════════════════════════════════
   USER PROFILE MODAL
════════════════════════════════════════════════════════ */
.upm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:1200;opacity:0;pointer-events:none;transition:opacity .25s}
.upm-overlay.active{opacity:1;pointer-events:all}
.upm-modal{position:fixed;inset:0;background:#0f0f1a;z-index:1201;overflow-y:auto;transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.upm-modal.active{transform:translateY(0)}
.upm-header{background:linear-gradient(160deg,#1a0533,#0d1b3e);padding:28px 20px 20px;text-align:center;position:relative}
.upm-close{position:absolute;top:14px;right:16px;background:rgba(255,255,255,.1);border:none;color:#fff;width:30px;height:30px;border-radius:50%;font-size:.9rem;cursor:pointer}
.upm-avatar{position:relative;width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#2563eb);display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:700;color:#fff;margin:0 auto 10px;border:3px solid rgba(255,255,255,.15)}
/* Online dot, bottom-right of the avatar (like social apps). */
.upm-dot{position:absolute;bottom:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#22c55e;border:2.5px solid #12161f;box-shadow:0 0 6px rgba(34,197,94,.8)}
.upm-dot.in-game{background:#3b82f6;box-shadow:0 0 6px rgba(59,130,246,.85)}
.upm-presence{font-size:.72rem;margin-top:6px;color:rgba(255,255,255,.55);font-family:var(--font-am)}
.upm-presence .upm-on{color:#22c55e;font-weight:700}
.upm-name{font-size:1.1rem;font-weight:700;color:#fff}
.upm-username{font-size:.8rem;color:rgba(255,255,255,.5);margin-top:2px}
.upm-uid{font-size:.7rem;color:rgba(255,255,255,.3);margin-top:2px}
.upm-balance-badge{display:inline-block;background:rgba(0,230,118,.15);color:#00e676;border:1px solid rgba(0,230,118,.3);border-radius:20px;padding:4px 14px;font-size:.85rem;font-weight:700;margin-top:8px}
.upm-wager-badge{display:inline-block;background:rgba(255,183,0,.14);color:#fbbf24;border:1px solid rgba(255,183,0,.35);border-radius:20px;padding:3px 12px;font-size:.72rem;font-weight:700;margin-top:6px}
.upm-joined{font-size:.72rem;color:rgba(255,255,255,.4);padding:8px 18px;border-bottom:1px solid rgba(255,255,255,.06)}
.upm-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(255,255,255,.06);margin:0}
.upm-stat{background:#0f0f1a;padding:10px 6px;text-align:center}
.upm-stat-val{font-size:1rem;font-weight:700;color:#fff}
.upm-stat-lbl{font-size:.6rem;color:rgba(255,255,255,.4);margin-top:2px}
/* 3 across × 2 rows so the six actions aren't cramped into one scrolling line. */
.upm-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 16px}
.upm-btn{padding:11px 6px;border-radius:10px;border:none;font-size:.78rem;font-weight:700;cursor:pointer;line-height:1.25;min-width:0}
.upm-btn-msg{background:linear-gradient(135deg,#5500cc,#8833ff);color:#fff}
.upm-btn-bal{background:linear-gradient(135deg,#6d28d9,#7c3aed);color:#fff}
.upm-btn-chat{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff}
.upm-btn-wager{background:rgba(255,183,0,.16);color:#fbbf24;border:1px solid rgba(255,183,0,.4)}
.upm-tx-title{font-size:.75rem;font-weight:700;color:rgba(255,255,255,.5);padding:10px 18px 6px;border-top:1px solid rgba(255,255,255,.06)}
/* ===== daily games-played strip (under the tx title) ===== */
.upm-daily{margin:2px 12px 8px;border:1px solid rgba(255,255,255,.08);border-radius:12px;
  background:rgba(255,255,255,.02);padding:9px 4px 9px 9px}
.upm-daily .dg-row{display:flex;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:2px}
.upm-daily .dg-row::-webkit-scrollbar{height:4px}
.upm-daily .dg-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:4px}
.upm-daily .dg-chip{flex:none;display:flex;align-items:center;gap:5px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  border-radius:999px;padding:4px 9px 4px 6px;white-space:nowrap}
.upm-daily .dg-gi{width:19px;height:19px;display:grid;place-items:center;font-size:13px;
  border-radius:50%;background:rgba(255,255,255,.06);flex:none;overflow:hidden}
.upm-daily .dg-gi .ic{height:15px;width:15px}
.upm-daily .dg-gn{font-size:.72rem;color:rgba(255,255,255,.62);font-weight:600}
.upm-daily .dg-gc{font-size:.8rem;font-weight:800;color:#fff;font-variant-numeric:tabular-nums}
.upm-daily .dg-empty{flex:none;font-size:.72rem;color:rgba(255,255,255,.4);padding:3px 6px}
.upm-daily .dg-date{flex:none;display:flex;align-items:center;gap:5px;margin-left:2px;
  background:transparent;border:1px dashed rgba(255,255,255,.22);border-radius:999px;
  padding:4px 10px;color:var(--cyan);font-weight:700;font-size:.72rem;cursor:pointer;position:relative}
.upm-daily .dg-date input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.upm-daily .dg-reload{flex:none;margin-left:auto;background:transparent;border:1px solid rgba(255,255,255,.16);
  border-radius:999px;padding:3px 8px;color:var(--cyan);font-size:.82rem;line-height:1;cursor:pointer}
.upm-daily .dg-reload:disabled{opacity:.5;cursor:default}
.upm-daily .dg-reload:active{transform:scale(.92)}
.upm-daily .dg-total{display:flex;align-items:baseline;gap:7px;margin-top:8px;padding-top:7px;
  border-top:1px solid rgba(255,255,255,.07)}
.upm-daily .dg-tl{font-size:.68rem;color:rgba(255,255,255,.4)}
.upm-daily .dg-tv{font-size:.78rem;font-weight:800;color:var(--gold);font-variant-numeric:tabular-nums}
.upm-daily .dg-td{margin-left:auto;font-size:.68rem;color:var(--cyan);font-weight:700;font-variant-numeric:tabular-nums}
.upm-tx-list{padding:0 12px 24px}
.upm-tx-item{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 8px;border-bottom:1px solid rgba(255,255,255,.05)}
.upm-tx-label{font-size:.78rem;color:#e0e0e0;font-weight:600}
/* ETFC/EFN share the boxing PNG (game-etfc.png). It stays full-colour on the
   game-select screen, but in transaction history it renders as a white silhouette
   so it matches the other monochrome tx icons. Scoped to tx-history only. */
.upm-tx-label .ic[src$="game-etfc.png"],
.hist-label .ic[src$="game-etfc.png"]{ filter:brightness(0) invert(1); }
.upm-tx-date{font-size:.63rem;color:rgba(255,255,255,.35);margin-top:2px}
.upm-tx-amt{font-size:.82rem;font-weight:700}
.upm-tx-status{font-size:.65rem;font-weight:600;margin-top:3px}
.upm-dep .upm-tx-amt{color:#00e676}
.upm-wd .upm-tx-amt{color:#ffa726}
.upm-win .upm-tx-amt{color:#fbbf24}
.upm-stake .upm-tx-amt{color:#ef5350}

/* ═══════════════════════════════════════════════════════
   SEND MESSAGE MODAL
════════════════════════════════════════════════════════ */
.smm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:1300;opacity:0;pointer-events:none;transition:opacity .25s}
.smm-overlay.active{opacity:1;pointer-events:all}
.smm-modal{position:fixed;bottom:-100%;left:0;right:0;background:#1a1a2e;border-radius:22px 22px 0 0;padding:20px 18px 32px;z-index:1301;transition:bottom .3s cubic-bezier(.4,0,.2,1)}
.smm-modal.active{bottom:0}
.smm-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.smm-title{font-size:.95rem;font-weight:700;color:#fff}
.smm-close{background:none;border:none;color:rgba(255,255,255,.5);font-size:1rem;cursor:pointer}
.smm-to{font-size:.75rem;color:#c4b5fd;margin-bottom:10px;font-weight:600}
.smm-textarea{width:100%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:12px;color:#fff;font-size:.88rem;padding:12px;resize:none;box-sizing:border-box;font-family:var(--font-am,'Noto Sans Ethiopic',sans-serif)}
.smm-send-btn{width:100%;margin-top:12px;padding:13px;background:linear-gradient(135deg,#5500cc,#8833ff);color:#fff;border:none;border-radius:12px;font-size:.9rem;font-weight:700;cursor:pointer}

/* ═══════════════════════════════════════════════════════
   DEPOSIT HISTORY — rejected + resubmit
════════════════════════════════════════════════════════ */
.hist-rejected{border-left:3px solid #ff4444 !important;background:rgba(255,68,68,.05) !important}
.resubmit-btn{margin-top:5px;padding:4px 12px;background:rgba(255,165,0,.15);color:#f472b6;border:1px solid rgba(255,165,0,.3);border-radius:8px;font-size:.7rem;font-weight:700;cursor:pointer}

/* ═══════════════════════════════════════════════════════
   SETTINGS PANEL
════════════════════════════════════════════════════════ */
.settings-panel{padding:14px 0;display:flex;flex-direction:column;gap:14px}
/* The Commission box injects several .settings-card at once; it's one flex child of
   the panel, so those inner cards miss the panel's gap and touch. Give the box its
   own matching gap so every settings card is evenly spaced. */
#settingsCommissionBox{display:flex;flex-direction:column;gap:14px}
.settings-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px}
/* Admin tabs (More Option) stack .settings-card directly in #moContent, which has no
   flex gap like the settings panel does — space them so cards don't touch/overlap. */
.mo-content .settings-card{margin-bottom:14px}
.mo-content .settings-card:last-child{margin-bottom:0}
.settings-card-title{font-size:.9rem;font-weight:700;color:#fff;margin-bottom:4px}
.settings-card-sub{font-size:.7rem;color:rgba(255,255,255,.4);margin-bottom:14px;line-height:1.5}
/* Collapsible settings cards: collapsed by default, tap the title to expand. Only
   the title stays visible while collapsed; a chevron shows the state. Scoped to the
   settings panel so admin views that reuse .settings-card are unaffected. */
.settings-panel .settings-card-title{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:0}
.settings-panel .settings-card-title::after{content:"⌄";font-size:1.1rem;line-height:1;opacity:.55;transition:transform .2s;flex-shrink:0}
.settings-panel .settings-card.open .settings-card-title{margin-bottom:4px}
.settings-panel .settings-card.open .settings-card-title::after{transform:rotate(180deg)}
.settings-panel .settings-card:not(.open) > *:not(.settings-card-title){display:none !important}
.settings-field-label{font-size:.72rem;color:rgba(255,255,255,.55);margin-bottom:5px;margin-top:10px}
.settings-field-label:first-of-type{margin-top:0}
.settings-input{width:100%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:10px;color:#fff;font-size:.85rem;padding:10px 12px;box-sizing:border-box;font-family:inherit}
.settings-input:focus{outline:none;border-color:rgba(196,181,253,.5)}
.settings-textarea{resize:none;min-height:72px}
.settings-save-btn{width:100%;margin-top:14px;padding:12px;background:linear-gradient(135deg,#6d28d9,#7c3aed);color:#fff;border:none;border-radius:11px;font-size:.88rem;font-weight:700;cursor:pointer}
/* Deposit account presets (tap to switch) */
.dep-presets{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.dep-preset-empty{font-size:.72rem;color:var(--text-dim);padding:4px 0}
.dep-preset{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:8px 10px;cursor:pointer}
.dep-preset:active{transform:scale(.98)}
.dep-preset-info{flex:1 1 auto;min-width:0}
.dep-preset-name{font-size:.82rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dep-preset-phone{font-size:.74rem;color:var(--text-dim)}
.dep-preset-x{flex:0 0 auto;background:none;border:none;color:#ff6b6b;font-size:.9rem;cursor:pointer;padding:2px 4px}

/* Admin Game ID viewer */
.gid-controls{display:flex;flex-direction:column;gap:10px}
.gid-row{display:flex;gap:8px;align-items:center}
.gid-row .settings-input{flex:1}
.gid-count{font-size:.72rem;color:rgba(255,255,255,.45);margin:12px 2px 8px;font-family:var(--font-am)}
.gid-card{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:12px 14px;margin-bottom:10px}
.gid-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.gid-id{font-size:.8rem;font-weight:700;color:#ffd54f;font-family:monospace;word-break:break-all}
.gid-badge{font-size:.68rem;font-weight:700;color:#fff;background:rgba(196,181,253,.22);border:1px solid rgba(196,181,253,.4);border-radius:8px;padding:2px 9px;white-space:nowrap}
.gid-line{font-size:.76rem;color:rgba(255,255,255,.82);margin:3px 0;font-family:var(--font-am);line-height:1.5}
.gid-line b{color:#fff}
.gid-view-btn{margin-top:8px;padding:7px 14px;border:none;border-radius:9px;cursor:pointer;font-family:var(--font-am);font-size:.78rem;font-weight:700;color:#fff;background:linear-gradient(135deg,#0f9d58,#12c85a);box-shadow:0 3px 10px rgba(18,200,90,.3)}
.gid-view-btn:active{transform:scale(.96)}
.gid-when{color:rgba(255,255,255,.4);font-size:.68rem;margin-top:6px}
.mini-btn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;border-radius:10px;padding:9px 12px;font-size:.75rem;cursor:pointer;white-space:nowrap;font-family:var(--font-am)}
.gid-tap{cursor:pointer;transition:background .12s}
.gid-tap:active{background:rgba(255,255,255,.08)}
.gid-idwrap{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.gid-lbl{font-size:.62rem;color:rgba(255,255,255,.4);font-family:var(--font-am)}
.gid-copy{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:7px;padding:1px 6px;font-size:.7rem;cursor:pointer;line-height:1.4}
.gid-copy:active{transform:scale(.9)}
.gid-back{margin-bottom:12px}
.gid-detail .gid-prize{color:var(--green,#00e676)}
.gid-players-title{font-size:.78rem;font-weight:700;color:#fff;margin:14px 2px 8px;font-family:var(--font-am)}
.gid-prow{display:flex;align-items:center;gap:11px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:9px 11px;margin-bottom:8px;cursor:pointer}
.gid-prow:active{background:rgba(255,255,255,.09)}
.gid-pav{width:40px;height:40px;border-radius:50%;background:#1b2742;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:15px;flex-shrink:0;overflow:hidden}
.gid-pinfo{flex:1;min-width:0}
.gid-pname{font-size:.82rem;font-weight:700;color:#fff;font-family:var(--font-am);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gid-psub{font-size:.68rem;color:rgba(255,255,255,.45);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gid-parrow{color:rgba(255,255,255,.3);font-size:.9rem}
.tx-copy{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:6px;padding:0 5px;font-size:.66rem;cursor:pointer;line-height:1.5;vertical-align:middle}
.tx-copy:active{transform:scale(.9)}

/* Admin game-hub editor */
.game-edit-row{border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:10px;margin-bottom:10px;background:rgba(255,255,255,.03)}
.ge-line{display:flex;gap:8px;align-items:center}
.ge-line .ge-icon{flex:0 0 48px;width:48px;text-align:center;padding:10px 4px}
.ge-line .ge-id{flex:1}
.ge-line .ge-name{flex:1.3}
.ge-del{flex:0 0 auto;background:rgba(255,68,68,.15);border:1px solid rgba(255,68,68,.3);color:#ff6b6b;border-radius:9px;padding:9px 11px;font-size:.9rem;cursor:pointer}
.ge-del:active{transform:scale(.92)}
.ge-ord{flex:0 0 auto;display:flex;flex-direction:column;gap:3px}
.ge-ord button{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#cfd8ea;border-radius:7px;width:26px;height:19px;font-size:.68rem;line-height:1;cursor:pointer;padding:0}
.ge-ord button:active{transform:scale(.9)}
.ge-svc-row{display:flex;gap:8px;align-items:center;margin-top:6px;flex-wrap:wrap}
.ge-svc-toggle{display:flex;align-items:center;gap:6px;font-size:.78rem;color:#ffb74d;white-space:nowrap}
.ge-svc-row .ge-svc1,.ge-svc-row .ge-svc2{flex:1;min-width:110px}

/* A game in service (maintenance) mode for the current viewer */
.game-blocked{opacity:.6;filter:grayscale(.5)}

/* Sidebar links (Support / Channel / Group) — separated from the actions above */
.menu-links{display:flex;flex-direction:column;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}
.menu-links:empty{display:none}

/* ── Mini avatar — admin dep/wd/users cards ─────────────── */
.ac-mini-avatar{
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,#6d28d9,#7c3aed);
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;font-weight:700;color:#fff;
  flex-shrink:0;margin-right:8px;
  background-size:cover;background-position:center;
}
/* Online-status dot overlaid on any avatar (green = online, grey = offline). */
.av-has-dot{position:relative}
.av-dot{position:absolute;bottom:-1px;right:5px;width:11px;height:11px;border-radius:50%;
  border:2px solid #12161f;box-sizing:border-box;background:#6b7280}
.av-dot.on{background:#22c55e}
.av-dot.off{background:#6b7280}
.av-dot.ingame{background:#3b82f6}

/* ── Toggle switch + bonus preview ─────────────────────── */
.settings-toggle-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.toggle-switch{position:relative;display:inline-block;width:48px;height:26px;flex-shrink:0}
.toggle-switch input{opacity:0;width:0;height:0}
.toggle-slider{position:absolute;inset:0;background:rgba(255,255,255,.15);border-radius:26px;cursor:pointer;transition:.3s}
.toggle-slider:before{content:"";position:absolute;width:20px;height:20px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s}
.toggle-switch input:checked + .toggle-slider{background:#00c853}
.toggle-switch input:checked + .toggle-slider:before{transform:translateX(22px)}
.settings-bonus-preview{font-size:.75rem;color:#00e676;margin-top:8px;padding:8px 10px;background:rgba(0,200,83,.08);border-radius:8px;text-align:center}

/* ── Bonus banner ────────────────────────────────────────── */
.bonus-banner{background:linear-gradient(135deg,rgba(0,200,83,.15),rgba(0,230,118,.08));border:1px solid rgba(0,200,83,.35);border-radius:12px;padding:10px 14px;color:#00e676;font-size:.82rem;font-weight:700;text-align:center;margin-bottom:14px;animation:bonusPulse 2s infinite}
@keyframes bonusPulse{0%,100%{opacity:1}50%{opacity:.75}}

/* ── Admin: per-stake bot range grid ─────────────────────── */
.bot-range-grid{display:flex;flex-direction:column;gap:8px;margin:6px 0 4px}
.bot-range-row{display:flex;align-items:center;gap:8px}
.bot-range-row .brr-stake{flex:0 0 70px;font-size:.8rem;font-weight:700;color:var(--text-dim,#aaa)}
.bot-range-row .brr-in{flex:1;min-width:0;text-align:center;margin:0;padding:8px 4px}
.bot-range-row .brr-dash{color:var(--text-dim,#aaa);font-weight:700}

/* ── Auto-mark toggle above the player card ──────────────── */
.auto-daub-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:rgba(255,255,255,.05);border:1px solid rgba(167,139,250,.18);border-radius:10px;
  padding:6px 10px;margin-bottom:8px}
.auto-daub-row .ad-label{font-family:var(--font-am);font-size:.72rem;font-weight:600;color:#a78bfa;line-height:1.15}
/* called-but-not-yet-marked hint (manual mode) */
.gc-cell.gc-callable{box-shadow:inset 0 0 0 2px rgba(52,211,153,.9);animation:callablePulse 1.1s infinite}
@keyframes callablePulse{0%,100%{box-shadow:inset 0 0 0 2px rgba(52,211,153,.9)}50%{box-shadow:inset 0 0 0 2px rgba(52,211,153,.35)}}

/* Bonus wagering (rollover) note on the withdraw screen */
.rollover-note{margin:10px 0 4px;padding:10px 12px;border-radius:10px;background:rgba(255,183,77,.12);border:1px solid rgba(255,183,77,.3);color:#ffb74d;font-size:.8rem;line-height:1.5}

/* Terms & Conditions modal */
.terms-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:1200;display:none}
.terms-overlay.active{display:block}
.terms-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,460px);max-height:82vh;background:#14142a;border:1px solid var(--border);border-radius:16px;z-index:1201;display:none;flex-direction:column;overflow:hidden}
.terms-modal.active{display:flex}
.terms-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);font-weight:700;color:#a78bfa}
.terms-modal-head button{background:none;border:none;color:#fff;font-size:1.1rem;cursor:pointer;line-height:1}
.terms-modal-body{padding:14px 16px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.terms-modal-body h3{color:#34d399;font-size:.95rem;margin:16px 0 6px}
.terms-modal-body h3:first-child{margin-top:0}
.terms-modal-body p,.terms-modal-body li{font-size:.82rem;line-height:1.65;color:rgba(255,255,255,.82);margin:5px 0}
.terms-modal-body ul{padding-left:18px;margin:4px 0}
.terms-modal-body b{color:#fff}

/* ===== LIVE CHAT ===== */
#screen-chat.screen.active { display:flex; flex-direction:column; padding:0; height:calc(100vh - 48px); min-height:0; animation:none; }
#screen-chat .sub-header { flex:0 0 auto; padding:12px 14px; }
.chat-msgs { flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:12px 14px; }
.chat-bubble { max-width:80%; padding:4px 12px; border-radius:14px; font-size:1.13rem; font-weight:600; line-height:1.15; word-break:break-word; }
.chat-bubble .cb-text{ white-space:pre-wrap; word-break:break-word; }
/* Long-press context menu for chat text (copy · copy piece · delete) */
.chat-ctx-menu{ position:fixed; z-index:6000; background:#1a2138; border:1px solid #2a3450; border-radius:12px; padding:6px; box-shadow:0 8px 30px rgba(0,0,0,.6); display:flex; flex-direction:column; gap:2px; min-width:190px; }
.chat-ctx-menu button{ background:transparent; border:none; color:#e8ecf5; text-align:left; padding:12px 14px; border-radius:8px; font-size:.92rem; font-weight:600; cursor:pointer; font-family:inherit; }
.chat-ctx-menu button:active{ background:rgba(255,255,255,.09); }
.chat-ctx-menu .ccx-del{ color:#ff6b6b; }
.chat-bubble.me   { align-self:flex-end; background:linear-gradient(135deg,#8b5cf6,#a78bfa); color:#fff; border-bottom-right-radius:4px; }
.chat-bubble.them { align-self:flex-start; background:rgba(255,255,255,.09); color:#fff; border-bottom-left-radius:4px; }
.chat-bubble .cb-time { display:block; font-size:.58rem; font-weight:400; line-height:1; opacity:.6; margin-top:-1px; text-align:right; }
.chat-bubble.has-photo { padding:4px; }
.chat-bubble.has-video { padding:4px; }
.chat-video { display:block; width:240px; max-width:66vw; max-height:340px; border-radius:10px; background:#000; }
/* Photo tiles are background-image DIVs (no <img>), so the WebView long-press
   "save / copy image link" menu has nothing to target. Aspect-ratio is set per
   image in JS; cover-crop keeps a tidy thumbnail, the full image shows on zoom. */
.chat-photo { display:block; width:200px; max-width:62vw; aspect-ratio:1 / 1; max-height:320px; border-radius:10px; cursor:pointer;
  background:rgba(255,255,255,.05) center/cover no-repeat;
  -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
.chat-seen { align-self:flex-end; font-size:.6rem; color:#a78bfa; margin:-2px 2px 4px; font-weight:700; }
/* Side-menu language switcher. */
.menu-promo { margin-top:10px; padding:10px 12px; border-radius:12px; background:rgba(167,139,250,.07); border:1px solid rgba(167,139,250,.22); }
.menu-promo-label { display:block; font-size:.82rem; font-weight:700; margin-bottom:8px; color:#a78bfa; }
.menu-promo-row { display:flex; gap:8px; }
.menu-promo-input { flex:1; padding:9px 10px; border-radius:9px; border:1px solid var(--border,#3a3466); background:rgba(0,0,0,.25); color:#fff; font-size:.9rem; font-weight:700; font-family:inherit; text-transform:uppercase; letter-spacing:1px; min-width:0; }
.menu-promo-input::placeholder { letter-spacing:normal; opacity:.4; }
.menu-promo-btn { flex:0 0 auto; padding:9px 14px; border-radius:9px; border:none; background:linear-gradient(135deg,#a78bfa,#ec4899); color:#0d1024; font-size:1rem; font-weight:800; cursor:pointer; }
.menu-lang { margin-top:10px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.05); }
.menu-lang-label { display:block; font-size:.82rem; font-weight:700; margin-bottom:8px; opacity:.85; }
.menu-lang-opts { display:flex; gap:8px; }
.menu-lang-btn { flex:1; padding:8px; border-radius:9px; border:1px solid var(--border,#3a3466); background:transparent; color:#e9e4ff; font-size:.82rem; font-weight:700; font-family:inherit; cursor:pointer; }
.menu-lang-btn.on { background:linear-gradient(135deg,#8b5cf6,#a78bfa); color:#fff; border-color:transparent; }
/* Admin TR id's list (More Option → 🔑 TR id's). */
.trids-tabs { display:flex; gap:8px; margin-bottom:12px; }
.trids-tab { flex:1; padding:10px; border-radius:10px; border:1px solid var(--border,#3a3466); background:rgba(255,255,255,.04); color:var(--text-dim,#9fb0d0); font-size:.85rem; font-weight:700; font-family:inherit; cursor:pointer; }
.trids-tab.active { background:linear-gradient(135deg,#8b5cf6,#a78bfa); color:#fff; border-color:transparent; }
.trid-delall { width:100%; padding:10px; margin-bottom:10px; border:none; border-radius:10px; background:rgba(255,68,68,.15); color:#ff6b6b; border:1px solid rgba(255,68,68,.35); font-weight:800; font-size:.85rem; font-family:inherit; cursor:pointer; }
.trid-row-web { cursor:pointer; }
.trid-suggest:empty { display:none; }
.trid-suggest { margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.trid-sg-title { font-size:.72rem; font-weight:800; color:#a78bfa; }
.trid-sg-row { font-size:.76rem; padding:7px 9px; border-radius:8px; background:rgba(77,140,255,.1); border:1px solid rgba(77,140,255,.25); cursor:pointer; word-break:break-all; }
.trid-sg-empty { font-size:.72rem; color:rgba(255,255,255,.4); padding:4px 2px; }
.trid-list { display:flex; flex-direction:column; gap:8px; }
.trid-row { display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:12px; border:1px solid var(--border,#3a3466); background:rgba(255,255,255,.04); }
.trid-main { flex:1; min-width:0; }
.trid-tx { font-weight:700; font-size:.9rem; word-break:break-all; }
.trid-sub { font-size:.72rem; color:var(--sub,#a8a3c7); margin-top:2px; }
.trid-sms { font-size:.68rem; color:rgba(255,255,255,.4); margin-top:3px; word-break:break-all; line-height:1.3; }
.trid-del { flex:0 0 auto; width:38px; height:38px; border-radius:10px; border:none; background:rgba(255,68,68,.15); color:#ff6b6b; font-size:1rem; cursor:pointer; }
.trid-del:active { transform:scale(.92); }
/* FAQ button in the chat header + the option lists (top / bottom). */
.chat-faq-top-btn { flex:0 0 auto; margin-left:auto; background:rgba(213,0,249,.18); color:#e97bff; border:none; border-radius:10px; padding:6px 11px; font-size:.74rem; font-weight:700; font-family:inherit; cursor:pointer; }
.chat-faq-box { flex:0 0 auto; margin:8px 10px 0; padding:8px; border-radius:14px; border:1px solid var(--border,#3a3466); background:var(--card-bg,#1a1640); }
.cfaq-title { font-weight:800; font-size:.85rem; margin:2px 4px 8px; }
.cfaq-item { display:block; width:100%; text-align:left; padding:10px 12px; margin-bottom:6px; border-radius:10px; border:1px solid var(--border,#3a3466); background:rgba(255,255,255,.05); color:#fff; font-size:.85rem; font-weight:600; font-family:inherit; cursor:pointer; }
.cfaq-item:active { transform:scale(.98); }
.cfaq-video-ov { position:fixed; inset:0; z-index:5200; background:rgba(0,0,0,.92); display:flex; align-items:center; justify-content:center; padding:14px; }
.cfaq-video-wrap { position:relative; width:100%; max-width:520px; }
.cfaq-video { width:100%; max-height:78vh; border-radius:12px; background:#000; }
.cfaq-video-close { position:absolute; top:-6px; right:-6px; z-index:2; width:34px; height:34px; border-radius:50%; border:none; background:#ff3b3b; color:#fff; font-size:1rem; font-weight:800; cursor:pointer; }
.cfaq-video-err { color:#ff8888; text-align:center; padding:24px 12px; font-size:.9rem; }
/* Chat quick actions (Deposit / Withdraw / FAQ) above the input — users only. */
.chat-quick-row { flex:0 0 auto; display:flex; gap:6px; padding:6px 10px 0; }
.chat-quick-btn { flex:1; padding:7px 4px; border-radius:11px; border:1px solid var(--border,#3a3466); background:rgba(255,255,255,.05); color:#e9e4ff; font-size:.78rem; font-weight:700; font-family:inherit; cursor:pointer; }
.chat-quick-btn:active { transform:scale(.96); }
/* Deposit/Withdraw guidance flow bar (self-contained, above the input). */
.chat-flow-bar { flex:0 0 auto; margin:8px 10px 0; padding:12px; border-radius:14px; border:1px solid var(--border,#3a3466); background:var(--card-bg,#1a1640); max-height:46vh; overflow-y:auto; }
.cfb-title { font-weight:800; font-size:.95rem; margin-bottom:8px; }
.cfb-acct { background:rgba(0,200,120,.10); border:1px solid rgba(0,200,120,.3); border-radius:10px; padding:9px 11px; margin-bottom:8px; }
.cfb-acct-name { font-weight:800; font-size:1rem; }
.cfb-acct-phone { display:flex; align-items:center; gap:8px; margin-top:2px; font-size:1.05rem; font-weight:700; color:#4ade80; }
.cfb-copy { background:rgba(255,255,255,.1); border:none; color:#e9e4ff; border-radius:8px; padding:3px 8px; font-size:.72rem; font-family:inherit; cursor:pointer; }
.cfb-hint { font-size:.76rem; color:var(--sub,#a8a3c7); line-height:1.4; margin-bottom:10px; }
.cfb-input { width:100%; background:rgba(255,255,255,.06); border:1px solid var(--border,#3a3466); border-radius:10px; color:#fff; padding:9px 12px; font-size:.9rem; font-family:inherit; margin-bottom:8px; resize:none; }
.cfb-actions { display:flex; gap:8px; }
.cfb-submit { flex:1; padding:9px; border:none; border-radius:10px; background:linear-gradient(135deg,#8b5cf6,#a78bfa); color:#fff; font-weight:700; font-family:inherit; cursor:pointer; }
.cfb-cancel { flex:0 0 auto; padding:9px 14px; border:1px solid var(--border,#3a3466); border-radius:10px; background:transparent; color:var(--sub,#a8a3c7); font-family:inherit; cursor:pointer; }
/* Full-screen photo zoom (tap a chat photo). Tap anywhere to close. Also a
   background-image div, so the enlarged view can't be long-pressed either. */
.chat-zoom-ov { position:fixed; inset:0; z-index:5000; background:rgba(0,0,0,.92); }
.chat-zoom-img { position:absolute; inset:16px; background-position:center; background-size:contain; background-repeat:no-repeat;
  -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
.chat-input-row { flex:0 0 auto; display:flex; align-items:flex-end; gap:8px; padding:10px 12px; border-top:1px solid var(--border,#3a3466); }
/* A textarea (not a one-line input): it wraps and GROWS in height (JS _chatAutoGrow)
   up to a cap, then scrolls internally — instead of the text sliding sideways. */
#chatInput { flex:1; background:rgba(255,255,255,.08); border:1px solid var(--border,#3a3466); border-radius:22px; color:#fff; padding:11px 16px; font-size:.9rem; font-family:inherit; box-sizing:border-box; resize:none; line-height:1.3; max-height:132px; overflow-y:auto; }
#chatInput:focus { outline:none; border-color:rgba(196,181,253,.5); }
/* Sent tick + optimistic "sending" three dots on my own bubbles. */
.cb-check { font-size:.62rem; opacity:.85; margin-left:2px; }
.chat-bubble.pending { opacity:.9; }
.cb-sending { display:inline-flex; gap:3px; vertical-align:middle; margin-left:5px; }
.cb-sending i { width:4px; height:4px; border-radius:50%; background:currentColor; animation:cbDot 1s infinite ease-in-out; }
.cb-sending i:nth-child(2){ animation-delay:.15s; }
.cb-sending i:nth-child(3){ animation-delay:.3s; }
@keyframes cbDot { 0%,60%,100%{ transform:translateY(0); opacity:.35; } 30%{ transform:translateY(-3px); opacity:1; } }
.chat-send-btn { flex:0 0 auto; width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,#8b5cf6,#a78bfa); color:#fff; font-size:1.1rem; border:none; cursor:pointer; }
.chat-attach-btn { flex:0 0 auto; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.08); color:#e9e4ff; font-size:1.2rem; border:none; cursor:pointer; }
.chat-attach-btn:active { transform:scale(.92); }
.chat-empty { text-align:center; color:var(--sub,#a8a3c7); padding:40px 20px; font-size:.9rem; }
.chat-thread-list { display:flex; flex-direction:column; }
.chat-thread { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--border,#1e2740); cursor:pointer; }
.chat-thread:active { background:rgba(255,255,255,.04); }
.ct-av { position:relative; width:42px; height:42px; border-radius:50%; flex:0 0 auto; background:linear-gradient(135deg,var(--gold,#ffcf4a),#e0a800); display:flex; align-items:center; justify-content:center; font-weight:800; color:#04121a; background-size:cover; background-position:center; }
.ct-mid { flex:1; min-width:0; }
.ct-name { font-weight:700; font-size:.9rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ct-last { font-size:.76rem; color:var(--sub,#a8a3c7); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.ct-unread { flex:0 0 auto; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:#ff4444; color:#fff; font-size:.7rem; font-weight:800; display:flex; align-items:center; justify-content:center; }
.chat-icon-badge { position:absolute; top:0; right:0; min-width:16px; height:16px; background:#ff4444; color:#fff; font-size:.58rem; font-weight:700; border-radius:99px; display:none; align-items:center; justify-content:center; padding:0 3px; }

/* Floating live-chat bubble (bottom-right) */
.chat-fab {
  position:fixed; right:16px; bottom:calc(80px + env(safe-area-inset-bottom,0px)); z-index:1200;
  width:58px; height:58px; border-radius:18px; border:none; cursor:pointer; padding:0;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(150deg,#2a1f5e,#151238);
  box-shadow:0 6px 20px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(46,230,120,.5);
  transition:transform .15s ease, box-shadow .15s ease;
}
.chat-fab.chat-fab-raised { bottom:calc(150px + env(safe-area-inset-bottom,0px)); }
.chat-fab:active { transform:scale(.92); }
.chat-fab svg { filter:drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.chat-fab-badge {
  position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 5px;
  background:#ff3b3b; color:#fff; font-size:.66rem; font-weight:800; border-radius:99px;
  display:flex; align-items:center; justify-content:center; border:2px solid #151238;
}

/* More Option → Multi Message: optional button chooser (multi-select) */
.mm-btn-opts{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:6px; }
.mm-chk{ display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:10px;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); font-size:0.82rem; cursor:pointer; }
.mm-chk input{ accent-color:#12c85a; width:15px; height:15px; }

/* Gallery-picker rows: an image-URL input with a "🖼 ከጋለሪ" upload button beside it. */
.img-field-row { display: flex; gap: 8px; align-items: stretch; }
.img-field-row > .settings-input, .img-field-row > .mo-ann-img { flex: 1 1 auto; min-width: 0; }
.img-pick-btn { flex: 0 0 auto; border: none; border-radius: 8px; background: #243144; color: #e7ecf3;
  font-weight: 700; font-size: 12px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.img-pick-btn:active { transform: translateY(1px); }
.img-pick-btn:disabled { opacity: .6; }
/* Game-icon card: the gallery button stacks full-width between input and save. */
.mo-game-pick { display: block; width: 100%; margin-bottom: 6px; padding: 7px; font-size: 0.74rem; }

/* ═══════════════ UI ICONS (replace user-facing emojis) ═══════════════ */
.ic { height: 1em; width: auto; vertical-align: -0.14em; display: inline-block;
  object-fit: contain; flex: none;
  pointer-events: none; -webkit-user-drag: none; }
.ic-lg { height: 1.5em; vertical-align: -0.28em; }
/* 🎮 / 👑 icons that replaced emoji: bump to match the emoji's visual size */
.ic[src$="/game.png"], .ic[src$="/crown.png"]{ height:1.3em; vertical-align:-0.24em; }
.ic-xl { height: 2.4em; vertical-align: middle; }
/* icons that live inside fixed-size icon spans fill their box */
.mnb-icon .ic, .wm-btn-icon .ic { height: 1.15em; vertical-align: -0.18em; }

/* icon fixes: remove hamburger box; white deposit/withdraw icons inside wallet modal */
.menu-toggle { background: none; border: none; }
.wm-btn-icon .ic { filter: brightness(0) invert(1); }

/* unified wallet balance font across the apps */
#topBalance, .mbl-value, .wm-balance { font-family: -apple-system, 'Segoe UI', Roboto, 'Noto Sans Ethiopic', sans-serif !important; }

/* top-bar alignment: wallet icon vs number, and equal bell/hamburger sizing */
.top-balance { line-height:1; align-items:center; gap:6px; }
.top-balance .tb-coin { display:inline-flex; align-items:center; font-size:1rem; line-height:1; }
.top-balance .tb-coin .ic { height:1.15em; width:auto; vertical-align:middle; }
#topBalance { font-size:0.95rem; line-height:1; display:inline-flex; align-items:center; }
.notif-bell-btn > span:first-child { display: inline-flex; align-items: center; line-height: 1; }
.menu-toggle { justify-content: center; gap: 5px; height: auto; padding: 6px 10px; }
.menu-toggle span { width: 22px; height: 2.5px; }

/* tx-history copy button: strip the box, show just the icon (matches game apps) */
.tx-copy { background: none; border: none; border-radius: 0; padding: 0 2px; font-size: 0.66rem; cursor: pointer; line-height: 1; vertical-align: middle; }
.tx-copy:active { transform: scale(0.9); }


/* home top-bar: compact wallet pill + bell nudged toward the menu (match games) */
.menu-toggle { height: 34px; box-sizing: border-box; }
.top-balance { height: 28px; box-sizing: border-box; padding: 0 12px; }
.top-bar > div:last-child { gap: 2px !important; }
.notif-bell-btn { padding-right: 2px !important; }

/* side-menu link icons (support/channel/group) render white line-art */
#menuLinks .ic { filter: brightness(0) invert(1); }

/* Prevent the mobile long-press image menu (Open in / Download / Copy Link) from exposing asset URLs. */
img{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; }


/* ===== ALPHA GAMES — bottom navigation (replaces the ☰ side menu) ===== */
.bottom-nav {
  position: fixed; left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  height: 68px; z-index: 250;
  display: flex; align-items: stretch; justify-content: space-around;
  padding: 6px;
  background: rgba(7, 13, 11, 0.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}
.bn-item {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; border-radius: 16px; cursor: pointer;
  color: rgba(255,255,255,0.62);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: .2px;
  transition: color .2s, background .2s;
}
.bn-item svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bn-item:active { transform: scale(0.94); }
.bn-item.active { color: #3ddc84; background: rgba(61,220,132,0.10); text-shadow: 0 0 12px rgba(61,220,132,0.45); }
.bn-item.active svg { filter: drop-shadow(0 0 6px rgba(61,220,132,0.55)); }
.bn-badge {
  position: absolute; top: 5px; right: calc(50% - 24px);
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: #ff3b3b; color: #fff; font-size: 0.62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid #120f2e;
}
/* room for the nav under every screen; the old floating chat bubble is replaced by the Chat tab */
.screen { padding-bottom: 104px; }
.chat-fab { display: none !important; }
.menu-toggle, .side-menu { display: none !important; }
/* tab screens reuse the old side-menu blocks */
.tab-balance { margin-bottom: 14px; }
.tab-wallet-actions { margin-bottom: 14px; }
.tab-list { gap: 6px; }
.tab-list .menu-nav-btn { background: var(--surface); border: 1px solid var(--border); }
.tab-promo { margin: 0 0 14px; }
.menu-profile { margin-bottom: 14px; }
#screen-profile .menu-footer { margin-top: 24px; }


/* ===== ALPHA GAMES — GLASS DESIGN LAYER ===== */
:root {
  --bg: #0b0a1f; --bg2: #120f2e; --bg3: #1a1640;
  --surface: rgba(255,255,255,0.07); --border: rgba(255,255,255,0.16);
  --gold: #a78bfa; --gold2: #ec4899; --cyan: #34d399; --purple: #c084fc;
  --text: rgba(255,255,255,0.94); --text-dim: rgba(255,255,255,0.55); --radius: 22px;
  --glass-bg: rgba(255,255,255,0.075); --glass-border: rgba(255,255,255,0.16);
  --glass-shadow: 0 10px 34px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}
html, body { background: #0b0a1f; }
/* colour orbs behind everything — what the glass blurs */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; opacity: 1;
  background:
    radial-gradient(640px 520px at 8% 6%,   rgba(139,92,246,0.85) 0%, transparent 62%),
    radial-gradient(560px 480px at 95% 20%, rgba(236,72,153,0.70) 0%, transparent 62%),
    radial-gradient(640px 520px at 50% 95%, rgba(52,211,153,0.50) 0%, transparent 62%),
    radial-gradient(460px 380px at 85% 65%, rgba(59,130,246,0.50) 0%, transparent 62%),
    #0b0a1f;
}
/* the glass recipe */
.top-bar, .bottom-nav, .game-card, .menu-profile, .menu-balance-box, .tab-list .menu-nav-btn, .menu-promo, .menu-lang,
.deposit-card, .history-section, .wallet-modal, .phone-modal, .notif-modal, .terms-modal, .hist-item, .dc-copy-row,
.back-btn, .hero-back, .sub-badge, .stake-card, .admin-stat, .admin-card, .settings-card,
.ann-banner, .gift-banner, .chat-thread, .side-menu, .wm-btn, .gc-soon, .games-section-label, .mo-tab, .mo-period button {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
}
.game-card, .menu-profile, .menu-balance-box, .deposit-card, .history-section, .wallet-modal, .phone-modal, .notif-modal, .terms-modal, .menu-promo, .menu-lang { border-radius: var(--radius); }
.tab-list .menu-nav-btn, .hist-item, .dc-copy-row, .chat-thread { border-radius: 16px; }
.top-bar { background: rgba(11,10,31,0.55) !important; border: none !important; border-bottom: 1px solid rgba(255,255,255,0.12) !important; box-shadow: 0 4px 30px rgba(0,0,0,0.25); }
.top-logo { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; text-shadow: none; letter-spacing: 2px; font-weight: 800; }
.top-logo span { -webkit-text-fill-color: transparent; }
.top-balance { background: rgba(52,211,153,0.12) !important; border: 1px solid rgba(52,211,153,0.35) !important; color: #34d399; backdrop-filter: blur(12px); }
#topBalance { color: #34d399; }
/* bottom navigation — floating glass pill, gradient active bubble */
.bottom-nav { background: rgba(18,15,46,0.55) !important; border-radius: 26px; height: 70px; padding: 7px; }
.bn-item { color: rgba(255,255,255,0.62); border-radius: 20px; }
.bn-item.active { color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(139,92,246,0.45); text-shadow: none; }
.bn-item.active svg { filter: none; }
.bn-badge { border-color: #120f2e; background: #ec4899; }
/* hero */
.hero-title { background: linear-gradient(135deg, #fff 0%, #c4b5fd 60%, #f9a8d4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.7rem; font-weight: 800; }
.hero-sub { color: var(--text-dim); }
/* game hub — two-column glass tiles instead of the old list */
.games-grid:not(.layout-icon2):not(.layout-icon3) { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.games-grid:not(.layout-icon2):not(.layout-icon3) .game-card:not(.game-iconmode) {
  flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 14px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.games-grid:not(.layout-icon2):not(.layout-icon3) .game-card:not(.game-iconmode):active { transform: translateY(2px) scale(0.98); }
.gc-icon { width: 68px; height: 68px; flex: 0 0 68px; font-size: 2.3rem; border-radius: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(236,72,153,0.28)) !important;
  border: 1px solid rgba(255,255,255,0.22); box-shadow: 0 8px 22px rgba(139,92,246,0.25), inset 0 1px 0 rgba(255,255,255,0.25); }
.gc-icon-img img { border-radius: 16px; max-width: 68px; max-height: 68px; }
.gc-info { width: 100%; }
.gc-name { font-size: 1.05rem; letter-spacing: .5px; font-weight: 800; }
.gc-desc { font-size: 0.7rem; }
.gc-count { justify-content: center; display: flex; }
.gc-cta { width: 100%; text-align: center; padding: 10px 12px; border-radius: 14px; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.gc-play { background: var(--grad) !important; color: #fff !important; box-shadow: 0 8px 22px rgba(236,72,153,0.35); border: none !important; }
.gc-play .ic { filter: brightness(0) invert(1); }
/* buttons */
.cta-btn, .menu-promo-btn, .wm-deposit, .wm-withdraw { border: 1px solid rgba(255,255,255,0.2) !important; }
.cta-btn { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(139,92,246,0.4); border-radius: 16px; }
.menu-promo-btn { background: var(--grad); color: #fff; }
.menu-lang-btn.on { background: var(--grad); color: #fff; border-color: transparent; }
.menu-lang-btn { color: #fff; }
.wm-deposit { background: linear-gradient(145deg, rgba(52,211,153,0.85), rgba(16,185,129,0.55)) !important; box-shadow: 0 8px 22px rgba(52,211,153,0.25) !important; }
.wm-withdraw { background: linear-gradient(145deg, rgba(244,114,182,0.85), rgba(236,72,153,0.55)) !important; box-shadow: 0 8px 22px rgba(236,72,153,0.25) !important; }
/* balance blocks */
.menu-balance-box { background: linear-gradient(135deg, rgba(52,211,153,0.16), rgba(139,92,246,0.14)) !important; }
.mbl-value, .wm-balance { color: #34d399; }
.menu-avatar { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(139,92,246,0.45); }
/* inputs */
.dc-input, .settings-input, .menu-promo-input, textarea, select, input[type=text], input[type=number], input[type=tel], input[type=url], input[type=date] {
  background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.16) !important; color: #fff !important; border-radius: 14px !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dc-input:focus, .settings-input:focus { border-color: rgba(167,139,250,0.7) !important; box-shadow: 0 0 0 3px rgba(139,92,246,0.25); outline: none; }
.dc-copy-row span { color: #34d399; }
.copy-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: #fff; }
.dc-title { color: #c4b5fd; }
.menu-promo { background: linear-gradient(135deg, rgba(236,72,153,0.16), rgba(139,92,246,0.12)) !important; }
.menu-promo-label { color: #f9a8d4; }
/* modals, overlays, toast, loading */
.overlay, .phone-overlay, .wallet-modal-overlay, .notif-overlay { background: rgba(5,4,20,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.toast { background: rgba(26,22,64,0.85); border: 1px solid rgba(255,255,255,0.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.app-loading { background: #0b0a1f; }
.al-logo { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.al-logo span { -webkit-text-fill-color: transparent; }
.al-spinner { border-top-color: #a78bfa; }
.service-overlay { background: #0b0a1f; }
/* history rows */
.hist-item.hist-dep { border-left-color: #34d399 !important; } .hist-item.hist-win { border-left-color: #a78bfa !important; }
.hist-item.hist-withdraw { border-left-color: #f472b6 !important; }
/* chat */
.chat-msgs { background: transparent; }
.chat-fab { display: none !important; }
.menu-toggle, .side-menu { display: none !important; }
.screen { padding-bottom: 108px; }
#menuLinks .ic, .mnb-icon .ic { filter: brightness(0) invert(1); }
.menu-footer { color: rgba(255,255,255,0.35); }
.tab-balance { margin-bottom: 14px; } .tab-wallet-actions { margin-bottom: 14px; } .tab-list { gap: 8px; } .tab-promo { margin: 0 0 14px; } .menu-profile { margin-bottom: 14px; }


/* ===== ALPHA — FLAT LAYER (no shadows, no square boxes, keno-style money screens) ===== */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
:root { --glass-shadow: none; }
/* every glass surface is rounded — nothing square-cornered */
.top-bar, .bottom-nav, .game-card, .menu-profile, .menu-balance-box, .tab-list .menu-nav-btn, .menu-promo, .menu-lang,
.deposit-card, .history-section, .phone-modal, .notif-modal, .terms-modal, .hist-item, .dc-copy-row,
.back-btn, .hero-back, .sub-badge, .stake-card, .admin-stat, .admin-card, .settings-card,
.ann-banner, .gift-banner, .chat-thread, .wm-btn, .gc-soon, .games-section-label, .mo-tab, .mo-period button { border-radius: 16px; }
.game-card, .menu-profile, .menu-balance-box, .deposit-card, .history-section, .phone-modal, .menu-promo, .menu-lang { border-radius: var(--radius); }
.notif-modal, .terms-modal { border-radius: 22px 22px 0 0; }
.top-bar { border-radius: 0; }
.back-btn, .hero-back { border-radius: 14px; }
.sub-badge, .mo-tab, .mo-period button, .games-section-label { border-radius: 999px; }
/* More Option / referral wrappers are plain containers again (they were glass boxes with square corners) */
.mo-content > div, .ref-wrap > div { background: transparent; border: none; }
.mo-content > .settings-card, .ref-wrap > .settings-card { background: var(--glass-bg) !important; border: 1px solid var(--glass-border) !important; border-radius: var(--radius); }
.mo-list, .mo-games, .mo-gv-toolbar, .mo-gv-hint, .mo-sub-tabs, .mo-layout-row { background: transparent !important; border: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.mo-gv-toolbar { margin-bottom: 10px; }
/* Game View: the View dropdown must float above the tiles (siblings with backdrop-filter used to paint over it) */
.mo-gv-toolbar { position: relative; z-index: 60; }
.mo-gv-viewmenu { z-index: 61; background: #171432; border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; min-width: 170px; }
.mo-gv-viewmenu button { border-radius: 10px; padding: 11px 14px; font-size: 0.86rem; }
.mo-gv-tool { border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); }
.mo-gv-tool.on { background: var(--grad); border-color: transparent; }
.mo-game { border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.mo-row, .mo-unblock { border-radius: 14px; }

/* ---- Deposit / Withdraw: keno card ---- */
.ad-card { background: linear-gradient(180deg, #1b2530, #141a20); border: 1px solid #2a3a44; border-radius: 16px; padding: 18px; color: #e2e2e2; margin: 4px 0 0; }
.ad-tele { display: flex; align-items: center; gap: 10px; background: #0e2a4d; border: 1px solid #14539a; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.ad-tele b { color: #3aa0ff; font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.ad-tele span { color: #9fb3ad; font-size: 13px; font-family: var(--font-am); }
.ad-card .bonus-banner { margin: 0 0 12px; border-radius: 12px; }
.ad-acc { background: #10171d; border: 1px solid #24313a; border-radius: 12px; padding: 4px 12px; margin-bottom: 4px; }
.ad-acc .r { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 15px; border-bottom: 1px solid #1e272d; }
.ad-acc .r:last-child { border-bottom: none; }
.ad-acc .r span { color: #8fb3a5; font-family: var(--font-am); font-size: 13px; flex: 0 0 auto; }
.ad-acc .r b { color: #fff; letter-spacing: .5px; font-weight: 700; margin-left: auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-main); }
.ad-copy { flex: 0 0 auto; padding: 5px 10px; border-radius: 8px; background: #1a2a36; border: 1px solid #2f4452; color: #bfe3d3; font-size: 12px; font-family: var(--font-am); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ad-copy .ic { width: 12px; height: 12px; }
.ad-copy:active { transform: scale(.95); }
.ad-lbl { display: block; font-size: 13px; color: #9fb3ad; margin: 12px 0 6px; font-family: var(--font-am); }
.ad-card .ad-inp, .ad-card input.ad-inp[type=number], .ad-card input.ad-inp[type=text] {
  width: 100%; box-sizing: border-box; background: #0e151a !important; border: 1px solid #2a3a44 !important; border-radius: 10px !important;
  padding: 12px; color: #fff !important; font-size: 16px; outline: none; margin: 0; font-family: var(--font-body); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ad-card .ad-inp:focus { border-color: #51b579 !important; }
.ad-card .ad-inp::placeholder { color: rgba(255,255,255,0.28); font-size: 14px; }
.ad-submit { width: 100%; margin-top: 16px; padding: 14px; border: none; border-radius: 10px; background: linear-gradient(180deg, #5fae74, #3f8a56); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; font-family: var(--font-main); }
.ad-submit:active { transform: scale(.99); }
.ad-note { font-size: 12px; color: #7d8a86; margin-top: 10px; text-align: center; font-family: var(--font-am); line-height: 1.5; }
.ad-card .rollover-note { margin: 8px 0 0; border-radius: 10px; }
#screen-deposit .history-section, #screen-withdraw .history-section { background: transparent !important; border: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; margin-top: 18px; }
#screen-deposit .hs-title, #screen-withdraw .hs-title { color: #9fb3ad; padding-left: 4px; }

/* ---- Wallet sheet (ሂሳብ አስተዳደር) — bottom sheet with a balance card and round actions ---- */
.wallet-modal-overlay { background: rgba(5,4,20,0.6); }
.wallet-modal {
  left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100% !important; max-width: none;
  transform: translateY(100%) !important; border-radius: 28px 28px 0 0 !important; border: none !important; border-top: 1px solid rgba(255,255,255,0.14) !important;
  background: #110e2b !important; padding: 10px 16px calc(22px + env(safe-area-inset-bottom, 0px)); overflow: visible;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1) !important;
}
.wallet-modal.active { transform: translateY(0) !important; }
.wallet-modal::before { display: none !important; }
.aw-grip { width: 42px; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.22); margin: 0 auto 16px; }
.aw-card { position: relative; border-radius: 22px; padding: 18px 20px; color: #fff; background: var(--grad); overflow: hidden; }
.aw-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.aw-card::before { content: ''; position: absolute; width: 140px; height: 140px; right: 30px; bottom: -80px; border-radius: 50%; background: rgba(255,255,255,0.10); }
.aw-card > * { position: relative; z-index: 1; }
.aw-card-top { display: flex; align-items: center; justify-content: space-between; }
.aw-card-lbl { font-size: .74rem; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,0.8); font-family: var(--font-main); font-weight: 600; }
.aw-refresh { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.16); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.aw-refresh img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.aw-refresh.spinning img { animation: aw-spin .8s linear infinite; }
@keyframes aw-spin { to { transform: rotate(360deg); } }
.aw-amount { margin: 14px 0 18px; font-family: var(--font-main); font-weight: 900; font-size: 2.4rem; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.aw-amount small { font-size: .95rem; font-weight: 700; opacity: .85; }
.aw-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.aw-brand { font-family: var(--font-main); letter-spacing: 2px; font-size: .7rem; font-weight: 800; opacity: .85; }
.aw-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.aw-act { background: none; border: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 6px 0; }
.aw-act:active { transform: scale(.95); }
.aw-act-ic { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 1.7rem; font-weight: 700; line-height: 1; border: 1px solid rgba(255,255,255,0.18); }
.aw-in { background: rgba(52,211,153,0.18); color: #34d399; }
.aw-out { background: rgba(244,114,182,0.18); color: #f472b6; }
.aw-hist { background: rgba(167,139,250,0.18); color: #c4b5fd; font-size: 1.4rem; }
.aw-act span { font-family: var(--font-main); font-weight: 700; font-size: .86rem; }
.aw-act small { font-family: var(--font-am); font-size: .64rem; color: var(--text-dim); }
.aw-close { display: block; width: 100%; margin-top: 16px; padding: 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); font-family: var(--font-am); font-size: .9rem; cursor: pointer; }

/* hub icon tiles: the game's own image must win over the glass fill */
.game-card.game-iconmode.has-img { background-image: var(--gimg) !important; background-color: transparent !important; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
/* Wallet tab = the same balance card + round actions as the wallet sheet */
.aw-card-tab { margin: 4px 0 0; }
.aw-actions-tab { margin-top: 22px; }

/* ═══════════════════════════════════════════════════════════════════
   ALPHA — CALM THEME (the same look as Alpha Bingo): neutral charcoal surfaces,
   one muted teal accent, flat, Poppins. Overrides the glass layer above.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --acc: #4f9a8f; --acc2: #7fc1b6; --acc3: #b9e0d9;
  --acc-soft: rgba(79,154,143,0.14); --acc-line: rgba(79,154,143,0.40);
  --bg: #111318; --bg2: #171a21; --bg3: #1d212a; --panel: #1a1d25; --card2: #1a1d25;
  --surface: #1a1d25; --border: rgba(255,255,255,0.08);
  --glass-bg: #1a1d25; --glass-border: rgba(255,255,255,0.08); --glass-shadow: none;
  --text: #e8eaef; --text-dim: #8b93a3;
  --gold: var(--acc2); --gold2: var(--acc); --cyan: var(--acc2); --green: var(--acc2); --purple: var(--acc); --lime: var(--acc2); --amber: var(--acc2);
  --red: #8b93a3;
  --grad: linear-gradient(135deg, #3d7d74 0%, #4f9a8f 60%, #6bb3a8 100%);
  --radius: 20px;
}
html, body { background: var(--bg) !important; }
body::before { display: none !important; }
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
/* every former glass surface is a flat charcoal card */
.top-bar, .bottom-nav, .game-card, .menu-profile, .menu-balance-box, .tab-list .menu-nav-btn, .menu-promo, .menu-lang,
.deposit-card, .history-section, .phone-modal, .notif-modal, .terms-modal, .hist-item, .dc-copy-row,
.back-btn, .hero-back, .sub-badge, .stake-card, .admin-stat, .admin-card, .settings-card,
.ann-banner, .gift-banner, .chat-thread, .wm-btn, .gc-soon, .games-section-label, .mo-tab, .mo-period button, .mo-game, .mo-row,
.mo-content > .settings-card, .ref-wrap > .settings-card, .admin-stat-box, .upm-modal, .smm-modal, .wallet-modal, .side-menu {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.top-bar { background: rgba(17,19,24,0.94) !important; border: none !important; border-bottom: 1px solid var(--border) !important; }
.top-logo { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: #fff; color: #fff; letter-spacing: 1px; font-weight: 700; }
.top-logo span { -webkit-text-fill-color: var(--acc2); color: var(--acc2); }
.top-balance { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
#topBalance { color: var(--text); }
.bottom-nav { background: rgba(23,26,33,0.96) !important; border-radius: 22px; }
.bn-item { color: var(--text-dim); }
.bn-item.active { color: #fff; background: var(--acc); text-shadow: none; }
.bn-item.active svg { filter: none; }
.bn-badge { background: var(--acc); border-color: var(--bg); }
/* hub */
.hero-title { background: none; -webkit-text-fill-color: #fff; color: #fff; font-weight: 700; }
.hero-sub { color: var(--text-dim); }
.gc-icon { background: var(--acc-soft) !important; border: 1px solid var(--acc-line); filter: grayscale(1) sepia(1) hue-rotate(120deg) saturate(1.6); }
.gc-icon-img img { filter: none; }
.gc-name { color: #fff; }
.gc-play { background: var(--acc) !important; color: #fff !important; }
.gc-play .ic { filter: brightness(0) invert(1); }
.gc-count, .gc-count-out, .gc-live { color: var(--acc2); }
.gc-live-dot { background: var(--acc2); }
.game-card.game-iconmode { background-color: var(--surface) !important; }
/* buttons / inputs */
.cta-btn, .menu-promo-btn, .settings-save-btn, .ac-approve, .upm-btn, .ref-share-btn, .mo-unblock, .smm-send-btn { background: var(--acc) !important; color: #fff !important; border: none !important; border-radius: 14px; }
.wm-deposit, .wm-withdraw { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; }
.menu-lang-btn.on, .mo-tab.active, .mo-period button.active, .admin-tab.active, .mo-sub-tab.active, .mo-layout-btn.active, .mo-gv-tool.on, .user-sort-menu button.active { background: var(--acc) !important; color: #fff !important; border-color: transparent !important; }
.dc-input, .settings-input, .menu-promo-input, textarea, select, input[type=text], input[type=number], input[type=tel], input[type=url], input[type=date], .user-search-input {
  background: #0f1116 !important; border: 1px solid var(--border) !important; border-radius: 12px !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.dc-input:focus, .settings-input:focus { border-color: var(--acc) !important; }
.toggle-switch input:checked + .toggle-slider { background: var(--acc); }
.copy-btn, .tx-copy, .hist-viewgame { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; color: var(--acc2) !important; }
/* balance blocks / profile */
.menu-balance-box { background: var(--surface) !important; }
.mbl-value, .wm-balance, .menu-promo-label, .dc-title, .dc-copy-row span, .hs-title { color: var(--acc2); }
.menu-avatar { background-color: var(--acc) !important; color: #fff; }
.menu-promo { background: var(--surface) !important; }
/* wallet sheet + wallet tab */
.wallet-modal { background: #171a21 !important; }
.aw-card { background: var(--grad); }
.aw-in, .aw-out, .aw-hist { background: var(--acc-soft); color: var(--acc2); border-color: var(--acc-line); }
.aw-close { background: var(--surface); border: 1px solid var(--border); }
/* history rows: flat, no coloured edge */
.hist-item, .hist-item.hist-dep, .hist-item.hist-win, .hist-item.hist-bet, .hist-item.hist-withdraw { border-left: 1px solid var(--border) !important; }
.hist-amount { color: #fff; }
/* chat */
.chat-bubble.me { background: var(--acc); }
.chat-bubble.them { background: var(--surface); }
/* modals / overlays */
.overlay, .phone-overlay, .wallet-modal-overlay, .notif-overlay, .terms-overlay, .upm-overlay, .smm-overlay { background: rgba(8,6,20,0.6); }
.toast { background: #22262f; border: 1px solid var(--border); }
.notif-item.notif-unread { background: var(--acc-soft); border-left: 3px solid var(--acc); }
/* admin bits */
.admin-tab { border-radius: 999px; }
.st-pending { background: var(--acc-soft); color: var(--acc2); }
.mo-gv-viewmenu { background: #1d212a; }
.mo-game { border-radius: 18px; }
/* More Option wrappers stay plain */
.mo-content > div, .ref-wrap > div { background: transparent !important; border: none !important; }
.mo-content > .settings-card, .ref-wrap > .settings-card { background: var(--surface) !important; border: 1px solid var(--border) !important; }
/* loading */
.app-loading, .service-overlay { background: var(--bg); }
.al-logo { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.al-logo span { -webkit-text-fill-color: var(--acc2); }
.al-spinner { border-top-color: var(--acc); }
/* top bar like Alpha Bingo: logo on the left, notification + balance on the right */
.top-bar { justify-content: flex-start; }
.top-logo { order: 0; margin-right: auto; }
.top-bar > div:last-child { order: 1; }
.top-balance { order: 2; margin: 0 0 0 8px; }

/* bottom nav pills: same radius as Alpha Bingo */
.bottom-nav { border-radius: 22px !important; height: 68px !important; padding: 6px !important; }
.bn-item { border-radius: 16px !important; }

/* ═══ ALPHA CALM THEME — admin surfaces (stats, tabs, cards, profile modal, settings, More Option) ═══ */
.admin-refresh-btn, .sub-badge.mo-open-btn, #adminRefreshBtn { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; color: var(--acc2) !important; }
.admin-stat-box, .admin-stat { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 16px; }
.asb-val { color: #fff !important; }
.asb-lbl { color: var(--text-dim) !important; }
.admin-tab { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text-dim) !important; border-radius: 999px; }
.admin-tab.active { background: var(--acc) !important; color: #fff !important; border-color: transparent !important; }
.admin-tab .ic { filter: brightness(0) invert(1); }
.admin-card, .acard-pending, .acard-approved, .acard-cancelled, .acard-user { background: var(--surface) !important; border: 1px solid var(--border) !important; border-left-width: 1px !important; border-radius: 18px; }
.acard-pending { border-color: var(--acc-line) !important; }
.ac-name { color: #fff !important; }
.ac-uid, .ac-meta { color: var(--text-dim) !important; }
.ac-amount, .ac-amount.pos, .ac-amount.neg { color: #fff !important; }
.ac-status { border-radius: 999px !important; background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.ac-status.st-pending { background: var(--acc-soft) !important; border-color: var(--acc-line) !important; color: var(--acc2) !important; }
.ac-approve { background: var(--acc) !important; color: #fff !important; border: none !important; }
.ac-cancel, .ac-btn.ac-cancel { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.wd-copy-btn, .copy-btn, .gid-copy, .ref-copy-btn, .tx-copy { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; color: var(--acc2) !important; }
.user-search-input, .settings-input, .mo-ann-fields input, .ref-link-input, .upm-phone-input, .smm-textarea, .mo-game-icon-input { background: #0f1116 !important; border: 1px solid var(--border) !important; color: #fff !important; }
.user-sort-toggle, .user-sort-menu button, .mo-sub-tab, .mo-layout-btn, .mo-gv-tool, .trids-tab, .mo-period button, .mo-tab { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.user-sort-menu { background: #1d212a !important; border: 1px solid var(--border) !important; }
.user-sort-menu button.active, .mo-sub-tab.active, .mo-layout-btn.active, .mo-gv-tool.on, .trids-tab.active, .mo-period button.active, .mo-tab.active, .mo-gv-viewmenu button.active { background: var(--acc) !important; color: #fff !important; border-color: transparent !important; }
.ust-online-tag { background: var(--acc) !important; color: #fff !important; }
.settings-card { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 18px; }
.settings-card-title { color: #fff !important; }
.settings-card-sub, .settings-field-label { color: var(--text-dim) !important; }
.settings-save-btn, .mo-ann-save, .mo-game-save, .trid-delall, .mo-seemore-btn, .gid-view-btn, .upm-phone-btn.upm-phone-save, .ref-share-btn { background: var(--acc) !important; color: #fff !important; border: none !important; }
.settings-save-btn[style*="#4ade80"], .sub-badge[style*="#4ade80"], .settings-save-btn[style*="#2a2a40"] { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.dep-preset { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; color: var(--acc2) !important; }
.dep-preset-x, .trid-del { color: var(--text-dim) !important; }
.settings-bonus-preview { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; color: var(--acc2) !important; }
.bot-range-row .brr-stake, .bot-range-row .brr-dash { color: var(--text-dim) !important; }
/* user profile modal */
.upm-modal { background: #171a21 !important; border: 1px solid var(--border) !important; }
.upm-header { background: var(--surface) !important; border-bottom: 1px solid var(--border); }
.upm-avatar { background-color: var(--acc) !important; color: #fff !important; }
.upm-dot, .upm-dot.in-game, .upm-presence .upm-on { background: var(--acc2) !important; color: var(--acc2) !important; }
.upm-name { color: #fff !important; }
.upm-username, .upm-uid, .upm-joined, .upm-stat-lbl, .upm-tx-date { color: var(--text-dim) !important; }
.upm-balance-badge, .upm-wager-badge, .upm-stat { background: var(--surface) !important; border: 1px solid var(--border) !important; color: #fff !important; }
.upm-balance-badge { background: var(--acc-soft) !important; border-color: var(--acc-line) !important; color: var(--acc2) !important; }
.upm-stat-val { color: #fff !important; }
.upm-btn, .upm-btn-msg, .upm-btn-bal, .upm-btn-chat, .upm-btn-wager, .upm-btn-block { background: var(--surface) !important; border: 1px solid var(--border) !important; color: #fff !important; border-radius: 14px; }
.upm-btn-bal, .upm-btn-chat { background: var(--acc) !important; border-color: transparent !important; }
.upm-btn-block.is-blocked { background: rgba(227,154,79,0.16) !important; border-color: rgba(227,154,79,0.45) !important; color: #e39a4f !important; }
.upm-tx-item { background: var(--surface) !important; border: 1px solid var(--border) !important; border-left-width: 1px !important; }
.upm-tx-label { color: #fff !important; }
.upm-dep .upm-tx-amt, .upm-wd .upm-tx-amt, .upm-win .upm-tx-amt, .upm-stake .upm-tx-amt, .upm-tx-amt { color: #fff !important; }
.upm-tx-status { color: var(--acc2) !important; }
.upm-daily .dg-gn, .upm-daily .dg-gc, .upm-daily .dg-tl { color: var(--acc2) !important; }
.bd-card, #upmBalDay, #upmLockBox { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 16px; }
.bd-head { color: var(--acc2) !important; }
/* send-message modal, chat threads, More Option rows */
.smm-modal { background: #171a21 !important; border: 1px solid var(--border) !important; }
.smm-title, .smm-to { color: #fff !important; }
.chat-thread { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.ct-av { background: var(--acc) !important; color: #fff !important; }
.ct-unread { background: var(--acc) !important; color: #fff !important; }
.mo-row, .gid-card, .trid-row, .trid-sg-row, .ref-row, .mo-game { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.mo-rank, .mo-row-amt, .ref-row-amt, .gid-prize, .gid-badge, .gid-count, .gid-lbl, .trid-sg-title, .gift-amount, .gift-admin-amt, .mo-game-cta, .mo-game-count { color: var(--acc2) !important; }
.gid-badge { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; }
.mo-unblock { background: var(--acc-soft) !important; border: 1px solid var(--acc-line) !important; color: var(--acc2) !important; }
.ann-banner, .gift-banner { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.gift-title { color: #fff !important; }
.ann-dot.active { background: var(--acc) !important; }
.mo-gv-viewmenu { background: #1d212a !important; border: 1px solid var(--border) !important; }
.mo-game.gv-dragging { border-color: var(--acc) !important; }
/* inline colours that JS-rendered admin rows carry */
[style*="#c4b5fd"], [style*="#a78bfa"], [style*="#c9a4ff"], [style*="#00e676"], [style*="#2ecc71"], [style*="#12c85a"], [style*="#0f9d58"], [style*="#33d17a"], [style*="#7cfc00"], [style*="#4ade80"], [style*="#64b5f6"], [style*="#f5c518"], [style*="#fbbf24"], [style*="#ffb454"] { color: var(--acc2) !important; }
[style*="#ff6b6b"], [style*="#ff4444"], [style*="#ff8888"], [style*="#ff8a8a"], [style*="#ff5252"], [style*="#f472b6"], [style*="#e53935"], [style*="#ff9aa8"] { color: #e39a4f !important; }
[style*="background:#3a3466"], [style*="background:#1a1640"], [style*="background: #1a1640"], [style*="#403a70"], [style*="#1e1a45"], [style*="rgba(196,181,253,0.15)"], [style*="rgba(46,204,113,0.12)"], [style*="rgba(255,68,68,0.15)"], [style*="rgba(255,60,80,.15)"] { background: var(--surface) !important; border-color: var(--border) !important; }
[style*="#ff4444"][id="notifBadge"], #notifBadge { background: var(--acc) !important; color: #fff !important; }
.box-blink { animation: none !important; border-color: var(--acc-line) !important; }
.ac-mini-avatar { background-color: var(--acc) !important; color: #fff !important; }
.st-approved, .st-cancelled, .st-rejected { color: var(--text) !important; }
.ac-status.st-approved { background: var(--acc-soft) !important; border-color: var(--acc-line) !important; color: var(--acc2) !important; }
.ac-status.st-cancelled, .ac-status.st-rejected { opacity: .7; }
.upm-header { background: var(--surface) !important; }

/* ---- loader: three bouncing balls in the accent tones (same as Alpha Bingo) ---- */
.al-loader { display: flex; gap: 9px; align-items: center; justify-content: center; height: 52px; }
.al-loader i { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--acc); animation: al-bounce 1s ease-in-out infinite; }
.al-loader i:nth-child(2) { background: var(--acc2); animation-delay: .16s; }
.al-loader i:nth-child(3) { background: var(--acc3); animation-delay: .32s; }
@keyframes al-bounce { 0%, 75%, 100% { transform: translateY(0) scale(.8); opacity: .45; } 35% { transform: translateY(-14px) scale(1); opacity: 1; } }
.al-spinner, .lobby-spinner { display: none !important; }

/* no boxes around small controls: copy icons are bare glyphs, the presence line is plain text */
.wd-copy-btn, .tx-copy, .gid-copy, .copy-btn, .ref-copy-btn { background: none !important; border: none !important; padding: 2px 4px !important; color: var(--acc2) !important; }
.wd-copy-btn .ic, .tx-copy .ic, .gid-copy .ic, .copy-btn .ic { filter: brightness(0) invert(1); opacity: .8; }
.upm-presence .upm-on { background: none !important; color: var(--acc2) !important; }
.upm-dot { background: var(--acc2) !important; border-color: #171a21 !important; }
[style*="#64b5f6"] { background: var(--acc-soft) !important; color: var(--acc2) !important; }
.ac-mini-avatar { font-weight: 700; font-size: .95rem; }

/* ---- ported from Baron core (admin strips, 📊 Data card, referral modal stacking) ---- */

/* admin › users: live "who is in which game" strip under the search box */
.user-game-counts { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 2px; }
.ugc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.82rem; font-weight: 700; line-height: 1; }
.ugc-chip .ic { height: 1.15em; vertical-align: middle; }
.ugc-chip b { color: var(--green); }
/* admin › extra › win/lose rows: avatar (→ profile) + tap row → per-game breakdown */
.mo-row-av { flex: 0 0 auto; display: flex; }
.mo-row-av .ac-mini-avatar { margin-right: 0; cursor: pointer; }
.mo-row-detail { margin: -4px 0 6px 34px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-size: 0.8rem; }
.mo-row-detail .mrd { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mo-row-detail .mrd:last-child { border-bottom: none; }
.mo-row-detail .mrd-sub { color: var(--text-dim); font-size: 0.72rem; }
.mo-row-detail .up { color: var(--green); font-weight: 800; } .mo-row-detail .dn { color: #ff5252; font-weight: 800; }

/* ── admin profile › 📊 Data: end-of-day balance card ─────────────── */
.upm-balday{margin:8px 0}
.bd-card{background:rgba(139,92,246,.08);border:1px solid rgba(139,92,246,.35);border-radius:12px;padding:10px 12px;font-size:.82rem}
.bd-head{display:flex;justify-content:space-between;align-items:center;font-weight:700;margin-bottom:6px;color:#c9a4ff}
.bd-x{background:none;border:none;color:var(--text-dim);font-size:1rem;cursor:pointer;padding:0 4px}
.bd-row{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-top:1px solid rgba(255,255,255,.06)}
.bd-row b{font-variant-numeric:tabular-nums}
.bd-dim{color:var(--text-dim);font-size:.74rem}
.bd-items{padding:4px 0 4px 10px;border-top:1px solid rgba(255,255,255,.06)}
.bd-item{display:flex;justify-content:space-between;padding:2px 0;font-size:.78rem}
.bd-empty{text-align:center;color:var(--text-dim);padding:6px 0;font-size:.78rem}
.bd-verdict{margin-top:6px;padding:7px 9px;border-radius:8px;font-weight:600;text-align:center}
.bd-verdict.ok{background:rgba(74,222,128,.12);color:var(--lime)}
.bd-verdict.bad{background:rgba(248,113,113,.14);color:var(--red)}

/* Referral detail modal opens FROM the admin profile modal (z 1201) → sit above it */
#refModalOverlay{z-index:1300}
#refModal{z-index:1301}
#refModalBody .ref-row{cursor:pointer}
#refModalBody .ref-row:active{background:rgba(255,255,255,.06)}
/* the ported bits in the calm palette */
.bd-card { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.bd-head { color: var(--acc2) !important; }
.bd-verdict.ok { background: var(--acc-soft); color: var(--acc2); }
.bd-verdict.bad { background: rgba(227,154,79,0.16); color: #e39a4f; }
.mo-row-detail .dn { color: #e39a4f; }
.ugc-chip b { color: var(--acc2); }
/* ported admin buttons (📊 Data / 🔒 Lock) in the calm palette */
button[style*="rgba(139,92,246,.18)"] { background: var(--acc-soft) !important; border-color: var(--acc-line) !important; color: var(--acc2) !important; }
button[style*="rgba(255,68,68,.14)"] { background: rgba(227,154,79,0.16) !important; border-color: rgba(227,154,79,0.45) !important; color: #e39a4f !important; }
/* ---- live chat in the calm palette ---- */
:root { --card-bg: #1a1d25; --sub: #8b93a3; }
.chat-faq-top-btn { background: var(--acc-soft) !important; color: var(--acc2) !important; border: 1px solid var(--acc-line) !important; border-radius: 999px; }
.chat-faq-box, .chat-flow-bar { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 18px; }
.chat-quick-btn { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: 12px; }
.cfb-acct { background: #0f1116 !important; border: 1px solid var(--border) !important; border-radius: 12px; }
.cfb-acct-phone { color: var(--acc2) !important; }
.cfb-copy { background: none !important; color: var(--acc2) !important; padding: 2px 4px !important; }
.cfb-input { background: #0f1116 !important; border: 1px solid var(--border) !important; border-radius: 12px !important; }
.cfb-submit { background: var(--acc) !important; color: #fff !important; border-radius: 12px; }
.cfb-cancel { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: 12px; }
.chat-send-btn { background: var(--acc) !important; color: #fff !important; }
.chat-attach-btn { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.chat-seen { color: var(--acc2) !important; }
.chat-ctx-menu { background: #1d212a !important; border: 1px solid var(--border) !important; }
.chat-ctx-menu .ccx-del { color: #e39a4f !important; }
.chat-input-row { border-top: 1px solid var(--border) !important; }
.chat-input-row textarea { background: #0f1116 !important; border: 1px solid var(--border) !important; border-radius: 22px !important; }
.chat-faq-box button, .chat-answer-btn, .chat-faq-item { background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: 12px; }

/* ===== Alpha Games (Nebula) lobby + play ===== */
.alpha-entry{display:flex;align-items:center;gap:12px;width:100%;margin:2px 0 14px;padding:13px 16px;
  border:0;border-radius:16px;cursor:pointer;color:#fff;text-align:left;
  background:linear-gradient(120deg,#7b2ff7,#c026d3 55%,#f0a000);
  box-shadow:0 6px 18px rgba(124,47,247,.35)}
.alpha-entry:active{filter:brightness(.95)}
.alpha-entry-ico{font-size:30px;line-height:1}
.alpha-entry-txt{display:flex;flex-direction:column}
.alpha-entry-txt b{font-size:1.05rem;font-weight:800}
.alpha-entry-txt small{font-size:.74rem;opacity:.92}

.alpha-ov{position:fixed;inset:0;z-index:5000;background:#0b0f18;display:none;flex-direction:column}
.alpha-ov-bar,.alpha-play-bar{display:flex;align-items:center;gap:10px;padding:12px 14px;
  background:#111726;border-bottom:1px solid #223;flex:0 0 auto}
.alpha-close{background:transparent;border:0;cursor:pointer;padding:4px;display:flex;align-items:center}
.alpha-close .ic{width:22px;height:22px}
.alpha-ov-title{font-weight:800;font-size:1.02rem;color:#fff}
.alpha-play-bal{margin-left:auto;font-weight:800;color:#7CFC00;font-size:.92rem}
.alpha-cats{display:flex;gap:8px;overflow-x:auto;padding:12px 14px 6px;flex:0 0 auto;scrollbar-width:none}
.alpha-cats::-webkit-scrollbar{display:none}
.alpha-chip{flex:0 0 auto;padding:7px 14px;border-radius:999px;border:1px solid #2a3450;cursor:pointer;
  background:#151b2b;color:#cfd6e4;font-weight:700;font-size:.82rem}
.alpha-chip.on{background:#7b2ff7;border-color:#7b2ff7;color:#fff}
.alpha-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:10px;padding:10px 0 28px}
.alpha-grid>.alpha-tile{min-width:0}
/* icon3 (forced on the home) must let its 1fr tracks shrink, or the 3rd column
   overflows the screen. */
.games-grid.layout-icon3{grid-template-columns:repeat(3,minmax(0,1fr))}
.games-grid.layout-icon3>.hub-cell,.games-grid.layout-icon3>.alpha-tile{min-width:0}
.alpha-tile{display:flex;flex-direction:column;border:0;background:transparent;cursor:pointer;padding:0}
.alpha-tile:active{transform:scale(.97)}
/* Square tile: thumbnail (contained) over a blurred copy of itself → the empty
   space is filled with the game's OWN colours (width always equals height). */
.alpha-tile-img{position:relative;width:100%;aspect-ratio:1/1;border-radius:14px;overflow:hidden;
  border:1px solid rgba(255,255,255,.08);box-shadow:0 3px 10px rgba(0,0,0,.45);background:#0e1420}
.alpha-tile-img .bl{position:absolute;inset:0;background-size:cover;background-position:center;
  filter:blur(18px) saturate(1.3);transform:scale(1.5)}
.alpha-tile-img .fg{position:absolute;inset:0;background-size:contain;background-position:center;background-repeat:no-repeat}
.alpha-tile-ph{display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;
  font-weight:800;font-size:.8rem;line-height:1.15;color:#fff;background:linear-gradient(135deg,#243b55,#3a2a63)}
.alpha-fav-badge{position:absolute;top:5px;right:5px;font-size:.78rem;filter:drop-shadow(0 1px 2px #000);z-index:2}
.alpha-tile-nm{margin-top:5px;font-size:.72rem;font-weight:700;color:#cfd6e4;text-align:center;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 2px}
.alpha-empty{grid-column:1/-1;text-align:center;color:#6b7690;padding:30px}
@media (min-width:520px){ .alpha-grid{grid-template-columns:repeat(4,1fr)} }

/* Mini-icon strip (above the banner) */
.alpha-mini-row{display:flex;gap:12px;overflow-x:auto;padding:3px 0 5px;scrollbar-width:none}
.alpha-mini-row::-webkit-scrollbar{display:none}
.alpha-mini{flex:0 0 auto;width:50px;text-align:center;border:0;background:transparent;cursor:pointer;padding:0}
.alpha-mini:active{transform:scale(.95)}
.alpha-mini-ic{position:relative;width:50px;height:50px;border-radius:14px;overflow:hidden;
  border:1px solid rgba(255,255,255,.08);box-shadow:0 2px 8px rgba(0,0,0,.4)}
.alpha-mini-ic .bl{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(13px);transform:scale(1.4)}
.alpha-mini-ic .fg{position:absolute;inset:0;background-size:contain;background-position:center;background-repeat:no-repeat}

/* Section headers + horizontal rows (favourites / top games) */
.alpha-sec{margin-top:6px}
.alpha-sec-h{display:flex;align-items:center;gap:7px;font-size:.95rem;font-weight:800;color:#e8ecf5;margin:14px 0 8px}
.alpha-sec-h .dot{width:4px;height:16px;border-radius:3px;background:#a78bfa}
.alpha-all-h{margin-top:5px;display:flex;align-items:center;justify-content:space-between}
.alpha-all-lbl{margin:0!important}
.alpha-search-btn{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#cfd6e4;cursor:pointer;padding:0}
.alpha-search-btn:active{transform:scale(.94)}
.alpha-search-wrap{margin:8px 0 2px}
.alpha-search-wrap input{width:100%;padding:11px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.14);
  background:#151b2b;color:#dfe6f2;font-size:.9rem;outline:none}
.alpha-search-wrap input::placeholder{color:#6b7690}
/* Tighter top gap on the games home so the mini strip sits closer to the top bar. */
#screen-games{padding-top:8px}
.alpha-hrow{display:flex;gap:10px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
.alpha-hrow::-webkit-scrollbar{display:none}
.alpha-hrow .alpha-tile{flex:0 0 118px}

/* ===== Game detail popup (Nebula) ===== */
/* Centred modal (middle of the screen), ~30% smaller than the old bottom sheet. */
.alpha-sheet-ovl{position:fixed;inset:0;z-index:5200;background:rgba(5,4,16,.72);display:none;
  align-items:center;justify-content:center;padding:24px}
.alpha-sheet{width:100%;max-width:330px;background:#141229;border-radius:20px;
  border:1px solid rgba(255,255,255,.08);padding:13px 13px 16px;box-shadow:0 12px 44px rgba(0,0,0,.6);
  animation:alphaSheetUp .2s ease}
@keyframes alphaSheetUp{from{transform:scale(.92);opacity:.4}to{transform:scale(1);opacity:1}}
.alpha-sheet-img{position:relative;width:100%;aspect-ratio:1/1;max-height:210px;border-radius:13px;overflow:hidden;margin:0 auto 10px}
.alpha-sheet-img .bl{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(22px) saturate(1.3);transform:scale(1.5)}
.alpha-sheet-img .fg{position:absolute;inset:0;background-size:contain;background-position:center;background-repeat:no-repeat}
.alpha-sheet-nm{font-size:1rem;font-weight:800;color:#fff;margin-bottom:8px;text-align:center}
.alpha-sheet-fav{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;
  background:transparent;border:0;color:#cfd6e4;font-size:.78rem;font-weight:600;cursor:pointer;margin-bottom:11px;padding:2px}
.alpha-sheet-fav .alpha-heart{width:18px;height:18px}
.alpha-sheet-btn{display:block;width:100%;padding:12px;border-radius:12px;font-size:.92rem;font-weight:800;
  text-align:center;border:0;cursor:pointer}
.alpha-sheet-play{background:linear-gradient(135deg,#34d399,#10b981);color:#042}
.alpha-sheet-btn:active{filter:brightness(.95)}

/* ===== Admin → API panel ===== */
.api-tabs{display:flex;gap:8px;margin-bottom:12px;overflow-x:auto;scrollbar-width:none}
.api-tab{flex:0 0 auto;padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);color:#cfd6e4;font-weight:700;font-size:.82rem;cursor:pointer}
.api-tab.on{background:linear-gradient(135deg,#7b2ff7,#d500f9);border-color:transparent;color:#fff}
.api-pick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:10px}
.api-pick{position:relative;border:2px solid transparent;border-radius:12px;overflow:hidden;cursor:pointer;
  background:#151b2b;padding:0;display:flex;flex-direction:column}
.api-pick.on{border-color:#34d399}
.api-pick-img{width:100%;aspect-ratio:1/1;background-size:cover;background-position:center}
.api-pick-nm{font-size:.64rem;font-weight:700;color:#cfd6e4;padding:5px 4px;text-align:center;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.api-pick-chk{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#34d399;
  color:#042;font-size:.72rem;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.5)}
/* API → Profit */
.api-ptiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.api-ptile{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 6px;text-align:center}
.api-ptile .v{font-size:1.02rem;font-weight:800;color:#e8ecf5;font-family:var(--font-main)}
.api-ptile .k{font-size:.66rem;opacity:.75;margin-top:3px}
.api-ptile.up .v{color:#2ecc71}
.api-ptile.down .v{color:#ff5a5a}
.api-plist{display:flex;flex-direction:column;gap:12px}
.api-prow{display:flex;align-items:center;gap:10px}
.api-prow-ic{flex:0 0 auto;width:42px;height:42px;border-radius:11px;background:#151b2b center/cover no-repeat;border:1px solid var(--border)}
.api-prow-ic-ph{background:linear-gradient(135deg,#243b55,#3a2a63)}
.api-prow-body{flex:1;min-width:0}
.api-prow-top{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.api-prow-nm{flex:0 1 auto;min-width:0;font-size:.82rem;font-weight:700;color:#dfe6f2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.api-prow-pl{flex:0 0 auto;font-size:.68rem;font-weight:700;color:#8b93a7;white-space:nowrap}
.api-prow-val{flex:0 0 auto;margin-left:auto;font-size:.82rem;font-weight:800}
/* Profit period selector */
.api-period{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.api-period button{padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);color:#cfd6e4;font-weight:700;font-size:.76rem;cursor:pointer}
.api-period button.on{background:var(--cyan);border-color:transparent;color:#042}
.api-prow-val.up{color:#2ecc71}
.api-prow-val.down{color:#ff5a5a}
.api-prow-bar{height:9px;border-radius:6px;background:rgba(255,255,255,.06);overflow:hidden}
.api-prow-bar i{display:block;height:100%;border-radius:6px}
.api-prow-bar i.up{background:linear-gradient(90deg,#1e9e58,#2ecc71)}
.api-prow-bar i.down{background:linear-gradient(90deg,#c0392b,#ff5a5a)}

.alpha-play{position:fixed;inset:0;z-index:5100;background:#000;display:none;flex-direction:column}
#alphaFrame{flex:1 1 auto;width:100%;border:0;background:#000}
.alpha-play-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  text-align:center;padding:24px;color:#cfd6e4;font-weight:700;font-size:.96rem;line-height:1.5;background:#05070d}
.alpha-mode{margin-left:auto;padding:6px 12px;border-radius:999px;border:1px solid #2a3450;cursor:pointer;
  background:#151b2b;color:#cfd6e4;font-weight:800;font-size:.8rem;white-space:nowrap}
.alpha-mode.real{background:#1f7a3d;border-color:#1f7a3d;color:#fff}

/* ===== Alpha Games lobby — INLINE on the home screen ===== */
.alpha-grid-inline{flex:none;overflow:visible;min-height:0}
