/* ═══════════════════════════════════════════════════
   CryptoBhai Army HQ — Admin Panel Styles
   Premium Dark Theme • Glassmorphism • Glow FX
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep:      #050D1A;
  --bg-card:      #0C1A2E;
  --bg-card-alt:  #0F2039;
  --bg-hover:     #132844;
  --bg-input:     #0A1628;
  --border:       rgba(59, 130, 246, 0.15);
  --border-glow:  rgba(59, 130, 246, 0.35);
  --blue:         #3B82F6;
  --blue-light:   #60A5FA;
  --blue-dim:     #1E3A5F;
  --gold:         #FBBF24;
  --gold-dim:     #92700C;
  --green:        #34D399;
  --red:          #EF4444;
  --red-dim:      #7F1D1D;
  --text:         #E2E8F0;
  --text-dim:     #94A3B8;
  --text-muted:   #64748B;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    6px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 30px rgba(59,130,246,0.15);
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w:    260px;
  --header-h:     56px;
}

html { font-size: 14px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Utility ── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════ */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

.login-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(251,191,36,0.08) 0%, transparent 50%),
    var(--bg-deep);
}

.login-card {
  position: relative;
  width: 420px; max-width: 92vw;
  background: linear-gradient(135deg, rgba(12,26,46,0.95), rgba(15,32,57,0.9));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 48px 40px 36px;
  box-shadow: var(--shadow), 0 0 60px rgba(59,130,246,0.1);
  animation: loginSlideUp 0.6s ease-out;
}

@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo { text-align: center; margin-bottom: 36px; }
.login-crown {
  font-size: 48px;
  display: block; margin-bottom: 8px;
  animation: crownFloat 3s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.login-logo h1 {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, #F59E0B 50%, var(--blue-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}
.login-subtitle { color: var(--text-dim); font-size: 13px; margin-top: 4px; letter-spacing: 1px; }

.input-group { margin-bottom: 24px; }
.input-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}

.input-wrapper {
  position: relative; display: flex; align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-wrapper:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.input-icon { padding: 0 0 0 14px; font-size: 16px; opacity: 0.6; }

.input-wrapper input {
  flex: 1; background: none; border: none; outline: none;
  padding: 14px 12px; color: var(--text);
  font-family: inherit; font-size: 15px;
}

.toggle-pw {
  background: none; border: none; cursor: pointer;
  padding: 0 14px; font-size: 16px; opacity: 0.5;
  transition: opacity var(--transition);
}
.toggle-pw:hover { opacity: 1; }

.login-error {
  color: var(--red); text-align: center;
  font-size: 13px; margin-top: 12px;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.login-footer {
  text-align: center; margin-top: 28px;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 2px; text-transform: uppercase;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #2563EB);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.45); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #F59E0B);
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(251,191,36,0.25);
}
.btn-gold:hover { box-shadow: 0 6px 20px rgba(251,191,36,0.4); transform: translateY(-1px); }

.btn-danger {
  background: linear-gradient(135deg, var(--red), #DC2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239,68,68,0.25);
}
.btn-danger:hover { box-shadow: 0 6px 20px rgba(239,68,68,0.4); transform: translateY(-1px); }

.btn-ghost {
  background: var(--bg-card-alt); color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

.btn-login { width: 100%; padding: 16px; font-size: 16px; letter-spacing: 0.5px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Spinner */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   APP SHELL LAYOUT
   ═══════════════════════════════════════════════════ */
.app-shell {
  display: flex; min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed; left: 0; top: 0;
  width: var(--sidebar-w); height: 100vh;
  background: linear-gradient(180deg, #0A1628 0%, #071020 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 24px 16px 16px;
  z-index: 100;
  transition: transform 0.35s ease;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.brand-crown { font-size: 32px; }
.sidebar-brand h2 {
  font-size: 18px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--gold), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tag { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  color: var(--text-dim); text-decoration: none;
  font-weight: 500; font-size: 14px;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer; background: none;
  width: 100%; text-align: left;
  font-family: inherit;
}
.nav-item:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-item.active {
  color: var(--blue-light);
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.2);
}
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.nav-logout { color: var(--red); }
.nav-logout:hover { background: rgba(239,68,68,0.1); }

.sidebar-footer { border-top: 1px solid var(--border); padding-top: 12px; }

/* ── Mobile Header ── */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 99;
}
.hamburger, .mobile-logout {
  background: none; border: none; color: var(--text);
  font-size: 22px; cursor: pointer; padding: 8px;
}
.mobile-title { font-weight: 700; font-size: 15px; }

/* ── Content ── */
.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 32px 36px;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

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

/* ── Pages ── */
.page { display: none; animation: pageIn 0.35s ease; }
.page.active { display: block; }

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

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }

.header-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ═══════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  overflow: hidden;
  transition: all var(--transition);
  animation: cardIn 0.5s ease backwards;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.stat-glow {
  position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(25px);
  pointer-events: none;
}
.stat-users .stat-glow      { background: var(--blue); }
.stat-referrals-week .stat-glow { background: var(--green); }
.stat-referrals .stat-glow  { background: var(--blue-light); }
.stat-flagged .stat-glow    { background: var(--gold); }
.stat-banned .stat-glow     { background: var(--red); }

.stat-icon { font-size: 32px; flex-shrink: 0; }
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }

/* ── Config Strip ── */
.config-strip {
  display: flex; gap: 18px; margin-bottom: 28px; flex-wrap: wrap;
}
.config-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 240px;
}
.config-label { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.config-value { font-weight: 700; color: var(--gold); }

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color var(--transition);
}
.card:hover { border-color: rgba(59,130,246,0.25); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.card-header h3 { font-size: 16px; font-weight: 700; }

.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-info { background: rgba(59,130,246,0.15); color: var(--blue-light); }
.badge-success { background: rgba(52,211,153,0.15); color: var(--green); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--red); }

/* ═══════════════════════════════════════════════════
   CHART
   ═══════════════════════════════════════════════════ */
.chart-card { overflow: hidden; }
.chart-container { padding: 8px 0 0; }
.chart-bars {
  display: flex; align-items: flex-end; gap: 12px;
  height: 180px; padding: 0 4px;
}
.chart-bar {
  flex: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dim) 100%);
  min-height: 8px;
  position: relative;
  transition: all 0.6s ease;
  animation: barGrow 0.8s ease backwards;
}
.chart-bar:hover {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 100%);
  box-shadow: 0 0 15px rgba(59,130,246,0.3);
}
.chart-bar-value {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: var(--blue-light);
  opacity: 0; transition: opacity var(--transition);
}
.chart-bar:hover .chart-bar-value { opacity: 1; }

@keyframes barGrow {
  from { height: 0 !important; }
}

.chart-labels {
  display: flex; gap: 12px; padding: 10px 4px 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.chart-label {
  flex: 1; text-align: center;
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   QUICK ACTIONS
   ═══════════════════════════════════════════════════ */
.quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.quick-action-card h3 { margin-bottom: 14px; font-size: 15px; }

.textarea {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px; color: var(--text);
  font-family: inherit; font-size: 14px;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.textarea::placeholder { color: var(--text-muted); }

.input-group-sm { margin-bottom: 14px; }
.input-group-sm label {
  display: block; font-size: 12px; color: var(--text-dim);
  font-weight: 600; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.input-sm {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 12px; color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-sm:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* ═══════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════ */
.search-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.search-icon { font-size: 16px; opacity: 0.5; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  padding: 10px 8px; color: var(--text);
  font-family: inherit; font-size: 14px;
}
.search-input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   DATA TABLES
   ═══════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }

.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left; padding: 12px 14px;
  color: var(--text-dim); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(59,130,246,0.06);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background var(--transition);
}
.data-table tbody tr:hover {
  background: var(--bg-hover);
}
.data-table tbody tr.clickable { cursor: pointer; }

.table-empty {
  text-align: center; padding: 40px 14px !important;
  color: var(--text-muted); font-style: italic;
}

.status-active {
  color: var(--green); font-weight: 600;
}
.status-banned {
  color: var(--red); font-weight: 600;
}

.btn-ban {
  padding: 6px 12px; font-size: 12px;
  border-radius: var(--radius-xs);
  font-weight: 600; cursor: pointer;
  border: none; font-family: inherit;
  transition: all var(--transition);
}
.btn-ban-active {
  background: rgba(239,68,68,0.15); color: var(--red);
}
.btn-ban-active:hover { background: rgba(239,68,68,0.3); }
.btn-ban-unban {
  background: rgba(52,211,153,0.15); color: var(--green);
}
.btn-ban-unban:hover { background: rgba(52,211,153,0.3); }

/* ═══════════════════════════════════════════════════
   LEADERBOARD TABS
   ═══════════════════════════════════════════════════ */
.tab-bar {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); font-family: inherit;
  font-weight: 600; font-size: 13px; cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); border-color: var(--text-dim); }
.tab-btn.active {
  background: rgba(59,130,246,0.12);
  border-color: var(--blue);
  color: var(--blue-light);
}

.rank-1 { color: var(--gold); font-weight: 800; }
.rank-2 { color: #C0C0C0; font-weight: 700; }
.rank-3 { color: #CD7F32; font-weight: 700; }

/* ═══════════════════════════════════════════════════
   BROADCAST PAGE
   ═══════════════════════════════════════════════════ */
.broadcast-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.broadcast-card {
  text-align: center;
  padding: 40px 32px;
}
.broadcast-icon { font-size: 48px; margin-bottom: 16px; }
.broadcast-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.broadcast-desc { color: var(--text-dim); margin-bottom: 24px; font-size: 14px; }
.broadcast-textarea { text-align: left; min-height: 140px; }
.broadcast-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.char-count { font-size: 12px; color: var(--text-muted); }

.broadcast-tips h3 { margin-bottom: 16px; }
.broadcast-tips ul {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.broadcast-tips li {
  padding-left: 20px; position: relative;
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
}
.broadcast-tips li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--blue-light); font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.settings-card h3 { margin-bottom: 8px; }
.settings-card p { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.settings-danger { border-color: rgba(239,68,68,0.2); }

/* ═══════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5,13,26,0.8);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 28px;
  width: 520px; max-width: 92vw;
  max-height: 80vh; overflow-y: auto;
  box-shadow: var(--shadow), 0 0 40px rgba(59,130,246,0.1);
  animation: loginSlideUp 0.3s ease-out;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-card-alt); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); cursor: pointer; font-size: 14px;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); border-color: var(--text-dim); }

.modal-header { margin-bottom: 20px; padding-right: 40px; }
.modal-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }

.modal-body .detail-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(59,130,246,0.06);
  font-size: 14px;
}
.detail-row .label { color: var(--text-dim); }
.detail-row .value { font-weight: 600; }

.modal-actions {
  display: flex; gap: 12px; margin-top: 20px;
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════
   CONFIRM DIALOG
   ═══════════════════════════════════════════════════ */
.confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(5,13,26,0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  animation: fadeIn 0.15s ease;
}
.confirm-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 32px; text-align: center;
  width: 400px; max-width: 90vw;
  box-shadow: var(--shadow);
  animation: loginSlideUp 0.25s ease-out;
}
.confirm-icon { font-size: 40px; margin-bottom: 12px; }
.confirm-dialog h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.confirm-dialog p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column-reverse; gap: 10px;
  z-index: 9000;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: toastIn 0.35s ease;
  pointer-events: auto;
  min-width: 280px;
  border: 1px solid;
}
.toast-success {
  background: rgba(16,185,129,0.15);
  border-color: rgba(52,211,153,0.3);
  color: var(--green);
}
.toast-error {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}
.toast-info {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: var(--blue-light);
}
.toast-icon { font-size: 18px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card-alt) 25%, var(--bg-hover) 50%, var(--bg-card-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .quick-actions-row { grid-template-columns: 1fr; }
  .broadcast-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }
  .mobile-header { display: flex; }
  .content {
    margin-left: 0;
    padding: 72px 16px 24px;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px 14px; }
  .stat-icon { font-size: 24px; }
  .stat-value { font-size: 22px; }
  .settings-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .config-strip { flex-direction: column; }
  .tab-bar { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }
}

/* ── Sidebar overlay for mobile ── */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  display: none;
}
.sidebar-overlay.show { display: block; }
