/* ==========================================================================
   STANDALONE WEB LUXURY ADMIN SUITE - PURE WHITE MONOCHROME DESIGN SYSTEM
   Ultra Crisp Pure White & Slate Architecture (Zero Yellow, Zero Emojis)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Pure White Canvas & Cards */
  --bg-frame: #0b0f19;
  --bg-canvas: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-pill: #e2e8f0;
  --bg-pill-hover: #cbd5e1;

  /* Typography & Obsidian Accents */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Borders */
  --border-card: #e2e8f0;
  --border-subtle: #edf2f7;
  
  /* Status Colors (Clean, Modern, No Yellow) */
  --status-success: #10b981;
  --status-warning: #f97316;
  --status-danger: #ef4444;
  --status-info: #3b82f6;

  /* Primary Action Obsidian */
  --brand-primary: #0f172a;
  --brand-primary-hover: #1e293b;

  /* Curves & Shadows */
  --radius-tablet: 38px;
  --radius-bento: 24px;
  --radius-pill: 9999px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-tablet: 0 35px 90px -20px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-bento: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
  --shadow-pill: 0 2px 8px rgba(15, 23, 42, 0.04);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Discord OAuth gate for the standalone local web panel. */
.discord-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, #e8f2ff 0, #f7faff 42%, #eef3f9 100%);
}
.discord-auth-gate[hidden] { display: none; }
.discord-auth-card {
  width: min(420px, 100%);
  padding: 42px 38px 36px;
  text-align: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dbe6f3;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(37, 70, 112, .16);
}
.discord-auth-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #5865f2;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}
.discord-auth-kicker {
  margin: 0 0 10px;
  color: #70819a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.discord-auth-card h1 { margin: 0; color: #16253c; font-size: 28px; }
.discord-auth-copy { margin: 12px 0 24px; color: #6d7d95; line-height: 1.6; }
.discord-login-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: #5865f2;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease;
}
.discord-login-btn:hover { background: #4752c4; transform: translateY(-1px); }
.discord-auth-status { min-height: 20px; margin: 16px 0 0; color: #70819a; font-size: 12px; line-height: 1.5; }
.discord-auth-status[data-kind="error"] { color: #c24156; }
.admin-app-shell.auth-locked { visibility: hidden; pointer-events: none; }
.modal-player-identifiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.modal-identifier { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px; border: 1px solid #e1e9f3; border-radius: 8px; background: #f7faff; color: #64748b; font-size: 10px; }
.modal-identifier b { color: #475569; font-size: 9px; letter-spacing: .04em; }
.modal-identifier code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  position: relative;
}

/* Browser mode does not use the in-game backdrop. */
.ambient-backdrop {
  display: none;
}

/* Tablet notch is intentionally absent from the browser build. */
.tablet-camera-notch {
  display: none;
}

/* Full-screen browser application shell */
.admin-app-shell {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background-color: var(--bg-canvas);
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* No FiveM/CEF rules are included in the browser build. */
/* ==========================================================================
   TOPBAR NAVIGATION (Full-Width Clean SaaS Header)
   ========================================================================== */
.admin-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  z-index: 20;
  gap: 16px;
  flex-shrink: 0;
  min-height: 60px;
}

/* Left Brand Capsule */
.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 5;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: var(--transition-spring);
}

.brand-badge:hover .brand-icon {
  transform: scale(1.05);
  background: #1e293b;
}

.brand-text h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-text p {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Center Pill Tabs (Mathematically Perfectly Centered at Top) */
.nav-pill-group {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  background: var(--bg-pill);
  padding: 4px 5px;
  border-radius: var(--radius-pill);
  gap: 3px;
  flex-shrink: 0;
  z-index: 10;
}

.nav-pill-btn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-pill-btn:hover {
  color: var(--text-main);
}

.nav-pill-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nav-pill-btn .counter-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 12px;
}

.nav-pill-btn.active .counter-badge {
  background: #ffffff;
  color: var(--brand-primary);
}

/* Right Controls */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Expandable Search Capsule (Circle by default, expands to the left) */
.pill-search-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-search-box .search-lens-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.pill-search-box:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.pill-search-box:hover .search-lens-icon {
  color: var(--text-main);
  transform: scale(1.08);
}

.pill-search-box input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  pointer-events: none;
  white-space: nowrap;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

.pill-search-box input::placeholder {
  color: var(--text-light);
  font-size: 12px;
}

/* Expanded State (active on focus / click / typing) */
.pill-search-box.expanded,
.pill-search-box:focus-within {
  width: 220px;
  padding: 0 14px 0 12px;
  justify-content: flex-start;
  gap: 8px;
  border-color: var(--brand-primary);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  cursor: default;
}

.pill-search-box.expanded .search-lens-icon,
.pill-search-box:focus-within .search-lens-icon {
  color: var(--brand-primary);
}

.pill-search-box.expanded input,
.pill-search-box:focus-within input {
  width: 100%;
  opacity: 1;
  pointer-events: auto;
}

/* Notification Bell Capsule */
.icon-pill-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.icon-pill-btn:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.icon-pill-btn .notif-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

/* User Admin Capsule */
.admin-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  height: 40px;
  padding: 0 14px 0 6px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-profile-pill:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.admin-profile-pill .avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.admin-profile-pill .admin-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.admin-profile-pill .chevron-icon {
  font-size: 10px;
  color: var(--text-light);
}

/* Browser build keeps the close control hidden. */
.close-pill-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #fecaca;
  background: #fef2f2;
  color: #ef4444;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.close-pill-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.close-pill-btn:active {
  transform: scale(0.96);
}

.close-pill-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.close-pill-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   VIEWPORT & BENTO GRID
   ========================================================================== */
.admin-viewport {
  flex: 1;
  padding: 22px 32px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.admin-viewport::-webkit-scrollbar {
  width: 6px;
}
.admin-viewport::-webkit-scrollbar-track {
  background: transparent;
}
.admin-viewport::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.admin-viewport::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.view-panel {
  display: none;
  animation: viewFadeIn 0.25s ease forwards;
}

.view-panel.active {
  display: block;
}

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

/* Overview 3-Column Bento Grid */
.bento-overview-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1.4fr) 320px;
  gap: 20px;
  align-items: stretch;
}

/* Base Pure White Bento Card */
.bento-card {
  background: var(--bg-card);
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-bento);
  border: 1px solid var(--border-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   COLUMN 1: TACTICAL SHOWCASE POD (Left Hero Card)
   -------------------------------------------------------------------------- */
.showcase-hero-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  height: fit-content;
  min-height: 390px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-pill-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.icon-external-btn {
  width: 28px;
  height: 28px;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-spring);
}

.icon-external-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
  transform: rotate(45deg);
}

/* 3D Scene */
.tactical-3d-scene {
  flex: 1;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 6px 0;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 55%, #f1f5f9 0%, #ffffff 70%);
}

.tactical-illustration {
  width: 100%;
  max-width: 220px;
  filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.08));
  transition: var(--transition-smooth);
}

.tactical-illustration:hover {
  transform: translateY(-3px) scale(1.02);
}

.scene-location-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-card);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

/* Quick District Buttons */
.quick-district-selector {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.district-pill {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 5px 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.district-pill:hover,
.district-pill.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Bottom Stats Row */
.hero-bottom-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 10px 14px;
  border-radius: 16px;
}

.hero-stat-primary .stat-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1;
}

.hero-stat-primary .stat-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 3px;
}

.hero-mini-badges {
  display: flex;
  gap: 10px;
}

.mini-badge-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mini-badge-item .badge-lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-light);
}

.mini-badge-item .badge-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   COLUMN 2: GREETING & POPULATION & ACTION PLAN
   -------------------------------------------------------------------------- */
.center-column-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   WEB DASHBOARD ANALYTICS
   -------------------------------------------------------------------------- */
.dashboard-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-card-heading h3 {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.dashboard-card-kicker {
  display: block;
  color: var(--text-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.analytics-period-pill,
.live-status-pill {
  white-space: nowrap;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 9px;
}

.analytics-summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.analytics-summary-row strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--text-main);
}

.analytics-trend,
.analytics-caption {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.analytics-trend.positive,
.dashboard-stat-meta.positive {
  color: #059669;
}

.analytics-caption {
  color: var(--text-light);
  text-align: right;
}

.player-growth-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
  gap: 9px;
  height: 154px;
  margin-top: 12px;
  padding: 12px 4px 0;
  border-top: 1px solid #f1f5f9;
}

.growth-bar-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.growth-bar-value {
  min-height: 13px;
  color: var(--text-light);
  font-size: 9px;
  font-weight: 800;
}

.growth-bar-track {
  width: 100%;
  max-width: 22px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.growth-bar {
  width: 100%;
  min-height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: height 0.5s ease;
}

.growth-bar-column.today .growth-bar {
  background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
}

.growth-bar-column.today .growth-bar-label,
.growth-bar-column.today .growth-bar-value {
  color: var(--text-main);
}

.growth-bar-label {
  color: var(--text-light);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-stat-card {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-bento);
}

.dashboard-stat-card.danger-accent {
  border-left: 3px solid #ef4444;
}

.dashboard-stat-card.warning-accent {
  border-left: 3px solid #f59e0b;
}

.dashboard-stat-card.info-accent {
  border-left: 3px solid #3b82f6;
}

.dashboard-stat-label,
.dashboard-stat-meta {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-stat-card strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--text-main);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.dashboard-stat-meta {
  color: var(--text-light);
  font-size: 9px;
}

/* Live player table in the far-right dashboard column */
.live-players-card {
  min-height: 360px;
  padding: 16px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #047857;
  background: #ecfdf5;
}

.live-status-pill.is-offline {
  color: #b45309;
  background: #fffbeb;
}

.live-status-pill.is-offline .live-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.live-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.live-player-table-wrap {
  min-height: 0;
  margin-top: 14px;
  overflow: auto;
}

.live-player-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.live-player-table th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-light);
  font-size: 9px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.live-player-table th:nth-child(1) { width: 49%; }
.live-player-table th:nth-child(2) { width: 31%; }
.live-player-table th:nth-child(3) { width: 20%; text-align: right; }

.live-player-table td {
  max-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid #f8fafc;
  color: var(--text-main);
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.live-player-table td:last-child {
  text-align: right;
}

.live-player-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.live-player-identity > span:last-child,
.live-player-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-player-avatar {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-card);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--text-main);
  font-size: 8px;
  font-weight: 800;
}

.live-player-role {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
}

.live-player-ping {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.live-player-ping.good { color: #059669; }
.live-player-ping.medium { color: #d97706; }
.live-player-ping.bad { color: #dc2626; }

.live-player-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: var(--text-light);
  font-size: 9px;
  font-weight: 700;
}

.live-player-footer strong {
  color: var(--text-muted);
}

.live-player-all-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  transition: var(--transition-smooth);
}

.live-player-all-btn span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
}

.live-player-all-btn:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
}

.live-player-all-btn:hover span {
  color: #ffffff;
  transform: translateX(2px);
}

.admin-greeting-block {
  padding: 2px 4px;
}

.greeting-status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
}

.greeting-status-line .status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.greeting-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
  line-height: 1.15;
}

.greeting-subtext {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Current Population Card */
.session-metrics-card {
  padding: 16px 20px;
}

.session-metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.session-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-tag-pill {
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.session-big-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.session-big-number .number-highlight {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-main);
  line-height: 1;
}

.session-big-number .number-total {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

/* Monochrome / Slate Progress Rail */
.session-progress-rail {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.session-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #0f172a 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tri-Metric Row */
.tri-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tri-metric-box {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 12px;
  transition: var(--transition-smooth);
}

.tri-metric-box:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.tri-metric-box .metric-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 2px;
}

.tri-metric-box .metric-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.tri-metric-box .metric-val {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.tri-metric-box .metric-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Action Plan / Checklist */
.action-plan-card {
  flex: 1;
  padding: 16px 20px;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.plan-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.plan-status-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.plan-item-row:hover {
  background: #f8fafc;
  border-color: var(--border-card);
}

.plan-item-row.highlighted {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.plan-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: var(--transition-spring);
}

.plan-item-row.done .plan-check-icon {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.plan-item-row.highlighted .plan-check-icon {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.plan-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.plan-item-row.done .plan-item-title {
  text-decoration: line-through;
  color: var(--text-light);
}

.plan-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-tag-now {
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.plan-time-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   COLUMN 3: PURE WHITE CLIMATE CARD, WEEKLY ACTIVITY & HEALTH
   -------------------------------------------------------------------------- */
.right-column-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Pure White & Clean Slate Environment Card */
.sage-environment-card {
  background: #ffffff;
  color: var(--text-main);
  padding: 16px 18px;
  border-radius: var(--radius-bento);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-bento);
}

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

.env-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.auto-badge-pill {
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Clock Display */
.env-main-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.env-clock-digits {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  line-height: 1;
}

.env-clock-digits span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  margin-left: 2px;
}

.env-stepper-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.env-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: #f8fafc;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.env-step-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.env-step-btn.citron-active {
  background: var(--brand-primary);
  color: #ffffff;
}

/* Weather Preset Selector */
.weather-pills-row {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 3px;
}

.weather-chip {
  flex: 1;
  background: transparent;
  border: none;
  padding: 5px 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.weather-chip:hover {
  color: var(--text-main);
}

.weather-chip.active {
  background: var(--brand-primary);
  color: #ffffff;
}

/* Pure Modern Switches */
.env-toggles-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.env-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-info .toggle-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.toggle-info .toggle-subtitle {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-light);
}

/* Clean Monochrome Switch */
.citron-switch {
  width: 38px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.citron-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: var(--transition-spring);
}

.citron-switch.active {
  background: var(--brand-primary);
}

.citron-switch.active::after {
  transform: translateX(18px);
}

/* Weekly Activity */
.weekly-activity-card {
  padding: 14px 18px;
}

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

.activity-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.info-circle-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  color: var(--text-light);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.activity-peak-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-align: center;
  margin: 4px 0 10px;
}

.activity-bars-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 52px;
  padding: 0 4px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bar-pillar-wrap {
  width: 5px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 9999px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar-pillar-fill {
  width: 100%;
  background: #94a3b8;
  border-radius: 9999px;
  transition: height 0.5s ease;
}

.bar-col.highlight .bar-pillar-wrap {
  background: #e2e8f0;
}

.bar-col.highlight .bar-pillar-fill {
  background: var(--brand-primary);
}

.bar-day-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-light);
}

/* Anti-Cheat & Server Health */
.server-health-card {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.health-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.radial-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 0;
}

.gauge-svg {
  width: 130px;
  height: 65px;
  overflow: visible;
}

.gauge-svg path.gauge-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 9;
  stroke-linecap: round;
}

.gauge-svg path.gauge-val {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 1s ease;
}

.gauge-percentage {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  line-height: 1;
  margin-top: -24px;
}

.gauge-subtext {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   PLAYERS TAB VIEW
   ========================================================================== */
.players-table-container {
  background: var(--bg-card);
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-bento);
  border: 1px solid var(--border-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.table-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-title-wrap h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.table-title-wrap p {
  font-size: 12px;
  color: var(--text-muted);
}

.table-action-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pill-btn {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill-btn.active,
.filter-pill-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.modern-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-data-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid #f1f5f9;
}

.admin-data-table td {
  padding: 14px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid #f8fafc;
  vertical-align: middle;
}

.admin-data-table tr:hover td {
  background: #f8fafc;
}

.player-identity-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.player-id-pill {
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  color: var(--text-main);
}

.player-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-action-pill {
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.mini-action-pill:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.mini-action-pill.btn-danger {
  color: #ef4444;
}

.mini-action-pill.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* ==========================================================================
   WORLD & ENVIRONMENT DEDICATED TAB
   ========================================================================== */
.world-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quick-action-button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.action-card-btn {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.action-card-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  border-color: #cbd5e1;
}

.action-card-btn .btn-icon-wrap {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.action-card-btn:hover .btn-icon-wrap {
  background: var(--brand-primary);
  color: #ffffff;
}

.action-card-btn.danger .btn-icon-wrap {
  background: #fef2f2;
  color: #ef4444;
}

.action-card-btn.danger:hover .btn-icon-wrap {
  background: #ef4444;
  color: #ffffff;
}

.action-card-btn .btn-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.action-card-btn .btn-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Announcement Box */
.announcement-box-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.announcement-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.announcement-input:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
}

.broadcast-btn {
  align-self: flex-end;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-spring);
}

.broadcast-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   CONSOLE / AUDIT LOGS TAB
   ========================================================================== */
.terminal-window {
  background: #0f172a;
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-bento);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.terminal-header h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-logs-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.log-entry-row {
  display: flex;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 6px;
}

.log-entry-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.log-time {
  color: #64748b;
}

.log-tag {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.log-tag.info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.log-tag.warn { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.log-tag.danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.log-tag.action { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

.log-msg {
  color: #e2e8f0;
  flex: 1;
}

.terminal-command-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.terminal-command-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  animation: modalFade 0.2s ease forwards;
}

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

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

.player-action-modal {
  width: 90%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.96); }
  to { transform: translateY(0) scale(1); }
}

.modal-close-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.modal-close-corner:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.modal-player-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.modal-player-details h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-player-details p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-action-btn {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  background: #f8fafc;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.modal-action-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.modal-action-btn.danger {
  color: #ef4444;
}

.modal-action-btn.danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.modern-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modern-toast.success { border-left: 4px solid #10b981; }
.modern-toast.error { border-left: 4px solid #ef4444; }
.modern-toast.info { border-left: 4px solid #3b82f6; }

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

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
/* Player chart card inspired by the supplied blue total-players reference. */
.player-analytics-card {
  min-height: 250px;
  overflow: hidden;
  padding: 20px 22px 16px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 110%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #2f83df 0%, #3f8fe8 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.player-analytics-card:hover {
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.player-growth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.player-growth-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
}

.player-growth-title svg { opacity: 0.95; }

.player-growth-badge {
  padding: 5px 9px;
  border: 1px solid rgba(110, 231, 183, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.3);
  color: #bbf7d0;
  font-size: 10px;
  font-weight: 800;
}

.player-growth-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.player-growth-chart {
  position: relative;
  display: block;
  height: 174px;
  margin-top: 1px;
  padding: 0;
  border: 0;
  overflow: visible;
}

.player-growth-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.player-growth-total {
  position: absolute;
  right: 0;
  bottom: -2px;
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(15, 23, 42, 0.16);
}

.player-growth-total strong {
  display: block;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 0.9;
}

@media (max-width: 900px) {
  .bento-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .showcase-hero-card {
    grid-column: span 2;
  }
}

@media (max-width: 650px) {
  .tablet-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  .bento-overview-grid {
    grid-template-columns: 1fr;
  }
  .showcase-hero-card {
    grid-column: span 1;
  }
  .admin-topbar {
    flex-direction: column;
    gap: 8px;
  }
}
