/* ═══════════════════════════════════════════════════════════════
   CHESSKIDOO ACADEMY - Premium Admin Panel Styles
   Modern design with gold accents and dark theme
   Professional fonts: Cormorant Garamond (headings), Syne (UI), JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Colors - Classic Gold & Obsidian Theme */
  --obsidian: #080810;
  --night: #0e0e1a;
  --dusk: #13131f;
  --surface: #181824;
  --surface2: #1e1e2e;
  --surface3: #252538;
  
  --amber: #e8a830;
  --amber-dim: #c49028;
  --amber-glow: rgba(232,168,48,0.18);
  --amber-mist: rgba(232,168,48,0.07);
  
  --gold: #dca33e;
  --gold2: #f0c05a;
  --gold-glow: rgba(220,163,62,0.25);
  
  /* Text Colors */
  --ivory: #f0ede4;
  --ivory2: #c8c4b8;
  --ivory3: #7a7870;
  
  /* Status Colors */
  --accent: #5a9fff;
  --success: #52c41a;
  --danger: #ff4d4f;
  --emerald: #52c41a;
  
  /* UI Elements */
  --glass: rgba(255,255,255,0.03);
  --border: rgba(232,168,48,0.15);
  --radius-lg: 14px;
  --radius-sm: 8px;
  
  /* Typography */
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
   /* Shadows */
   --shadow: 0 20px 40px rgba(0,0,0,0.45);
   --shadow-deep: 0 24px 60px rgba(0,0,0,0.6), 0 8px 20px rgba(0,0,0,0.4);
   --shadow-amber: 0 0 40px rgba(232,168,48,0.12);

   /* Cyberpunk Neon Colors */
   --neon-cyan: #00f0ff;
   --neon-magenta: #ff00ff;
   --neon-amber: #ffaa00;
   --neon-emerald: #00ff88;
   --neon-rose: #ff0055;
   --neon-blue: #0066ff;
   --cyber-bg: #050505;
   --cyber-dark: #0a0a0f;
   --glass-dark: rgba(10, 10, 15, 0.75);
   --glass-border: rgba(0, 240, 255, 0.2);
   --glow-intensity: 20px;
}

body[data-theme="light"] {
  --obsidian: #fdfbf7;
  --night: #ffffff;
  --dusk: #f6f3eb;
  --surface: #ffffff;
  --surface2: #f9f7f2;
  --surface3: #f0ede4;
  
  --gold: #b3851b;
  --gold2: #d4a017;
  --gold-glow: rgba(179, 133, 27, 0.15);
  
  --ivory: #1a1a1a;
  --ivory2: #4a4a4a;
  --ivory3: #757575;
  
  --glass: rgba(255, 255, 255, 0.9);
  --border: rgba(179, 133, 27, 0.15);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 15px 45px rgba(0, 0, 0, 0.12);
  --shadow-amber: 0 0 20px rgba(179, 133, 27, 0.1);
  
  --gold-mist: rgba(179, 133, 27, 0.06);
  --amber-mist: rgba(179, 133, 27, 0.04);
  
  background: var(--obsidian) !important;
  background-image: none !important;
  color: var(--ivory) !important;
}

body[data-theme="light"]::before {
  opacity: 0.1;
}

.card-clickable {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, border-color 0.2s !important;
}
.card-clickable:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold) !important;
  box-shadow: var(--shadow-deep), 0 0 15px var(--gold-glow);
}
.card-clickable:active {
  transform: translateY(-1px) scale(0.98);
}

/* Modal Content Light Theme Fix */
body[data-theme="light"] .modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-deep);
}

body[data-theme="light"] .modal-hdr,
body[data-theme="light"] .modal-title {
  color: var(--gold);
}

body[data-theme="light"] .label,
body[data-theme="light"] .form-group label {
  color: var(--ivory);
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--ivory);
}

/* Stat Value Brighter State */
.stat-value.bright {
  color: var(--gold2);
  text-shadow: 0 0 15px var(--gold-glow);
}

/* Light theme sidebar */
body[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
}

body[data-theme="light"] .nav-item {
  color: var(--ivory2);
}

body[data-theme="light"] .nav-item:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--gold);
}

body[data-theme="light"] .nav-item.active {
  background: linear-gradient(90deg, rgba(184, 134, 11, 0.1) 0%, transparent 100%);
  color: var(--gold);
}
body[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
}

body[data-theme="light"] .nav-item {
  color: var(--ivory2);
}

body[data-theme="light"] .nav-item:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--gold);
}

body[data-theme="light"] .nav-item.active {
  background: linear-gradient(90deg, rgba(184, 134, 11, 0.1) 0%, transparent 100%);
  color: var(--gold);
}

body[data-theme="light"] .logo-text {
  color: var(--gold);
}

/* Light theme top bar */
body[data-theme="light"] .top-bar {
  background: var(--glass);
  border-bottom: 1px solid var(--border);
}

body[data-theme="light"] .page-title {
  color: var(--ivory) !important;
}

body[data-theme="light"] .admin-label {
  color: var(--ivory) !important;
}

/* ── RESET & BASE ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font-ui);
  min-height: 100vh;
  display: flex;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow-x: hidden;
}

/* NOISE TEXTURE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
  opacity: 0.05;
  transition: opacity 0.2s;
}

body.login-mode .sidebar,
body.login-mode .main,
body.login-mode .top-bar,
body.login-mode .sidebar-overlay { 
  display: none !important; 
}

/* ── SIDEBAR ── */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--night) 0%, var(--obsidian) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sidebar.collapsed { transform: translateX(-100%); }

.logo {
  padding: 28px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.logo-icon { 
  font-size: 26px; 
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
}

.nav-group { padding: 12px; flex-grow: 1; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  margin: 3px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ivory3);
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
  user-select: none;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--gold-mist); color: var(--ivory); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(220,163,62,0.15) 0%, transparent 100%);
  border-left: 3px solid var(--gold);
  color: var(--gold);
}
.nav-item .ico { font-size: 16px; min-width: 20px; text-align: center; }

/* ── MAIN CONTENT ── */
.main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.15s ease;
  width: calc(100% - 240px);
}
.main.expanded { margin-left: 0; width: 100%; }

.top-bar {
  padding: 22px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-bottom 0.2s;
}

.page-title {
  color: var(--ivory) !important;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-nav-right { display: flex; align-items: center; gap: 16px; }
.top-nav-right .btn { padding: 8px 14px; font-size: 12px; }
.content { padding: 28px 36px 48px; }

/* ── MENU TOGGLE ── */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 6px;
  margin-right: 4px;
  border-radius: 6px;
  transition: 0.2s ease;
}
.menu-toggle:hover { background: var(--gold-mist); color: var(--gold2); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 95;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

/* ── TOP PROFILE ── */
.top-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: 0.2s;
}
.top-profile:hover { background: var(--gold-mist); }
.top-profile-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.top-profile-info { display: flex; flex-direction: column; }
.top-profile-hello {
  font-size: 11px;
  color: var(--ivory3);
  line-height: 1.2;
}
.top-profile-name {
  font-size: 14px;
  color: var(--ivory);
  font-weight: 600;
}

/* ── HERO & CARDS ── */
.hero-img {
  width: 100%;
  height: 210px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 28px;
  border: 1px solid rgba(232,168,48,0.12);
  object-position: center 35%;
  box-shadow: var(--shadow);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: 0.25s;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card:hover {
  border-color: rgba(232,168,48,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-amber);
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ivory3);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 600;
}
.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-mono);
}

/* ── TABLES ── */
.table-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,168,48,0.1);
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th {
  text-align: left;
  padding: 16px 18px;
  font-size: 11px;
  color: var(--ivory3);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gold-mist); }

.av-cell { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.av-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232,168,48,0.3);
  flex-shrink: 0;
}

/* ── TEXT FORMATTING ── */
.text-gold { color: var(--gold); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.text-success { color: var(--success); font-weight: 700; }
.text-danger { color: var(--danger); font-weight: 700; }
.text-warning, .text-pending { color: var(--amber); font-weight: 700; }

/* ── BUTTONS ── */
.btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-gold { 
  background: linear-gradient(135deg, var(--gold), var(--gold2)); 
  color: #111;
  box-shadow: 0 4px 14px rgba(232,168,48,0.3);
}
.btn-gold:hover { 
  background: linear-gradient(135deg, var(--gold2), var(--gold)); 
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,168,48,0.4);
}
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold-mist); }

.btn-sm { padding: 5px 12px; font-size: 11px; }
.btn-outline-blue { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline-blue:hover { background: rgba(90,159,255,0.1); }
.btn-outline-grey { background: transparent; border: 1px solid #555; color: var(--ivory); }
.btn-outline-grey:hover { background: var(--glass); }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(255,77,79,0.1); }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.badge-paid { background: rgba(82,196,26,0.15); color: var(--success); }
.badge-due { background: rgba(255,77,79,0.15); color: var(--danger); }
.badge-level { background: var(--gold-glow); color: var(--gold); text-transform: uppercase; }
.badge-danger { background: rgba(255,77,79,0.15); color: var(--danger); }

/* ── PROFILE HEADER ── */
.profile-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,168,48,0.1);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 24px;
}
.profile-info { display: flex; align-items: center; gap: 24px; }
.profile-av {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 8px 24px var(--gold-glow);
  flex-shrink: 0;
}
.profile-details h1 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 34px;
  margin-bottom: 8px;
  line-height: 1;
}
.profile-meta { display: flex; gap: 16px; color: var(--ivory3); font-size: 14px; }
.profile-meta b { color: var(--ivory); font-weight: 600; }
.profile-actions { display: flex; gap: 12px; }

/* ── MODALS ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  backdrop-filter: blur(5px);
}
.modal-box {
  background: var(--surface);
  width: 480px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,168,48,0.2);
  position: relative;
  box-shadow: var(--shadow), 0 0 40px rgba(232,168,48,0.08);
}
.modal-title { 
  font-family: var(--font-head); 
  font-size: 24px; 
  color: var(--gold); 
  margin-bottom: 6px; 
  font-weight: 600;
}
.modal-sub { color: var(--ivory3); font-size: 14px; margin-bottom: 22px; }

input, select, textarea {
  width: 100%;
  padding: 13px;
  background: var(--surface2);
  border: 1px solid rgba(232,168,48,0.12);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  margin-bottom: 13px;
  outline: none;
  transition: 0.25s;
  font-family: var(--font-ui);
  font-size: 14px;
  resize: vertical;
}
input:focus, select:focus, textarea:focus { 
  border-color: var(--gold); 
  background: var(--surface); 
  box-shadow: 0 0 0 2px var(--gold-glow); 
}
select option { background: var(--surface2); }
input[type="time"], input[type="date"] { color-scheme: dark; }

/* ── HISTORY ITEMS ── */
.history-item {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--glass);
  padding-bottom: 8px;
  font-size: 13px;
}
.history-item span { color: var(--ivory3); font-size: 11px; display: block; margin-top: 2px; }

/* ── SCHEDULE ── */
.schedule-day {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.schedule-day b { color: var(--gold); }
.schedule-time { color: var(--ivory); font-family: var(--font-mono); font-size: 13px; }

/* ── ACHIEVEMENTS ── */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 18px; }
.ach-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.3s;
  box-shadow: var(--shadow);
  cursor: default;
}
.ach-card:hover { 
  transform: translateY(-5px) translateZ(8px); 
  border-color: var(--gold); 
  box-shadow: 0 15px 40px rgba(0,0,0,0.4), var(--shadow-amber); 
}
.ach-img { width: 100%; height: 240px; object-fit: cover; }
.ach-img-placeholder {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: var(--surface2);
}
.ach-info { padding: 18px; text-align: center; }
.ach-title { font-family: var(--font-head); font-size: 16px; color: var(--gold); margin-bottom: 5px; font-weight: 600; }
.ach-sub { font-size: 10px; color: var(--ivory3); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.del-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: 0.2s;
  z-index: 5;
}
.del-btn:hover { transform: scale(1.15); background: #e03033; }

/* ── EVENTS ── */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ev-card {
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: 0.3s;
  box-shadow: var(--shadow);
}
.ev-card:hover { 
  border-color: var(--gold); 
  transform: translateY(-4px);
  box-shadow: var(--shadow-amber);
}
.ev-date { position: absolute; top: 14px; right: 14px; background: var(--gold); color: #000; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.ev-type { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.ev-title { font-family: var(--font-head); font-size: 18px; color: var(--ivory); margin-bottom: 10px; font-weight: 600; }
.ev-meta { font-size: 12px; color: var(--ivory3); line-height: 1.8; margin-bottom: 16px; }

/* ── CHAT ── */
.chat-box { flex: 1; overflow-y: auto; padding: 4px 0 16px; display: flex; flex-direction: column; gap: 10px; }
.msg-ai {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 12px 12px 12px 3px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface2);
  color: var(--ivory);
  border-left: 3px solid var(--gold);
  border: 1px solid rgba(232,168,48,0.1);
  align-self: flex-start;
  white-space: pre-wrap;
}
.msg-user {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 12px 12px 3px 12px;
  font-size: 14px;
  line-height: 1.6;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-weight: 600;
  align-self: flex-end;
}
.msg-thinking { opacity: 0.6; font-style: italic; }

/* ── LOGIN SCREEN ── */
#login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(5,5,10,0.7), rgba(14,14,26,0.9)), url('https://images.unsplash.com/photo-1529699211952-734e80c4d42b?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 10, 0.3);
}
.login-box {
  width: 100%;
  max-width: 420px;
  background: rgba(22, 22, 34, 0.75);
  border: 1px solid rgba(232,168,48,0.25);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(232,168,48,0.08);
  text-align: center;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(20px);
}
.logo-area { margin-bottom: 40px; }
.logo-chess-large {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(232,168,48,0.3);
  margin-bottom: 16px;
  color: var(--obsidian);
}
.logo-name {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 700;
  color: var(--amber); letter-spacing: 1px;
  display: block;
}
.logo-tagline {
  font-size: 11px; color: var(--ivory3);
  text-transform: uppercase; letter-spacing: 3px;
  font-weight: 500;
}
.form-group { margin-bottom: 24px; text-align: left; }
.label {
  display: block; font-size: 12px; color: var(--ivory3);
  margin-bottom: 8px; margin-left: 4px;
  text-transform: uppercase; letter-spacing: 1px;
}
.input-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}
.input-field:focus {
  border-color: var(--amber);
  background: var(--surface2);
  box-shadow: 0 0 0 4px var(--amber-glow);
}
.login-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: var(--obsidian);
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,168,48,0.3);
  filter: brightness(1.1);
}
.footer-links { margin-top: 24px; display: flex; justify-content: center; gap: 16px; }
.footer-link { font-size: 12px; color: var(--ivory3); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.footer-link:hover { color: var(--amber); }

/* ── UPI & MISC ── */
.upi-list { display: flex; flex-direction: column; gap: 11px; margin: 22px 0; }
.upi-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.upi-item:hover { border-color: var(--gold); transform: scale(1.01); }
.upi-logo { width: 28px; height: 28px; border-radius: 5px; object-fit: contain; }

.upload-zone {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px dashed var(--ivory3);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 13px;
  font-size: 13px;
  color: var(--ivory3);
  background: var(--surface2);
}
.upload-zone:hover { border-color: var(--gold); color: var(--gold); }
.upload-zone input { display: none; }
.upload-preview { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 13px; display: none; }

/* ── FILTERS ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid rgba(232,168,48,0.1);
}
.filter-bar select, .filter-bar input { margin-bottom: 0; padding: 8px 12px; font-size: 13px; max-width: 140px; }

/* ── PAGE VISIBILITY ── */
body.admin-mode .parent-only,
body.parent-mode .admin-only,
body.admin-mode .master-only { display: none !important; }
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── TOAST NOTIFICATIONS ── */
#toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}
.toast-success { background: rgba(82,196,26,0.15); border: 1px solid rgba(82,196,26,0.3); color: var(--success); }
.toast-error { background: rgba(255,77,79,0.15); border: 1px solid rgba(255,77,79,0.3); color: var(--danger); }
.toast-info { background: rgba(232,168,48,0.1); border: 1px solid rgba(232,168,48,0.25); color: var(--gold); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ── DASHBOARD GRIDS ── */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.dash-charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }

/* ── LOADING STATES ── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(212,175,55,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--ivory3); gap: 14px; font-size: 14px; }
.empty-state { text-align: center; padding: 60px; color: var(--ivory3); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 260px; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  .top-bar { padding: 16px 20px; }
  .content { padding: 20px; }
  .profile-hdr { flex-direction: column; align-items: flex-start; padding: 24px; }
  .profile-actions { width: 100%; flex-direction: column; }
  .profile-actions .btn { width: 100%; }
  .dash-grid, .dash-charts { grid-template-columns: 1fr; }
  .filter-bar select, .filter-bar input { max-width: 100%; width: 100%; }
  .ev-grid { grid-template-columns: 1fr; }
  .ach-grid, .fame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ach-card, .fame-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  min-height: 280px;
}
.ach-card:hover, .fame-card:hover {
  border-color: rgba(232,168,48,0.25);
  transform: translateY(-3px);
}
.ach-img, .fame-img { width: 100%; height: 180px; object-fit: cover; }
.ach-img-placeholder, .fame-img-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; background: var(--surface2);
}
.ach-info, .fame-info { padding: 16px; }
.ach-title, .fame-title {
  font-family: var(--font-head);
  font-size: 18px; color: var(--gold);
  margin-bottom: 6px; font-weight: 600;
}
.ach-sub, .fame-sub { font-size: 12px; color: var(--ivory3); }
}

/* ── PREMIUM EVENT CARDS ── */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.ev-card {
  background: var(--surface);
  border: 1px solid rgba(232,168,62,0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 20px rgba(220,163,62,0.1);
  border-color: rgba(232,168,62,0.3);
}
.ev-header {
  background: linear-gradient(135deg, rgba(220,163,62,0.15) 0%, rgba(220,163,62,0.05) 100%);
  border-radius: 16px 16px 0 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(232,168,62,0.1);
}
.ev-type-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ev-date-badge {
  background: var(--surface3);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
}
.ev-body {
  padding: 22px;
  flex: 1;
}
.ev-title {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--ivory);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.ev-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ivory2);
}
.ev-time::before { content: '🕐'; }
.ev-loc::before { content: '📍'; }
.ev-prize::before { content: '🏆'; }
.ev-desc {
  font-size: 14px;
  color: var(--ivory3);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ev-progress-wrap {
  padding: 0 22px 18px;
}
.ev-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}
.ev-progress-label span:last-child { 
  color: var(--gold); 
  font-family: var(--font-mono); 
  font-weight: 600;
}
.ev-progress-track {
  background: var(--surface2);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.ev-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.ev-footer {
  padding: 18px 22px;
  border-top: 1px solid rgba(232,168,62,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.15);
}
.ev-spots {
  font-size: 13px;
  color: var(--ivory3);
}
.ev-spots strong {
  color: var(--ivory);
  font-family: var(--font-mono);
}
.btn-register {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  transition: all 0.2s ease;
}
.btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(220,163,62,0.4);
}
.btn-register.registered {
  background: var(--surface2);
  color: var(--success);
  border: 1px solid var(--success);
}

@media (max-width: 1024px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
}

/* ── PRINT STYLES ── */
@media print {
  .sidebar, .top-bar, .btn, .modal, #toast-container, .nav-group { display: none !important; }
  .main { margin: 0; width: 100%; padding: 20px; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ═══════════════════════════════════════════════════════════════
   AI ASSISTANT WORKSPACE - Premium Design
   ═══════════════════════════════════════════════════════════════ */
.ai-ws {
  display: flex;
  height: calc(100vh - 120px);
  background: var(--surface2);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(232,168,48,0.15);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.ai-ws-sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid rgba(232,168,48,0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-ws-brand {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.ai-ws-brand span { font-size: 24px; }
.ai-ws-menu { display: flex; flex-direction: column; gap: 6px; }
.ai-ws-btn {
  background: transparent;
  color: var(--ivory3);
  border: 1px solid transparent;
  padding: 12px 16px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
}
.ai-ws-btn:hover { background: var(--gold-mist); color: var(--ivory); }
.ai-ws-btn.active {
  background: rgba(220,161,62,0.12);
  color: var(--gold);
  border: 1px solid rgba(220,161,62,0.3);
}
.ai-ws-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(135deg, rgba(20,20,30,1) 0%, rgba(30,30,40,1) 100%);
}
.ai-ws-header {
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-ws-header h2 { 
  font-family: var(--font-head); 
  font-size: 24px; 
  color: var(--ivory); 
  margin-bottom: 4px; 
}
.ai-ws-header p { color: var(--ivory3); font-size: 14px; }
.ai-ws-chat {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ai-ws-msg {
  display: flex;
  gap: 16px;
  max-width: 800px;
  animation: fadeIn 0.3s ease;
}
.ai-ws-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-ws-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.15);
}
.ai-ws-msg.user .ai-ws-avatar { background: var(--gold); color: var(--obsidian); }
.ai-ws-bubble {
  background: rgba(40,40,60,0.5);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ivory);
  line-height: 1.6;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.ai-ws-msg.user .ai-ws-bubble {
  background: rgba(220,161,62,0.15);
  border-color: rgba(220,161,62,0.4);
}
.ai-ws-input-area {
  padding: 24px 40px;
  background: rgba(20,20,30,0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ai-ws-input-box {
  display: flex;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.ai-ws-input-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 30px rgba(220,161,62,0.15);
}
.ai-ws-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ivory);
  font-size: 16px;
  outline: none;
  font-family: var(--font-ui);
}
.ai-ws-input-box input::placeholder { color: var(--ivory3); }
.ai-ws-send {
  background: var(--gold);
  color: var(--obsidian);
  width: 44px; height: 44px;
  border-radius: 12px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.ai-ws-send:hover { transform: scale(1.05); }
.ai-ws-suggest {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-ws-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ivory3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-ui);
}
.ai-ws-pill:hover { background: var(--gold-mist); color: var(--gold); border-color: rgba(220,161,62,0.3); }

/* ── COACH GRID ── */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.coach-card {
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}
.coach-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.coach-card-av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--surface2);
}
.coach-card-title {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 4px;
}
.coach-card-subtitle {
  font-size: 12px;
  color: var(--ivory3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.coach-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--surface2);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.03);
}
.coach-stat { display: flex; flex-direction: column; gap: 4px; }
.coach-stat-label { font-size: 11px; color: var(--ivory3); text-transform: uppercase; }
.coach-stat-val { font-size: 16px; font-weight: 600; color: var(--ivory); }
.coach-card-actions { display: flex; gap: 12px; margin-top: auto; }
.coach-card-actions .btn { flex: 1; padding: 10px; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   AI CHATBOT FLOATING WIDGET - Premium Design
   ═══════════════════════════════════════════════════════════════ */
.ai-chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  border: none;
  box-shadow: 0 6px 20px rgba(220,163,62,0.45), 0 0 0 0 rgba(220,163,62,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: chatBtnPulse 3s ease-in-out infinite;
}
.ai-chat-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 30px rgba(220,163,62,0.6), 0 0 0 6px rgba(220,163,62,0.12);
  animation: none;
}
@keyframes chatBtnPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(220,163,62,0.45), 0 0 0 0 rgba(220,163,62,0.35); }
  50% { box-shadow: 0 6px 20px rgba(220,163,62,0.45), 0 0 0 10px rgba(220,163,62,0); }
}

.ai-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(220,163,62,0.08);
  display: none;
  flex-direction: column;
  z-index: 4400;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatPanelIn 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  backdrop-filter: blur(12px);
}
@keyframes chatPanelIn {
  from { opacity: 0; transform: scale(0.85) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ai-chat-header {
  background: linear-gradient(90deg, rgba(220,163,62,0.12) 0%, rgba(220,163,62,0.04) 100%);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(232,168,48,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.ai-chat-title {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.ai-chat-title::before { content: '⚡'; }
.ai-online-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ai-chat-close {
  background: none;
  border: none;
  color: var(--ivory3);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ai-chat-close:hover { background: var(--glass); color: var(--ivory); }

.ai-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ai-chat-body::-webkit-scrollbar { width: 4px; }
.ai-chat-body::-webkit-scrollbar-track { background: transparent; }
.ai-chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgSlideIn 0.2s ease forwards;
  word-break: break-word;
}
@keyframes msgSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ai-msg.user {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  box-shadow: 0 3px 10px rgba(220,163,62,0.3);
}
.ai-msg.bot {
  background: var(--surface2);
  color: var(--ivory);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(232,168,48,0.1);
  border-left: 3px solid var(--gold);
}
.ai-msg.bot.thinking { color: var(--ivory3); font-style: italic; }

.ai-chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(232,168,48,0.1);
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--surface2);
  flex-shrink: 0;
}
.ai-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.12);
  color: var(--ivory);
  border-radius: 22px;
  padding: 9px 16px;
  outline: none;
  font-size: 14px;
  font-family: var(--font-ui);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}
.ai-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
  background: var(--surface);
}
.ai-input::placeholder { color: var(--ivory3); }
.ai-send {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(220,163,62,0.35);
}
.ai-send:hover { background: var(--gold2); transform: scale(1.1); }
.ai-send:active { transform: scale(0.95); }

/* Light theme overrides */
[data-theme="light"] .ai-chat-panel { 
  background: var(--night) !important; 
  border: 1px solid var(--border) !important; 
  box-shadow: 0 24px 60px rgba(0,0,0,0.18); 
}
[data-theme="light"] .ai-chat-header { 
  background: rgba(184, 134, 11, 0.09); 
}
[data-theme="light"] .ai-msg.bot { 
  background: var(--surface3) !important; 
  color: var(--ivory) !important; 
  border-color: var(--border); 
}
[data-theme="light"] .ai-chat-input-area { 
  background: var(--surface2); 
}
[data-theme="light"] .ai-input { 
  background: var(--surface); 
  border-color: var(--border); 
  color: var(--ivory); 
}

/* Mobile */
@media (max-width: 480px) {
  .ai-chat-panel { width: calc(100vw - 16px); right: 8px; bottom: 90px; }
  .ai-chat-btn { right: 16px; bottom: 20px; }
}

/* ── NOTIFICATION SYSTEM ── */
#notification-btn.has-notifications::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: notificationPulse 2s infinite;
}
@keyframes notificationPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.2); } }

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.notification-item:hover { background: var(--surface2); border-color: var(--gold); }
.notification-item.success { border-left: 3px solid var(--success); }
.notification-item.warning { border-left: 3px solid var(--gold); }
.notification-item.error { border-left: 3px solid var(--danger); }
.notification-item.info { border-left: 3px solid var(--accent); }

.notification-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.notification-item.success .notification-icon { color: var(--success); }
.notification-item.warning .notification-icon { color: var(--gold); }
.notification-item.error .notification-icon { color: var(--danger); }
.notification-item.info .notification-icon { color: var(--accent); }

.notification-message { font-weight: 500; margin-bottom: 4px; color: var(--ivory); }
.notification-time { font-size: 12px; color: var(--ivory3); }

/* ── MESSAGES LIST ── */
.msgs-list { display: grid; gap: 16px; }
.msg-card {
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
  position: relative;
}
.msg-card.unread { border-left: 3px solid var(--gold); }
.msg-card:hover { border-color: rgba(232,168,48,0.25); }
.msg-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.msg-card-sender { font-weight: 600; color: var(--gold); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.msg-card-subject { color: var(--ivory); font-size: 14px; margin-top: 2px; font-weight: 500; }
.msg-card-time { font-family: var(--font-mono); font-size: 11px; color: var(--ivory3); }
.msg-card-body { font-size: 13px; color: var(--ivory2); line-height: 1.5; margin-bottom: 12px; }
.msg-card-actions { display: flex; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════════
   NEW CHAT WIDGET - DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 4000;
  box-shadow: 0 8px 24px rgba(232,168,48,0.4);
  font-size: 22px;
  transition: all 0.3s;
  border: none;
}
.chat-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 32px rgba(232,168,48,0.5);
}

.chat-panel {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 40px rgba(232,168,48,0.1);
  z-index: 3900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); transform-origin: bottom right; }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-head {
  background: linear-gradient(90deg, rgba(232,168,48,0.1), rgba(232,168,48,0.04));
  padding: 14px 18px;
  border-bottom: 1px solid rgba(232,168,48,0.1);
  display: flex; align-items: center; gap: 10px;
}
.chat-head-av {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: #000;
}
.chat-head-info h4 { font-family: var(--font-head); font-size: 14px; color: var(--gold); }
.chat-head-info p { font-size: 10px; color: var(--success); display: flex; align-items: center; gap: 4px; }

.online-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.chat-body {
  flex: 1;
  max-height: 280px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,168,48,0.15) transparent;
}

.chat-msg {
  font-size: 13px;
  padding: 9px 13px;
  border-radius: 10px;
  max-width: 82%;
  line-height: 1.5;
}
.chat-msg.bot { background: var(--surface2); color: var(--ivory); align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-msg.user { background: var(--gold-mist); border: 1px solid rgba(232,168,48,0.2); color: var(--ivory); align-self: flex-end; border-bottom-right-radius: 3px; }

.chat-input-row {
  padding: 12px;
  border-top: 1px solid rgba(232,168,48,0.08);
  display: flex;
  gap: 8px;
  background: var(--surface2);
}
.chat-input-row input {
  flex: 1;
  background: var(--surface);
  border: 1px solid rgba(232,168,48,0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ivory);
  font-size: 13px;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-row input:focus { border-color: var(--gold); }
.chat-input-row input::placeholder { color: var(--ivory3); }
.chat-send {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.15s;
}
.chat-send:hover { transform: scale(1.05); }

/* 3D Card Animations */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.stat-card { animation: cardReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.16s; }
.stat-card:nth-child(4) { animation-delay: 0.24s; }
.stat-card:nth-child(5) { animation-delay: 0.32s; }
.stat-card:nth-child(6) { animation-delay: 0.4s; }

.stat-card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(232,168,48,0.1), transparent);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.stat-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(232,168,48,0.15);
}
.stat-card:hover::before { opacity: 1; }
.stat-card::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%) scale(0.8);
  width: 60%;
  height: 16px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.3), transparent);
  filter: blur(8px);
  opacity: 0;
  transition: all 0.3s;
  z-index: -1;
}
.stat-card:hover::after {
  opacity: 0.4;
  transform: translateX(-50%) scale(1);
}

/* 3D Button Animations */
.btn-gold, .chat-fab {
  transform: translateZ(0);
}
.btn-gold:hover, .chat-fab:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 12px 30px rgba(232,168,48,0.5), 0 0 20px rgba(232,168,48,0.2);
}

/* Premium Event 3D Cards */
.ev-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.ev-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 30px rgba(232,168,48,0.15);
}

/* Smooth Page Transitions */
.page {
  animation: pageIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 16px); right: 8px; bottom: 90px; }
  .chat-fab { right: 16px; bottom: 20px; }
}

/* Premium Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(232,168,48,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,168,48,0.4); }
.scroll-thin { scrollbar-width: thin; scrollbar-color: rgba(232,168,48,0.15) transparent; }

/* ── PARENT PORTAL TABS ── */
.tabs-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.tab-link {
  background: transparent;
  border: none;
  color: var(--ivory3);
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  border-radius: 4px 4px 0 0;
}
.tab-link:hover { color: var(--ivory); background: var(--gold-mist); }
.tab-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: linear-gradient(180deg, transparent 0%, rgba(220,163,62,0.05) 100%);
}
.child-tab-content { display: none; }
.child-tab-content.active { display: block; animation: fadeUp 0.3s ease-out; }

/* ── ATTENDANCE HEATMAP ── */
.heatmap-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 16px;
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 10px;
}
.heatmap-day {
  aspect-ratio: 1;
  background: var(--bg3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ivory3);
  position: relative;
  transition: transform 0.2s;
}
.heatmap-day:hover { transform: scale(1.1); z-index: 2; }
.heatmap-day.present { background: var(--success); color: #fff; box-shadow: 0 0 10px rgba(82, 196, 26, 0.3); }
.heatmap-day.absent { background: var(--danger); color: #fff; box-shadow: 0 0 10px rgba(255, 77, 79, 0.3); }
.heatmap-day-label { font-size: 10px; color: var(--ivory3); }
.heatmap-day .day-label { display: block; font-size: 8px; opacity: 0.7; margin-top: 2px; }

/* ── RESOURCE LIBRARY ── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.resource-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resource-card:hover { transform: translateY(-4px); border-color: var(--gold); background: var(--surface); }
.res-type { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; }
.res-title { font-family: var(--font-head); font-size: 18px; color: var(--ivory); }
.res-desc { font-size: 13px; color: var(--ivory3); line-height: 1.5; }
.res-action { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
  .main { margin-left: 220px; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { 
    position: fixed; left: -260px; top: 0; bottom: 0;
    width: 260px; z-index: 9999; transition: left 0.3s;
  }
  .sidebar.open { left: 0; }
  .main { margin-left: 0; padding: 16px; }
  .top-bar { padding: 12px 16px; }
  .page { padding: 16px; }
  .stat-grid, .coach-grid, .ach-grid, .ev-grid, .fame-grid, .msgs-list { 
    grid-template-columns: 1fr; 
  }
  .table-wrap { overflow-x: auto; }
  table { min-width: 600px; }
  .login-box { padding: 24px; width: 90%; max-width: 360px; }
  .login-title { font-size: 24px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .modal-box { width: 90%; max-width: 480px; padding: 20px; }
  .modal-box input, .modal-box select, .modal-box textarea { 
    padding: 12px; font-size: 14px; 
  }
  .tabs-nav { overflow-x: auto; white-space: nowrap; }
  .tab-link { padding: 10px 14px; font-size: 13px; }
  #child-tab-overview > div { grid-template-columns: 1fr; }
  .ai-ws { flex-direction: column; }
  .ai-ws-sidebar { width: 100%; min-width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .ai-ws-main { min-height: 400px; }
  .heatmap-container { gap: 4px; }
  .heatmap-day { width: 28px; height: 28px; font-size: 10px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 14px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 11px; }
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
  .nav-item { padding: 12px 14px; font-size: 13px; }
  .pass-wrap { position: relative; }
  .eye-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
  input[type="text"], input[type="password"], input[type="tel"], input[type="email"], 
  input[type="number"], input[type="date"], input[type="time"], select, textarea {
    font-size: 14px; padding: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY: FOCUS INDICATORS
   ═══════════════════════════════════════════════════════════════ */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, 
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn:focus-visible, .nav-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY: SKIP LINK & SR-ONLY
   ═══════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--gold); color: var(--obsidian);
  padding: 8px 16px; z-index: 10000; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY: REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── PREMIUM COACH CARDS ── */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.coach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.coach-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  opacity: 0;
  transition: opacity 0.3s;
}

.coach-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), var(--shadow-amber);
}

.coach-card:hover::before { opacity: 1; }

.coach-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coach-card-av {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.coach-card-title {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.2;
}

.coach-card-subtitle {
  font-size: 11px;
  color: var(--ivory3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coach-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 12px;
  gap: 8px;
}

.coach-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coach-stat-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--ivory3);
  margin-bottom: 4px;
}

.coach-stat-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ivory);
}

.coach-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ── PREMIUM DASHBOARD STATS ── */
.dash-grid .card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dash-grid .card::after {
  content: '♟';
  position: absolute;
  bottom: -15px;
  right: -5px;
  font-size: 80px;
  opacity: 0.03;
  transform: rotate(15deg);
  pointer-events: none;
}

body[data-theme="light"] .dash-grid .card::after {
  opacity: 0.05;
}

/* ── AI ASSISTANT REFINEMENTS ── */
.ai-ws {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 650px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.ai-ws-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--obsidian);
}

body[data-theme="light"] .ai-ws-sidebar {
  background: var(--surface);
}

body[data-theme="light"] .ai-ws-main {
  background: var(--surface2);
}

body[data-theme="light"] .ai-ws-msg.bot .ai-ws-bubble {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

body[data-theme="light"] .chat-panel {
  background: #ffffff;
  border: 1px solid var(--gold);
}

body[data-theme="light"] .chat-head {
  background: var(--surface3);
}

body[data-theme="light"] .chat-input-row {
  background: var(--surface2);
}

.ai-ws-chat {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-ws-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.ai-ws-msg.bot { align-self: flex-start; }
.ai-ws-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.ai-ws-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gold);
}

.ai-ws-bubble {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.ai-ws-msg.bot .ai-ws-bubble {
  background: var(--surface2);
  color: var(--ivory);
  border-bottom-left-radius: 2px;
  border-left: 3px solid var(--gold);
}

.ai-ws-msg.user .ai-ws-bubble {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-weight: 600;
  border-bottom-right-radius: 2px;
}

.ai-ws-input-area {
  padding: 20px 24px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

.ai-ws-input-box {
  display: flex;
  gap: 12px;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
}

.ai-ws-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  margin-bottom: 0;
  padding: 8px 0;
  color: var(--ivory);
}

.ai-ws-input-box input:focus { box-shadow: none; }

.ai-ws-send {
  background: var(--gold);
  color: #000;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.ai-ws-send:hover { transform: scale(1.1); background: var(--gold2); }

.ai-ws-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-ws-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--ivory2);
  cursor: pointer;
  transition: 0.2s;
}

.ai-ws-pill:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
/* -- PREMIUM COACH SCHEDULE GRID -- */
.schedule-grid-premium { display: flex; gap: 20px; overflow-x: auto; padding: 10px 5px; scrollbar-width: thin; }
.schedule-day-column { min-width: 200px; flex: 1; background: var(--surface2); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.schedule-day-column.tbd { opacity: 0.8; border-style: dashed; }
.schedule-day-header { padding: 12px; background: var(--surface3); color: var(--gold); font-weight: 700; text-align: center; border-bottom: 1px solid var(--border); font-family: var(--font-head); letter-spacing: 1px; }
.schedule-slot-card { padding: 12px; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.schedule-slot-card:last-child { border-bottom: none; }
.schedule-slot-card:hover { background: var(--glass); }
.slot-time { font-family: var(--font-mono); color: var(--gold); font-size: 11px; margin-bottom: 4px; }
.slot-stud { color: var(--ivory); font-weight: 600; font-size: 14px; }
.slot-lvl { color: var(--ivory3); font-size: 11px; margin-top: 2px; }

/* Event Poster & Map Link Enhancements */
.ev-poster {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--border);
}

.ev-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220,163,62,0.1);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(220,163,62,0.2);
  margin-top: 10px;
}
.ev-map-link:hover {
  background: var(--gold);
  color: var(--obsidian);
}


/* Status Badges Light Theme Refinement */
body[data-theme="light"] .status-paid { background: rgba(82, 196, 26, 0.1); color: #2e7d32; }
body[data-theme="light"] .status-pending { background: rgba(232, 168, 48, 0.1); color: #ed6c02; }
body[data-theme="light"] .status-unpaid { background: rgba(255, 77, 79, 0.1); color: #d32f2f; }
