/* ═════════════════════════════════════════════════════════════
   COVEN Esports - Tournament Management Panel Stylesheet
   Dark & Light Theme - No Emoji - Clean Esports Architecture
   ═════════════════════════════════════════════════════════════ */

:root {
  /* Dark Theme Variables (Defaut) */
  --bg-body: #0a0b10;
  --bg-sidebar: #0f1118;
  --bg-topbar: #121520;
  --bg-card: #151824;
  --bg-card-hover: #1b2030;
  --bg-input: #111420;
  --bg-tertiary: #1f2538;

  --border: #23293d;
  --border-light: #323b57;

  --text-primary: #f0f2f8;
  --text-secondary: #9aa3bf;
  --text-muted: #626c8a;

  --accent-purple: #7952f5;
  --accent-purple-hover: #8f6cf7;
  --accent-purple-glow: rgba(121, 82, 245, 0.2);

  --accent-silver: #d1d5db;
  --accent-silver-dark: #6b7280;

  --status-approved: #10b981;
  --status-approved-bg: rgba(16, 185, 129, 0.12);
  --status-pending: #f59e0b;
  --status-pending-bg: rgba(245, 158, 11, 0.12);
  --status-rejected: #ef4444;
  --status-rejected-bg: rgba(239, 68, 68, 0.12);
  --status-info: #3b82f6;
  --status-info-bg: rgba(59, 130, 246, 0.12);

  --sidebar-width: 250px;
  --topbar-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-body: #f4f5f8;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f1f5f9;
  --bg-tertiary: #e2e8f0;

  --border: #e2e8f0;
  --border-light: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-purple: #6d28d9;
  --accent-purple-hover: #7c3aed;
  --accent-purple-glow: rgba(109, 40, 217, 0.15);

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

/* ═════════════════════════════════════════════════════════════
   Login & Rejection Pages (Avora Style)
   ═════════════════════════════════════════════════════════════ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.bg-starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
}

.glow-top {
  width: 480px;
  height: 320px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(121, 82, 245, 0.14) 0%, transparent 65%);
}

.glow-bottom {
  width: 440px;
  height: 280px;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(88, 101, 242, 0.09) 0%, transparent 65%);
}

.login-container {
  position: relative;
  z-index: 10;
  padding: 24px;
  width: 100%;
  max-width: 460px;
}

.avora-glass-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 44px 34px 38px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.avora-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(121, 82, 245, 0.7), rgba(255, 255, 255, 0.3), transparent);
}

.emblem-container {
  position: relative;
  width: 135px;
  height: 135px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #000000;
}

.emblem-halo {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 82, 245, 0.25) 0%, transparent 70%);
  filter: blur(14px);
  animation: pulseHalo 4s ease-in-out infinite;
}

@keyframes pulseHalo {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.avora-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  mask-image: radial-gradient(circle at center, black 65%, transparent 98%);
  -webkit-mask-image: radial-gradient(circle at center, black 65%, transparent 98%);
  mix-blend-mode: screen;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.avora-glass-card:hover .avora-emblem {
  transform: scale(1.05);
}

.brand-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1;
}

.brand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 12px;
  width: 160px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.divider-diamond {
  width: 5px;
  height: 5px;
  background: var(--accent-purple);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--accent-purple);
}

.brand-subheading {
  font-size: 11px;
  font-weight: 700;
  color: #8e9bb8;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.access-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 26px;
  font-size: 12px;
  color: #a4b0cb;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.login-action-box {
  margin-bottom: 22px;
}

.avora-discord-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.avora-discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
}

.avora-discord-btn:active {
  transform: translateY(0);
}

.discord-svg {
  flex-shrink: 0;
}

.card-meta {
  font-size: 11px;
  color: #5a6682;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.meta-separator {
  color: #3b445c;
}

.denied-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: left;
}

.denied-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.denied-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═════════════════════════════════════════════════════════════
   Sidebar
   ═════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px var(--accent-purple-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tag {
  font-size: 10px;
  color: var(--accent-purple);
  font-weight: 700;
  letter-spacing: 2px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-link svg {
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent-purple);
  color: #ffffff;
}

.nav-link.active svg {
  color: #ffffff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theme-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
}

.theme-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-btn:hover {
  border-color: var(--accent-purple);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.user-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.user-role {
  font-size: 11px;
  color: var(--accent-purple);
  font-weight: 600;
}

.logout-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.logout-btn:hover {
  color: var(--status-rejected);
}

/* ═════════════════════════════════════════════════════════════
   Main Content Layout
   ═════════════════════════════════════════════════════════════ */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.content-body {
  padding: 32px;
  flex: 1;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* ═════════════════════════════════════════════════════════════
   Metrics Grid
   ═════════════════════════════════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon.purple { background: rgba(121, 82, 245, 0.15); color: var(--accent-purple); }
.metric-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.metric-icon.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.metric-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  display: block;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ═════════════════════════════════════════════════════════════
   Panels, Cards & Content Grid
   ═════════════════════════════════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-card-body {
  padding: 20px 22px;
  max-height: 480px;
  overflow-y: auto;
}

/* ═════════════════════════════════════════════════════════════
   Tournaments Grid & Cards
   ═════════════════════════════════════════════════════════════ */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  flex: 1;
  max-width: 450px;
  transition: all var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.search-box svg {
  color: var(--text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}

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

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.tourney-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.tourney-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
  box-shadow: 0 8px 24px var(--accent-purple-glow);
}

.tourney-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tourney-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.tourney-game-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.tourney-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tourney-detail-row {
  display: flex;
  justify-content: space-between;
}

.tourney-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ═════════════════════════════════════════════════════════════
   Detail Header & Subtabs
   ═════════════════════════════════════════════════════════════ */
.detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.sub-nav-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.sub-nav-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

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

.sub-nav-btn.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}

.subtab-content {
  display: none;
}

.subtab-content.active {
  display: block;
}

/* ═════════════════════════════════════════════════════════════
   Data Tables
   ═════════════════════════════════════════════════════════════ */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

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

.data-table th {
  background: var(--bg-tertiary);
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

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

.data-table tr:hover td {
  background: var(--bg-card-hover);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ═════════════════════════════════════════════════════════════
   Badges & Status
   ═════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-approved { background: var(--status-approved-bg); color: var(--status-approved); border: 1px solid var(--status-approved); }
.badge-pending { background: var(--status-pending-bg); color: var(--status-pending); border: 1px solid var(--status-pending); }
.badge-rejected { background: var(--status-rejected-bg); color: var(--status-rejected); border: 1px solid var(--status-rejected); }
.badge-info { background: var(--status-info-bg); color: var(--status-info); border: 1px solid var(--status-info); }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); }

/* ═════════════════════════════════════════════════════════════
   Buttons & Inputs
   ═════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent-purple);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-purple-hover);
  box-shadow: 0 4px 14px var(--accent-purple-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: var(--status-rejected-bg);
  border: 1px solid var(--status-rejected);
  color: var(--status-rejected);
}

.btn-danger:hover {
  background: var(--status-rejected);
  color: #ffffff;
}

.btn-success {
  background: var(--status-approved-bg);
  border: 1px solid var(--status-approved);
  color: var(--status-approved);
}

.btn-success:hover {
  background: var(--status-approved);
  color: #ffffff;
}

.select-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

/* ═════════════════════════════════════════════════════════════
   Brackets & Matches Grid
   ═════════════════════════════════════════════════════════════ */
.bracket-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.bracket-info {
  font-size: 13px;
  color: var(--text-muted);
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.match-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.match-team-row.winner {
  border-left: 3px solid var(--status-approved);
  color: var(--text-primary);
}

/* ═════════════════════════════════════════════════════════════
   Modals
   ═════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

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

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ═════════════════════════════════════════════════════════════
   Toast Notifications
   ═════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
}

.toast.success { border-left: 4px solid var(--status-approved); }
.toast.error { border-left: 4px solid var(--status-rejected); }

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

/* ═════════════════════════════════════════════════════════════
   Responsive
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { width: 68px; }
  .brand-text, .nav-link span, .theme-label, .user-info { display: none; }
  .main-wrapper { margin-left: 68px; }
  .content-body { padding: 20px; }
}
