/* =========================================================
   Bingo Bet — Design System (Phase 15)
   ========================================================= */

:root {
  /* Brand palette */
  --bb-primary:        #4338ca;
  --bb-primary-dark:   #312e81;
  --bb-primary-light:  #6366f1;
  --bb-accent:         #f59e0b;
  --bb-danger:         #ef4444;
  --bb-success:        #16a34a;

  /* Surfaces */
  --bb-bg:             #f6f7fb;
  --bb-surface:        #ffffff;
  --bb-border:         #e6e9f2;
  --bb-muted:          #64748b;
  --bb-text:           #1f2937;

  /* Bingo letter colours */
  --bb-letter-b:       #0d6efd;
  --bb-letter-i:       #6610f2;
  --bb-letter-n:       #d63384;
  --bb-letter-g:       #fd7e14;
  --bb-letter-o:       #198754;

  /* Admin sidebar */
  --bb-admin-bg:       #0f172a;
  --bb-admin-accent:   #6366f1;

  /* Shared */
  --bb-radius:         14px;
  --bb-radius-sm:      10px;
  --bb-shadow:         0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.04);
  --bb-shadow-md:      0 8px 24px rgba(15,23,42,.08);
  --bb-shadow-lg:      0 18px 48px rgba(15,23,42,.12);
}

/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */
html, body { height: 100%; }

body {
  background: var(--bb-bg);
  color: var(--bb-text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.bb-landing { padding-bottom: 0; }
body:not(.bb-landing) { padding-bottom: 96px; }

a { color: var(--bb-primary); }
a:hover { color: var(--bb-primary-dark); }

/* ---------------------------------------------------------
   Navbar (user)
   --------------------------------------------------------- */
.navbar.bg-primary {
  background: linear-gradient(90deg, var(--bb-primary-dark), var(--bb-primary)) !important;
  box-shadow: 0 4px 20px rgba(67,56,202,0.18);
}

.navbar-brand { font-weight: 800; letter-spacing: .2px; }
.navbar .nav-link { font-weight: 500; }
.navbar .nav-link.active { font-weight: 700; }
.navbar .navbar-text { opacity: 0.95; }

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.bb-card {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  background: var(--bb-surface);
  box-shadow: var(--bb-shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}

.bb-card:hover { box-shadow: var(--bb-shadow-md); }

.bb-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--bb-border);
  border-radius: var(--bb-radius) var(--bb-radius) 0 0 !important;
  font-weight: 600;
}

.bb-money { font-variant-numeric: tabular-nums; font-weight: 700; }

.bb-card .stretched-link::after { border-radius: inherit; }

/* Tables */
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .7rem .85rem; vertical-align: middle; }
.table thead th {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bb-muted);
  font-weight: 700;
}

/* Buttons — subtle lift */
.btn { border-radius: var(--bb-radius-sm); font-weight: 600; }
.btn-primary {
  background: linear-gradient(180deg, var(--bb-primary-light), var(--bb-primary));
  border-color: var(--bb-primary);
  box-shadow: 0 6px 14px rgba(67,56,202,.20);
}
.btn-primary:hover { border-color: var(--bb-primary-dark); }
.btn-success { box-shadow: 0 6px 14px rgba(22,163,74,.20); }
.btn-danger  { box-shadow: 0 6px 14px rgba(239,68,68,.20); }

/* Form */
.form-control, .form-select {
  border-radius: var(--bb-radius-sm);
  border-color: #d8dce7;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bb-primary-light);
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.18);
}

/* Alerts */
.alert { border-radius: var(--bb-radius-sm); border: none; }

/* ---------------------------------------------------------
   User: quick action tiles
   --------------------------------------------------------- */
.bb-card .display-6 { color: var(--bb-primary); }

/* ---------------------------------------------------------
   Bingo: board picker
   --------------------------------------------------------- */
.bb-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: .5rem;
}

.bb-board-btn {
  aspect-ratio: 1/1;
  border: 2px solid #d8dce7;
  background: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #334155;
  transition: all .12s ease;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bb-board-btn:hover:not(:disabled) {
  border-color: var(--bb-primary-light);
  color: var(--bb-primary);
  transform: translateY(-1px);
}
.bb-board-btn:disabled { cursor: not-allowed; opacity: .85; }

.bb-board-selected {
  background: linear-gradient(180deg, #6366f1, #4338ca) !important;
  border-color: #4338ca !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(67,56,202,.30);
}
.bb-board-mine {
  background: linear-gradient(180deg, #34d399, #16a34a) !important;
  border-color: #16a34a !important;
  color: #fff !important;
}
.bb-board-taken {
  background: #eef1f7 !important;
  border-color: #d8dce7 !important;
  color: #a3adbf !important;
}

.bb-swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: .3rem;
}
.bb-swatch-available { background: #fff; border: 2px solid #d8dce7; }
.bb-swatch-selected  { background: #4338ca; }
.bb-swatch-mine      { background: #16a34a; }
.bb-swatch-taken     { background: #cbd5e1; }

/* ---------------------------------------------------------
   Bingo: called numbers
   --------------------------------------------------------- */
.bb-called-grid { display: flex; flex-wrap: wrap; gap: .4rem; }

.bb-called-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700; font-size: .85rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.bb-called-letter { font-weight: 800; }
.bb-called-chip.bb-letter-b { background: rgba(13,110,253,.10); color: var(--bb-letter-b); }
.bb-called-chip.bb-letter-i { background: rgba(102,16,242,.10); color: var(--bb-letter-i); }
.bb-called-chip.bb-letter-n { background: rgba(214,51,132,.10); color: var(--bb-letter-n); }
.bb-called-chip.bb-letter-g { background: rgba(253,126,20,.12); color: #b45309; }
.bb-called-chip.bb-letter-o { background: rgba(25,135,84,.10); color: var(--bb-letter-o); }

.bb-remaining { color: var(--bb-muted); }

/* ---------------------------------------------------------
   Bingo: card
   --------------------------------------------------------- */
.bb-card-tabs .nav-link {
  border-radius: 999px;
  padding: .35rem .9rem;
  color: #334155;
  font-weight: 600;
  font-size: .9rem;
  margin-right: .35rem;
  border: 1px solid transparent;
}
.bb-card-tabs .nav-link:hover { background: #eef2ff; }
.bb-card-tabs .nav-link.active {
  background: linear-gradient(180deg, var(--bb-primary-light), var(--bb-primary));
  color: #fff;
  box-shadow: 0 6px 14px rgba(67,56,202,.20);
}
.bb-card-tabs .nav-link.bb-tab-winner { background: #16a34a; color: #fff; }

.bb-bingo-card-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bb-border);
  box-shadow: var(--bb-shadow-md);
}

.bb-bingo-header { display: grid; grid-template-columns: repeat(5, 1fr); }
.bb-bingo-header-cell {
  padding: .6rem .25rem;
  text-align: center;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .06em;
  color: #fff;
}
.bb-letter-b { background: var(--bb-letter-b); }
.bb-letter-i { background: var(--bb-letter-i); }
.bb-letter-n { background: var(--bb-letter-n); }
.bb-letter-g { background: var(--bb-letter-g); }
.bb-letter-o { background: var(--bb-letter-o); }

.bb-bingo-ranges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f7f8fc;
  color: var(--bb-muted);
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
  padding: .2rem 0;
  border-bottom: 1px solid var(--bb-border);
}

.bb-bingo-body {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  background: #eef1f7;
}

.bb-bingo-cell {
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  background: #fff;
  border: none;
  border-radius: 6px;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button.bb-bingo-num { cursor: pointer; }

.bb-bingo-free {
  background: #fef3c7;
  color: #b45309;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.bb-bingo-cell.bb-marked {
  background: linear-gradient(180deg, #34d399, #16a34a);
  color: #fff;
  box-shadow: inset 0 0 0 2px #15803d;
}

@keyframes bbPulse {
  0%   { transform: scale(1);    box-shadow: inset 0 0 0 2px #16a34a, 0 0 0 0 rgba(34,197,94,.55); }
  40%  { transform: scale(1.12); box-shadow: inset 0 0 0 2px #16a34a, 0 0 0 10px rgba(34,197,94,0); }
  100% { transform: scale(1);    box-shadow: inset 0 0 0 2px #16a34a, 0 0 0 0 rgba(34,197,94,0); }
}
.bb-bingo-cell.bb-pulse { animation: bbPulse .9s ease-out; z-index: 2; }

.bb-mode-hint {
  font-size: .88rem;
  color: #334155;
  background: linear-gradient(90deg, #eef2ff, #e0e7ff);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: .7rem .9rem;
}

/* ---------------------------------------------------------
   Bingo: current number
   --------------------------------------------------------- */
.bb-current-card { overflow: hidden; }
.bb-current-card .card-body { padding-bottom: 1rem; }

.bb-current-number {
  display: flex; align-items: center; justify-content: center;
  gap: .25rem; line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--bb-primary);
  font-size: clamp(3rem, 10vw, 5rem);
  letter-spacing: -.02em;
  padding: .15rem 0;
}
.bb-current-letter { font-weight: 900; font-size: 1em; }
.bb-current-dash   { opacity: .55; font-size: .8em; }
.bb-current-digit  { font-weight: 900; font-size: 1em; }
.bb-current-number.bb-current-letter-b { color: var(--bb-letter-b); }
.bb-current-number.bb-current-letter-i { color: var(--bb-letter-i); }
.bb-current-number.bb-current-letter-n { color: var(--bb-letter-n); }
.bb-current-number.bb-current-letter-g { color: var(--bb-letter-g); }
.bb-current-number.bb-current-letter-o { color: var(--bb-letter-o); }

/* ---------------------------------------------------------
   Sticky BINGO button
   --------------------------------------------------------- */
.bb-bingo-sticky { position: fixed; bottom: 18px; right: 18px; z-index: 1050; }

.bb-bingo-btn {
  border-radius: 999px;
  padding: .95rem 1.7rem;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #fb7185, #dc2626);
  border: none;
  box-shadow: 0 10px 26px rgba(220,38,38,.35);
  transition: transform .08s ease, box-shadow .08s ease;
}
.bb-bingo-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(220,38,38,.45); }
.bb-bingo-btn:active { transform: translateY(0); }
.bb-bingo-btn i { margin-right: .25rem; }

/* ---------------------------------------------------------
   Notifications list
   --------------------------------------------------------- */
.bb-notif-unread {
  background: #eff6ff;
  border-left: 3px solid var(--bb-primary);
}

/* ---------------------------------------------------------
   Admin panel
   --------------------------------------------------------- */
.bb-admin-body { background: #f1f5f9; }

.bb-admin-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  min-height: 100vh;
  width: 260px;
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 1030;
  transition: transform .2s ease;
}

.bb-admin-sidebar .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: block; text-decoration: none;
  letter-spacing: .02em;
}

.bb-admin-sidebar .nav-section {
  padding: .9rem 1.25rem .3rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
  font-weight: 700;
}

.bb-admin-sidebar .nav-link {
  color: #cbd5e1;
  padding: .6rem 1.25rem;
  border-left: 3px solid transparent;
  font-size: .92rem;
  font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
.bb-admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,.05); color: #fff;
}
.bb-admin-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(99,102,241,.25), rgba(99,102,241,.05));
  color: #fff;
  border-left-color: var(--bb-admin-accent);
  font-weight: 600;
}
.bb-admin-sidebar .nav-link i {
  width: 20px; display: inline-block; text-align: center;
  margin-right: .55rem;
}

.bb-admin-main { margin-left: 260px; min-height: 100vh; }

.bb-admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--bb-border);
  padding: .85rem 1.5rem;
  position: sticky; top: 0; z-index: 1020;
  box-shadow: 0 2px 10px rgba(15,23,42,.03);
}

.bb-admin-content { padding: 1.5rem; }

.bb-admin-kpi {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  background: #fff;
  box-shadow: var(--bb-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bb-admin-kpi:hover { transform: translateY(-2px); box-shadow: var(--bb-shadow-md); }

.bb-admin-kpi .kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bb-admin-kpi .kpi-label {
  font-size: .82rem;
  color: var(--bb-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bb-admin-kpi .kpi-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.bb-screenshot-preview {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--bb-border);
  box-shadow: var(--bb-shadow);
}

.bb-sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 1025;
}

@media (max-width: 991.98px) {
  .bb-admin-sidebar { transform: translateX(-100%); }
  .bb-admin-sidebar.show { transform: translateX(0); }
  .bb-admin-main { margin-left: 0; }
  .bb-sidebar-backdrop.show { display: block; }
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */
@media (max-width: 575.98px) {
  body:not(.bb-landing) { padding-bottom: 110px; }
  .navbar-brand { font-size: 1rem; }
  h1.h3, h1.h4 { font-size: 1.25rem; }
  .bb-money { font-size: .95rem; }
  .bb-admin-content { padding: 1rem; }
  .bb-board-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
  .bb-board-btn { font-size: .95rem; }
  .bb-bingo-header-cell { font-size: 1rem; padding: .45rem .15rem; }
  .bb-bingo-ranges { font-size: .62rem; }
  .bb-bingo-cell { font-size: .98rem; }
  .bb-bingo-free { font-size: .62rem; }
  .bb-bingo-sticky { bottom: 12px; right: 12px; left: 12px; }
  .bb-bingo-btn { width: 100%; font-size: 1rem; padding: .85rem 1rem; }
}
/* =========================================================
   AUTH PAGES (Phase 15)
   ========================================================= */

.bb-auth-body {
  background: #f6f7fb;
  padding-bottom: 0 !important;
  min-height: 100vh;
}

.bb-auth-wrap {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .bb-auth-wrap {
    grid-template-columns: 480px 1fr;
  }
}

/* ----- Left: brand panel ----- */
.bb-auth-brand {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(168,85,247,.45) 0%, transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(236,72,153,.40) 0%, transparent 60%),
    linear-gradient(150deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}

@media (min-width: 992px) {
  .bb-auth-brand { display: block; }
}

.bb-auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}

.bb-auth-brand-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bb-auth-logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .02em;
  text-decoration: none;
  margin-bottom: auto;
}
.bb-auth-logo:hover { color: #fff; }
.bb-auth-logo i { color: #facc15; }

.bb-auth-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 2.5rem 0 1rem;
}
.bb-auth-title .accent {
  background: linear-gradient(90deg, #facc15, #fb7185 60%, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.bb-auth-sub {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

.bb-auth-perks {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: grid; gap: .75rem;
  font-size: .95rem;
  color: rgba(255,255,255,.92);
}
.bb-auth-perks li { display: flex; align-items: center; gap: .55rem; }
.bb-auth-perks i { color: #22c55e; font-size: 1.1rem; }

.bb-auth-foot {
  margin-top: auto;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
}
.bb-auth-foot i { margin-right: .35rem; color: #facc15; }

/* ----- Right: form ----- */
.bb-auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: #f6f7fb;
}

.bb-auth-form-inner {
  width: 100%;
  max-width: 440px;
}

.bb-auth-logo-dark {
  color: var(--bb-primary);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
}
.bb-auth-logo-dark i { color: var(--bb-primary); }

.bb-auth-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}

.bb-auth-lead {
  color: var(--bb-muted);
  margin-bottom: 1.5rem;
}

.bb-auth-fields .form-label {
  font-weight: 600;
  font-size: .88rem;
  color: #334155;
}

.bb-auth-fields .input-group-text {
  background: #f1f5f9;
  border-color: #d8dce7;
  color: #64748b;
}

.bb-auth-fields .form-control {
  border-color: #d8dce7;
  padding: .7rem .9rem;
}

.bb-auth-fields .form-control:focus {
  border-color: var(--bb-primary-light);
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.15);
}

.bb-toggle-pwd {
  border-color: #d8dce7;
  color: #64748b;
  background: #fff;
}
.bb-toggle-pwd:hover { color: var(--bb-primary); background: #f8fafc; }

.bb-auth-submit {
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .bb-auth-form { padding: 2rem 1rem; }
  .bb-auth-heading { font-size: 1.5rem; }
  .bb-auth-fields .form-text { font-size: .78rem; }
}
/* =========================================================
   USER DASHBOARD (Phase 15)
   ========================================================= */

/* ----- Hero wallet card ----- */
.bb-wallet-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--bb-radius);
  padding: 1.5rem 1.5rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(500px 250px at 90% 0%, rgba(255,255,255,.15) 0%, transparent 60%),
    linear-gradient(135deg, #312e81 0%, #4338ca 55%, #6366f1 100%);
  box-shadow: 0 14px 36px rgba(67,56,202,.30);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bb-wallet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .55;
  pointer-events: none;
}

.bb-wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.bb-wallet-top i { font-size: 1.5rem; opacity: .75; }
.bb-wallet-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
}

.bb-wallet-amount {
  position: relative;
  z-index: 1;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: .35rem 0 .6rem;
}

.bb-wallet-meta {
  position: relative;
  z-index: 1;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.bb-wallet-meta .dot { opacity: .55; }

.bb-wallet-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}
.bb-wallet-actions .btn { font-weight: 600; }

/* ----- KPI cards ----- */
.bb-kpi-card {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1rem 1.1rem;
  height: 100%;
  box-shadow: var(--bb-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bb-kpi-card:hover { transform: translateY(-2px); box-shadow: var(--bb-shadow-md); }

.bb-kpi-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .65rem;
}

.bb-kpi-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
}

.bb-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  margin-top: .1rem;
}

/* ----- Round card ----- */
.bb-round-card .bb-round-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
  margin-bottom: .2rem;
}
.bb-round-card .bb-round-value {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
}

.bb-board-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #34d399, #16a34a);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(22,163,74,.25);
}
.bb-board-chip i { font-size: .9rem; opacity: .9; }

/* ----- Quick action tiles ----- */
.bb-action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1rem;
  border-radius: var(--bb-radius);
  background: #fff;
  border: 1px solid var(--bb-border);
  box-shadow: var(--bb-shadow);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
}
.bb-action-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--bb-shadow-md);
  border-color: var(--bb-primary-light);
  color: inherit;
}
.bb-action-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.bb-action-title {
  font-weight: 700;
  font-size: .92rem;
  color: #1f2937;
}

/* ----- Lifetime summary rows ----- */
.bb-lifetime-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--bb-border);
}
.bb-lifetime-row:last-child { border-bottom: none; }

.bb-lifetime-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9;
  font-size: 1rem;
}
.bb-lifetime-label {
  flex: 1;
  font-size: .9rem;
  color: var(--bb-muted);
  font-weight: 600;
}
.bb-lifetime-value {
  font-size: .95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ----- Recent activity list ----- */
.bb-activity .list-group-item { border-color: var(--bb-border); }

.bb-activity-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.min-width-0 { min-width: 0; }

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .bb-wallet-card { padding: 1.2rem; }
  .bb-wallet-amount { font-size: 1.9rem; }
  .bb-kpi-value { font-size: 1.15rem; }
  .bb-action-tile { padding: .85rem; }
  .bb-action-title { font-size: .85rem; }
}
/* =========================================================
   BINGO PLAY SCREEN (Phase 15)
   ========================================================= */

/* ----- Status screens (paused / no round) ----- */
.bb-status-screen {
  max-width: 520px;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem 1rem;
}

.bb-status-icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 1rem;
}

.bb-status-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.bb-status-text {
  color: var(--bb-muted);
  margin-bottom: 1.5rem;
}

/* ----- Gap banner ----- */
.bb-gap-banner {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #7c2d12;
  border-radius: var(--bb-radius);
  padding: 1rem 1.25rem;
  border: 1px solid #fbbf24;
  box-shadow: 0 6px 18px rgba(251,191,36,.25);
}

.bb-gap-countdown {
  font-size: 2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #b45309;
  line-height: 1;
}
.bb-gap-countdown .unit { font-size: 1rem; opacity: .7; margin-left: 2px; }

/* ----- Winner banner ----- */
.bb-winner-banner {
  background: linear-gradient(90deg, #dcfce7, #bbf7d0);
  color: #14532d;
  border-radius: var(--bb-radius);
  padding: 1rem 1.25rem;
  border: 1px solid #22c55e;
  box-shadow: 0 6px 18px rgba(34,197,94,.25);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ----- Round strip ----- */
.bb-round-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bb-border);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-shadow);
}

@media (min-width: 576px) {
  .bb-round-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.bb-strip-cell {
  background: #fff;
  padding: .85rem .9rem;
}

.bb-strip-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
  margin-bottom: .25rem;
}
.bb-strip-value {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
  line-height: 1.2;
}

/* ----- Board picker legend ----- */
.bb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--bb-muted);
}

/* ----- Selection summary bar ----- */
.bb-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--bb-radius-sm);
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--bb-border);
}

.bb-selection-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
}
.bb-selection-total {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--bb-primary);
}

/* ----- Card tab + winner tag ----- */
.bb-card-tabs .nav-link i { font-size: .85rem; }

.bb-card-winner-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  color: #78350f;
  font-weight: 800;
  font-size: .82rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin: 0 auto .75rem;
  box-shadow: 0 6px 14px rgba(251,191,36,.35);
}

.bb-card-meta {
  text-align: center;
  font-size: .85rem;
  color: var(--bb-muted);
  font-weight: 600;
  margin-top: .6rem;
}

/* ----- Current number card (redesigned) ----- */
.bb-current-card {
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(67,56,202,.18);
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--bb-border);
}

.bb-current-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.1rem;
  background: linear-gradient(90deg, var(--bb-primary-dark), var(--bb-primary));
  color: #fff;
  font-weight: 700;
}
.bb-current-speed {
  font-size: .78rem;
  font-weight: 600;
  background: rgba(255,255,255,.18);
  padding: .15rem .55rem;
  border-radius: 999px;
}

.bb-current-body {
  padding: 1rem 1rem 1.2rem;
  text-align: center;
}

.bb-current-note {
  font-size: .85rem;
  color: var(--bb-muted);
  font-weight: 600;
}
.bb-current-tick {
  font-size: .78rem;
  color: var(--bb-muted);
  min-height: 1.1em;
  margin-top: .2rem;
}

/* ----- Winners list on play page ----- */
.bb-winners-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bb-winners-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--bb-border);
}
.bb-winners-list li:last-child { border-bottom: none; }

.bb-winner-name {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
}
.bb-winner-board {
  font-size: .8rem;
  font-weight: 700;
  color: var(--bb-muted);
  background: #f1f5f9;
  padding: .15rem .55rem;
  border-radius: 999px;
}

/* ----- Switch slightly bigger ----- */
.bb-switch .form-check-input {
  width: 2.6em;
  height: 1.35em;
}

/* ----- Mobile ----- */
@media (max-width: 575.98px) {
  .bb-gap-banner,
  .bb-winner-banner {
    padding: .85rem 1rem;
    font-size: .92rem;
  }
  .bb-gap-countdown { font-size: 1.5rem; }
  .bb-strip-cell { padding: .65rem .75rem; }
  .bb-strip-value { font-size: .92rem; }
  .bb-selection-bar { padding: .85rem; }
  .bb-selection-total { font-size: 1rem; }
  .bb-status-screen { margin: 2rem auto; }
}
/* =========================================================
   WITHDRAW / DEPOSIT-STYLE PAGES (Phase 15)
   ========================================================= */

/* ----- Page hero band ----- */
.bb-page-hero {
  border-radius: var(--bb-radius);
  padding: 1.5rem 1.5rem 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15,23,42,.15);
}

.bb-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .45;
  pointer-events: none;
}

.bb-hero-danger {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 55%, #ef4444 100%);
}

.bb-page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bb-page-hero-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.bb-page-hero-text { flex: 1; min-width: 200px; }

.bb-page-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 .15rem;
  letter-spacing: -.01em;
}

.bb-page-hero-sub {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  max-width: 520px;
}

.bb-page-hero-btn { font-weight: 600; }

/* ----- Wallet mini card ----- */
.bb-wallet-mini {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--bb-shadow);
}

.bb-wallet-mini-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bb-muted);
}

.bb-wallet-mini-amount {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--bb-text);
  margin: .2rem 0 .55rem;
}

.bb-wallet-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--bb-muted);
  border-top: 1px solid var(--bb-border);
  padding-top: .65rem;
}
.bb-wallet-mini-row i { margin-right: .25rem; }

/* ----- Form card ----- */
.bb-form-card .card-header { border-bottom: 1px solid var(--bb-border); }

.bb-form-card .form-label {
  font-weight: 600;
  font-size: .88rem;
  color: #334155;
}

.bb-input-group .input-group-text {
  background: #f1f5f9;
  border-color: #d8dce7;
  color: #64748b;
}
.bb-input-group .form-control {
  padding: .7rem .9rem;
  border-color: #d8dce7;
}
.bb-input-group .form-control:focus {
  border-color: var(--bb-primary-light);
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.15);
}

/* ----- Info / steps card ----- */
.bb-info-card .card-header { border-bottom: 1px solid var(--bb-border); }

.bb-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: bbstep;
}

.bb-steps li {
  counter-increment: bbstep;
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 1rem;
}
.bb-steps li:last-child { padding-bottom: 0; }

.bb-steps li::before {
  content: counter(bbstep);
  position: absolute;
  left: 0; top: 0;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(239,68,68,.30);
}

.bb-step-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--bb-text);
  margin-bottom: .1rem;
}
.bb-step-text {
  font-size: .82rem;
  color: var(--bb-muted);
}

.bb-info-note {
  margin-top: 1.25rem;
  padding: .85rem 1rem;
  font-size: .82rem;
  color: #334155;
  background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
}
.bb-info-note i { color: var(--bb-primary); margin-right: .35rem; }

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .bb-page-hero { padding: 1.15rem; }
  .bb-page-hero-icon { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 12px; }
  .bb-page-hero-title { font-size: 1.1rem; }
  .bb-page-hero-sub { font-size: .82rem; }
  .bb-wallet-mini-amount { font-size: 1.5rem; }
  .bb-form-card .card-body { padding: 1.25rem !important; }
}
/* =========================================================
   DEPOSIT PAGE (Phase 15)
   ========================================================= */

/* Green variant of the page hero */
.bb-hero-success {
  background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #10b981 100%);
}

/* Receiving account card */
.bb-receive-card {
  border-radius: var(--bb-radius);
  padding: 1.15rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(255,255,255,.12) 0%, transparent 60%),
    linear-gradient(135deg, #065f46 0%, #059669 100%);
  box-shadow: 0 12px 30px rgba(5,150,105,.28);
  position: relative;
  overflow: hidden;
}
.bb-receive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .45;
  pointer-events: none;
}

.bb-receive-label {
  position: relative;
  z-index: 1;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
  margin-bottom: .75rem;
}
.bb-receive-label i { margin-right: .25rem; }

.bb-receive-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bb-receive-sub {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
}
.bb-receive-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: .15rem;
  letter-spacing: -.01em;
}

.bb-receive-warn {
  position: relative;
  z-index: 1;
  margin-top: .85rem;
  padding: .55rem .75rem;
  font-size: .82rem;
  background: rgba(0,0,0,.18);
  border-radius: var(--bb-radius-sm);
  color: rgba(255,255,255,.95);
}
.bb-receive-warn i { margin-right: .3rem; color: #fde047; }

/* Summary strip (Deposited / Pending / Submissions) */
.bb-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bb-border);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-shadow);
}

.bb-summary-cell {
  background: #fff;
  padding: .85rem .9rem;
}

.bb-summary-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
  margin-bottom: .2rem;
}

.bb-summary-value {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
}

/* File input polish */
.bb-file-input {
  padding: .55rem .75rem;
}
.bb-file-input::file-selector-button {
  background: linear-gradient(180deg, #34d399, #16a34a);
  color: #fff;
  border: none;
  padding: .45rem .9rem;
  border-radius: var(--bb-radius-sm);
  margin-right: .75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Green step circles for deposit page */
.bb-steps-success li::before {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 6px 14px rgba(5,150,105,.30);
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .bb-receive-value { font-size: 1rem; }
  .bb-summary-value { font-size: .92rem; }
  .bb-summary-cell { padding: .7rem .75rem; }
}
/* =========================================================
   HISTORY PAGES (Phase 15)
   ========================================================= */

/* ----- Filter bar (pill buttons) ----- */
.bb-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.bb-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bb-border);
  color: #334155;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: all .12s ease;
}
.bb-filter-pill:hover {
  border-color: var(--bb-primary-light);
  color: var(--bb-primary);
  background: #f8fafc;
}
.bb-filter-pill.active {
  background: linear-gradient(180deg, var(--bb-primary-light), var(--bb-primary));
  border-color: var(--bb-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(67,56,202,.25);
}

.bb-filter-count {
  font-variant-numeric: tabular-nums;
  background: rgba(15,23,42,.06);
  color: inherit;
  padding: 0 .4rem;
  border-radius: 999px;
  font-size: .78rem;
  min-width: 1.5em;
  text-align: center;
}
.bb-filter-pill.active .bb-filter-count {
  background: rgba(255,255,255,.25);
}

/* ----- History table ----- */
.bb-history-table thead th {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bb-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--bb-border);
}
.bb-history-table tbody tr { border-color: var(--bb-border); }
.bb-history-table tbody td { vertical-align: middle; }

/* ----- Status pills ----- */
.bb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
}
.bb-status-pill i { font-size: .85rem; }

.bb-status-pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.bb-status-approved {
  background: #dcfce7;
  color: #14532d;
  border-color: #86efac;
}
.bb-status-rejected {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #fca5a5;
}
.bb-status-paid {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #93c5fd;
}

/* ----- File-ok indicator ----- */
.bb-file-ok {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  color: var(--bb-success);
  font-weight: 600;
}

/* ----- Mobile history card ----- */
.bb-history-card {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: .85rem 1rem;
  box-shadow: var(--bb-shadow);
}

.bb-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
}

.bb-history-sub {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--bb-muted);
}
.bb-history-sub i { margin-right: .2rem; }

.bb-history-note {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--bb-border);
  font-size: .82rem;
  color: #334155;
}
/* =========================================================
   TRANSACTIONS PAGE (Phase 15)
   ========================================================= */

/* Primary gradient variant of the page hero */
.bb-hero-primary {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #6366f1 100%);
}

/* Wallet badge inside hero */
.bb-hero-balance {
  text-align: right;
  color: #fff;
  flex-shrink: 0;
}
.bb-hero-balance-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
}
.bb-hero-balance-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* Two-column summary strip */
.bb-summary-strip-2 { grid-template-columns: repeat(2, 1fr); }

/* Transaction type chips */
.bb-tx-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
}
.bb-tx-chip i { font-size: .85rem; }

.bb-tx-deposit          { background: #dcfce7; color: #14532d; border-color: #86efac; }
.bb-tx-board_purchase   { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.bb-tx-prize            { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.bb-tx-withdrawal       { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.bb-tx-refund           { background: #cffafe; color: #155e75; border-color: #67e8f9; }
.bb-tx-admin_adjustment { background: #e2e8f0; color: #334155; border-color: #cbd5e1; }

/* Mobile history card compact tweaks for transactions */
.bb-history-card .bb-history-head {
  align-items: center;
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .bb-hero-balance { text-align: left; width: 100%; margin-top: .5rem; }
  .bb-summary-strip-2 { grid-template-columns: repeat(2, 1fr); }
  .bb-summary-value { font-size: .92rem; }
  .bb-filter-pill { font-size: .8rem; padding: .35rem .7rem; }
}
/* =========================================================
   ADMIN DASHBOARD (Phase 15)
   ========================================================= */

/* ----- Welcome hero ----- */
.bb-admin-hero {
  border-radius: var(--bb-radius);
  padding: 1.25rem 1.5rem;
  color: #fff;
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(99,102,241,.45) 0%, transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
  box-shadow: 0 14px 36px rgba(67,56,202,.25);
  position: relative;
  overflow: hidden;
}
.bb-admin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.bb-admin-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bb-admin-hero-hi { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.bb-admin-hero-sub { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .15rem; }

/* ----- Live pill ----- */
.bb-live-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.bb-live-pill .bb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.8);
  animation: bbLiveDot 1.6s ease-out infinite;
}
@keyframes bbLiveDot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  100% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}
.bb-live-on    { background: rgba(34,197,94,.20); border-color: rgba(34,197,94,.45); }
.bb-live-paused{ background: rgba(251,191,36,.20); border-color: rgba(251,191,36,.45); }
.bb-live-idle  { background: rgba(148,163,184,.20); border-color: rgba(148,163,184,.45); }

/* ----- KPI cards ----- */
.bb-admin-kpi .kpi-foot {
  font-size: .8rem;
  color: var(--bb-muted);
  margin-top: .35rem;
}
.bb-admin-kpi .kpi-foot-success { color: #16a34a; font-weight: 600; }
.bb-admin-kpi .kpi-foot-success i { font-size: .55rem; margin-right: .25rem; vertical-align: middle; }
.bb-admin-kpi .kpi-foot-link {
  color: var(--bb-primary);
  font-weight: 600;
  text-decoration: none;
}
.bb-admin-kpi .kpi-foot-link:hover { text-decoration: underline; }
.bb-admin-kpi .kpi-foot-link i { font-size: .75rem; margin-left: .2rem; }

/* ----- Money tiles ----- */
.bb-money-tile {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--bb-shadow);
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bb-money-tile:hover { transform: translateY(-2px); box-shadow: var(--bb-shadow-md); }
.bb-money-tile-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bb-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.bb-money-tile-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  margin-top: .35rem;
  color: #1f2937;
}

/* ----- 14-day bar chart ----- */
.bb-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
}
.bb-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-width: 0;
}
.bb-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
}
.bb-chart-bar {
  flex: 1;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  transition: opacity .15s ease;
}
.bb-chart-bar-board { background: linear-gradient(180deg, #6366f1, #4338ca); }
.bb-chart-bar-prize { background: linear-gradient(180deg, #34d399, #16a34a); }
.bb-chart-day {
  text-align: center;
  font-size: .68rem;
  color: var(--bb-muted);
  margin-top: .3rem;
  font-variant-numeric: tabular-nums;
}
.bb-chart-legend {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin: 0 .25rem 0 .75rem;
  vertical-align: -1px;
}
.bb-chart-legend-board { background: #4338ca; }
.bb-chart-legend-prize { background: #16a34a; }

/* ----- Live round panel ----- */
.bb-live-round {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border-radius: var(--bb-radius-sm);
  padding: 1rem 1.15rem;
  border: 1px solid var(--bb-border);
}
.bb-live-round-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
}
.bb-live-round-id {
  font-weight: 800;
  color: var(--bb-primary);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.bb-live-round-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--bb-primary);
  margin: .35rem 0 .55rem;
}
.bb-live-round-dash { opacity: .5; font-size: .8em; }
.bb-live-round-letter, .bb-live-round-digit { font-weight: 900; }
.bb-live-round-meta {
  text-align: center;
  font-size: .8rem;
  color: var(--bb-muted);
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.bb-live-round-meta .dot { opacity: .5; }

/* ----- Activity ----- */
.bb-activity .list-group-item { border-color: var(--bb-border); }
.bb-action-chip {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
}

/* ----- Mobile ----- */
@media (max-width: 575.98px) {
  .bb-admin-hero { padding: 1rem 1.15rem; }
  .bb-admin-hero-hi { font-size: 1.05rem; }
  .bb-live-pill { font-size: .78rem; padding: .4rem .7rem; }
  .bb-money-tile-value { font-size: 1.15rem; }
  .bb-chart { height: 140px; }
  .bb-live-round-number { font-size: 2rem; }
}