/**
 * Bluebird Admin Console - Dedicated Stylesheet
 * Strict adherence to CEF NUI rules: Zero backdrop blur filters used.
 * Solid and semi-transparent dark palette with cyber/neon accents.
 * English comments only.
 */

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: #141e33;
  --bg-card-hover: #1c2a47;
  --bg-modal: #0d1527;
  --bg-input: #0b1220;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #06b6d4;
  --border-glow-cyan: rgba(6, 182, 212, 0.35);
  --border-glow-gold: rgba(245, 158, 11, 0.35);
  --border-glow-purple: rgba(168, 85, 247, 0.35);
  --border-glow-danger: rgba(239, 68, 68, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-gold: #fbbf24;
  --text-cyan: #38bdf8;
  --text-purple: #c084fc;
  --text-emerald: #34d399;
  --text-danger: #f87171;

  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-danger: #ef4444;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 10px 40px rgba(0, 0, 0, 0.7);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Toast Notifications Container */
.admin-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000000 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 40px);
}

.admin-toast {
  pointer-events: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow-cyan);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-modal);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.25s ease-out forwards;
}

.admin-toast.toast-success {
  border-left-color: var(--accent-emerald);
}

.admin-toast.toast-danger {
  border-left-color: var(--accent-danger);
}

.admin-toast.toast-gold {
  border-left-color: var(--accent-gold);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Auth Gate / Login Required Screen */
.admin-gate-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, #172554 0%, var(--bg-primary) 70%);
}

.admin-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-modal);
}

.admin-gate-bird {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  background: rgba(6, 182, 212, 0.1);
  border: 2px solid var(--border-glow-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-gate-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.admin-gate-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-gate-title span {
  color: var(--text-cyan);
}

.admin-gate-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-gold);
  margin-bottom: 12px;
}

.admin-gate-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.5;
}

.admin-gate-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 20px;
  text-align: left;
}

.btn-admin-gate-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865f2;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.btn-admin-gate-login:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.admin-gate-back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.admin-gate-back-link:hover {
  color: var(--text-cyan);
}

/* Main Admin Layout */
.admin-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.admin-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.1;
}

.admin-brand-title span {
  color: var(--text-cyan);
}

.admin-brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.admin-badge-root {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--text-gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.7rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Switch Toggle Auto-Refresh */
.admin-autorefresh-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  cursor: pointer;
}

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

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #475569;
  transition: 0.2s;
  border-radius: var(--radius-pill);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--accent-cyan);
}

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

/* Admin Action Pills / Buttons */
.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-admin-pill:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-admin-pill.btn-glow-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--border-glow-cyan);
  color: var(--text-cyan);
}

.btn-admin-pill.btn-glow-cyan:hover {
  background: rgba(6, 182, 212, 0.22);
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-pill);
}

.admin-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
}

.admin-user-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
}

.btn-admin-logout {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s;
}

.btn-admin-logout:hover {
  color: var(--text-danger);
}

/* KPI Cards Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, border-color 0.15s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.kpi-card.highlight {
  border-color: var(--border-glow-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), var(--bg-card));
}

.kpi-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-emerald);
}

/* Tab Navigation Bar */
.admin-tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--bg-tertiary);
  margin-bottom: 24px;
  padding-bottom: 2px;
}

.tab-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
}

.tab-nav-btn:hover {
  color: var(--text-primary);
}

.tab-nav-btn.active {
  color: var(--text-cyan);
  border-bottom-color: var(--accent-cyan);
}

.tab-counter-badge {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.badge-dot-live {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-gold);
}

.badge-dot-live.hidden {
  display: none;
}

/* Tab Content Panes */
.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

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

/* Toolbar & Filters */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.admin-search-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 36px 10px 38px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-search-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: none;
}

.btn-clear-search.visible {
  display: block;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-filter-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-pill:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-filter-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--border-glow-cyan);
  color: var(--text-cyan);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-select-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
}

.admin-select-input:focus {
  border-color: var(--border-focus);
}

/* Player Cards Grid */
.players-list-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.15s;
}

.admin-player-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.player-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.player-identity-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.player-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
}

.player-skin-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.skin-dot-classic { background: var(--accent-cyan); }
.skin-dot-cyber { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.skin-dot-phoenix { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.skin-dot-cosmic { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

.player-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-username {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.badge-founder {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--text-gold);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.player-id-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.player-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-badge.tag-skin {
  background: rgba(6, 182, 212, 0.15);
  color: var(--text-cyan);
  border: 1px solid var(--border-glow-cyan);
}

.tag-badge.tag-prestige {
  background: rgba(168, 85, 247, 0.15);
  color: var(--text-purple);
  border: 1px solid var(--border-glow-purple);
}

.tag-badge.tag-cps {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-mono);
}

.tag-badge.tag-achieve {
  background: rgba(251, 191, 36, 0.12);
  color: var(--text-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tag-badge.tag-fivem {
  background: rgba(16, 185, 129, 0.15);
  color: var(--text-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.player-scores-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: right;
}

.score-cell {
  display: flex;
  flex-direction: column;
}

.score-cell-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.score-cell-val {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-gold);
}

.score-cell-val.lifetime {
  color: var(--text-purple);
}

.score-cell-val.clicks {
  color: var(--text-secondary);
}

/* Generators Row */
.player-buildings-row {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.buildings-row-title {
  font-weight: 700;
  color: var(--text-secondary);
}

.building-chip {
  background: var(--bg-tertiary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.building-chip strong {
  color: var(--text-cyan);
}

/* Actions Toolbar */
.player-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.btn-player-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-player-action:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-player-action.btn-action-points {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--border-glow-gold);
  color: var(--text-gold);
}

.btn-player-action.btn-action-buildings {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--border-glow-cyan);
  color: var(--text-cyan);
}

.btn-player-action.btn-action-prestige {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--border-glow-purple);
  color: var(--text-purple);
}

.btn-player-action.btn-action-skin {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-cyan);
}

.btn-player-action.btn-action-achieve {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--text-gold);
}

.btn-player-action.btn-action-edit {
  background: rgba(100, 116, 139, 0.15);
  border-color: rgba(100, 116, 139, 0.35);
  color: var(--text-secondary);
}

.btn-player-action.btn-action-reset {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
}

.btn-player-action.btn-action-hardreset {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-player-action.btn-action-delete {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  margin-left: auto;
}

/* Tab 2: Server Events & Live Commands */
.admin-events-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.admin-event-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-event-box.event-frenzy-card {
  border-color: var(--border-glow-gold);
}

.admin-event-box.event-boss-card {
  border-color: var(--border-glow-danger);
}

.admin-event-box.event-broadcast-card {
  border-color: var(--border-glow-cyan);
}

.admin-event-box.event-reset-all-card {
  border-color: rgba(239, 68, 68, 0.3);
}

.event-box-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.event-box-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-box-title-group h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.event-box-title-group p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.duration-selector-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.duration-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-duration-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-duration-pill:hover {
  background: var(--bg-tertiary);
  color: #ffffff;
}

.btn-duration-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--border-glow-gold);
  color: var(--text-gold);
}

.btn-admin-action-large {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-admin-action-large.btn-glow-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-admin-action-large.btn-glow-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-admin-action-large.btn-glow-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-admin-action-large.btn-glow-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-admin-action-large.btn-glow-cyan {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-admin-action-large.btn-glow-purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.btn-admin-action-large.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-admin-action-large.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.event-status-pill {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.event-status-pill.status-inactive {
  background: var(--bg-input);
  color: var(--text-muted);
}

.event-status-pill.status-active-gold {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--border-glow-gold);
  color: var(--text-gold);
  font-weight: 700;
}

.event-status-pill.status-active-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--border-glow-danger);
  color: #f87171;
  font-weight: 700;
}

.event-status-pill.status-active-cyan {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--border-glow-cyan);
  color: var(--text-cyan);
  font-weight: 700;
}

/* Broadcast input controls */
/* Broadcast input controls & Theme pills */
.broadcast-input-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.broadcast-type-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.broadcast-type-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.broadcast-type-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-theme-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme-pill:hover {
  background: var(--bg-tertiary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-theme-pill.theme-info.active {
  background: rgba(6, 182, 212, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.btn-theme-pill.theme-warning.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.btn-theme-pill.theme-event.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

.btn-theme-pill.theme-danger.active {
  background: rgba(239, 68, 68, 0.25);
  border-color: #f87171;
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-theme-pill.theme-success.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.broadcast-textarea-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.broadcast-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 160px;
  resize: vertical;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: var(--font-main);
  line-height: 1.45;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.broadcast-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.char-counter-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

#broadcast-char-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
}

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

.broadcast-mode-select-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.broadcast-mode-select-box .mode-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.broadcast-mode-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-mode-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode-pill:hover {
  background: var(--bg-tertiary);
  color: #ffffff;
}

.btn-mode-pill.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.broadcast-duration-select {
  display: flex;
  align-items: center;
  gap: 8px;
}

.broadcast-duration-select label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.broadcast-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-action-medium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-admin-action-medium.btn-glow-cyan {
  background: #0284c7;
  color: #ffffff;
}

.btn-admin-action-medium.btn-glow-cyan:hover {
  background: #0369a1;
}

.btn-admin-action-medium.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-admin-action-medium.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Tab 3: Database & Backup Management */
.admin-database-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.admin-db-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.db-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-card-content {
  flex: 1;
}

.db-card-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.db-card-content p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.import-filename-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-cyan);
}

.admin-system-info-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.sys-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-cyan);
}

.sys-info-header h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.sys-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.sys-info-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sys-info-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sys-info-val {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Modals */
.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.admin-modal-backdrop.open {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.admin-modal-card {
  background: var(--bg-modal);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  padding: 18px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-modal-close:hover {
  color: #ffffff;
}

.admin-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.target-user-banner {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-glow-cyan);
  color: var(--text-cyan);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.quick-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.btn-quick-val,
.btn-quick-bldg {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}

.btn-quick-val:hover,
.btn-quick-bldg:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-quick-val.text-gold,
.btn-quick-bldg.text-gold {
  color: var(--text-gold);
  border-color: var(--border-glow-gold);
}

.btn-quick-val.text-danger,
.btn-quick-bldg.text-danger {
  color: var(--text-danger);
  border-color: var(--border-glow-danger);
}

.modal-input-row {
  display: flex;
  gap: 10px;
}

.admin-modal-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
}

.admin-modal-input:focus {
  border-color: var(--border-focus);
}

.admin-modal-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
}

.building-fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.bldg-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bldg-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bldg-field-row .admin-modal-input {
  width: 120px;
  text-align: right;
  font-family: var(--font-mono);
}

.estimated-cps-badge {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-cyan);
  font-family: var(--font-mono);
  text-align: center;
}

.skin-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.btn-skin-pick {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.btn-skin-pick:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.skin-pick-icon {
  font-size: 24px;
}

.skin-pick-details {
  display: flex;
  flex-direction: column;
}

.skin-pick-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.skin-pick-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-actions-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-hint-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.4;
}

.admin-modal-footer {
  padding: 16px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-cancel {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-modal-cancel:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.btn-modal-confirm {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: filter 0.15s, transform 0.15s;
}

.btn-modal-confirm.btn-glow-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
}

.btn-modal-confirm.btn-glow-cyan {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
}

.btn-modal-confirm.btn-glow-purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
}

.btn-modal-confirm:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Loading Spinner */
.admin-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-muted);
}

.admin-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(6, 182, 212, 0.15);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.rotating {
  animation: spin 0.7s linear infinite;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .player-card-top {
    flex-direction: column;
  }

  .player-scores-summary {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .admin-main-container {
    padding: 12px;
  }

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

  .skin-selection-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CUSTOM CONFIRM & ALERT DIALOG MODAL (Admin Console Theme)
   ========================================================================== */

.custom-dialog-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(3, 7, 18, 0.95) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

.custom-dialog-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1000000 !important;
}

.custom-dialog-backdrop.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.custom-dialog-card {
  position: relative;
  width: min(92vw, 480px);
  background: linear-gradient(155deg, #0f172a 0%, #070d1a 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.12);
  padding: 24px;
  overflow: hidden;
  transform: scale(0.93) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
  color: #f8fafc;
  font-family: var(--font-main, 'Plus Jakarta Sans', system-ui, sans-serif);
}

.custom-dialog-backdrop.open .custom-dialog-card {
  transform: scale(1) translateY(0);
}

.custom-dialog-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.7;
}

.custom-dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.custom-dialog-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.custom-dialog-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.custom-dialog-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.custom-dialog-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.custom-dialog-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.custom-dialog-close-btn:hover {
  color: #cbd5e1;
  transform: scale(1.1);
}

.custom-dialog-body {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.custom-dialog-message {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-line;
  word-break: break-word;
}

.custom-dialog-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.custom-dialog-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.btn-dialog-cancel {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

.btn-dialog-cancel:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-dialog-confirm {
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   ONGLET 5 : MODÉRATION DU CHAT & SANCTIONS (ADMIN PANEL)
   ========================================================================== */

.admin-chat-messages-stream {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.admin-chat-msg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-chat-msg-row:hover {
  background: rgba(20, 30, 52, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
}

.admin-chat-msg-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  flex-shrink: 0;
}

.admin-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1120;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.admin-chat-author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-chat-author-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-chat-username {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-chat-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
}

.admin-chat-userid {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #64748b;
}

.admin-chat-text {
  flex: 1;
  font-size: 0.84rem;
  color: #cbd5e1;
  word-break: break-word;
  line-height: 1.4;
  user-select: text;
}

.admin-chat-actions {
  flex-shrink: 0;
}

.admin-sanctions-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sanctions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.admin-sanctions-table th {
  background: rgba(10, 16, 30, 0.95);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sanctions-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}

.admin-sanctions-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

