html.not-logged-in #auth-modal {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.7) 100%),
              url('assets/login-bg-hd.png') center left / cover no-repeat !important;
  backdrop-filter: none !important;
}
html.not-logged-in #auth-modal .auth-modal-close-icon {
  display: none !important;
}
html.not-logged-in .app-container,
html.not-logged-in .floating-sidebar {
  display: none !important;
}

:root {
  /* Vibrant Scarlet Red & Crimson Poster Palette (Nalin Jayawardana SFT Theme) */
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: #fff1f2;
  --primary-glow: rgba(220, 38, 38, 0.22);
  --accent-teal: #ea580c;
  
  /* Energetic Crimson & Scarlet Gradients */
  --home-grad: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
  --class-grad: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
  --store-grad: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
  --brand-grad: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #f97316 100%);
  --notice-orange: #ea580c;
  --notice-orange-light: #fff7ed;

  /* App Canvas (Ultra-Clean Porcelain Light Canvas with Soft Rose Tint) */
  --bg-body: #fafaf9;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-solid: #ffffff;
  --bg-card-subtle: #fff1f2;
  --border-subtle: #fecdd3;
  --border-card: rgba(255, 255, 255, 0.95);
  --border-glow: rgba(220, 38, 38, 0.30);

  /* Typography Colors (High-Legibility Soft Dark Charcoal & Crimson Accents) */
  --text-main: #0f172a;
  --text-muted: #991b1b;
  --text-light: #a1a1aa;
  --text-link: #dc2626;

  /* Soft Gentle Crimson Shadows */
  --shadow-dock: 0 16px 36px -8px rgba(220, 38, 38, 0.22), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(153, 27, 27, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 32px -6px rgba(220, 38, 38, 0.24), 0 6px 12px -2px rgba(153, 27, 27, 0.08);
  --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.30);

  /* Dimensions */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --tr-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #18090a;
  --bg-card: rgba(30, 10, 12, 0.92);
  --bg-card-solid: #260f12;
  --bg-card-subtle: rgba(45, 15, 18, 0.6);
  --border-subtle: rgba(248, 113, 113, 0.18);
  --border-card: rgba(248, 113, 113, 0.22);
  --border-glow: rgba(239, 68, 68, 0.38);

  --text-main: #ffe4e6;
  --text-muted: #f87171;
  --text-light: #b91c1c;
  --text-link: #fca5a5;

  --shadow-dock: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(220, 38, 38, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 0 30px rgba(248, 113, 113, 0.3);
}

/* Ambient Background Light Orbs (Gentle Scarlet Red & Crimson Soft Light) */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, rgba(250, 250, 249, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 30%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(250, 250, 249, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   RESET & GLOBAL BASICS
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient Background Light Orbs (Gentle Sky & Mint Soft Light) */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(244, 247, 251, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 30%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.10) 0%, rgba(244, 247, 251, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Noto Sans Sinhala', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.015em;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   FLOATING LEFT DOCK (AP.LK STYLE GLASS CAPSULE)
   ========================================================================== */
.floating-sidebar {
  position: fixed;
  left: 22px;
  top: 96px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 14px 12px;
  box-shadow: var(--shadow-dock);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.dock-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tr-fast);
}

.dock-btn:hover {
  transform: scale(1.08) translateY(-2px);
}

.dock-btn:active {
  transform: scale(0.95);
}

/* Squircles with vivid gradients & glossy highlights */
.dock-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  transition: all var(--tr-smooth);
  position: relative;
  overflow: hidden;
}

.dock-icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.dock-home {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.dock-class {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.dock-store {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.dock-videopacks {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.4);
}

.dock-profile {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Inactive button opacity styling */
.dock-btn:not(.active) .dock-icon-box {
  opacity: 0.65;
  filter: grayscale(0.2);
  box-shadow: none;
}

.dock-btn.active .dock-icon-box {
  opacity: 1;
  filter: none;
  transform: scale(1.06);
}

/* Active indicator ring */
.dock-btn.active::before {
  content: '';
  position: absolute;
  left: -10px;
  width: 5px;
  height: 28px;
  background: var(--brand-grad);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
  transition: var(--tr-fast);
}

/* Tooltips */
.dock-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 74px;
  background: #0f172a;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--tr-fast), transform var(--tr-fast);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dock-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   MAIN WRAPPER & TOP NAVBAR
   ========================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 92px; /* Leaves space for floating dock */
}

.top-navbar {
  height: 74px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
}

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

.mobile-toggle {
  display: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 8px;
}

/* Brand Logo with Glowing Symbol */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tr-smooth);
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
}

.brand-logo:hover .brand-symbol {
  transform: rotate(15deg) scale(1.08);
}

.brand-text-group {
  display: flex;
  align-items: baseline;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-domain {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d9488;
  margin-left: 2px;
}

/* Header Right items */
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Notification Bell */
.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 1.15rem;
  position: relative;
  transition: background-color var(--tr-fast), color var(--tr-fast);
}

.notif-bell-btn:hover {
  background-color: var(--bg-card-subtle);
  color: #0f172a;
}

.notif-badge-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* Notification Dropdown */
.notif-dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  width: 340px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 16px;
  display: none;
  z-index: 1000;
}

.notif-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.notif-header h3 {
  font-size: 0.95rem;
}

.notif-count {
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.notif-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.notif-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: background-color var(--tr-fast);
}

.notif-card:hover {
  background: var(--bg-card-subtle);
}

.notif-card.unread {
  background: #f0f9ff;
}

.notif-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.notif-icon-circle.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.notif-icon-circle.green {
  background: #dcfce7;
  color: #16a34a;
}

.notif-icon-circle.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.notif-body {
  flex: 1;
}

.notif-msg {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* User Profile Pill (AP.LK Style) */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  text-transform: lowercase;
}

.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform var(--tr-fast);
}

.user-profile-pill:hover .user-avatar-badge {
  transform: scale(1.05);
  background: #cbd5e1;
}

/* ==========================================================================
   PAGE BODY & VIEWS
   ========================================================================== */
.page-body {
  padding: 24px 36px 60px 32px;
  max-width: 1400px;
  width: 100%;
}

.tab-page {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-page.active {
  display: block;
}

/* ==========================================================================
   VIEW 1: HOME DASHBOARD
   ========================================================================== */
/* Greeting Bar */
.dashboard-greeting-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.greeting-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.greeting-text {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.greeting-text .student-name {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.institute-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-grad);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Top Home Grid (Student ID + Enrolled Summary) */
.home-top-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glow);
}

/* Student ID Card (Soft Powder Sky & Mint Sheen) */
.student-id-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(239,246,255,0.92) 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  overflow: hidden;
}

.student-id-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.id-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.card-caption {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.id-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  margin: 6px 0 3px 0;
}

.id-sub {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.id-qr-box {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.id-qr-box:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

/* Enrolled Summary Banner */
.enrolled-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.95) 100%);
  border-color: #a7f3d0;
}

.summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #047857;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  border: 1px solid #6ee7b7;
}

.summary-left h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.summary-left p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.primary-pill-btn {
  background: var(--brand-grad);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
  transition: all var(--tr-fast);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.primary-pill-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

.secondary-btn {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--tr-fast);
  border: 1px solid var(--border-subtle);
}

.secondary-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Home Main Grid (Paper Marks & Notices) */
.home-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title-row h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.text-orange {
  color: var(--notice-orange);
}

.subtitle-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--tr-fast);
}

.subtitle-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Paper Marks Analyze Empty State (AP.LK Style) */
.paper-marks-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.marks-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.document-icon-wrapper {
  margin-bottom: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doc-sheet {
  width: 48px;
  height: 56px;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 8px;
}

.doc-line {
  height: 3px;
  background: #cbd5e1;
  border-radius: 2px;
}

.doc-line.line-1 { width: 85%; }
.doc-line.line-2 { width: 65%; }
.doc-line.line-3 { width: 50%; }

.doc-base-bar {
  width: 58px;
  height: 4px;
  background: #10b981;
  border-radius: 4px;
  margin-top: 4px;
}

.empty-marks-text {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.empty-marks-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  max-width: 320px;
  line-height: 1.4;
}

/* Notices Stream (AP.LK Style) */
.notices-card {
  min-height: 280px;
}

.notices-pill-count {
  font-size: 0.75rem;
  background: var(--notice-orange-light);
  color: var(--notice-orange);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.notices-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-item-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all var(--tr-fast);
}

.notice-item-card:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.notice-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.4;
}

.notice-badge-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dot-red {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
}

.notice-link {
  font-size: 0.8rem;
  color: #0284c7;
  font-weight: 600;
  display: inline-block;
  transition: text-decoration var(--tr-fast);
}

.notice-link:hover {
  text-decoration: underline;
}

.video-help-item {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.notice-title-gray {
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.notice-desc {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.35;
}

.video-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.03em;
}

.video-help-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Upcoming Class Bar */
.upcoming-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 18px 24px;
}

.upcoming-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot-pulse {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.upcoming-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.05em;
}

.upcoming-details {
  flex: 1;
  margin: 0 24px;
}

.upcoming-subject {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.upcoming-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.join-live-pill-btn {
  background: #10b981;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  transition: all var(--tr-fast);
}

.join-live-pill-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* ==========================================================================
   VIEW 2: MY CLASS (ENROLLED CLASSES)
   ========================================================================== */
.section-title-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-emoji {
  font-size: 1.8rem;
}

.section-title-bar h2 {
  font-size: 1.5rem;
}

.enrolled-badge-tag {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Enrolled Classes Grid */
.enrolled-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.enrolled-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--tr-smooth);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.enrolled-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glow);
}

.enrolled-card-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
}

.class-category-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.badge-physics { background: #e0f2fe; color: #0284c7; border: 1px solid #7dd3fc; }
.badge-maths { background: #fef3c7; color: #d97706; border: 1px solid #fde047; }
.badge-chemistry { background: #fce7f3; color: #db2777; border: 1px solid #f472b6; }
.badge-ict { background: #ede9fe; color: #7c3aed; border: 1px solid #c4b5fd; }
.badge-biology { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }
.badge-science { background: #ccfbf1; color: #0f766e; border: 1px solid #5eead4; }
.badge-accounting { background: #fef08a; color: #854d0e; border: 1px solid #facc15; }
.badge-video { background: #fef08a; color: #a16207; border: 1px solid #eab308; }
.badge-english { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.badge-history { background: #fae8ff; color: #86198f; border: 1px solid #f0abfc; }
.badge-custom-subject { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.enrolled-class-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
}

.enrolled-teacher-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.enrolled-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.class-schedule-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.class-schedule-line i {
  color: var(--primary);
  font-size: 1rem;
}

.class-perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.class-perks-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-perks-list i {
  color: #10b981;
  font-size: 0.8rem;
}

.enrolled-card-actions {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--border-subtle);
}

.btn-card-enter {
  width: 100%;
  background: var(--brand-grad);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
  transition: all var(--tr-fast);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-card-enter:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.48);
}

.btn-card-enter i {
  transition: transform var(--tr-fast);
}

.btn-card-enter:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   CLASSROOM HUB DETAIL VIEW (INSIDE A CLASS)
   ========================================================================== */
.detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-fast);
}

.btn-back-link:hover {
  background: #f8fafc;
  color: #0284c7;
  border-color: #cbd5e1;
  transform: translateX(-3px);
}

.classroom-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Classroom Hero Card */
.classroom-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.classroom-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 6px;
}

.classroom-hero-teacher {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 14px;
}

.classroom-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #334155;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

/* 4 PRIMARY ACTION BUTTONS BAR (Tutes, Recordings, Quiz, Attend Live Class) */
.class-action-buttons-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.class-action-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: all var(--tr-smooth);
  cursor: pointer;
  position: relative;
}

.class-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.action-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform var(--tr-fast);
}

.class-action-btn:hover .action-btn-icon {
  transform: scale(1.08);
}

.icon-live {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.icon-recordings {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.icon-tutes {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.icon-quiz {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.action-btn-text {
  display: flex;
  flex-direction: column;
}

.action-btn-text strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.action-btn-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Active Button State */
.class-action-btn.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), var(--shadow-card);
}

.class-action-btn.active strong {
  color: #0284c7;
}

/* Tab Content Panels */
.class-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

.class-tab-pane.active {
  display: block;
}

/* Live Session Access Card */
.live-access-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.live-access-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #ffffff;
  padding: 36px 36px 32px;
  position: relative;
}

.live-access-banner .pulse-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.live-access-banner h3 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.live-access-banner p {
  color: #a7f3d0;
  font-size: 0.95rem;
  max-width: 600px;
  margin-bottom: 24px;
}

.live-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-large-live {
  padding: 12px 28px;
  font-size: 1rem;
  background: #10b981;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-large-live:hover {
  background: #059669;
}

.btn-zoom-ext {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 12px 24px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-zoom-ext:hover {
  background: #f1f5f9;
}

.live-instructions-grid {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: #ffffff;
}

.instruction-box i {
  font-size: 1.6rem;
  color: #0284c7;
  margin-bottom: 10px;
}

.instruction-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.instruction-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Recordings & Tutes Panel Cards */
.recordings-panel-card, .tutes-panel-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.panel-header-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-header-row h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.panel-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-mini-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.search-mini-box input {
  border: none;
  background: none;
  font-size: 0.82rem;
  outline: none;
  width: 180px;
}

.recordings-list-grid, .tutes-list-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recording-row-card, .tute-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  transition: all var(--tr-fast);
}

.recording-row-card:hover, .tute-row-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transform: translateX(4px);
}

.rec-title-group h5, .tute-title-group h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.rec-meta-line, .tute-meta-line {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quiz / MCQ Speed Test Panel */
.quiz-panel-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.quiz-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.quiz-question-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}

.quiz-q-number {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.quiz-q-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 18px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--tr-fast);
  font-size: 0.92rem;
  color: #334155;
}

.quiz-option-item:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.quiz-option-item.selected {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  font-weight: 700;
}

.quiz-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #475569;
}

.quiz-option-item.selected .quiz-opt-letter {
  background: #0284c7;
  color: #ffffff;
}

.quiz-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

/* Media Query Adaptations */
@media (max-width: 900px) {
  .class-action-buttons-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-instructions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .class-action-buttons-bar {
    grid-template-columns: 1fr;
  }
}

/* Empty State: AP.LK Mascot Duck */
.empty-classes-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 60px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.mascot-duck-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.duck-avatar-character {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 35% 35%, #ffd600, #ffb300);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 24px rgba(255, 179, 0, 0.35);
  border: 3px solid #1e293b;
}

.duck-hat {
  position: absolute;
  top: -34px;
  left: 20px;
  transform: rotate(-8deg);
}

.hat-top {
  width: 44px;
  height: 32px;
  background: #1e293b;
  border-radius: 6px 6px 0 0;
  border: 2px solid #0f172a;
}

.hat-brim {
  width: 66px;
  height: 10px;
  background: #1e293b;
  border-radius: 6px;
  margin-left: -11px;
  margin-top: -2px;
  border: 2px solid #0f172a;
}

.duck-face {
  position: relative;
  width: 100%;
  height: 100%;
}

.duck-eye {
  position: absolute;
  top: 38px;
  width: 12px;
  height: 12px;
  background: #0f172a;
  border-radius: 50%;
}

.duck-eye.left-eye {
  left: 28px;
}

.duck-eye.right-eye {
  right: 28px;
  width: 22px;
  height: 22px;
  top: 32px;
}

.monocle-ring {
  width: 26px;
  height: 26px;
  border: 3px solid #f59e0b;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: -4px;
}

.monocle-cord {
  position: absolute;
  bottom: -16px;
  right: -2px;
  width: 2px;
  height: 16px;
  background: #f59e0b;
}

.duck-beak {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 22px;
  background: #ff5722;
  border-radius: 8px 8px 16px 16px;
  border: 2.5px solid #1e293b;
}

.empty-msg-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.empty-msg-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

.mt-4 {
  margin-top: 20px;
}

/* Footer attribution */
.footer-attribution {
  text-align: center;
  padding: 30px 0 10px;
  color: var(--text-light);
}

.attribution-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.attribution-sub {
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ==========================================================================
   VIEW 3: STORE (AVAILABLE CLASSES)
   ========================================================================== */
.store-intro-banner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  box-shadow: 0 10px 25px -4px rgba(30, 41, 59, 0.3);
}

.store-intro-text h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.store-intro-text p {
  color: #e0e7ff;
  font-size: 0.88rem;
  max-width: 640px;
  line-height: 1.45;
}

.store-intro-icon {
  font-size: 2.4rem;
  opacity: 0.85;
}

.store-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--tr-fast);
}

.filter-chip:hover {
  background: #f8fafc;
  color: var(--text-main);
}

.filter-chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Store Classes Grid */
.store-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.store-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--tr-smooth);
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.store-card-header {
  height: 110px;
  padding: 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background: linear-gradient(135deg, #e57373 0%, #ea8888 100%);
}

.header-grad-physics, .badge-physics { background: linear-gradient(135deg, #e57373 0%, #ea8888 100%); }
.header-grad-maths, .badge-maths { background: linear-gradient(135deg, #d97706, #b45309); }
.header-grad-chemistry, .badge-chemistry { background: linear-gradient(135deg, #db2777, #be185d); }
.header-grad-ict, .badge-ict { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.header-grad-biology, .badge-biology { background: linear-gradient(135deg, #16a34a, #15803d); }
.header-grad-science, .badge-science { background: linear-gradient(135deg, #0d9488, #0f766e); }
.header-grad-accounting, .badge-accounting { background: linear-gradient(135deg, #ca8a04, #a16207); }
.header-grad-video, .badge-video { background: linear-gradient(135deg, #e57373 0%, #ea8888 100%); }
.header-grad-english, .badge-english { background: linear-gradient(135deg, #ea580c, #c2410c); }
.header-grad-history, .badge-history { background: linear-gradient(135deg, #a21caf, #86198f); }
.header-grad-custom, .badge-custom { background: linear-gradient(135deg, #059669, #0f766e); }

.store-card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-batch-pill {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.btn-store-quick-edit {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-store-quick-edit:hover {
  background: #ffffff;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.store-class-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.store-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-teacher-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-weight: 700;
  font-size: 1rem;
}

.teacher-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.teacher-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.store-features-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #334155;
}

.store-feature-item i {
  color: #334155;
  font-size: 0.78rem;
}

.store-card-footer {
  padding: 16px 22px 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-price-tag {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.price-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.price-val small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-enroll-action {
  background: var(--primary);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--tr-fast);
}

.btn-enroll-action:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-enroll-action.enrolled {
  background: #e2e8f0;
  color: #64748b;
  cursor: default;
}

/* ==========================================================================
   MODAL WINDOWS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overflow: hidden;
  animation: scaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-body,
.auth-modal-body {
  overflow-y: auto;
  flex: 1;
}

/* Luxury Auth Modal Styling */
.auth-modal-window {
  max-width: 500px;
}

.auth-hero-banner {
  background: var(--brand-grad);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.auth-hero-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.auth-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo-badge {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.auth-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.auth-banner-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-emerald {
  color: #34d399 !important;
}

.auth-close-light {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.8rem;
}

.auth-close-light:hover {
  color: #ffffff !important;
}

/* Auth Navigation Tabs */
.auth-tabs-bar {
  display: flex;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 20px 24px 0 24px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--tr-fast);
}

.auth-tab-btn.active {
  background: var(--brand-grad);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.auth-modal-body {
  padding: 22px 24px 28px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  transition: all var(--tr-fast);
}

.input-with-icon:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-with-icon i.text-primary { color: #dc2626; }
.input-with-icon i.text-success { color: #0f172a; }

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
}

.input-with-icon i:first-child {
  position: absolute;
  left: 14px;
  font-size: 1.05rem;
}

.single-device-warning-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 16px 0 20px;
  font-size: 0.83rem;
  color: var(--text-main);
}

.single-device-warning-callout i {
  color: #f97316;
  font-size: 1.2rem;
  margin-top: 2px;
}

.btn-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 0.96rem;
  font-weight: 800;
}

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

.modal-header h3 {
  font-size: 1.15rem;
}

.modal-close-btn {
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--tr-fast);
}

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

/* Live Classroom Modal (Wide) */
.live-classroom-modal {
  max-width: 960px;
}

.live-modal-body {
  padding: 0;
}

.video-player-simulation {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: 480px;
  background: #090d16;
}

.sim-screen {
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.screen-watermark {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
}

.screen-center-info {
  text-align: center;
  color: #ffffff;
}

.teacher-live-icon {
  width: 70px;
  height: 70px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 14px;
  color: #38bdf8;
  border: 2px solid #0284c7;
}

.screen-center-info h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.screen-center-info p {
  color: #94a3b8;
  font-size: 0.85rem;
}

.sim-stream-timer {
  margin-top: 14px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: #10b981;
  font-family: monospace;
}

.player-controls-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--tr-fast);
}

.control-btn:hover { opacity: 1; }

.stream-quality {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.control-btn-right {
  margin-left: auto;
  cursor: pointer;
}

/* Live Chat */
.sim-chat-panel {
  background: #1e293b;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-item {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #e2e8f0;
}

.chat-user {
  font-weight: 700;
  color: #38bdf8;
  margin-right: 4px;
}

.chat-item.teacher-chat {
  background: rgba(2, 132, 199, 0.18);
  padding: 6px 8px;
  border-radius: 6px;
}

.chat-item.teacher-chat .chat-user {
  color: #f59e0b;
}

.chat-input-bar {
  padding: 10px;
  background: #0f172a;
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
}

.chat-send-btn {
  background: #0284c7;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Enroll Confirm Modal */
.enroll-confirm-modal {
  max-width: 540px;
}

.enroll-badge-icon {
  width: 56px;
  height: 56px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

.enroll-details-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 14px 0 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

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

.detail-row strong {
  color: #0284c7;
  font-size: 1.1rem;
}

/* Payment Notice Card */
.enroll-payment-notice-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.notice-header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.notice-icon-box {
  width: 34px;
  height: 34px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notice-header-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 1px;
}

.notice-header-text span {
  font-size: 0.72rem;
  color: #166534;
  font-weight: 600;
}

.notice-highlight-text {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.notice-highlight-text p {
  font-size: 0.88rem;
  color: #14532d;
  line-height: 1.45;
  margin: 0;
}

.notice-highlight-text i {
  color: #16a34a;
  margin-right: 4px;
}

/* Bank Accounts Section */
.bank-accounts-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.bank-acc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
}

.bank-meta {
  display: flex;
  flex-direction: column;
}

.bank-name {
  font-weight: 700;
  color: #0f172a;
}

.bank-branch {
  font-size: 0.72rem;
  color: #64748b;
}

.bank-acc-no {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}

.copy-acc-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.copy-acc-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* WhatsApp Action Button */
.whatsapp-action-row {
  display: flex;
}

.whatsapp-send-btn {
  width: 100%;
  background: #25d366;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all var(--tr-fast);
}

.whatsapp-send-btn:hover {
  background: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.enroll-actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

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

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideUp 0.2s ease;
}

.toast.toast-success i {
  color: #10b981;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .home-top-grid, .home-main-grid {
    grid-template-columns: 1fr;
  }

  .video-player-simulation {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sim-chat-panel {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    margin-left: 0;
  }

  .floating-sidebar {
    left: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    padding: 8px 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  }

  .dock-container {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .dock-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.15rem;
  }

  .dock-btn::after, .dock-btn.active::before {
    display: none;
  }

  .page-body {
    padding: 16px 16px 80px;
  }

  .top-navbar {
    padding: 0 16px;
  }
}

/* ==========================================================================
   ADMIN MANAGEMENT PANEL STYLES
   ========================================================================== */

/* Header Admin Switch Pill */
.admin-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--tr-fast);
  position: relative;
}

.admin-switch-pill:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.admin-notif-dot {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Admin Dashboard Header */
.admin-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-badge-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.admin-title-group h2 {
  font-size: 1.45rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.admin-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Top Metric Cards */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.admin-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  flex-shrink: 0;
}

.bg-orange { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3); }
.bg-blue { background: linear-gradient(135deg, #e57373, #ea8888); box-shadow: 0 4px 12px rgba(229, 115, 115, 0.3); }
.bg-green { background: linear-gradient(135deg, #0f172a, #1e293b); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0;
}

.metric-status {
  font-size: 0.74rem;
  font-weight: 600;
}

.text-green { color: #0f172a; }
.text-blue { color: #dc2626; }
.text-purple { color: #7c3aed; }

/* Subtabs Navigation Bar */
.admin-subtabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.admin-subtab:hover {
  background: #f8fafc;
  color: #0f172a;
}

.admin-subtab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.subtab-pill-count {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

.admin-subtab.active .subtab-pill-count {
  background: #ffffff;
  color: #0284c7;
}

/* Admin Panes */
.admin-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

.admin-pane.active {
  display: block;
}

/* Admin Card Container */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Admin Tables */
.admin-table-responsive {
  overflow-x: auto;
}

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

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

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

/* Status Badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pending { background: #ffedd5; color: #c2410c; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }

/* Table Action Buttons */
.table-actions-cell {
  display: flex;
  gap: 8px;
}

.btn-table-approve {
  background: #10b981;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--tr-fast);
}

.btn-table-approve:hover {
  background: #059669;
}

.btn-table-reject {
  background: #ef4444;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--tr-fast);
}

.btn-table-reject:hover {
  background: #dc2626;
}

.btn-table-view {
  background: #f1f5f9;
  color: #334155;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--tr-fast);
}

.btn-table-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* 3 Column Content Layout */
.admin-content-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.content-col-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.col-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.col-card-header h4 {
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-add {
  width: 32px;
  height: 32px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--tr-fast);
}

.btn-icon-add:hover {
  transform: scale(1.1);
  background: #0369a1;
}

.content-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.content-item-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-item-box h6 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.content-item-box span {
  font-size: 0.74rem;
  color: var(--text-light);
}

.btn-item-delete {
  color: #ef4444;
  padding: 4px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color var(--tr-fast);
}

.btn-item-delete:hover {
  color: #b91c1c;
}

/* Notices Admin Grid */
.admin-notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.admin-notice-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-notice-item-card h4 {
  font-size: 0.98rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.admin-notice-item-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Live Controller Box */
.live-controller-box {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.controller-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.controller-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.live-toggle-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-live-active {
  font-weight: 700;
  font-size: 0.95rem;
  color: #10b981;
}

/* Switch Toggle Slider */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: #10b981;
}

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

/* Form Controls */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

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

.admin-input, .admin-select {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  transition: border-color var(--tr-fast);
}

.admin-input:focus, .admin-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

.slip-doc-display {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 20px;
}

/* Prominent Add New Class Button in Admin Subtabs */
.admin-subtab.btn-prominent-add-class {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  font-weight: 800;
}

.admin-subtab.btn-prominent-add-class:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-add-class-glow {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* Admin Classes Grid & Cards */
.admin-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.admin-class-card-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
}

.admin-class-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.admin-class-card-header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.admin-card-badges-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.admin-class-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 6px;
}

.admin-teacher-line {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-class-card-body {
  padding: 16px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
}

.admin-fee-badge {
  font-weight: 800;
  color: #0284c7;
  font-size: 1rem;
}

.admin-enrolled-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-class-card-footer {
  padding: 14px 22px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-open-class-studio {
  flex: 1;
  background: #0284c7;
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-open-class-studio:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-card-delete-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #fee2e2;
  background: #ffffff;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-card-delete-icon:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Class Studio Workspace */
.studio-header-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.studio-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.studio-back-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.studio-back-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-item-delete-class {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-item-delete-class:hover {
  background: #e11d48;
  color: #ffffff;
}

.studio-class-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.studio-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

#studio-class-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

#studio-class-teacher {
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 600;
}

.studio-kpi-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-kpi-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-kpi-pill i {
  font-size: 1.4rem;
}

.studio-kpi-pill strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.studio-kpi-pill span {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
}

/* Studio Section: Enroll Student via WhatsApp Slip */
.studio-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  flex-shrink: 0;
}

.title-with-icon h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.title-with-icon p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 720px;
}

.student-search-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 22px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 1rem;
}

.student-search-input {
  flex: 1;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color var(--tr-fast);
}

.student-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.quick-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.chips-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.student-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.student-chip:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.student-search-result-box {
  margin-bottom: 24px;
  animation: fadeIn 0.25s ease;
}

.student-result-card {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  flex-wrap: wrap;
  gap: 16px;
}

.student-result-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-result-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-result-details h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.student-result-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
}

.btn-enroll-action-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all var(--tr-fast);
}

.btn-enroll-action-green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-revoke-student {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-revoke-student:hover {
  background: #fca5a5;
  color: #991b1b;
}

.enrolled-students-list-wrapper {
  margin-top: 24px;
}

.list-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.list-sub-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-tag {
  background: #e2e8f0;
  color: #334155;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.live-studio-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon > i {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 40px;
  width: 100%;
}

.form-actions-bar {
  display: flex;
  justify-content: flex-end;
}

/* Responsive queries */
@media (max-width: 1024px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-content-three-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .studio-class-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .student-result-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   USER PROFILE DROPDOWN MENU
   ========================================================================== */
.user-profile-wrapper {
  position: relative;
}

.profile-dropdown-arrow {
  font-size: 0.7rem;
  color: #94a3b8;
  transition: transform var(--tr-fast);
}

.user-profile-wrapper.open .profile-dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border-subtle);
  display: none;
  z-index: 1100;
  overflow: hidden;
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown-menu.show {
  display: block;
}

.profile-drop-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.profile-drop-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  flex-shrink: 0;
}

.profile-drop-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-drop-meta strong {
  font-size: 0.96rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-drop-role {
  font-size: 0.78rem;
  color: #0284c7;
  font-weight: 700;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-drop-school {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-drop-device-bar {
  padding: 10px 18px;
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #166534;
}

.device-single-tag {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-drop-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-drop-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.profile-drop-btn:hover {
  background: #f1f5f9;
}

.profile-drop-btn i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.drop-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drop-btn-text strong {
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.25;
}

.drop-btn-text span {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
}

.profile-drop-btn.btn-sim-device {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}

.profile-drop-btn.btn-sim-device:hover {
  background: #fef3c7;
  border-color: #fde68a;
}

.profile-drop-btn.btn-sim-device strong {
  color: #b45309;
}

.profile-drop-btn.btn-logout:hover {
  background: #fee2e2;
}

.profile-drop-btn.btn-logout:hover strong {
  color: #dc2626;
}

.profile-drop-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 8px;
}

/* ==========================================================================
   AUTHENTICATION MODAL (LOGIN & REGISTER)
   ========================================================================== */
.auth-modal-window {
  max-width: 540px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-security-ribbon {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 8px 18px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.auth-modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-tabs-bar {
  display: flex;
  background: #f1f5f9;
  padding: 6px;
  margin: 16px 24px 0;
  border-radius: var(--radius-md);
  gap: 6px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--tr-fast);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-modal-body {
  padding: 24px 24px 24px;
}

.auth-form-pane {
  display: none;
}

.auth-form-pane.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.2s ease;
}

.form-field-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

.input-password-wrapper {
  position: relative;
}

.input-password-wrapper input {
  padding-right: 44px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  z-index: 5;
  transition: color var(--tr-fast), background-color var(--tr-fast);
}

.btn-toggle-password:hover {
  color: #0284c7;
  background-color: #f1f5f9;
}

.btn-toggle-password i {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  pointer-events: auto !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  display: inline-block;
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #475569;
}

.forgot-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.single-device-warning-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.single-device-warning-callout i {
  color: #d97706;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.single-device-warning-callout strong {
  display: block;
  font-size: 0.8rem;
  color: #92400e;
  margin-bottom: 2px;
}

.single-device-warning-callout p {
  font-size: 0.75rem;
  color: #78350f;
  line-height: 1.35;
  margin: 0;
}

.reg-id-notice-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.reg-id-notice-box i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.reg-id-notice-box strong {
  display: block;
  font-size: 0.8rem;
  color: #0369a1;
  margin-bottom: 2px;
}

.reg-id-notice-box p {
  font-size: 0.75rem;
  color: #0c4a6e;
  line-height: 1.35;
  margin: 0;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  margin-top: 6px;
}

.auth-switch-footer {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.auth-switch-footer a {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SESSION CONFLICT / MULTI-DEVICE LOGOUT MODAL
   ========================================================================== */
.session-conflict-overlay {
  z-index: 3500;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
}

.session-conflict-window {
  max-width: 520px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(220, 38, 38, 0.35), 0 10px 30px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.conflict-hero-banner {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
  color: #ffffff;
  padding: 30px 24px 24px;
  text-align: center;
  position: relative;
}

.conflict-warning-icon-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 14px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: pulseWarning 1.8s infinite;
}

@keyframes pulseWarning {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.conflict-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.conflict-hero-banner h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.conflict-subtitle {
  font-size: 0.84rem;
  opacity: 0.9;
  margin: 0;
}

.conflict-modal-body {
  padding: 24px;
  background: #ffffff;
}

.conflict-explanation-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.conflict-text-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.conflict-text-item i {
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.conflict-text-item p {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

.conflict-device-meta {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.conflict-device-meta .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.conflict-device-meta .meta-row span {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.conflict-actions-bar {
  display: flex;
}

.btn-conflict-relogin {
  width: 100%;
  padding: 13px;
  font-size: 0.96rem;
  justify-content: center;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   PAPER & QUIZ MARKS ANALYZE GRAPH
   ========================================================================== */
.paper-marks-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.marks-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marks-subject-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
}

/* Top KPI Stats Bar */
.marks-summary-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.marks-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.marks-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.stat-caption {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-number-row strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.stat-badge-sm {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.stat-grade-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.grade-pill-a { background: #dcfce7; color: #15803d; }
.grade-pill-b { background: #e0f2fe; color: #0369a1; }
.grade-pill-c { background: #ffedd5; color: #c2410c; }
.grade-pill-s { background: #fef3c7; color: #b45309; }
.grade-pill-f { background: #fee2e2; color: #b91c1c; }

/* Chart Wrapper */
.marks-chart-wrapper {
  display: flex;
  height: 230px;
  margin-bottom: 16px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-md);
  padding: 12px 14px 28px 4px;
  border: 1px solid #f1f5f9;
}

/* Y Axis */
.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 100%;
  padding-right: 8px;
  text-align: right;
  border-right: 1px solid #e2e8f0;
  user-select: none;
}

.y-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1;
}

.y-label.y-75 { color: #10b981; font-weight: 700; }
.y-label.y-50 { color: #f59e0b; font-weight: 700; }

/* Plot Area */
.chart-canvas-area {
  flex: 1;
  position: relative;
  height: 100%;
  margin-left: 8px;
}

/* Guidelines */
.grid-line-75 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 75%;
  border-top: 1.5px dashed rgba(16, 185, 129, 0.45);
  pointer-events: none;
  z-index: 1;
}

.grid-line-50 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50%;
  border-top: 1px dashed rgba(245, 158, 11, 0.35);
  pointer-events: none;
  z-index: 1;
}

.guideline-label {
  position: absolute;
  right: 4px;
  top: -14px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(255, 255, 255, 0.9);
  padding: 1px 6px;
  border-radius: 4px;
}

.grid-line-50 .guideline-label {
  color: #f59e0b;
}

/* Track of bars */
.chart-bars-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 12px;
  z-index: 2;
}

/* Individual bar column */
.chart-bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  width: 52px;
}

.bar-pillar-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.bar-score-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  opacity: 0.9;
  transition: transform var(--tr-fast);
}

.chart-bar-column:hover .bar-score-badge {
  transform: translateX(-50%) scale(1.15);
}

.bar-pillar {
  width: 32px;
  border-radius: 8px 8px 3px 3px;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform var(--tr-fast);
  position: relative;
}

.chart-bar-column:hover .bar-pillar {
  transform: scaleX(1.08) translateY(-2px);
  filter: brightness(1.08);
}

/* Bar Color Themes */
.bar-pillar.bar-green {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bar-pillar.bar-blue {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.bar-pillar.bar-orange {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bar-pillar.bar-yellow {
  background: linear-gradient(180deg, #eab308 0%, #ca8a04 100%);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.bar-pillar.bar-red {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Below-Bar Captions */
.bar-caption-group {
  position: absolute;
  bottom: -25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.bar-short-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.1;
}

.bar-date-tag {
  font-size: 0.62rem;
  color: #94a3b8;
}

/* Bar Hover Tooltip */
.chart-bar-column .bar-hover-card {
  position: absolute;
  bottom: calc(100% + 12px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--tr-fast), transform var(--tr-fast);
  z-index: 100;
  width: 190px;
  text-align: left;
}

.chart-bar-column:hover .bar-hover-card {
  opacity: 1;
  transform: translateY(0);
}

.bar-hover-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.bar-hover-card h5 {
  font-size: 0.82rem;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.bar-hover-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 6px;
}

/* Legend Row */
.marks-color-legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.legend-color-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  transition: background-color var(--tr-fast);
}

.legend-color-item:hover {
  background-color: #f1f5f9;
  color: #0284c7;
}

.color-swatch-box {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ==========================================================================
   WHAT ARE THESE COLOURS MODAL
   ========================================================================== */
.marks-colors-modal-window {
  max-width: 600px;
}

.grading-colors-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grade-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  transition: transform var(--tr-fast);
}

.grade-info-card:hover {
  transform: translateX(4px);
}

.grade-info-card.border-green { border-color: #86efac; background: #f0fdf4; }
.grade-info-card.border-blue { border-color: #bae6fd; background: #f0f9ff; }
.grade-info-card.border-orange { border-color: #fde68a; background: #fffbeb; }
.grade-info-card.border-yellow { border-color: #fef08a; background: #fefce8; }
.grade-info-card.border-red { border-color: #fecaca; background: #fef2f2; }

.grade-indicator-badge {
  width: 90px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  text-align: center;
}

.grade-indicator-badge strong {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}

.grade-indicator-badge span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.grade-details h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
  color: #1e293b;
}

.grade-details p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

/* ============================================== */
/* GLOBAL FOOTER (NALIN JAYAWARDANA PORTAL) */
/* ============================================== */
.app-global-footer {
  margin-top: 60px;
  margin-bottom: 30px;
  padding: 40px 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.footer-rich-container {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.5fr;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

@media (max-width: 768px) {
  .footer-rich-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-column h4,
.footer-security-column h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-column a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--tr-fast);
}

.footer-links-column a:hover {
  color: var(--primary);
}

.footer-security-column p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--bg-card-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.footer-bottom-bar {
  padding-top: 20px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Dedicated Admin Login Modal Styling */
.admin-login-window {
  border-top: 4px solid #4f46e5 !important;
}

.admin-auth-header-strip {
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-admin-studio-link {
  background: #f5f3ff !important;
  border: 1px solid #ddd6fe !important;
}

.btn-admin-studio-link:hover {
  background: #ede9fe !important;
  border-color: #c4b5fd !important;
}

/* ==========================================================================
   SUPREME NATIVE-GRADE MOBILE & TABLET RESPONSIVE SYSTEM
   100% Touch Optimized, Pixel-Perfect Layouts, iOS Bottom Sheets
   ========================================================================== */

/* --- TABLETS & LANDSCAPE PHONES (max-width: 992px) --- */
@media (max-width: 992px) {
  .home-top-grid,
  .home-main-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .video-player-simulation {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .sim-chat-panel {
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 260px !important;
  }

  .enrolled-classes-grid,
  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
  }
}

/* --- SMARTPHONES & PORTRAIT TABLETS (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Eliminate Touch Delay & Tap Highlight Box */
  a, button, input, select, .dock-btn, .glass-card, .notif-bell-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* 1. Floating Navigation Dock Moves to Bottom (Native iOS Floating Glass Pill) */
  .floating-sidebar {
    position: fixed !important;
    left: 50% !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    width: 94% !important;
    max-width: 400px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .dock-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    gap: 0 !important;
    width: 100% !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 16px 45px -8px rgba(15, 23, 42, 0.35), 0 0 25px rgba(99, 102, 241, 0.25) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  }

  [data-theme="dark"] .dock-container {
    background: rgba(15, 23, 42, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  .dock-icon-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 1.25rem !important;
  }

  .dock-btn.active::before {
    left: 50% !important;
    top: -8px !important;
    width: 26px !important;
    height: 4px !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.9) !important;
  }

  .dock-btn::after {
    display: none !important; /* Hide desktop hover tooltips on touch */
  }

  /* CRITICAL FIX: Ensure clean padding so content never gets covered by bottom dock, with zero duplicate gap */
  .main-wrapper {
    margin-left: 0 !important;
    padding-bottom: 0 !important;
  }

  .page-body {
    padding: 16px 14px 40px 14px !important;
  }

  footer {
    padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* --- PAPER MARKS ANALYZE & NOTICES MOBILE OPTIMIZATION --- */
  .paper-marks-card {
    min-height: auto !important;
    padding: 16px 14px !important;
  }

  .marks-summary-stats-bar {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    margin-bottom: 14px !important;
    scrollbar-width: none;
  }

  .marks-summary-stats-bar::-webkit-scrollbar {
    display: none;
  }

  .marks-stat-card {
    flex: 1 1 0 !important;
    min-width: 95px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .stat-caption {
    font-size: 0.62rem !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .stat-number-row strong {
    font-size: 1.15rem !important;
  }

  .stat-badge-sm {
    font-size: 0.68rem !important;
  }

  .stat-grade-pill {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
  }

  /* Chart Wrapper & Canvas */
  .marks-chart-wrapper {
    height: 220px !important;
    padding: 10px 8px 30px 2px !important;
    overflow: hidden !important;
  }

  .chart-y-axis {
    width: 36px !important;
    padding-right: 4px !important;
  }

  .y-label {
    font-size: 0.62rem !important;
  }

  .chart-canvas-area {
    margin-left: 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .chart-bars-track {
    padding: 0 4px !important;
    gap: 6px !important;
  }

  .chart-bar-column {
    width: 44px !important;
    min-width: 44px !important;
  }

  .bar-pillar {
    width: 26px !important;
    border-radius: 6px 6px 2px 2px !important;
  }

  .bar-score-badge {
    font-size: 0.66rem !important;
    margin-bottom: 2px !important;
  }

  .bar-caption-group {
    bottom: -26px !important;
    width: 100% !important;
  }

  .bar-short-code {
    font-size: 0.64rem !important;
    max-width: 48px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    text-align: center !important;
  }

  .bar-date-tag {
    font-size: 0.58rem !important;
  }

  .guideline-label {
    font-size: 0.58rem !important;
    padding: 1px 4px !important;
    top: -12px !important;
  }

  /* Legend Row */
  .marks-color-legend-row {
    gap: 6px 10px !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
  }

  .legend-color-item {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
    gap: 4px !important;
  }

  .color-swatch-box {
    width: 8px !important;
    height: 8px !important;
  }

  /* Notices Card on Mobile */
  .notices-card {
    min-height: auto !important;
    padding: 16px 14px !important;
    margin-bottom: 10px !important;
  }

  .notices-stream {
    gap: 10px !important;
  }

  /* 2. Top Header Bar (Safe Area Padding & Native Feel) */
  .top-navbar {
    padding: env(safe-area-inset-top, 0px) 16px 0 16px !important;
    height: 66px !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
  }

  .brand-logo {
    gap: 10px !important;
  }

  .brand-symbol {
    width: 36px !important;
    height: 36px !important;
  }

  .brand-title {
    font-size: 1.2rem !important;
  }

  .brand-domain {
    font-size: 0.98rem !important;
  }

  .user-name {
    display: none !important;
  }

  /* 3. Dashboard Greetings & Summary Cards */
  .dashboard-greeting-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .greeting-text {
    font-size: 1.35rem !important;
  }

  .institute-badge {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 18px !important;
    font-size: 0.86rem !important;
  }

  .home-top-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .enrolled-summary-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .enrolled-summary-card .primary-pill-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Card Title Row wrapping for Paper Marks & Notices */
  .card-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .card-title-row > div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* 4. Store Category Chips Swipeable Bar */
  .admin-subtabs-bar,
  .subtabs-pill-nav,
  .filter-categories-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 10px 4px !important;
    gap: 10px !important;
    width: 100% !important;
    scrollbar-width: none;
  }

  .admin-subtabs-bar::-webkit-scrollbar {
    display: none !important;
  }

  .filter-chip-btn,
  .admin-subtab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
  }

  /* 5. Mobile Native Bottom Sheet Modals (Fixes Register CTA Clipping) */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    backdrop-filter: blur(10px) !important;
  }

  .modal-window {
    width: 100% !important;
    max-width: 100% !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    animation: slideUpBottomSheet 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
  }

  .modal-window::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 44px !important;
    height: 5px !important;
    background: rgba(148, 163, 184, 0.4) !important;
    border-radius: 3px !important;
    z-index: 10 !important;
  }

  @keyframes slideUpBottomSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-body,
  .auth-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: calc(90vh - 120px) !important;
    padding: 20px 20px 36px 20px !important;
  }

  /* Form Grids on Mobile */
  .form-row-2 {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .classes-grid,
  .store-grid,
  .enrolled-classes-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .enrolled-card:active,
  .glass-card:active {
    transform: scale(0.985);
  }

  .class-action-buttons-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .recording-row-card,
  .tute-row-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .recording-row-card .primary-pill-btn,
  .tute-row-card .secondary-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* --- SMALL SMARTPHONES (max-width: 480px) --- */
@media (max-width: 480px) {
  .top-navbar {
    padding: 0 12px !important;
  }

  .brand-title {
    font-size: 1.1rem !important;
  }

  .student-id-card .id-card-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .student-id-card .id-qr-box {
    width: 100% !important;
    height: 50px !important;
    border-radius: var(--radius-md) !important;
  }

  .auth-meta-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .card-title-row h2 {
    font-size: 1.05rem !important;
  }

  .primary-pill-btn,
  .secondary-btn,
  .btn-card-enter {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }
}

/* ==========================================================================
   BANK PAYMENT & SLIP UPLOAD MODAL (Exact match for Image 2)
   ========================================================================== */
.bank-payment-modal {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 28px 32px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  font-family: inherit;
  color: #1e293b;
}

.bank-payment-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.bank-payment-header .modal-close-btn {
  position: absolute;
  right: 0;
  top: -8px;
  font-size: 1.6rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.bank-payment-header .modal-close-btn:hover {
  color: #0f172a;
}

.bank-payment-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.bank-payment-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.bank-payment-subtext {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

.bank-payment-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

/* Left Column - Bank Accounts */
.bank-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bank-account-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-field-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
}

.bank-field-row .field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1e293b;
  min-width: 135px;
}

.bank-field-row .icon-blue {
  color: #dc2626;
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}

.bank-field-row .field-value-pill {
  background: #fef3c7;
  color: #78350f;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  display: inline-block;
  word-break: break-all;
}

.bank-acc-divider {
  height: 1px;
  background: #fde68a;
  margin: 4px 0;
}

/* Right Column - Slip Upload Form */
.slip-upload-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slip-upload-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1c1917;
  display: block;
}

.custom-file-picker {
  display: flex;
  align-items: center;
  border: 1px solid #fde68a;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.custom-file-picker input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker-btn {
  background: #fffbeb;
  color: #78350f;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-right: 1px solid #fde68a;
  white-space: nowrap;
  pointer-events: none;
}

.file-picker-name {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #92400e;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-picker-note {
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.35;
}

.manual-verify-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 18px;
  color: #b45309;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
}

.btn-upload-deposit-slip {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  margin-top: 6px;
}

.btn-upload-deposit-slip:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  transform: translateY(-1px);
}

.btn-upload-deposit-slip:active {
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS AUDIT & OPTIMIZATION FOR BANK PAYMENT MODAL (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  #enroll-modal.modal-overlay {
    padding: 12px 10px !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .bank-payment-modal {
    width: calc(100% - 32px) !important;
    max-width: 400px !important;
    padding: 24px 18px !important;
    border-radius: 20px !important;
    margin: 20px auto 30px auto !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25) !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }

  .bank-payment-header {
    margin-bottom: 20px !important;
  }

  .bank-payment-header .modal-close-btn {
    top: -12px !important;
    right: -6px !important;
    font-size: 1.8rem !important;
    padding: 6px 10px !important;
  }

  .bank-payment-title {
    font-size: 1.35rem !important;
  }

  .bank-payment-amount {
    font-size: 1.15rem !important;
  }

  .bank-payment-subtext {
    font-size: 0.8rem !important;
  }

  .bank-payment-body {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .bank-details-col {
    gap: 12px !important;
  }

  .bank-account-block {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 12px !important;
    gap: 8px !important;
  }

  .bank-acc-divider {
    display: none !important;
  }

  .bank-field-row {
    font-size: 0.85rem !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .bank-field-row .field-label {
    min-width: auto !important;
    font-size: 0.82rem !important;
  }

  .bank-field-row .field-value-pill {
    font-size: 0.8rem !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    max-width: 60% !important;
    text-align: right !important;
  }

  .slip-upload-col {
    gap: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  .slip-upload-title {
    font-size: 0.92rem !important;
  }

  .custom-file-picker {
    height: 48px !important;
    border-radius: 10px !important;
  }

  .file-picker-btn {
    padding: 12px 14px !important;
    font-size: 0.85rem !important;
  }

  .file-picker-name {
    font-size: 0.82rem !important;
    padding: 12px 10px !important;
  }

  .file-picker-note {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
  }

  .manual-verify-notice-box {
    font-size: 0.82rem !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    line-height: 1.4 !important;
  }

  .btn-upload-deposit-slip {
    font-size: 0.9rem !important;
    padding: 14px !important;
    height: 48px !important;
    border-radius: 10px !important;
  }
}

/* ==========================================================================
   FULL-SCREEN CUSTOM ACADEMIC LOGIN PAGE (Matches User's Reference Image)
   ========================================================================== */
.auth-page-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.7) 100%),
              url('assets/login-bg-hd.png') center left / cover no-repeat !important;
  backdrop-filter: none;
  padding: 0 !important;
  display: none;
  align-items: center;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.auth-page-overlay.show {
  display: flex !important;
}

.auth-page-container {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.auth-modal-close-icon {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.2rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 100;
}

.auth-modal-close-icon:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: scale(1.05);
}

.auth-hero-left {
  display: none !important;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecdd3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-sparkle {
  color: #fde047;
  font-size: 0.9rem;
}

.luxury-hero-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.luxury-sinhala-tagline {
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fde047;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.quote-icon {
  font-size: 0.85rem;
  opacity: 0.7;
  color: #ea580c;
}

.luxury-hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.hero-stat-chip i {
  color: #fca5a5;
}

/* Right Section: Floating White Login Card */
.auth-card-right {
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 32px 30px 10px;
  margin-right: 24px;
  z-index: 10;
  flex-shrink: 0;
}

.s2a-login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  padding: 30px 28px;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.s2a-login-card::-webkit-scrollbar {
  width: 5px;
}

.s2a-login-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Compact Sign Up Mode Spacing */
.s2a-login-card.mode-register {
  padding: 18px 22px;
}

.s2a-login-card.mode-register .card-logo-header {
  margin-bottom: 8px;
}

.s2a-login-card.mode-register .card-logo-svg {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

.s2a-login-card.mode-register .card-title-signin {
  font-size: 1.3rem;
}

.s2a-login-card.mode-register .card-divider-label {
  margin: 10px 0 10px;
}

.s2a-login-card.mode-register .custom-login-group {
  margin-bottom: 7px;
}

.s2a-login-card.mode-register .s2a-input {
  height: 40px;
  font-size: 0.85rem;
  padding: 0 12px;
  border-radius: 8px;
}

.s2a-login-card.mode-register .s2a-primary-btn {
  margin-top: 8px;
  padding: 11px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.s2a-login-card.mode-register .s2a-switch-row {
  margin-top: 8px;
}

.card-logo-header {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-logo-svg {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.card-title-signin {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.card-subtitle-signin {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.card-divider-label {
  margin: 20px 0 16px;
  position: relative;
  text-align: center;
}

.card-divider-label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
  z-index: 1;
}

.card-divider-label span {
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 0 12px;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.custom-login-group {
  margin-bottom: 14px;
}

.s2a-input {
  width: 100%;
  height: 48px;
  background: #f0f4f9;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.s2a-input:focus {
  background: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.card-forgot-row {
  text-align: right;
  margin-bottom: 20px;
}

.s2a-forgot-link {
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 700;
  text-decoration: none;
}

.s2a-forgot-link:hover {
  text-decoration: underline;
}

.s2a-primary-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.38);
  transition: all 0.2s ease;
}

.s2a-primary-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  transform: translateY(-1px);
}

.s2a-switch-row {
  margin-top: 20px;
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.s2a-signup-link {
  color: #dc2626;
  font-weight: 800;
}

.s2a-privacy-row {
  margin-top: 24px;
}

.s2a-privacy-link {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
}

/* Responsive adjustment for Mobile (<768px) */
@media (max-width: 768px) {
  .auth-page-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%),
                url('assets/login-bg-hd.png') center top / cover no-repeat !important;
    overflow-y: auto !important;
    align-items: flex-start !important;
    padding: 16px 10px !important;
  }

  .auth-page-container {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    padding: 20px 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .auth-hero-left {
    display: none !important;
  }

  .auth-card-right {
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    margin-right: 0 !important;
    padding: 10px !important;
  }

  .s2a-login-card {
    width: 100% !important;
    max-height: none !important;
    padding: 24px 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6) !important;
  }
}

/* ==========================================================================
   ENCRYPTED VIDEO PLAYER - RED THEME & BOUNCING STUDENT WATERMARK
   ========================================================================== */
@keyframes watermarkBounce {
  0% { top: 12%; left: 14%; transform: translate(0, 0); opacity: 0.8; }
  25% { top: 65%; left: 62%; transform: translate(-10px, -10px); opacity: 0.95; }
  50% { top: 22%; left: 68%; transform: translate(-20px, 10px); opacity: 0.75; }
  75% { top: 72%; left: 16%; transform: translate(10px, -15px); opacity: 0.9; }
  100% { top: 12%; left: 14%; transform: translate(0, 0); opacity: 0.8; }
}

.floating-student-watermark {
  position: absolute !important;
  z-index: 58 !important;
  pointer-events: none !important;
  user-select: none !important;
  color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  display: block !important;
  animation: watermarkBounce 16s infinite ease-in-out !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6) !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   VIDEO PACK GRADES UI
   ========================================================================== */
.vp-grade-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.vp-grade-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
}

.vp-grade-card:hover {
  transform: translateY(-8px);
  border-color: #a78bfa;
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.18);
}

.vp-grade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.vp-grade-icon {
  margin: 0 auto 10px auto;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vp-grade-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vp-grade-card:hover .vp-grade-icon {
  transform: translateY(-5px) scale(1.05);
}

.vp-grade-title {
  font-size: 1.6rem;
  color: #1e293b;
  font-weight: 800;
  margin-bottom: 12px;
}

.vp-grade-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  padding: 0 10px;
}

@media (max-width: 600px) {
  .panel-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .search-mini-box {
    width: 100% !important;
    max-width: none !important;
  }
  .search-mini-box input {
    width: 100% !important;
  }

  /* Center the video player modal instead of making it a bottom sheet */
  #video-player-modal {
    align-items: center !important;
    padding: 10px !important;
  }
  #video-player-modal .modal-window {
    border-radius: var(--radius-xl) !important;
    animation: scaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: auto !important;
  }
  #video-player-modal .modal-window::before {
    display: none !important;
  }
}

/* =========================================================================
   SECURE VIDEO PLAYER MODAL & MOBILE AUTO-ROTATE / LANDSCAPE SYSTEM
   ========================================================================= */

/* Base Video Player Modal & Container */
#video-player-modal {
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
}

#video-player-modal.show {
  display: flex !important;
}

#video-player-modal .video-modal-window {
  width: 100% !important;
  max-width: 860px !important;
  max-height: calc(100vh - 20px) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-2xl) !important;
  margin: auto !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

#video-player-modal .video-modal-window .modal-header {
  background: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-card) !important;
  padding: 16px 20px !important;
}

#video-player-modal .video-modal-window .modal-header #video-modal-title {
  color: var(--text-main) !important;
}

#video-player-modal .video-modal-window .modal-close-btn {
  color: var(--text-main) !important;
}

#video-player-modal .video-modal-window::before {
  display: none !important;
}

#video-player-modal #video-modal-body {
  position: relative !important;
  width: 100% !important;
  background: #000 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#secure-player-container {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: #000 !important;
  overflow: hidden !important;
  user-select: none !important;
  margin: 0 auto !important;
}

#secure-yt-iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* =========================================================================
   MOBILE LANDSCAPE / AUTO-ROTATE FULL-SCREEN IMMERSIVE MODE
   Fixes: When phone is turned sideways (auto-rotate), prevents the top from
   being cut off, scales the player to 100% full screen with an overlay header!
   ========================================================================= */
@media (orientation: landscape) and (max-height: 550px) {
  #video-player-modal {
    padding: 0 !important;
    margin: 0 !important;
    background: #000 !important;
    align-items: stretch !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 999999 !important;
  }

  #video-player-modal .video-modal-window {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  /* Transparent header in landscape so video chalkboard notes at the top are NEVER covered */
  #video-player-modal .modal-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border-bottom: none !important;
    z-index: 60 !important;
    padding: 10px 14px !important;
    pointer-events: none !important;
    box-shadow: none !important;
  }

  #video-player-modal .modal-header-left {
    display: none !important;
  }

  #video-player-modal .modal-close-btn {
    pointer-events: auto !important;
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    backdrop-filter: blur(4px) !important;
  }

  #video-player-modal #video-modal-body {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  /* Fit exactly 16:9 within 100vh height - NEVER clipped or pushed up! */
  #video-player-modal #secure-player-container {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-width: 177.78vh !important; /* 16/9 * 100vh */
    aspect-ratio: 16 / 9 !important;
    margin: auto !important;
    position: relative !important;
  }

  #video-player-modal .custom-player-controls {
    padding-bottom: env(safe-area-inset-bottom, 8px) !important;
  }
}

/* Fullscreen Mode Overrides */
#video-player-modal.is-fullscreen,
.modal-is-fullscreen,
#video-player-modal .modal-is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 999999 !important;
  background: #000 !important;
}

#secure-player-container.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 999999 !important;
  background: #000 !important;
}

@media (orientation: landscape) and (max-height: 550px) {
  .player-landscape-title {
    display: flex !important;
  }
}

#secure-player-container.is-fullscreen .player-landscape-title {
  display: flex !important;
}


