/* ============================================================
   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:#ffd700; } }
.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(255,215,0,0.18); border-color:rgba(255,215,0,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(0,229,255,0.16); color: var(--cyan); white-space: nowrap; }
.ref-share-btn { width: 100%; margin-top: 10px; background: linear-gradient(135deg, #29ADFF, #0061ff); 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, #161b2e); 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: flex-end; 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 {
  width: 100%; padding: 14px 6px 6px; text-align: center; color: #fff;
  font-weight: 700; font-size: 0.82rem; line-height: 1.1;
  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: #2196F3; 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: #2196F3; 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(255,215,0,0.4);
}

/* ===== Home announcement banner (16:5 carousel) ===== */
.ann-banner {
  position: relative; width: 100%; aspect-ratio: 16 / 5;
  overflow: hidden; border-radius: 14px; margin: 10px 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; }
/* Video announcement fills the slide like a cover image. */
.ann-slide .ann-video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Freeze toggle row — the checkbox must not inherit the full-width text-input styling. */
.mo-ann-freeze-row { display: flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 0.76rem; cursor: pointer; padding: 2px 1px; }
.mo-ann-freeze-row input[type="checkbox"] { width: auto; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--gold); }

:root {
  --bg:         #050812;
  --bg2:        #0a0f20;
  --bg3:        #0f1530;
  --surface:    rgba(255,255,255,0.04);
  --border:     rgba(255,255,255,0.07);
  --gold:       #ffd700;
  --gold2:      #ff9500;
  --cyan:       #00e5ff;
  --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:  'Orbitron', sans-serif;
  --font-body:  'Rajdhani', '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(0,229,255,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(255,215,0,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, #0d1128 0%, #080d1e 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(0,229,255,0.1), rgba(0,97,255,0.08));
  border: 1px solid rgba(0,229,255,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: 56px;
  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(255,215,0,0.4);
}
.top-logo span { color: var(--cyan); }

.top-balance {
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(0,97,255,0.1));
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,229,255,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: 56px; min-height: calc(100vh - 56px); }

.screen {
  display: none;
  min-height: calc(100vh - 56px);
  padding: 16px 14px 80px;
  animation: screenIn 0.3s ease;
}
.screen.active { display: block; }
/* Admin-set wallpaper for the game hub (body.hub-wallpaper while the games screen
   is active): fixed, cover-fitted, with a dark veil so cards and titles stay
   readable on any photo. It sits behind EVERYTHING (z-index -1 on body::before),
   and the top bar turns translucent so the image shows through it too. Without the
   class the default gradient look is unchanged. */
body.hub-wallpaper::before {
  background: var(--hub-bg) center / cover no-repeat;
}
body.hub-wallpaper::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,8,20,0.55) 0%, rgba(5,8,20,0.35) 40%, rgba(5,8,20,0.6) 100%);
}
body.hub-wallpaper .top-bar { background: rgba(5,8,18,0.35); }

@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(255,215,0,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(255,215,0,0.14) 0%, transparent 70%); }
.sc-gold:active, .sc-gold.selected { border-color: rgba(255,215,0,0.4); box-shadow: 0 6px 28px rgba(255,215,0,0.12); }
.sc-gold:active::before, .sc-gold.selected::before { opacity: 1; }
.sc-gold .sc-ring { background: linear-gradient(135deg, #ffd700, #ff9500); box-shadow: 0 4px 18px rgba(255,215,0,0.3); }
.sc-gold .sc-amount { color: #ffd700; }

.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(0,229,255,0.14) 0%, transparent 70%); }
.sc-cyan:active, .sc-cyan.selected { border-color: rgba(0,229,255,0.4); box-shadow: 0 6px 28px rgba(0,229,255,0.12); }
.sc-cyan:active::before, .sc-cyan.selected::before { opacity: 1; }
.sc-cyan .sc-ring { background: linear-gradient(135deg, #0061ff, #00e5ff); box-shadow: 0 4px 18px rgba(0,229,255,0.3); }
.sc-cyan .sc-amount { color: #00e5ff; }

.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, #ff9500); }
.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(255,215,0,0.2), rgba(255,149,0,0.15));
  color: var(--gold); border: 1px solid rgba(255,215,0,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(255,215,0,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(0,229,255,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: #ffd700; 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 #ffd700, 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(0,229,255,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(255,215,0,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(0,229,255,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(0,229,255,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(255,215,0,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: #ffd700; background: rgba(255,215,0,0.1); }
.bh-n { color: #00e676; background: rgba(0,230,118,0.1); }
.bh-g { color: #00e5ff; background: rgba(0,229,255,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(255,215,0,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, #ff9500, #ffd700); }
.chb-n { background: linear-gradient(135deg, #00c853, #00e676); }
.chb-g { background: linear-gradient(135deg, #0061ff, #00e5ff); 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: #ffd700; background: rgba(255,215,0,0.15); }
.cg-col-header.cg-hn { color: #00e676; background: rgba(0,230,118,0.15); }
.cg-col-header.cg-hg { color: #00e5ff; background: rgba(0,229,255,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,#ff9500,#ffd700); }
.cg-num.cg-n.cg-called { background: linear-gradient(135deg,#00c853,#00e676); }
.cg-num.cg-g.cg-called { background: linear-gradient(135deg,#0061ff,#00e5ff); 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: #ffd700; background: rgba(255,215,0,0.12); }
.bch-n { color: #00e676; background: rgba(0,230,118,0.12); }
.bch-g { color: #00e5ff; background: rgba(0,229,255,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(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}
.gc-cell.gc-daubed {
  background: linear-gradient(135deg, rgba(0,229,255,0.3), rgba(0,97,255,0.2));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}
.gc-cell.gc-win {
  animation: winCell 0.5s ease-in-out infinite alternate;
}
@keyframes winCell {
  from { box-shadow: 0 0 8px rgba(255,215,0,0.3); border-color: var(--gold); }
  to   { box-shadow: 0 0 22px rgba(255,215,0,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(0,229,255,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(0,229,255,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: #ffa500; }
.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(255,215,0,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(255,215,0,.35);
  box-shadow:0 0 40px rgba(255,215,0,.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:#ffd700;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,#ffd700,#ffb300);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,#3a3a3a 25%,transparent 25%),linear-gradient(-45deg,#3a3a3a 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#3a3a3a 75%),linear-gradient(-45deg,transparent 75%,#3a3a3a 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:#ffd700;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:#ffd700; }
.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(255,215,0,0.15); border-color:rgba(255,215,0,0.4); color:#ffd700; }
.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:#ffa500; 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:#ffa500; } .st-approved { color:#00c853; } .st-cancelled { color:#ff4444; }
.st-warn { color:#ffd21e; } /* money definitely NOT sent — admin just re-sends */
.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:#ffa500; }
.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,#ffd700,#ff8c00,#ffd700); 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(255,215,0,0.06); border-radius:14px; border:1px solid rgba(255,215,0,0.15); }
.wm-coin { font-size:1.4rem; }
.wm-balance { font-family:var(--font-main); font-size:1.9rem; font-weight:900; color:#ffd700; flex:1; }
.wm-curr-tag { font-family:var(--font-main); font-size:0.75rem; color:rgba(255,215,0,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(255,215,0,0.10); border:1px solid rgba(255,215,0,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(100,181,246,.07);border-left:3px solid #64b5f6}
.notif-item-from{font-size:.7rem;font-weight:700;color:#64b5f6;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:#ffb700;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,#1565c0,#1976d2);color:#fff}
.upm-btn-chat{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff}
.upm-btn-wager{background:rgba(255,183,0,.16);color:#ffb700;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:#ffb700}
.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:#64b5f6;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:#ffa500;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(100,181,246,.5)}
.settings-textarea{resize:none;min-height:72px}
.settings-save-btn{width:100%;margin-top:14px;padding:12px;background:linear-gradient(135deg,#1565c0,#1976d2);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(100,181,246,.22);border:1px solid rgba(100,181,246,.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,#1565c0,#1976d2);
  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(255,215,0,.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:#ffd700;line-height:1.15}
/* called-but-not-yet-marked hint (manual mode) */
.gc-cell.gc-callable{box-shadow:inset 0 0 0 2px rgba(0,229,255,.9);animation:callablePulse 1.1s infinite}
@keyframes callablePulse{0%,100%{box-shadow:inset 0 0 0 2px rgba(0,229,255,.9)}50%{box-shadow:inset 0 0 0 2px rgba(0,229,255,.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:#ffd700}
.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:#00e5ff;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 - 56px); 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,#2f6bdc,#4d8cff); 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:#4d8cff; margin:-2px 2px 4px; font-weight:700; }
/* Side-menu language switcher. */
.menu-promo { margin-top:10px; padding:10px 12px; border-radius:12px; background:rgba(255,215,0,.07); border:1px solid rgba(255,215,0,.22); }
.menu-promo-label { display:block; font-size:.82rem; font-weight:700; margin-bottom:8px; color:#ffd700; }
.menu-promo-row { display:flex; gap:8px; }
.menu-promo-input { flex:1; padding:9px 10px; border-radius:9px; border:1px solid var(--border,#26324f); 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,#ffd700,#ffb300); 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,#26324f); background:transparent; color:#cfe; font-size:.82rem; font-weight:700; font-family:inherit; cursor:pointer; }
.menu-lang-btn.on { background:linear-gradient(135deg,#2f6bdc,#4d8cff); 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,#26324f); 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,#2f6bdc,#4d8cff); 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:#4d8cff; }
.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,#26324f); 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,#8892b0); 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,#26324f); background:var(--card-bg,#161b2e); }
.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,#26324f); 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,#26324f); background:rgba(255,255,255,.05); color:#cfe; 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,#26324f); background:var(--card-bg,#161b2e); 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:#cfe; border-radius:8px; padding:3px 8px; font-size:.72rem; font-family:inherit; cursor:pointer; }
.cfb-hint { font-size:.76rem; color:var(--sub,#8892b0); line-height:1.4; margin-bottom:10px; }
.cfb-input { width:100%; background:rgba(255,255,255,.06); border:1px solid var(--border,#26324f); 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,#2f6bdc,#4d8cff); color:#fff; font-weight:700; font-family:inherit; cursor:pointer; }
.cfb-cancel { flex:0 0 auto; padding:9px 14px; border:1px solid var(--border,#26324f); border-radius:10px; background:transparent; color:var(--sub,#8892b0); 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,#26324f); }
/* 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,#26324f); 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(100,181,246,.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,#2f6bdc,#4d8cff); 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:#cfe; font-size:1.2rem; border:none; cursor:pointer; }
.chat-attach-btn:active { transform:scale(.92); }
.chat-empty { text-align:center; color:var(--sub,#8892b0); 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,#8892b0); 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,#0f3d29,#06120d);
  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 #06120d;
}

/* 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 (Orbitron) across all Baron 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; }

/* 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)}

/* ── Master Agent ─────────────────────────────────────────────── */
.ma-users-wrap{display:flex;flex-direction:column;gap:10px}
.ma-user-row{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--panel,#161b2e);border:1px solid var(--border,#26324f);border-radius:12px;cursor:pointer}
.ma-user-row:active{background:rgba(255,255,255,.05)}
.ma-user-main{flex:1;min-width:0}
.ma-user-name{font-weight:700;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ma-user-sub{font-size:.72rem;color:rgba(255,255,255,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ma-user-bal{font-weight:800;color:var(--gold,#f5c518);white-space:nowrap}
.ma-detail-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ma-detail-name{font-weight:800;font-size:1.05rem}
.ma-detail-x{background:transparent;border:none;color:#fff;font-size:1.1rem;cursor:pointer}
.ma-detail-sub{font-size:.75rem;color:rgba(255,255,255,.5);margin-top:2px}
.ma-detail-bal{font-weight:800;color:var(--gold,#f5c518);font-size:1.25rem;margin:10px 0 2px}
.ma-detail-note{font-size:.72rem;color:#7ee0a8;margin-bottom:12px}
.ma-detail-txtitle{font-weight:700;font-size:.82rem;margin:8px 0 6px;opacity:.8}
.ma-tx-list{display:flex;flex-direction:column;gap:4px}
.ma-tx-row{display:flex;justify-content:space-between;gap:8px;font-size:.78rem;padding:6px 8px;background:rgba(255,255,255,.03);border-radius:8px}
.ma-tx-when{color:rgba(255,255,255,.4);font-size:.68rem}
.ma-admin-row{background:var(--panel,#161b2e);border:1px solid var(--border,#26324f);border-radius:12px;padding:10px 12px;margin-top:8px}
.ma-admin-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ma-admin-name{font-weight:700}
.ma-admin-id{font-size:.7rem;color:rgba(255,255,255,.45)}
.ma-admin-del{background:transparent;border:none;cursor:pointer;font-size:1rem}
.ma-toggles{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px}
.ma-toggle{display:flex;align-items:center;gap:6px;font-size:.8rem;cursor:pointer}
.ma-toggle input{width:16px;height:16px}

/* ── Credit settlement panel ──────────────────────────────────── */
.credit-row{background:var(--panel,#161b2e);border:1px solid var(--border,#26324f);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.credit-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.credit-name{font-weight:700;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.credit-id{font-size:.7rem;color:rgba(255,255,255,.45);font-weight:400}
.credit-paid-btn{background:rgba(0,200,120,.18);color:#4ade80;border:none;border-radius:9px;padding:6px 12px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap}
.credit-paid-btn:active{background:rgba(0,200,120,.3)}
.credit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
.credit-grid>div{background:rgba(255,255,255,.04);border-radius:8px;padding:6px 8px;display:flex;flex-direction:column;gap:2px}
.credit-grid>div span{font-size:.64rem;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.3px}
.credit-grid>div b{font-size:.92rem}
.credit-comm b{color:var(--gold,#f5c518)}
.credit-since{font-size:.68rem;color:rgba(255,255,255,.4);margin-top:8px}
.credit-hist-rec{border:1px solid var(--border,#26324f);border-radius:10px;padding:8px 10px;margin-top:8px}
.credit-hist-when{font-size:.74rem;font-weight:700;opacity:.85;margin-bottom:4px}
.credit-hist-title{font-weight:800;font-size:.86rem;margin:14px 0 2px}
.credit-pick-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:var(--panel,#161b2e);border:1px solid var(--border,#26324f);border-radius:12px;margin-bottom:6px;cursor:pointer}
.credit-pick-row:active{background:rgba(255,255,255,.05)}
.credit-pick-plus{font-size:1.2rem;color:#4ade80;font-weight:700}
.ma-chat-badge{display:none;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ff5252;color:#fff;font-size:.68rem;font-weight:800;margin-left:4px;vertical-align:middle}
.partner-row{background:var(--panel,#161b2e);border:1px solid var(--border,#26324f);border-radius:12px;padding:10px 12px;margin-top:8px}
.partner-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.partner-name{font-weight:700}
.partner-id{font-size:.68rem;color:rgba(255,255,255,.45)}
.pcfg-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
.pcfg-f{display:flex;flex-direction:column;gap:2px;font-size:.66rem;color:rgba(255,255,255,.55)}
.pcfg-f input{background:rgba(255,255,255,.04);border:1px solid var(--border,#26324f);border-radius:8px;color:#fff;padding:6px 8px;font-size:.85rem}
.partner-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.partner-actions button{background:rgba(255,255,255,.06);border:1px solid var(--border,#26324f);border-radius:8px;color:#fff;padding:6px 10px;font-size:.76rem;cursor:pointer;font-family:inherit}
.partner-actions button.danger{background:rgba(255,80,80,.15);border-color:rgba(255,80,80,.3)}
.psecret-f{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
.psecret-f span{font-size:.66rem;color:rgba(255,255,255,.5)}
.psecret-f code{background:rgba(255,255,255,.06);border-radius:6px;padding:6px 8px;font-size:.8rem;word-break:break-all}

/* ===== Agent 📊 Status (per-game earnings/losses) ===== */
.ag-status-btn{
  flex:0 0 auto; display:flex; align-items:center; gap:5px;
  background:linear-gradient(135deg, rgba(255,215,0,.16), rgba(255,149,0,.12));
  border:1px solid rgba(255,215,0,.45); color:var(--gold);
  font-weight:800; font-size:.82rem; font-family:var(--font-am);
  padding:7px 12px; border-radius:11px; transition:.2s;
}
.ag-status-btn:active{ transform:scale(.93); }
.ags-summ{ display:flex; gap:10px; margin-bottom:14px; }
.ags-box{ flex:1; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:11px 13px; }
.ags-lbl{ font-size:.68rem; color:var(--text-dim); font-family:var(--font-am); }
.ags-val{ font-size:1.18rem; font-weight:800; margin-top:3px; font-family:var(--font-main); }
.ags-pos{ color:var(--green); } .ags-neg{ color:var(--red); }
.ags-list{ display:flex; flex-direction:column; gap:9px; }
.ags-row{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:10px 13px; }
.ags-top{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.ags-name{ font-size:.92rem; font-weight:800; font-family:var(--font-am); white-space:nowrap; }
.ags-sub{ font-size:.66rem; color:var(--text-dim); margin-left:4px; flex:1; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--font-am); }
.ags-amt{ font-size:.95rem; font-weight:800; font-family:var(--font-main); min-width:62px; text-align:right; }
.ags-track{ height:11px; border-radius:7px; background:rgba(255,255,255,.06); overflow:hidden; }
.ags-fill{ height:100%; border-radius:7px; transition:width .35s ease; }
.ags-fill.ags-pos{ background:linear-gradient(90deg, #1f9d55, var(--green)); }
.ags-fill.ags-neg{ background:linear-gradient(90deg, #c0392b, var(--red)); }

/* ── Owner settlement overlay (Status → Unpaid) ──────────────────────────── */
.settle-ov{position:fixed;inset:0;z-index:4200;background:rgba(0,0,0,.6);
  display:flex;align-items:flex-start;justify-content:center;padding:24px 12px;overflow:auto}
.settle-card{background:var(--panel,#161b2e);border:1px solid var(--border,#26324f);
  border-radius:16px;padding:16px;max-width:380px;width:100%}
.settle-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.settle-title{font-weight:800;font-size:1.02rem}
.settle-x,.settle-back{background:transparent;border:0;color:var(--text-dim,#8b95a7);
  font-size:1rem;font-weight:700;cursor:pointer;padding:4px 6px}
.settle-pay{width:100%;padding:13px;border:0;border-radius:12px;cursor:pointer;
  background:var(--lime,#7CFC00);color:#07210a;font-weight:800;font-size:1rem;margin-bottom:14px}
.settle-pay:active{filter:brightness(.92)}
.settle-unpaid{background:rgba(255,255,255,.04);border:1px solid var(--border,#26324f);
  border-radius:12px;padding:16px;text-align:center}
.settle-unpaid-lbl{font-size:.78rem;color:var(--text-dim,#8b95a7);font-weight:700;
  text-transform:uppercase;letter-spacing:.04em}
.settle-unpaid-profit{font-size:2rem;font-weight:800;color:var(--lime,#7CFC00);margin:6px 0 2px}
.settle-unpaid-profit span{font-size:.8rem;color:var(--text-dim,#8b95a7);font-weight:600}
.settle-unpaid-tb{font-size:.86rem;color:#cfd6e4;margin-top:6px}
.settle-unpaid-last{font-size:.74rem;color:var(--text-dim,#8b95a7);margin-top:8px}
.settle-hist-btn{width:100%;margin-top:14px;padding:11px;border:1px solid var(--border,#26324f);
  border-radius:12px;background:transparent;color:#cfd6e4;font-weight:700;cursor:pointer}
.settle-list{display:flex;flex-direction:column;gap:8px}
.settle-row{background:rgba(255,255,255,.04);border:1px solid var(--border,#26324f);
  border-radius:12px;padding:12px}
.settle-row-top{display:flex;justify-content:space-between;align-items:center;
  font-size:.92rem;margin-bottom:6px}
.settle-row-top span{font-size:.8rem;color:var(--text-dim,#8b95a7)}
.settle-row-fig{display:flex;justify-content:space-between;font-size:.86rem;color:#cfd6e4}

/* ===== Player web login screen (opened outside Telegram) ===== */
#loginScreen{position:fixed;inset:0;z-index:4000;background:radial-gradient(1200px 600px at 50% -10%,#1a1340,#0b0b1a 60%);display:none;align-items:center;justify-content:center;padding:22px;color:#fff;font-family:var(--font-am,inherit)}
.login-card{width:100%;max-width:360px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:22px;padding:24px 20px}
.login-logo{font-size:2.6rem;text-align:center}
.login-title{text-align:center;font-weight:900;font-size:1.5rem;color:#ffd700;letter-spacing:.3px;margin-top:4px}
.login-sub{text-align:center;color:#9aa3b5;font-size:.9rem;margin:2px 0 16px}
.login-tabs{display:flex;gap:8px;background:rgba(0,0,0,.25);border-radius:14px;padding:5px;margin-bottom:16px}
.login-tab{flex:1;border:none;background:transparent;color:#aab2c4;font-weight:700;font-size:.92rem;padding:10px 6px;border-radius:10px;cursor:pointer;transition:.15s}
.login-tab.is-on{background:linear-gradient(135deg,#ffd700,#f0a500);color:#1a1200}
.login-pane{display:flex;flex-direction:column}
.login-label{font-size:.82rem;color:#c3cad8;margin:10px 2px 6px;font-weight:600}
.login-input{width:100%;box-sizing:border-box;background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.14);border-radius:12px;color:#fff;padding:13px 14px;font-size:1rem;outline:none;transition:border-color .15s}
.login-input:focus{border-color:#ffd700}
.login-btn{width:100%;margin-top:14px;border:none;border-radius:12px;padding:14px;font-size:1rem;font-weight:800;color:#1a1200;background:linear-gradient(135deg,#ffd700,#f0a500);cursor:pointer}
.login-btn:disabled{opacity:.6}
.login-btn:active{transform:scale(.98)}
.login-link{width:100%;margin-top:10px;background:none;border:none;color:#8ab4ff;font-size:.88rem;cursor:pointer;padding:6px}
.login-note{font-size:.8rem;color:#9aa3b5;line-height:1.6;margin:6px 2px 2px}
.login-foot{text-align:center;color:#7f8798;font-size:.78rem;margin-top:18px;line-height:1.5}

/* ===== Create / change password modal ===== */
.cpw-overlay{position:fixed;inset:0;z-index:4100;background:rgba(0,0,0,.72);display:none;align-items:center;justify-content:center;padding:22px;color:#fff;font-family:var(--font-am,inherit)}
.cpw-card{width:100%;max-width:340px;background:#131a26;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:20px 18px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.cpw-title{font-weight:900;font-size:1.2rem;color:#ffd700;margin-bottom:6px}
.cpw-sub{font-size:.83rem;color:#9aa3b5;line-height:1.6;margin-bottom:12px}
.cpw-actions{display:flex;flex-direction:column;margin-top:4px}
