/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --bg-primary: #070a13;
  --bg-secondary: #0b0f19;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-glass-active: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(99, 102, 241, 0.4);
  
  /* Primary Colors */
  --indigo-primary: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.15);
  --indigo-dark: #4f46e5;
  
  /* Accent Colors */
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  
  /* Status Colors */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  
  /* Text Colors */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-indigo: #818cf8;
  --text-green: #34d399;
  
  /* Shadows & Blurs */
  --backdrop-blur-amount: 12px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--indigo-primary);
}

/* --- AMBIENT GLOW BACKDROP --- */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  background: radial-gradient(circle, var(--indigo-primary) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  background: radial-gradient(circle, var(--emerald-primary) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

/* --- APP LAYOUT --- */
.app-container {
  display: flex;
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  padding: 20px;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Card Base */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--backdrop-blur-amount));
  -webkit-backdrop-filter: blur(var(--backdrop-blur-amount));
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

/* --- COLLAPSIBLE TOP HEADER --- */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 65px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  border-radius: 0 0 20px 20px;
  border-top: none;
}

.header-right-side {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.hamburger-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 22px;
  cursor: pointer;
  display: none;
  transition: var(--transition-smooth);
}
.hamburger-menu-btn:hover {
  color: var(--indigo-primary);
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  padding: 6px 12px;
  border-radius: 8px;
}

.header-nav-link:hover, .header-nav-link.active {
  color: #fff;
  background: var(--bg-glass-active);
}

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

.stat-item-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 8px;
}

/* --- SIDEBAR NAVIGATION --- */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  height: calc(100vh - 100px);
  position: sticky;
  top: 80px;
}

.sidebar-header-inside {
  margin-bottom: 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-main);
}

.logo-icon {
  color: var(--indigo-primary);
  filter: drop-shadow(0 0 8px var(--indigo-primary));
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  padding-right: 36px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 10px;
}

.nav-header {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-indigo);
  letter-spacing: 1px;
  margin: 15px 10px 5px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-size: 14px;
}

.nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text-main);
  background: var(--bg-glass-hover);
  padding-right: 20px;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border-glass-hover);
}

.nav-item.active i {
  color: var(--indigo-primary);
  filter: drop-shadow(0 0 5px var(--indigo-primary));
}

.nav-item .badge {
  background: var(--indigo-primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 20px;
  margin-right: auto;
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-prompt-card {
  text-align: center;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass-active);
  border: 1px solid var(--indigo-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--indigo-primary);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 140px;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-rank {
  font-size: 11px;
  color: var(--text-muted);
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  font-size: 16px;
  margin-right: auto;
  transition: var(--transition-smooth);
}
.logout-btn:hover {
  transform: scale(1.15);
  color: #ff6b6b;
}

.w-full { width: 100%; }

/* --- MAIN CONTENT AREA --- */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: calc(100% - 300px);
}

/* Top Bar Styling */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 20px;
}

.progress-container {
  flex-grow: 1;
  max-width: 600px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.progress-title {
  color: var(--text-muted);
}

.progress-percentage {
  color: var(--indigo-primary);
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo-primary), var(--emerald-primary));
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-stats {
  display: flex;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.text-indigo { color: var(--indigo-primary); }
.text-green { color: var(--emerald-primary); }
.text-red { color: var(--color-error); }

/* --- APP VIEWS (SPA MANAGEMENT) --- */
.view-wrapper {
  position: relative;
  flex-grow: 1;
}

.app-view {
  display: none;
  animation: fadeIn 0.4s ease;
  flex-direction: column;
  gap: 20px;
}

.app-view.active-view {
  display: flex;
}

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

/* --- SECTIONS LAYOUT --- */
.sections-layout {
  display: flex;
  gap: 20px;
  align-items: stretch;
  height: calc(100vh - 160px);
}

.sections-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.view-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sections-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-left: 5px;
  flex-grow: 1;
}

/* Expandable Courses Tree catalog styling */
.course-group-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.course-header-trigger {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--bg-glass);
  font-weight: 700;
  font-size: 14.5px;
  transition: var(--transition-smooth);
}
.course-header-trigger:hover {
  background: var(--bg-glass-hover);
}

.course-header-trigger i {
  transition: transform 0.3s ease;
}

.course-group-card.expanded .course-header-trigger i {
  transform: rotate(180deg);
}

.course-sections-tree {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.course-group-card.expanded .course-sections-tree {
  max-height: 2000px;
  padding: 12px;
}

/* Premium Card Border Glow Hover */
.section-card {
  position: relative;
  padding: 16px;
  cursor: pointer;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.section-card:hover {
  transform: translateY(-2px);
  background: var(--bg-glass-hover);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.section-card:hover::before {
  background: linear-gradient(135deg, var(--indigo-primary), var(--emerald-primary));
}

.section-card.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.04));
  border-color: var(--indigo-primary);
}

.section-card.active::before {
  background: linear-gradient(135deg, var(--indigo-primary), var(--emerald-primary));
}

.sec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sec-title-text {
  font-weight: 700;
  font-size: 14px;
}

.sec-desc-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sec-completion-badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 700;
}

.section-card.completed-card .sec-completion-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-primary);
}

/* --- DUAL VIEW GRID --- */
.section-content-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.no-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 15px;
  height: 100%;
}

.selection-icon {
  font-size: 54px;
  color: rgba(99, 102, 241, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.dual-view-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.dual-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
}

.dual-view-header h2 {
  font-size: 16px;
  font-weight: 800;
}

.dual-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  flex-grow: 1;
  height: calc(100% - 65px);
}

.video-panel, .pdf-panel {
  display: flex;
  flex-direction: column;
  padding: 15px;
  height: 100%;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.video-wrapper-iframe {
  flex-grow: 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-controls-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* PDF Viewer controls */
.pdf-viewer-frame {
  flex-grow: 1;
  background: #111520;
  border-radius: 12px;
  overflow: auto;
  position: relative;
}

.pdf-fallback-reader {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  padding: 15px;
}

.pdf-page-sheet {
  background: #ffffff;
  color: #1f2937;
  width: 100%;
  max-width: 440px;
  min-height: 520px;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

.pdf-sheet-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
}

.pdf-sheet-body {
  font-size: 13.5px;
  line-height: 1.7;
  flex-grow: 1;
  text-align: justify;
}

.pdf-sheet-body h4 {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  border-right: 4px solid var(--indigo-primary);
  padding-right: 6px;
}

.pdf-sheet-body p {
  margin-bottom: 12px;
}

.pdf-sheet-body ul {
  margin-right: 18px;
  margin-bottom: 12px;
}

.pdf-sheet-body li {
  margin-bottom: 4px;
}

.pdf-sheet-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 8px;
  margin-top: 16px;
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
}

.pdf-actions {
  display: flex;
  gap: 6px;
}

.pdf-action-btn {
  background: var(--bg-glass-active);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pdf-action-btn:hover {
  background: var(--indigo-primary);
  color: #fff;
  border-color: var(--indigo-primary);
}

.pdf-footer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* --- BUTTONS SYSTEM --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 6px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

.btn-indigo {
  background: var(--indigo-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--indigo-glow);
}
.btn-indigo:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
}

.btn-emerald {
  background: var(--emerald-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--emerald-glow);
}
.btn-emerald:hover {
  background: #059669;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-red {
  background: var(--color-error);
  color: #fff;
}
.btn-red:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-indigo);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
}

.pulse-btn {
  position: relative;
}
.pulse-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 10px;
  border: 2px solid var(--emerald-primary);
  opacity: 0;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* --- TESTING ENGINE & MOCK EXAMS --- */
.exams-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.view-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -10px;
}

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

.exam-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exam-card h3 {
  font-size: 16px;
  font-weight: 800;
}

.exam-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.exam-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.exam-active-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exam-active-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.exam-active-title-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.timer-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* Question Options Card */
.question-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-text {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
}

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

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: right;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--indigo-primary);
}

.option-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.option-btn:hover .option-index {
  background: var(--indigo-primary);
  color: #fff;
  border-color: var(--indigo-primary);
}

/* States choice */
.option-btn.correct-choice {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: var(--emerald-primary) !important;
}
.option-btn.correct-choice .option-index {
  background: var(--emerald-primary);
  color: #fff;
}

.option-btn.wrong-choice {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: var(--color-error) !important;
}
.option-btn.wrong-choice .option-index {
  background: var(--color-error);
  color: #fff;
}

.option-btn.active-choice {
  border-color: var(--indigo-primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Explanation Panel */
.explanation-block {
  margin-top: 10px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.04);
  border-right: 4px solid var(--emerald-primary);
  border-radius: 4px 12px 12px 4px;
}

.explanation-header {
  font-weight: 800;
  color: var(--text-green);
  margin-bottom: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explanation-body {
  font-size: 13px;
  line-height: 1.7;
}

.question-fav-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.question-fav-btn:hover {
  transform: scale(1.2);
}
.question-fav-btn.favorited {
  color: #f59e0b;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.exam-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

.exam-progress-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--indigo-primary);
  box-shadow: 0 0 6px var(--indigo-primary);
}

.dot.completed {
  background: var(--emerald-primary);
}

/* --- LEADERBOARD & PODIUM --- */
.leaderboard-container { padding: 24px; }
.leaderboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.leaderboard-title h2 { font-size: 20px; font-weight: 900; }
.leaderboard-title p { color: var(--text-muted); font-size: 13.5px; }

.leaderboard-icon-glow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.crown-animate {
  animation: float 2.5s ease-in-out infinite;
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
  padding-top: 20px;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}

.podium-avatar-container {
  position: relative;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.podium-avatar-container:hover {
  transform: scale(1.08);
}

.podium-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-glass-active);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.podium-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
}

.podium-name { font-weight: 700; font-size: 12.5px; margin-bottom: 2px; }
.podium-score { font-size: 11.5px; color: var(--text-indigo); font-weight: 700; margin-bottom: 6px; }
.podium-pedestal { width: 100%; border-radius: 8px 8px 0 0; border: 1px solid var(--border-glass); border-bottom: none; }

.rank-1 .podium-avatar { width: 68px; height: 68px; border-color: #f59e0b; box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
.rank-1 .podium-badge { background: #f59e0b; color: #000; }
.rank-1 .podium-pedestal { height: 95px; background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, transparent 100%); }
.rank-1 .podium-name { font-size: 14px; font-weight: 900; }

.rank-2 .podium-avatar { border-color: #94a3b8; }
.rank-2 .podium-badge { background: #94a3b8; }
.rank-2 .podium-pedestal { height: 70px; }

.rank-3 .podium-avatar { border-color: #b45309; }
.rank-3 .podium-badge { background: #b45309; }
.rank-3 .podium-pedestal { height: 50px; }

/* Table format */
.ranks-table { display: flex; flex-direction: column; gap: 8px; }
.table-header, .table-row { display: grid; grid-template-columns: 80px 1fr 140px 140px 100px; padding: 12px 18px; align-items: center; }
.table-header { font-weight: 700; font-size: 12.5px; color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.table-row { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 12px; font-size: 13.5px; transition: var(--transition-smooth); cursor: pointer; }
.table-row:hover { background: var(--bg-glass-hover); border-color: rgba(255, 255, 255, 0.15); transform: scale(1.002); }

.table-row .rank-num { font-weight: 900; color: var(--text-muted); }
.table-row:nth-child(1) .rank-num { color: #f59e0b; }
.table-row:nth-child(2) .rank-num { color: #94a3b8; }
.table-row:nth-child(3) .rank-num { color: #b45309; }
.table-row .student-name { font-weight: 700; }
.table-row .points { font-weight: 800; color: var(--text-indigo); }
.table-row .speed { font-size: 12px; color: var(--text-muted); }

.pulse-indicator { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--emerald-primary); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-primary); box-shadow: 0 0 6px var(--emerald-primary); animation: pulse-ring 1.5s infinite; }

/* --- FAVORITES --- */
.favorites-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 10px; }
.fav-card { padding: 20px; border-radius: 16px; background: var(--bg-glass); border: 1px solid var(--border-glass); display: flex; flex-direction: column; gap: 12px; }
.fav-card-header { display: flex; justify-content: space-between; align-items: center; }
.fav-section-tag { background: rgba(99, 102, 241, 0.1); color: var(--text-indigo); padding: 3px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 700; }

/* --- BLOG CMS VIEW --- */
.articles-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.article-card h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.opened-article-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.art-meta-tags {
  display: flex;
  gap: 15px;
  font-size: 12px;
  align-items: center;
}

.article-rich-body {
  font-size: 14.5px;
  line-height: 1.8;
  color: #e5e7eb;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.article-rich-body h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 18px 0 10px 0;
  color: #fff;
}

.article-rich-body p {
  margin-bottom: 14px;
}

/* --- MONETIZATION PLACEMENTS --- */
.adsense-banner-top {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.01);
}

.ad-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ad-content-box {
  width: 100%;
  max-height: 90px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.ad-content-box img {
  width: 100%;
  max-width: 728px;
  object-fit: cover;
}

.adsense-side-placement {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.01);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

.adsense-side-placement img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.adsense-quiz-placement {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.01);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

.adsense-quiz-placement img {
  width: 100%;
  max-height: 80px;
  object-fit: cover;
  border-radius: 4px;
}


/* --- ARENA DESIGN --- */
.arena-choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.arena-choice-card {
  padding: 30px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.arena-choice-icon {
  font-size: 54px;
}

.arena-choice-card h3 {
  font-size: 18px;
  font-weight: 900;
}

.arena-choice-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Battle screen split layout */
.arena-battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 15px 24px;
  border-radius: 16px;
}

.battle-player-spot {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 40%;
}

.battle-player-spot.text-left {
  justify-content: flex-end;
}

.battle-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--emerald-primary);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--emerald-primary);
}

.battle-avatar.border-indigo {
  border-color: var(--indigo-primary);
  color: var(--indigo-primary);
}

.battle-player-info {
  display: flex;
  flex-direction: column;
}

.battle-name {
  font-weight: 900;
  font-size: 14.5px;
}

.battle-points-total {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.battle-timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.battle-timer-val {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--color-error);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-error);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* --- ADMIN DASHBOARD LAYOUT & TABLES --- */
.admin-tab-header {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.admin-tab-header h2 { font-size: 20px; font-weight: 900; }
.admin-tab-header p { font-size: 13px; color: var(--text-muted); }

.stats-counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-counter-card { padding: 24px; }

.counter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.counter-header i { font-size: 18px; }

.counter-val {
  font-size: 32px;
  font-weight: 900;
  margin: 12px 0 6px 0;
  color: #fff;
}

.counter-footer { font-size: 11px; color: var(--text-muted); }

.analytics-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.analytics-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.analytics-card h3 { font-size: 15px; font-weight: 800; }

.chart-container-mock {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 200px;
  padding: 10px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.bar-chart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
  height: 100%;
  justify-content: flex-end;
  gap: 10px;
}

.bar-fill-vertical {
  width: 32px;
  background: linear-gradient(180deg, var(--indigo-primary) 0%, rgba(99,102,241,0.2) 100%);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 10px rgba(99,102,241,0.2);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.bar-fill-vertical span { font-size: 9px; font-weight: 900; color: #fff; }
.bar-label { font-size: 11px; color: var(--text-muted); text-align: center; }

.alert-messages-list { display: flex; flex-direction: column; gap: 10px; }

.alert-msg-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; font-size: 12.5px; }

.alert-msg-item.error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-msg-item.error i { color: var(--color-error); font-size: 16px; }

.alert-msg-item.success { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-msg-item.success i { color: var(--emerald-primary); font-size: 16px; }

.alert-msg-content { display: flex; flex-direction: column; gap: 2px; }
.alert-title { font-weight: 800; color: #fff; }
.alert-desc { color: var(--text-muted); line-height: 1.5; }

/* --- ADMIN TABLES --- */
.admin-content-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}

.admin-sub-card { padding: 20px; display: flex; flex-direction: column; }

.admin-sub-card h3 {
  font-size: 15px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.table-container-responsive { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: right; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.admin-table th { color: var(--text-muted); font-weight: 700; font-size: 12px; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.01); }

/* Switch design */
.toggle-switch-wrapper { position: relative; display: inline-block; width: 44px; height: 22px; }
.toggle-checkbox { opacity: 0; width: 0; height: 0; }
.toggle-label { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.1); transition: .3s; border-radius: 34px; border: 1px solid var(--border-glass); }
.toggle-label:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; }
.toggle-checkbox:checked + .toggle-label { background-color: var(--indigo-primary); }
.toggle-checkbox:checked + .toggle-label:before { transform: translateX(20px); }

.toggle-switch-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 8px; background: rgba(0,0,0,0.15); font-size: 13px; }
.toggle-status-text { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }

.admin-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-glass); border-radius: 8px; padding: 8px 12px; font-family: inherit; font-size: 13px; color: #fff; transition: var(--transition-smooth); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--indigo-primary); outline: none; }
.form-group textarea { height: 70px; resize: vertical; }
.admin-form-actions { display: flex; gap: 10px; }

.permissions-switch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.rich-text-toolbar { display: flex; gap: 5px; background: rgba(255, 255, 255, 0.05); padding: 6px; border-radius: 6px 6px 0 0; border: 1px solid var(--border-glass); border-bottom: none; }
.rich-text-toolbar button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.rich-text-toolbar button:hover { background: var(--bg-glass-hover); color: #fff; }

/* --- AUTH MODAL STYLING --- */
.auth-modal { max-width: 420px; }
.close-modal-btn { background: transparent; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; transition: var(--transition-smooth); }
.close-modal-btn:hover { color: #fff; transform: rotate(90deg); }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content { width: 100%; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 10px; }
.modal-header h3 { font-size: 16px; font-weight: 800; }
.modal-body { font-size: 13.5px; }
.modal-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 10px; }

.quiz-finished-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 15px 0; }
.results-icon { font-size: 48px; color: #f59e0b; }

.stats-summary { display: flex; gap: 16px; margin-top: 8px; }
.sum-item { display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-glass); padding: 10px 18px; border-radius: 10px; }
.sum-label { font-size: 10px; color: var(--text-muted); }
.sum-val { font-size: 16px; font-weight: 800; color: var(--indigo-primary); }

/* --- RESPONSIVE LAYOUT & COLLAPSIBLE DRAWER --- */
@media (max-width: 1024px) {
  .hamburger-menu-btn { display: block; }
  .header-nav { display: none; } /* Hide horizontal header link on mobile screen */
  
  /* Collapsible drawer styling */
  .sidebar {
    position: fixed;
    top: 0; right: -300px;
    width: 280px;
    height: 100vh;
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(11, 15, 25, 0.95);
    border-radius: 0;
    border-left: 1px solid var(--border-glass);
    margin: 0;
  }
  
  .sidebar.open {
    transform: translateX(-300px);
  }
  
  .app-container { flex-direction: column; padding-top: 20px; }
  .main-content { max-width: 100%; }
  .sections-layout { flex-direction: column; height: auto; }
  .sections-sidebar { width: 100%; }
  .dual-view-grid { grid-template-columns: 1fr; height: auto; }
  .admin-content-layout { grid-template-columns: 1fr; }
  .analytics-layout-grid { grid-template-columns: 1fr; }
  .arena-choices-grid { grid-template-columns: 1fr; }

  /* ===== APP-LIKE MOBILE EXPERIENCE ===== */

  /* Hide scrollbar for clean app feel */
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  body::-webkit-scrollbar { display: none; }

  /* Compact header on mobile */
  .main-header {
    height: 52px;
    padding: 0 14px;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0);
  }
  .header-logo { font-size: 16px; }
  .header-logo .logo-icon { font-size: 18px; }

  /* Content area respects bottom nav space */
  .app-container {
    padding-bottom: 80px;
    margin-top: 52px !important;
  }

  /* Smooth momentum scrolling */
  .main-content,
  .sections-sidebar {
    -webkit-overflow-scrolling: touch;
  }

  /* Tighter card padding on mobile */
  .glass-card { border-radius: 14px; }
  .section-card { border-radius: 14px; }

  /* Hide the site footer on mobile (bottom nav replaces it) */
  .site-footer { display: none; }

  /* ===== BOTTOM NAVIGATION BAR ===== */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    justify-content: space-around;
    align-items: center;
    transition: transform 0.3s ease;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .bottom-nav-item i {
    font-size: 19px;
    transition: transform 0.2s ease;
  }

  .bottom-nav-item.active {
    color: var(--indigo-primary);
  }

  .bottom-nav-item.active i {
    transform: scale(1.15);
  }

  /* Active indicator dot */
  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--indigo-primary);
    box-shadow: 0 0 8px var(--indigo-glow);
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }
}

@media (min-width: 1025px) {
  .app-container { margin-right: 300px; } /* Create space for the sticky sidebar */
  .sidebar {
    position: fixed;
    top: 80px; right: 20px;
    width: 280px;
  }
  .main-content {
    max-width: 100%;
  }
  /* Hide mobile bottom nav on desktop */
  .mobile-bottom-nav { display: none; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copy,
.footer-dev {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-copy a,
.footer-dev a {
  color: var(--accent-indigo, #818cf8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-copy a:hover,
.footer-dev a:hover {
  color: var(--text-primary);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}


/* --- WELCOME BANNER & SLIDER --- */
.welcome-banner-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

/* Static Banner Design */
.welcome-banner-static {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.welcome-banner-static::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.welcome-banner-content {
  flex: 1;
  z-index: 1;
}

.welcome-banner-content h1 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-banner-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.welcome-banner-icon-decor {
  font-size: 56px;
  color: rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Slider Design */
.welcome-banner-slider {
  height: 240px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.welcome-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
  padding: 35px 40px;
  box-sizing: border-box;
}

.welcome-slide.active {
  opacity: 1;
  z-index: 2;
}

.welcome-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.6s ease-out 0.2s, opacity 0.6s ease-out 0.2s;
}

.welcome-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  background: linear-gradient(125deg, #ffffff 30%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-content p {
  font-size: 13.5px;
  color: #d1d5db;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: var(--indigo-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.prev-arrow {
  right: 15px;
}

.next-arrow {
  left: 15px;
}

/* Slider navigation dots */
.slider-dots {
  position: absolute;
  bottom: 15px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 24px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--indigo-primary);
  width: 32px;
}

.animate-bounce-right {
  animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

@media (max-width: 768px) {
  .welcome-banner-static {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  .welcome-banner-icon-decor {
    display: none;
  }
  .welcome-banner-slider {
    height: 200px;
  }
  .welcome-slide {
    padding: 20px 25px;
  }
  .slide-content h2 {
    font-size: 20px;
  }
  .slide-content p {
    font-size: 12px;
  }
  .slider-arrow {
    width: 32px; height: 32px;
    font-size: 12px;
  }
  .slider-dots {
    right: 50%;
    transform: translateX(50%);
    bottom: 10px;
  }
}
