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

:root {
  --admin-bg: #090e1a;
  --admin-sidebar: #0f172a;
  --admin-card: #151f33;
  --admin-card-border: rgba(255, 255, 255, 0.08);
  --admin-accent: #38bdf8;
  --admin-accent-glow: rgba(56, 189, 248, 0.35);
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  --admin-warning: #f59e0b;
  --admin-purple: #8b5cf6;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-digital: 'Rajdhani', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Modern Glass Dark Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 17, 32, 0.7);
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.22);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

body {
  font-family: var(--font-main);
  background-color: var(--admin-bg);
  color: #f1f5f9;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (Fixed / Sticky in place) */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-card-border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.admin-brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.brand-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 15%, #fde047 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.sidebar-slot-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: -10px;
  padding-left: 6px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.nav-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-text span {
  font-weight: 700;
  color: #e2e8f0;
}

.nav-text small {
  font-size: 10px;
  color: #64748b;
}

.nav-link:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--admin-accent);
  border-color: rgba(56, 189, 248, 0.15);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.1);
}

.nav-link.active .nav-text span {
  color: var(--admin-accent);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-toggle-slots {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-card-border);
  color: #94a3b8;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-toggle-slots:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-open-game {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.btn-open-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  min-width: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.mode-pills-row {
  display: flex;
  gap: 8px;
}

.admin-mode-pill {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-mode-pill:hover {
  border-color: var(--admin-accent);
  color: white;
}

.admin-mode-pill.active {
  background: var(--admin-accent);
  color: #0b1120;
  border-color: var(--admin-accent);
  box-shadow: 0 0 15px var(--admin-accent-glow);
}

/* Feature Slot Switcher Tabs Bar */
.slot-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--admin-card-border);
  border-radius: 14px;
  overflow-x: auto;
  position: sticky;
  top: 12px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.slot-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.slot-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.slot-tab.active .tab-icon {
  transform: scale(1.15);
}

.slot-pill-badge {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.slot-tab-all {
  margin-left: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 10px 10px 0;
}

/* Global Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.card-value {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-digital);
  letter-spacing: 0.5px;
}

.card-subtext {
  font-size: 11px;
  color: #64748b;
}

.status-badge-open {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  width: fit-content;
  font-weight: 800;
}

.status-badge-locked {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  width: fit-content;
  font-weight: 800;
}

/* ============================================== */
/* FEATURE SLOTS FRAMEWORK                        */
/* ============================================== */
.feature-slot {
  display: none; /* Controlled via active class or all-view mode */
  background: rgba(21, 31, 51, 0.4);
  border: 1px solid var(--admin-card-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 28px;
  animation: slotFadeIn 0.25s ease-out;
}

.feature-slot.active {
  display: block;
}

/* When viewing all slots, display every slot simultaneously */
.admin-layout.view-all-slots .feature-slot {
  display: block !important;
}

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

.slot-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-badge {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: #0b1120;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.slot-info h2 {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.slot-info p {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.slot-mode-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--admin-accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.section-box {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}

.section-box h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hint-text {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

/* ============================================== */
/* SLOT 1: DRAW CONTROLLER & RNG OVERRIDE        */
/* ============================================== */
.control-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

.strategy-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.strategy-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-card-border);
  color: #94a3b8;
  padding: 14px 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.strat-icon {
  font-size: 22px;
}

.strat-title {
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
}

.strategy-btn small {
  font-size: 10px;
  color: #64748b;
}

.strategy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.strategy-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--admin-accent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.strategy-btn.active .strat-title {
  color: var(--admin-accent);
}

.strategy-explanation {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--admin-accent);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.manual-balls-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.admin-ball-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-ball-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.admin-ball-btn.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.admin-ball-preview {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.ball-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.ball-green { background: radial-gradient(circle at 35% 35%, #34d399, #059669); }
.ball-red { background: radial-gradient(circle at 35% 35%, #f87171, #dc2626); }
.ball-violet { background: radial-gradient(circle at 35% 35%, #c084fc, #7c3aed); }
.ball-violet_red { background: linear-gradient(135deg, #9333ea 50%, #ef4444 50%); }
.ball-violet_green { background: linear-gradient(135deg, #9333ea 50%, #10b981 50%); }

.admin-actions-bar {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #0b1120;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-card-border);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.btn-danger-soft {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.25);
  color: white;
}

/* ============================================== */
/* SLOT 2: CUSTOMER ACCOUNTS & BALANCES           */
/* ============================================== */
.customer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.customer-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 450px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
}

.customer-search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--admin-card-border);
  padding: 10px 36px 10px 38px;
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.customer-search-box input:focus {
  border-color: var(--admin-accent);
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
}

.country-filter-group {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.country-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}

.country-filter-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: white;
}

.customer-summary-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pill-label {
  font-size: 11px;
  color: #94a3b8;
}

.pill-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-digital);
  letter-spacing: 0.5px;
}

/* table-responsive, outcomes-table, customers-table styles are consolidated below */

.country-badge-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-id-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-phone {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-digital);
  letter-spacing: 0.5px;
}

.member-username {
  font-size: 11px;
  color: #64748b;
}

.member-balance {
  font-size: 16px;
  font-weight: 800;
  color: #4ade80;
  font-family: var(--font-digital);
}

/* Balance Action Buttons in Table */
.bal-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-act-add {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-act-add:hover {
  background: #10b981;
  color: #000;
}

/* THE NEW BALANCE REDUCE BUTTON IN CUSTOMER ACCOUNTS */
.btn-act-reduce {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-act-reduce:hover {
  background: #ef4444;
  color: #fff;
}

.btn-act-manage {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-act-manage:hover {
  background: var(--admin-accent);
  color: #0b1120;
}

/* DELETE CUSTOMER ACCOUNT BUTTON */
.btn-act-delete {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-act-delete:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}

/* ============================================== */
/* SLOT 3: LIVE BETS & PnL RISK MATRIX            */
/* ============================================== */
.analytics-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.highlight-badge {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.pool-breakdown-bar {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--admin-card-border);
}

.pool-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: width 0.3s;
}

.seg-green { background: #059669; }
.seg-violet { background: #7c3aed; }
.seg-red { background: #dc2626; }

.bets-stream-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stream-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-card-border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  animation: betSlideIn 0.3s ease-out;
}

@keyframes betSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: #64748b;
  font-size: 13px;
}

/* ============================================== */
/* SLOT 4: PLATFORM FINANCIALS                    */
/* ============================================== */
.financials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.stat-icon {
  font-size: 32px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.stat-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-digital);
  letter-spacing: 0.5px;
}

.stat-meta small {
  font-size: 11px;
  color: #64748b;
}

/* ============================================== */
/* DEDICATED CUSTOMER BALANCE ADJUSTMENT MODAL    */
/* ============================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeInModal 0.2s ease-out;
}

.admin-modal-overlay.open {
  display: flex;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-modal-dialog {
  background: #111a2e;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 26px;
  background: rgba(56, 189, 248, 0.15);
  padding: 8px;
  border-radius: 10px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.modal-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal-user-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.user-card-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.u-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
}

.u-val {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

.val-balance {
  color: #4ade80;
  font-family: var(--font-digital);
  font-size: 15px;
}

.balance-action-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bal-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-card-border);
  color: #94a3b8;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bal-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.bal-tab.active[data-action="add"] {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

/* ACTIVE REDUCE BALANCE TAB */
.bal-tab.active[data-action="reduce"] {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.bal-tab.active[data-action="set"] {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.quick-chips-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chips-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bal-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-card-border);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.bal-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: white;
}

.modal-input-group label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}

.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency-symbol {
  position: absolute;
  left: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
}

.currency-input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--admin-card-border);
  border-radius: 10px;
  padding: 12px 14px 12px 34px;
  color: white;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-digital);
  outline: none;
  transition: border-color 0.2s;
}

.currency-input-wrapper input:focus {
  border-color: var(--admin-accent);
}

.simple-text-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--admin-card-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  font-size: 13px;
  outline: none;
}

.balance-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.prev-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
}

.prev-row b {
  font-family: var(--font-digital);
  font-size: 14px;
}

.prev-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}

.prev-total {
  font-weight: 800;
  color: #f1f5f9;
}

.prev-total b {
  font-size: 18px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast Notification */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustments are consolidated comprehensively at the end of the stylesheet */

/* ========================================================
   🚀 REORGANIZED STEP-BY-STEP ADMIN STYLING
   ======================================================== */

/* Step Badges */
.step-badge {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #0b1124;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.step-badge.badge-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }
.step-badge.badge-gold { background: linear-gradient(135deg, #d97706, #fbbf24); color: #000; }
.step-badge.badge-red { background: linear-gradient(135deg, #dc2626, #f87171); color: #fff; }
.step-badge.badge-green { background: linear-gradient(135deg, #059669, #34d399); color: #000; }
.step-badge.badge-cyan { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #000; }

/* Dashboard Multi-Game Engines Matrix */
.dashboard-games-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.game-engine-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-engine-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.engine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.engine-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.engine-icon {
  font-size: 24px;
}

.engine-status-tag {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.engine-status-tag.tag-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.engine-status-tag.tag-flying {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: pulse-countdown 1.5s infinite;
}

.engine-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.engine-metric-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.engine-metric-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.engine-metric-val {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-digital);
}

/* Aviator Flight Radar Deck */
.aviator-radar-box {
  background: linear-gradient(180deg, #10172a 0%, #090e1a 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.08);
}

.aviator-radar-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  animation: radar-sweep 2s infinite linear;
}

@keyframes radar-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.aviator-mult-huge {
  font-family: var(--font-digital);
  font-size: 64px;
  font-weight: 900;
  color: #ef4444;
  line-height: 1;
  text-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  margin: 10px 0;
}

.aviator-mult-huge.flying {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
}

/* ─── Optimized Aviator Controller ─────────────────────── */
.aviator-controller-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Crash Now Hero Strip */
.avi-crash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(185, 28, 28, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.avi-crash-hero-text { flex: 1; min-width: 0; }
.avi-crash-hero-title {
  font-size: 13px;
  font-weight: 900;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.avi-crash-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  border-radius: 6px;
  padding: 1px 7px;
  letter-spacing: 0.5px;
}
.avi-crash-hero-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
}
.btn-crash-now-hero {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-crash-now-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.65);
}
.btn-crash-now-hero:active { transform: scale(0.97); }

/* Section micro-labels */
.avi-section-label {
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Algo buttons – no inner margin wrapper needed */
.avi-algo-group { margin-bottom: 12px; }

/* Override status bar */
.avi-status-bar {
  font-size: 11px;
  color: #64748b;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.avi-status-val { color: #38bdf8; font-weight: 700; }

/* Custom input row */
.avi-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.avi-input { flex: 1; padding: 10px; }
.btn-lock-crash {
  padding: 10px 16px;
  font-weight: 800;
  white-space: nowrap;
}

/* Live Bets Panel */
.avi-live-bets-panel {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
}
.avi-live-bets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.avi-live-bets-title {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.avi-live-pills { display: flex; gap: 6px; align-items: center; }
.avi-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}
.pill-pool { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.pill-count { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.avi-live-bets-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px;
}
.avi-live-empty {
  text-align: center;
  color: #475569;
  font-size: 11px;
  padding: 14px 0;
}

/* Action Row (Reset / Refresh) */
.avi-action-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btn-avi-reset {
  flex: 1;
  padding: 10px;
  font-weight: 700;
}
.btn-avi-refresh {
  padding: 10px 16px;
  font-weight: 700;
}

/* Force 3-column 2-row layout for crash presets */
.avi-presets-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 480px) {
  .avi-presets-grid { grid-template-columns: repeat(2, 1fr); }
  .avi-crash-hero { flex-direction: column; align-items: flex-start; }
  .btn-crash-now-hero { width: 100%; text-align: center; }
}

/* Crash Presets Row */
.crash-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.btn-preset-crash {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-card-border);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-preset-crash small {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.btn-preset-crash:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-2px);
}

.btn-preset-crash.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #f87171;
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-preset-crash.active small {
  color: #fee2e2;
}

/* Aviator History Pills */
.aviator-history-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}

.aviator-hist-pill {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-digital);
  white-space: nowrap;
}

.pill-mult-low { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.pill-mult-med { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.4); }
.pill-mult-high { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }

/* Mines Secret Grid Preview */
.mines-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 140px;
  margin: 6px 0;
}

.mini-tile {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.mini-tile.is-bomb {
  background: rgba(239, 68, 68, 0.35);
  border: 1px solid #ef4444;
  color: #fff;
}

.mini-tile.is-revealed {
  background: rgba(245, 158, 11, 0.35);
  border: 1px solid #fbbf24;
  color: #fbbf24;
}

.mini-tile.is-gem {
  background: rgba(16, 185, 129, 0.35);
  border: 1px solid #34d399;
  color: #6ee7b7;
}

/* ======================================================== */
/* 🎮 GAME MASTER SWITCHBOARD & OUTCOME ALGORITHMS STYLES   */
/* ======================================================== */
.master-profit-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 50%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.master-profit-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #fbbf24, #f59e0b, #ef4444);
}

.master-banner-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.master-banner-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.master-banner-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.master-banner-sub {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 3px;
}

.master-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-master-max-profit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-master-max-profit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-master-fair-rng {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-master-fair-rng:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

/* Switchboard Grid */
.switchboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.switchboard-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.25s ease;
}

.switchboard-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.switchboard-card.is-offline {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(30, 15, 20, 0.8) 0%, rgba(21, 31, 51, 0.9) 100%);
}

.switchboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switchboard-game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switchboard-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wingo { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); }
.icon-aviator { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.4); }
.icon-mines { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); }

.switchboard-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.switchboard-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* iOS Style Power Switch */
.game-power-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-toggle-label {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  margin: 0;
  cursor: pointer;
}

.switch-toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.switch-toggle-label input:checked + .switch-toggle-slider {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.switch-toggle-label input:checked + .switch-toggle-slider:before {
  transform: translateX(24px);
}

.power-status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.power-status-tag.is-online {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.power-status-tag.is-offline {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Outcome Algorithm Selector within Switchboard */
.switchboard-algo-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.switchboard-algo-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
}

.switchboard-algo-active {
  color: #fbbf24;
  font-weight: 800;
}

.algo-button-group {
  display: flex;
  gap: 6px;
}

.btn-algo-opt {
  flex: 1;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-algo-opt:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-algo-opt.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.btn-algo-opt.algo-profit.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.btn-algo-opt.algo-strict.active {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.btn-algo-opt small {
  font-size: 9.5px;
  opacity: 0.8;
  font-weight: 500;
}

/* ========================================================
   📱 COMPREHENSIVE MOBILE & TABLET OPTIMIZATION SUITE
   ======================================================== */

/* Desktop defaults: Hide mobile header, backdrop and close button */
.mobile-admin-header {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.btn-close-sidebar {
  display: none;
}

/* Table scroll indicator & styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--admin-card-border);
  background: rgba(15, 23, 42, 0.35);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) rgba(15, 23, 42, 0.5);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 3px;
}

.outcomes-table,
.customers-table,
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.outcomes-table thead th,
.customers-table thead th,
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0d1527;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.outcomes-table td,
.customers-table td,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.outcomes-table tbody tr,
.customers-table tbody tr,
.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.outcomes-table tbody tr:hover td,
.customers-table tbody tr:hover td,
.data-table tbody tr:hover td {
  background-color: rgba(56, 189, 248, 0.04);
}

.fin-member-filter-btn {
  transition: all 0.2s ease;
}

.fin-member-filter-btn.active {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.fin-member-filter-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

/* ========================================================
   TABLET & MOBILE BREAKPOINT (<= 1024px)
   ======================================================== */
@media (max-width: 1024px) {
  /* Layout reset */
  .admin-layout {
    display: block;
    width: 100%;
    min-width: 0;
    position: relative;
    overflow-x: hidden;
  }

  /* ── 1. Mobile Top Command App Bar ─────────────────────── */
  .mobile-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 95;
    margin: -14px -14px 14px -14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    height: 56px;
    box-sizing: border-box;
  }

  .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    color: #f1f5f9;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .mobile-menu-btn:active {
    transform: scale(0.95);
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
  }

  .menu-icon-lines {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    align-items: center;
  }

  .menu-icon-lines span {
    display: block;
    width: 18px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.2s ease;
  }

  .mobile-menu-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #0f172a;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
  }

  .mobile-brand-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .mobile-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #000;
    border: 1.5px solid rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
  }

  .mobile-brand-text {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .mobile-brand-name {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff 15%, #fde047 60%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-brand-badge {
    font-size: 8.5px;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0b1120;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }

  .mobile-quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .mobile-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
  }

  .mobile-action-btn:active {
    transform: scale(0.92);
  }

  .mobile-btn-fair {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
  }

  .mobile-btn-refresh {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
  }

  /* ── 2. Off-Canvas Drawer Sidebar ──────────────────────── */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.85);
  }

  .btn-close-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s;
  }

  .btn-close-sidebar:active {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
  }

  /* ── 3. Sticky Horizontal Step Tabs ────────────────────── */
  .slot-tabs-bar {
    position: sticky;
    top: 56px;
    z-index: 90;
    margin: 0 -14px 14px -14px;
    padding: 8px 12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: rgba(11, 17, 32, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 6px;
  }

  .slot-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .slot-tab {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 8px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .slot-tab .tab-icon {
    font-size: 14px;
  }

  .slot-tab-all {
    margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  /* ── 4. Main Content Area ──────────────────────────────── */
  .admin-main {
    width: 100%;
    padding: 14px 14px 48px;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
  }

  .admin-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .page-title {
    font-size: 19px;
    letter-spacing: -0.3px;
  }

  .page-subtitle {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .admin-header > div:last-child {
    display: none !important; /* Managed by mobile header bar */
  }

  .feature-slot {
    padding: 14px 12px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .slot-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .slot-header > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .slot-info h2, .slot-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .slot-info p, .slot-desc {
    font-size: 11.5px;
  }

  .section-box {
    padding: 14px 12px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .section-box h3 {
    font-size: 13.5px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }

  /* ── 5. Grids & KPI Cards ──────────────────────────────── */
  .overview-grid,
  .financials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .overview-card,
  .stat-card,
  .cust-stat-card {
    padding: 12px 10px;
    border-radius: 12px;
    gap: 4px;
    min-width: 0;
  }

  .card-title,
  .stat-label,
  .stat-meta {
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-value,
  .stat-value,
  .stat-number {
    font-size: clamp(16px, 4.4vw, 22px);
    line-height: 1.2;
    word-break: break-all;
  }

  .card-subtext,
  .stat-meta small,
  .stat-subtext {
    font-size: 9.5px;
    line-height: 1.3;
  }

  /* ── 6. Master Profit Banner & Switchboard ──────────────── */
  .master-profit-banner {
    padding: 14px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .master-banner-info {
    align-items: flex-start;
    gap: 10px;
  }

  .master-banner-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .master-banner-title {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .master-banner-sub {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 4px;
  }

  .master-banner-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-master-max-profit,
  .btn-master-fair-rng {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 12px;
    box-sizing: border-box;
  }

  .switchboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .switchboard-card {
    padding: 14px 12px;
    border-radius: 14px;
    gap: 12px;
  }

  .switchboard-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
    border-radius: 10px;
  }

  .switchboard-title {
    font-size: 14.5px;
  }

  .switchboard-algo-box {
    padding: 10px;
  }

  .algo-button-group {
    display: flex;
    gap: 4px;
  }

  .btn-algo-opt {
    padding: 7px 3px;
    min-height: 46px;
    font-size: 11px;
  }

  .btn-algo-opt span {
    font-size: 10.5px;
    white-space: nowrap;
  }

  .btn-algo-opt small {
    font-size: 8.5px;
  }

  .engine-metrics-row {
    padding: 8px 6px;
    gap: 4px;
  }

  .engine-metric-label {
    font-size: 9px;
  }

  .engine-metric-val {
    font-size: 13px;
  }

  /* ── 7. WinGo Lottery (Step 2) ─────────────────────────── */
  .control-sections-grid,
  .analytics-layout-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mode-pills-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    max-width: 100%;
  }

  .mode-pills-row::-webkit-scrollbar {
    display: none;
  }

  .admin-mode-pill {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .strategy-selector {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .strategy-btn {
    padding: 10px 4px;
    min-height: 52px;
    border-radius: 10px;
  }

  .strat-icon {
    font-size: 18px;
  }

  .strat-title {
    font-size: 11px;
  }

  .strategy-btn small {
    font-size: 9px;
  }

  .manual-balls-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 14px;
  }

  .admin-ball-btn {
    padding: 7px 2px;
    border-radius: 8px;
    gap: 4px;
  }

  .admin-ball-preview {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .ball-label {
    font-size: 9px;
  }

  .admin-actions-bar {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .admin-actions-bar .btn-primary,
  .admin-actions-bar .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 11px;
  }

  /* ── 8. Aviator Crash (Step 3) ─────────────────────────── */
  .aviator-radar-box {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .aviator-mult-huge {
    font-size: clamp(38px, 11vw, 56px);
    margin: 6px 0;
  }

  .avi-crash-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
  }

  .btn-crash-now-hero {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
  }

  .avi-presets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .btn-preset-crash {
    padding: 8px 4px;
    font-size: 11.5px;
    border-radius: 8px;
  }

  .btn-preset-crash small {
    font-size: 9px;
  }

  .avi-input-row {
    flex-direction: column;
    gap: 8px;
  }

  .avi-input-row .avi-input {
    width: 100%;
    box-sizing: border-box;
  }

  .avi-input-row .btn-lock-crash {
    width: 100%;
    padding: 11px;
    justify-content: center;
  }

  .avi-action-row {
    flex-direction: column;
    gap: 8px;
  }

  .btn-avi-reset,
  .btn-avi-refresh {
    width: 100%;
    justify-content: center;
  }

  /* ── 9. Mines Turbo (Step 4) ───────────────────────────── */
  #btnRefreshMines {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  /* ── 10. Member Accounts (Step 5) ──────────────────────── */
  .customer-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .customer-search-box {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .customer-search-box input {
    font-size: 16px !important; /* Prevents unwanted iOS auto-zoom */
    padding: 11px 36px 11px 38px;
  }

  .country-filter-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    overflow-x: auto;
  }

  .country-filter-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 11px;
    white-space: nowrap;
  }

  #btnRefreshCustomers {
    width: 100%;
    justify-content: center;
    padding: 11px;
  }

  .customer-summary-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
  }

  .summary-pill .pill-val {
    font-size: 13.5px;
  }

  .bal-action-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .btn-act-add,
  .btn-act-reduce,
  .btn-act-manage,
  .btn-act-delete {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ── 11. Bhutan Deposits (Step 6) ──────────────────────── */
  #step-deposits > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #adminDepositBankName,
  #adminDepositAccountNo,
  #adminDepositAccountName,
  #adminDepositTelegram,
  #adminDepositNote {
    font-size: 16px !important; /* Prevents unwanted iOS auto-zoom */
  }

  /* ── 12. Payout Desk / Withdrawals (Step 7) ────────────── */
  .customer-stats-ribbon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  #step-withdrawals .section-box:nth-child(3) > div {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #step-withdrawals .section-box:nth-child(3) > div > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  #adminWithdrawCooldownHours {
    font-size: 16px !important;
  }

  #step-withdrawals .section-box:nth-child(4) > div {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #step-withdrawals .section-box:nth-child(4) > div > div:first-child {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  #step-withdrawals .section-box:nth-child(4) > div > div:last-child {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  #step-withdrawals .search-input-box {
    width: 100% !important;
  }

  #withdrawSearchInput {
    font-size: 16px !important;
    width: 100%;
    box-sizing: border-box;
  }

  #btnRefreshWithdrawals {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  /* ── 13. Platform Financials (Step 8) ──────────────────── */
  #step-financials .section-box:last-child > div {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #step-financials .section-box:last-child > div > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
  }

  #step-financials .section-box:last-child button {
    padding: 10px 6px;
    font-size: 11.5px;
    justify-content: center;
  }

  #step-financials #btnReset10k {
    grid-column: span 2;
  }

  /* ── 14. Responsive Mobile Modals ──────────────────────── */
  .admin-modal-overlay {
    padding: 8px;
    align-items: center;
    justify-content: center;
  }

  .admin-modal-dialog {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    max-height: 92dvh;
    padding: 16px 14px;
    border-radius: 16px;
    gap: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    max-height: calc(92vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }

  .modal-user-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
  }

  .balance-action-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .bal-tab {
    padding: 8px 2px;
    font-size: 10.5px;
    border-radius: 8px;
  }

  .chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .bal-chip {
    flex: 1 1 calc(33.333% - 6px);
    padding: 8px 4px;
    font-size: 11.5px;
    text-align: center;
    border-radius: 8px;
  }

  .currency-input-wrapper input,
  .simple-text-input,
  textarea.simple-text-input {
    font-size: 16px !important; /* Prevents unwanted iOS auto-zoom */
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    width: 100%;
  }

  .modal-footer button {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    justify-content: center;
    border-radius: 10px;
  }
}

/* ========================================================
   EXTRA SMALL PHONES (<= 420px)
   ======================================================== */
@media (max-width: 420px) {
  .mobile-brand-name {
    font-size: 12.5px;
  }

  .mobile-brand-badge {
    display: none;
  }

  .overview-grid,
  .financials-grid,
  .customer-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .card-value,
  .stat-value,
  .stat-number {
    font-size: 16px;
  }

  .manual-balls-row {
    gap: 4px;
  }

  .admin-ball-preview {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .avi-presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================================
   KEYBOARD SHORTCUTS & DESKTOP POWER USER ACCENTS
   ======================================================== */
.search-kbd-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
  font-family: var(--font-digital), monospace;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .search-kbd-hint {
    display: none !important;
  }
}

/* ========================================================
   FLOATING FAST ACTION: BACK TO TOP BUTTON
   ======================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(139, 92, 246, 0.9));
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #0b1120;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 92;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(56, 189, 248, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.btn-scroll-top:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.55);
}

.btn-scroll-top:active {
  transform: scale(0.92);
}

/* ========================================================
   MOBILE SHEET MODAL ANIMATION (<= 640px)
   ======================================================== */
@media (max-width: 640px) {
  .admin-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .admin-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
    border-bottom: none !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    animation: modalSheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes modalSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* ========================================================
   15. STEP 9: 🌐 HOSTING VITALS & NETWORK TELEMETRY
   ======================================================== */
.vitals-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.vitals-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: vitalsPulse 1.6s infinite ease-in-out;
}

@keyframes vitalsPulse {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px #10b981; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px #34d399; }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px #10b981; }
}

.vitals-meter-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.vitals-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.vitals-meter-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.vitals-meter-fill.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.badge-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.badge-live-tag.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-live-tag.idle {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Operating System Telemetry Badges */
.server-os-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.os-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.os-pill-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.member-os-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ========================================================
   16. RENDER CLOUD 24H METRICS & TELEMETRY DASHBOARD
   Direct integration for srv-daunf641nsns73evmctg
   ======================================================== */
.render-service-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.4) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.render-service-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #10b981, #7c3aed);
  background-size: 200% 100%;
  animation: renderGlowLine 6s linear infinite;
}

@keyframes renderGlowLine {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.render-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.render-cloud-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.render-service-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.render-service-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.render-status-badge.live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.render-plan-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.render-service-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #94a3b8;
}

.render-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.render-id-chip:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
}

.render-id-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.render-id-chip code {
  color: #38bdf8;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

.render-copy-icon {
  font-size: 11px;
  opacity: 0.8;
  transition: transform 0.15s;
}

.render-id-chip:hover .render-copy-icon {
  transform: scale(1.15);
  opacity: 1;
}

.render-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.render-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-render-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-render-action.primary {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

.btn-render-action.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.55);
  border-color: #a78bfa;
}

.btn-render-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-render-action.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Time Range Controls */
.render-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.render-controls-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.render-tab-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.render-time-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.render-time-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.render-time-tab.active {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.render-range-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.render-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.render-sync-text {
  font-size: 11px;
  color: #64748b;
}

.btn-render-refresh {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-render-refresh:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* KPI Summary Cards Grid */
.render-metrics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.render-kpi-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.render-kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.render-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.render-kpi-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.render-kpi-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.render-kpi-badge.cpu {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.render-kpi-badge.ram {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.render-kpi-badge.reqs {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.render-kpi-badge.status {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.render-kpi-badge.latency {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.render-kpi-badge.bandwidth {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.render-kpi-main {
  margin-bottom: 10px;
}

.render-kpi-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--font-digital, monospace);
  line-height: 1.2;
}

.render-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
  display: block;
}

.render-kpi-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.render-kpi-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.render-kpi-bar-fill.cpu { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.render-kpi-bar-fill.ram { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.render-kpi-bar-fill.reqs { background: linear-gradient(90deg, #d97706, #fbbf24); }
.render-kpi-bar-fill.bandwidth { background: linear-gradient(90deg, #0891b2, #22d3ee); }

/* Status Chips Row */
.render-status-chips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.status-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
}

.status-chip b {
  font-size: 12px;
  font-family: monospace;
}

.status-chip.s2xx { color: #34d399; }
.status-chip.s3xx { color: #60a5fa; }
.status-chip.s4xx { color: #fbbf24; }
.status-chip.s5xx { color: #f87171; }

.render-multi-progress {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  display: flex;
  overflow: hidden;
}

.progress-segment.s2xx { background: #10b981; }
.progress-segment.s3xx { background: #3b82f6; }
.progress-segment.s4xx { background: #f59e0b; }
.progress-segment.s5xx { background: #ef4444; }

/* Latency Row */
.render-latency-percentiles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 6px;
}

.latency-cell {
  text-align: center;
}

.latency-cell small {
  display: block;
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
}

.latency-cell b {
  font-size: 13px;
  font-family: monospace;
}

.render-latency-footer {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}

/* 4 Render Charts Grid */
.render-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .render-charts-grid {
    grid-template-columns: 1fr;
  }
}

.render-chart-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.render-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.render-chart-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.render-chart-title-group h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
}

.chart-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.render-chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-color {
  width: 10px;
  height: 4px;
  border-radius: 2px;
}

.legend-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
}

.render-canvas-wrap {
  width: 100%;
  height: 190px;
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.render-metric-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.render-canvas-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10;
  transform: translate(-50%, -120%);
  white-space: nowrap;
}

.render-chart-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  margin-top: 8px;
}

/* Render Quick Links Strip */
.render-links-strip {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.render-links-left {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.render-links-left code {
  color: #38bdf8;
  font-family: monospace;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.render-links-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.render-link-btn {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.render-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.render-link-btn.primary {
  background: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  border-color: rgba(124, 58, 237, 0.4);
}

.render-link-btn.primary:hover {
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
}

/* ── Member Live Status & Online Badges ─────────────────── */
.member-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.member-live-badge.online {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.member-live-badge.offline {
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.25);
  color: #94a3b8;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveBadgePulse 1.4s ease-in-out infinite;
}

@keyframes liveBadgePulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px #10b981; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px #34d399; }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px #10b981; }
}

.btn-act-inspect {
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(14, 165, 233, 0.38);
  color: #38bdf8;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-act-inspect:hover {
  background: rgba(14, 165, 233, 0.32);
  border-color: rgba(14, 165, 233, 0.6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.presence-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.presence-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.presence-filter-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.55);
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ========================================================
   LIVE BETTING SIGNAL SYSTEM (ALL GAME STEPS)
   ======================================================== */

/* Sidebar & Tab Signal Pill Badges */
.slot-pill-badge.signal-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.slot-pill-badge.signal-badge.idle {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.slot-pill-badge.signal-badge.active {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  animation: signalBadgePulse 1.8s infinite ease-in-out;
}

@keyframes signalBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
  }
}

/* Master Live Betting Radar Strip (Step 1 Banner) */
.live-action-radar-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.radar-strip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

.radar-pulse-ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  box-shadow: 0 0 8px #10b981;
}

.radar-pulse-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: radarRingWave 1.6s infinite ease-out;
  opacity: 0;
}

@keyframes radarRingWave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.radar-chips-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.radar-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.radar-game-chip.active {
  background: rgba(6, 78, 59, 0.4);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.radar-game-name {
  color: #e2e8f0;
  font-size: 11.5px;
}

.radar-signal-status {
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 6px;
}

.radar-signal-status.idle {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

.radar-signal-status.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  animation: signalBadgePulse 1.8s infinite ease-in-out;
}

.radar-total-chip {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: 8px;
}

/* Switchboard Card Game Live Betting Signal Box */
.game-betting-signal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.game-betting-signal-card.idle {
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.game-betting-signal-card.active {
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.game-betting-signal-card.flash-ping {
  animation: signalFlashPing 0.7s ease-out;
}

@keyframes signalFlashPing {
  0% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.9); border-color: #f59e0b; }
  100% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.5); }
}

.signal-beacon {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.signal-beacon .signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.game-betting-signal-card.idle .signal-dot {
  background: #64748b;
  box-shadow: 0 0 4px rgba(100, 116, 139, 0.4);
}

.game-betting-signal-card.active .signal-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.signal-radar-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  opacity: 0;
}

.game-betting-signal-card.active .signal-radar-wave {
  animation: radarWaveExpand 1.6s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes radarWaveExpand {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.signal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.signal-status-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.game-betting-signal-card.idle .signal-status-label {
  color: #94a3b8;
}

.game-betting-signal-card.active .signal-status-label {
  color: #34d399;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.signal-details {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.game-betting-signal-card.active .signal-details {
  color: #cbd5e1;
}

.signal-badge-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
}

.signal-badge-pill.idle {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.signal-badge-pill.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Step Header Live Betting Signal Banner (Step 2, 3, 4, 5) */
.step-live-betting-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.step-live-betting-signal.idle {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #64748b;
}

.step-live-betting-signal.active {
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.step-live-betting-signal .signal-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.step-live-betting-signal.idle .signal-beacon-dot {
  background: #64748b;
}

.step-live-betting-signal.active .signal-beacon-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveDotPulse 1.4s infinite ease-in-out;
}

/* ======================================================== */
/* 📋 WINGO LIVE ACTIVE WAGERS TABLE STYLES                 */
/* ======================================================== */
.wingo-sel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.wingo-sel-pill.green {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.wingo-sel-pill.violet {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.wingo-sel-pill.red {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.wingo-sel-pill.big {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.wingo-sel-pill.small {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.wingo-sel-pill.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.badge-bet-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-bet-type.color {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-bet-type.size {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-bet-type.number {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.live-drawing-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.live-drawing-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: liveDotPulse 1.2s infinite ease-in-out;
}

/* ======================================================== */
/* 🪙 COINFLIP ADMIN STYLES & RADAR PILLS                   */
/* ======================================================== */
.coin-history-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease;
}

.coin-history-pill:hover {
  transform: translateY(-1px);
}

.coin-history-pill.heads {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(251, 191, 36, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.coin-history-pill.tails {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.coin-choice-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  margin-right: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.coin-choice-step.heads {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  color: #000;
}

.coin-choice-step.tails {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #000;
}

.badge-streak {
  display: inline-block;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
}

.btn-action-bust {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-bust:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-action-cashout {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 5px;
}

.btn-action-cashout:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

