/* ----------------------------------------------------------------
   NINE ACADEMY - PREMIUM CORE STYLESHEET
   Futuristic, AI-Powered, Glassmorphic, and Highly Animated
---------------------------------------------------------------- */

/* Custom Variables */
:root {
  /* Dark Mode Default Theme */
  --color-bg-navy: #091224;
  --color-bg-card: rgba(15, 23, 42, 0.65);
  --color-purple: #7C3AED;
  --color-blue: #3B82F6;
  --color-white: #FFFFFF;
  --color-text-main: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-grey-light: #F8FAFC;
  --color-grey-muted: #94A3B8;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(9, 18, 36, 0.75);
  --glow-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
  --glow-shadow-blue: 0 0 30px rgba(59, 130, 246, 0.25);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Light Mode Overrides */
body.light-mode {
  --color-bg-navy: #F8FAFC;
  --color-bg-card: rgba(255, 255, 255, 0.8);
  --color-white: #0F172A;
  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
  --color-grey-light: #1E293B;
  --color-grey-muted: #64748B;
  --glass-border: rgba(124, 58, 237, 0.12);
  --glass-bg: rgba(248, 250, 252, 0.85);
  --glow-shadow: 0 0 25px rgba(124, 58, 237, 0.12);
  --glow-shadow-blue: 0 0 25px rgba(59, 130, 246, 0.12);
  --card-shadow: 0 15px 30px rgba(124, 58, 237, 0.06);
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-navy);
  color: var(--color-text-main);
  font-family: var(--font-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Background Gradients & Grids */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.light-mode .bg-glow {
  opacity: 0.15;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
  top: -10vw;
  right: -5vw;
  animation: glow-float-1 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
  bottom: -10vw;
  left: -5vw;
  animation: glow-float-2 30s infinite alternate ease-in-out;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

body.light-mode .bg-grid {
  background-image: 
    linear-gradient(to right, rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
}

/* Header & Logo styling */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* Logo Design */
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  user-select: none;
  cursor: pointer;
}

.logo-text {
  display: flex;
  align-items: center;
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.05em;
  color: var(--color-white);
  line-height: 1;
  position: relative;
}

.logo-nin {
  position: relative;
  display: inline-block;
  color: var(--color-white);
}

.logo-i-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--color-purple);
  box-shadow: 0 0 10px var(--color-purple);
  top: 6px;
  left: 20px;
  border-radius: 1px;
}

.logo-e-bars {
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  margin-left: 3px;
  width: 18px;
}

.logo-e-bars .bar {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 1.5px;
  background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-blue) 100%);
}

.logo-academy {
  font-family: var(--font-secondary);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--color-grey-muted);
  margin-top: 1px;
  text-indent: 0.1em;
}

/* Footer logo variations */
.logo-nin-footer {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-white);
}

.logo-academy-footer {
  font-family: var(--font-secondary);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: var(--color-grey-muted);
}

/* Nav Menu Alignment Fixes (Single Line) */
.nav-menu {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-grow: 1;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem; 
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.82rem; 
  font-weight: 600;
  color: var(--color-grey-muted);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-white);
  background: rgba(124, 58, 237, 0.08);
}

.nav-link.special-link {
  color: var(--color-purple);
  font-weight: 700;
}

/* Dropdowns */
.nav-dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 540px;
  box-shadow: var(--card-shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dropdown-grid.single-col {
  grid-template-columns: 1fr;
  min-width: 240px;
  gap: 0.25rem;
}

.dropdown-grid.single-col a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.dropdown-grid.single-col a:hover {
  background: rgba(124, 58, 237, 0.06);
}

.dropdown-column h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.dropdown-column a {
  display: block;
  font-size: 0.82rem;
  color: var(--color-grey-light);
  padding: 0.35rem 0;
}

.dropdown-column a:hover {
  color: var(--color-purple);
  padding-left: 4px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--color-purple);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.18);
  transform: rotate(20deg);
}

.cart-trigger {
  position: relative;
  font-size: 1rem;
  color: var(--color-grey-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border);
}

.cart-trigger:hover {
  color: var(--color-white);
  background: rgba(124, 58, 237, 0.08);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
  color: #FFFFFF;
  box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), 0 0 15px rgba(59, 130, 246, 0.2);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(124, 58, 237, 0.05);
  color: var(--color-white);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
}

.btn-dashboard {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-purple);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-dashboard:hover {
  background: rgba(124, 58, 237, 0.2);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
}

.hamburger-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: 1px;
  transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 280px;
  height: calc(100vh - 70px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 2rem;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.mobile-drawer-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Mobile Bottom App Navigation Bar */
.mobile-app-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -10px 30px rgba(9, 18, 36, 0.5);
  display: none; /* Hidden on desktop screens */
  justify-content: space-around;
  align-items: center;
  z-index: 1001;
  padding: 0.25rem 0;
}

.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-muted);
  flex-grow: 1;
  height: 100%;
  gap: 2.5px;
  cursor: pointer;
}

.mobile-tab-item span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mobile-tab-item i {
  font-size: 1.15rem;
}

.mobile-tab-item.active {
  color: var(--color-purple);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

/* Special center tab: NINE AI */
.mobile-tab-item.special-tab {
  position: relative;
  top: -15px; /* Sticking out slightly */
  justify-content: flex-start;
}

.special-tab-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.45);
  transition: var(--transition-smooth);
}

.mobile-tab-item.special-tab i {
  color: #FFFFFF;
  font-size: 1.15rem;
}

.mobile-tab-item.special-tab span {
  margin-top: 4px;
}

/* Toast System */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--color-purple);
  box-shadow: var(--glow-shadow);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  z-index: 1100;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast-notification.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  color: var(--color-purple);
  font-size: 1.2rem;
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Page Loader */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 3px solid rgba(124, 58, 237, 0.1);
  border-top-color: var(--color-purple);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 1rem;
}

/* Main Content Wrapper */
main {
  min-height: 80vh;
  padding-top: 75px; /* Offset header height */
  position: relative;
}

.fade-in {
  animation: fadeIn 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

/* Generic Layout Utilities */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-purple);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.section-title {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-grey-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.08);
}

/* ----------------------------------------------------------------
   PAGE SPECIFIC VIEWS: HOME VIEW
---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: calc(85vh - 75px);
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--color-purple);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-tag-glow {
  width: 8px;
  height: 8px;
  background: var(--color-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-purple);
  animation: pulse 1.5s infinite alternate;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-grey-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
}

.hero-ctas .btn {
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-secondary);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-grey-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* High Fidelity Laptop Visual */
.hero-visual-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.visual-glowing-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px dashed rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  animation: spin 35s linear infinite;
  pointer-events: none;
}

.visual-glowing-ring-inner {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 50%;
  animation: spin-reverse 20s linear infinite;
  pointer-events: none;
}

.hero-mock-laptop {
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 5;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: float 6s ease-in-out infinite;
}

.hero-mock-laptop svg {
  width: 100%;
  height: auto;
}

/* Floating Widgets */
.floating-widget {
  position: absolute;
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--card-shadow);
  z-index: 10;
  pointer-events: none;
}

.fw-1 {
  top: 15%;
  right: -10px;
  border-left: 3px solid var(--color-purple);
  animation: float-widget 6s ease-in-out infinite;
}

.fw-2 {
  bottom: 12%;
  left: -20px;
  border-left: 3px solid var(--color-blue);
  animation: float-widget 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

.fw-3 {
  top: 45%;
  right: -35px;
  border-left: 3px solid var(--color-success);
  animation: float-widget 6s ease-in-out infinite;
  animation-delay: 3s;
}

.widget-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.bg-purple-trans { background: rgba(124, 58, 237, 0.12); color: var(--color-purple); }
.bg-blue-trans { background: rgba(59, 130, 246, 0.12); color: var(--color-blue); }
.bg-green-trans { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }

.widget-text h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-white);
}

.widget-text p {
  font-size: 0.65rem;
  color: var(--color-grey-muted);
}

/* Technology Scroll Marquee */
.tech-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: rgba(124, 58, 237, 0.01);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.25rem 0;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.marquee-content {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: scroll-marquee 25s linear infinite;
}

.tech-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-grey-muted);
  opacity: 0.7;
}

.tech-tag i {
  font-size: 1.25rem;
}

/* Partner Logos */
.partners-section {
  text-align: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.partners-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-grey-muted);
  margin-bottom: 1.5rem;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
}

.partner-logo {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-grey-muted);
  opacity: 0.45;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ----------------------------------------------------------------
   ENGAGEMENT TOOLS (ON HOMEPAGE)
---------------------------------------------------------------- */
.home-tools-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.tool-card {
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tool-header i {
  font-size: 1.6rem;
  color: var(--color-purple);
}

.tool-header h3 {
  font-family: var(--font-secondary);
  font-size: 1.35rem;
  color: var(--color-white);
  font-weight: 800;
}

/* Calculator specific */
.calc-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 1.5rem;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-purple);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-purple);
}

.calculator-results-bubble {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.calc-salary-num {
  font-family: var(--font-secondary);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-purple);
  line-height: 1.1;
  margin: 0.25rem 0;
}

/* Diagnostic Quiz specific */
.quiz-step-container {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-option-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--color-grey-light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
}

.quiz-option-btn:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--color-purple);
}

.quiz-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--color-purple);
  width: 33%;
  transition: width 0.3s ease;
}

/* ----------------------------------------------------------------
   COURSES VIEW
---------------------------------------------------------------- */
.courses-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar filter */
.courses-sidebar {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 1.75rem;
}

.filter-group h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-white);
  border-left: 3px solid var(--color-purple);
  padding-left: 0.5rem;
}

.search-bar-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-purple);
  background: rgba(255, 255, 255, 0.05);
}

.search-bar-wrapper i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-grey-muted);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--color-grey-muted);
  transition: var(--transition-smooth);
}

.filter-option:hover, .filter-option.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
}

.filter-option.active {
  color: var(--color-purple);
  font-weight: 700;
  background: rgba(124, 58, 237, 0.08);
}

/* Course Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  padding: 1.5rem;
}

.course-thumbnail {
  position: relative;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-thumbnail-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--color-purple) 0%, transparent 60%);
  opacity: 0.4;
}

.course-tag-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(9, 18, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.course-thumbnail i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.course-content {
  padding: 1.25rem 0 0 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--color-grey-muted);
  margin-bottom: 0.4rem;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.course-card h3 {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.course-card p {
  font-size: 0.8rem;
  color: var(--color-grey-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-instructor-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.course-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
}

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

.course-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.price-now {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
}

.price-old {
  font-size: 0.78rem;
  color: var(--color-grey-muted);
  text-decoration: line-through;
}

.price-free {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-success);
}

.course-enroll-btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* ----------------------------------------------------------------
   STUDENT DASHBOARD VIEW & BOUNDARY FIXES
---------------------------------------------------------------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr; 
  gap: 2rem;
  align-items: start;
  max-width: 100%; 
  overflow: hidden;
}

.dashboard-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.dashboard-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--color-grey-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-menu-item.active {
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-purple);
  border-left: 3px solid var(--color-purple);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0; 
  max-width: 100%;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 100%;
}

.dash-summary-card {
  padding: 1.25rem;
  border-radius: 12px;
}

.summary-value {
  font-family: var(--font-secondary);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-white);
}

.enrolled-course-item {
  display: grid;
  grid-template-columns: 60px 1fr 150px 90px;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  max-width: 100%;
  overflow: hidden;
}

.dash-course-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-size: 1.25rem;
}

/* ----------------------------------------------------------------
   COURSE DETAILS & PLAYER VIEW
---------------------------------------------------------------- */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 2.5rem;
}

.player-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
}

.video-container {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}

.play-button-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-purple);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glow-shadow);
  transition: var(--transition-smooth);
}

.play-button-large:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px var(--color-purple);
}

.player-details {
  padding: 1.5rem;
}

.player-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  gap: 1.25rem;
}

.player-tab-btn {
  background: none;
  border: none;
  color: var(--color-grey-muted);
  padding: 0.6rem 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
}

.player-tab-btn.active {
  color: var(--color-white);
}

.player-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-purple);
}

.curriculum-module {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.curriculum-module-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.curriculum-module-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  cursor: pointer;
}

.lesson-item:hover, .lesson-item.active {
  background: rgba(124, 58, 237, 0.06);
}

.lesson-item.active {
  color: var(--color-purple);
}

/* Discussion Board */
.discussion-board {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.discussion-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.discussion-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.65rem;
  color: var(--color-white);
  font-family: var(--font-primary);
  resize: vertical;
  min-height: 70px;
}

.discussion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.discussion-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.85rem;
  border-radius: 8px;
}

/* Sticky Buy Card */
.sticky-buy-card {
  position: sticky;
  top: 90px;
  padding: 2rem;
}

/* ----------------------------------------------------------------
   NINE AI OPERATING SYSTEM VIEW
---------------------------------------------------------------- */
.ai-os-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  height: calc(100vh - 180px);
  min-height: 550px;
  align-items: stretch;
}

.ai-os-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.ai-assistant-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
}

.ai-assistant-card:hover, .ai-assistant-card.active {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
}

.ai-avatar-glow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1rem;
  color: #fff;
}

.ai-details h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
}

.ai-details p {
  font-size: 0.7rem;
  color: var(--color-grey-muted);
}

/* AI Terminal Screen */
.ai-terminal {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 16, 0.85);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: var(--color-danger); }
.dot-yellow { background: var(--color-warning); }
.dot-green { background: var(--color-success); }

.terminal-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-grey-muted);
}

.terminal-body {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 80%;
}

.terminal-msg.assistant {
  align-self: flex-start;
}

.terminal-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-bubble {
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.assistant .msg-bubble {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
  color: var(--color-purple);
}

.user .msg-bubble {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--color-blue);
}

.hologram-preview-box {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(124, 58, 237, 0.25);
  padding: 0.85rem;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.terminal-input-area {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-form {
  display: flex;
  gap: 0.75rem;
}

.terminal-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-size: 0.88rem;
}

/* ----------------------------------------------------------------
   CAREER GUIDANCE VIEW
---------------------------------------------------------------- */
.guidance-flow {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flow-step-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 1.5rem;
}

.flow-step-number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
}

.flow-step-body h3 {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.flow-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.flow-selector-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--color-grey-muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   WORKSHOPS VIEW
---------------------------------------------------------------- */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.workshop-card {
  overflow: hidden;
  position: relative;
}

.workshop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-blue));
}

/* ----------------------------------------------------------------
   COMMUNITY VIEW
---------------------------------------------------------------- */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* ----------------------------------------------------------------
   ECOSYSTEM & LANDING VIEWS
---------------------------------------------------------------- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ecosystem-card {
  position: relative;
  overflow: hidden;
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ----------------------------------------------------------------
   CART, CHECKOUT & PAYMENTS
---------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 2.5rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 60px 1fr 90px 40px;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
}

/* ----------------------------------------------------------------
   AUTH FLOWS
---------------------------------------------------------------- */
.auth-panel {
  max-width: 440px;
  margin: 3rem auto;
  padding: 2.5rem;
}

/* ----------------------------------------------------------------
   FOOTER DETAILS
---------------------------------------------------------------- */
.footer {
  background: rgba(5, 8, 16, 0.98);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 2rem 2rem;
  position: relative;
  z-index: 5;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.brand-desc {
  font-size: 0.85rem;
  color: var(--color-grey-muted);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.affiliation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-purple);
  background: rgba(124, 58, 237, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-muted);
}

.social-links a:hover {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

.footer-links-col h4, .footer-newsletter h4 {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-col ul a {
  font-size: 0.85rem;
  color: var(--color-grey-muted);
}

.footer-links-col ul a:hover {
  color: var(--color-white);
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--color-grey-muted);
}

.newsletter-form {
  display: flex;
  gap: 0.4rem;
}

.newsletter-form input {
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-grey-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

/* ----------------------------------------------------------------
   KEYFRAME ANIMATIONS
---------------------------------------------------------------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

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

@keyframes glow-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.05); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes glow-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -50px) scale(0.95); }
  100% { transform: translate(50px, -30px) scale(1.05); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 1; }
}

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

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1.75rem)); }
}

/* ----------------------------------------------------------------
   MEDIA QUERIES (RESPONSIVENESS & MOBILE APP WRAPPER)
---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
  .footer-links-col:nth-of-type(3) {
    grid-column: span 2;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .nav-links {
    gap: 0.2rem;
  }
  .nav-link {
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual-container {
    display: none; 
  }
  .courses-container {
    grid-template-columns: 1fr;
  }
  .courses-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .course-detail-layout {
    grid-template-columns: 1fr;
  }
  .sticky-buy-card {
    position: static;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .community-layout {
    grid-template-columns: 1fr;
  }
  .home-tools-layout {
    grid-template-columns: 1fr;
  }
}

/* Android Mobile App Simulation Styles (< 768px) */
@media (max-width: 768px) {
  main {
    padding-top: 60px;
    padding-bottom: 70px; /* Prevent bottom tab bar overlap */
  }
  
  .header {
    height: 60px;
  }
  
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  .logo-text {
    font-size: 1.6rem;
  }
  
  .logo-academy {
    font-size: 0.5rem;
    letter-spacing: 0.4em;
  }

  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: none; /* Hide traditional hamburger menu in app tab simulation */
  }

  .mobile-app-nav-bar {
    display: flex; /* Activate native-like app bar */
  }

  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
  
  .section {
    padding: 3rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links-col:nth-of-type(3) {
    grid-column: auto;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .dashboard-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .enrolled-course-item {
    grid-template-columns: 50px 1fr 100px;
  }
  
  .enrolled-course-item a {
    grid-column: span 3;
    justify-self: stretch;
    text-align: center;
  }
  
  .ai-os-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* ----------------------------------------------------------------
   INTRO SPLASH ANIMATION SCREEN
---------------------------------------------------------------- */
.intro-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030712; /* Dark background to force techy mode */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background-image: 
    linear-gradient(to right, rgba(124, 58, 237, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.intro-skip-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2001;
  transition: var(--transition-smooth);
}

.intro-skip-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--color-white);
}

.intro-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.intro-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
}

.intro-step.step-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
}

/* Step 1: Loader */
.intro-badge {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-purple);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.intro-terminal-log {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #94A3B8;
  text-align: left;
  min-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intro-terminal-log p {
  margin-bottom: 0.4rem;
  overflow: hidden;
  white-space: nowrap;
}

/* Step 2: NINE Academy */
.intro-brand-title {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  line-height: 1;
  position: relative;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.logo-i-dot-intro {
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: var(--color-purple);
  box-shadow: 0 0 15px var(--color-purple);
  top: 12px;
  left: 36px;
  border-radius: 1px;
}

.logo-e-dot-intro {
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: var(--color-blue);
  box-shadow: 0 0 15px var(--color-blue);
  top: 12px;
  left: 72px;
  border-radius: 1px;
}

.intro-brand-subtitle {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  color: #94A3B8;
  margin-top: 0.25rem;
  text-indent: 0.55em;
}

.intro-affiliation {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Step 3: Developer Info */
.intro-badge-dev {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.intro-dev-title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.intro-parent-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------
   STUDENT PORTAL & POST-PURCHASE ACADEMIC ENGINE STYLES
---------------------------------------------------------------- */
.portal-workspace {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header Banner */
.portal-hero-card {
  position: relative;
  padding: 2rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 27, 75, 0.7));
  border: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.portal-hero-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.portal-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.portal-profile-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.portal-avatar-large {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.portal-unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.portal-welcome-title {
  font-family: var(--font-secondary);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin: 0;

}

.portal-welcome-title span {
  color: var(--color-purple);
}

.portal-subtitle {
  font-size: 0.85rem;
  color: var(--color-grey-muted);
  margin-top: 0.25rem;
}

.portal-stats-grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.portal-stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  min-width: 140px;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-grey-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-secondary);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Navigation Tabs Bar */
.portal-nav-tabs {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  overflow-x: auto;
}

.portal-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--color-grey-muted);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.portal-tab-btn:hover, .portal-tab-btn.active {
  background: rgba(124, 58, 237, 0.15);
  color: #fff;
  border-color: rgba(124, 58, 237, 0.4);
}

.portal-tab-btn.active {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.portal-badge-count {
  background: var(--color-purple);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
}

.portal-demo-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
  border-color: rgba(16, 185, 129, 0.3);
}

.live-tag-pill {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Vault Subtab */
.portal-vault-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vault-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.vault-title {
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  color: #fff;
}

.vault-subtitle {
  font-size: 0.85rem;
  color: var(--color-grey-muted);
}

.vault-search-box {
  position: relative;
  min-width: 280px;
}

.vault-search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-grey-muted);
}

.vault-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.85rem;
}

.portal-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.vault-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: 14px;
}

.vault-card-thumb {
  position: relative;
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.vault-category-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(9, 18, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.vault-card-thumb i {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.2);
}

.vault-progress-ring-box {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vault-progress-percent {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-success);
}

.vault-course-name {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.vault-course-desc {
  font-size: 0.8rem;
  color: var(--color-grey-muted);
  margin-bottom: 1rem;
}

.vault-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-grey-muted);
  margin-bottom: 0.75rem;
}

.vault-progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.vault-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-purple), var(--color-blue));
}

.vault-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.vault-launch-btn {
  flex-grow: 1;
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
}

.vault-icon-btn {
  padding: 0.55rem;
  font-size: 0.85rem;
}

/* Lecture Suite Subtab */
.lecture-suite-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.lecture-player-card {
  border-radius: 16px;
  overflow: hidden;
}

.lecture-video-viewport {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

.video-active-stream {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #090c15, #1e1b4b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay-graphics {
  text-align: center;
  padding: 2rem;
}

.play-pulse-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--color-purple);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  cursor: pointer;
  box-shadow: 0 0 30px var(--color-purple);
}

.video-live-badge-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.video-quality-tag, .video-speed-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
}

.video-controls-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--glass-border);
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.v-control-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}

.v-control-btn.text-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-grey-muted);
}

.v-dropdown-wrap {
  position: relative;
}

.v-dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #0f172a;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.4rem;
  min-width: 120px;
  z-index: 50;
}

.v-dropdown-wrap:hover .v-dropdown-menu {
  display: block;
}

.v-dropdown-menu div {
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.v-dropdown-menu div:hover {
  background: var(--color-purple);
}

.v-time-display {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--color-grey-muted);
}

.btn-sm-completion {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
}

/* Info Tabs */
.lecture-info-tabs-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.lecture-subtabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.lecture-subtab-btn {
  background: none;
  border: none;
  color: var(--color-grey-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding-bottom: 0.4rem;
}

.lecture-subtab-btn.active {
  color: #fff;
  border-bottom: 2px solid var(--color-purple);
}

.add-note-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.timestamp-tag-pill {
  background: rgba(124, 58, 237, 0.15);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
}

.note-input-field {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  color: #fff;
  font-size: 0.85rem;
}

.notes-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-card-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.note-timestamp-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.note-text-body {
  font-size: 0.85rem;
  color: #fff;
}

.ai-summary-box {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 1.25rem;
  border-radius: 10px;
}

.assets-download-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.asset-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
}

/* Sidebar Drawer */
.curriculum-drawer-card {
  padding: 1.25rem;
  border-radius: 14px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.badge-lessons-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-grey-muted);
}

.curriculum-drawer-modules {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-module-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-grey-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.drawer-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.drawer-lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}

.drawer-lesson-item:hover, .drawer-lesson-item.active {
  background: rgba(124, 58, 237, 0.1);
}

.drawer-lesson-item.active {
  color: var(--color-purple);
  font-weight: 700;
}

.d-lesson-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.d-lesson-time {
  font-size: 0.72rem;
  color: var(--color-grey-muted);
}

/* Live Workshops Subtab */
.workshop-live-banner {
  position: relative;
  padding: 2.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(236, 72, 153, 0.3);
  overflow: hidden;
}

.workshop-banner-glow {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  opacity: 0.2;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.pulse-dot, .pulse-red-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse 1.5s infinite;
}

.workshop-banner-title {
  font-family: var(--font-secondary);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.workshop-banner-desc {
  font-size: 0.95rem;
  color: var(--color-grey-muted);
  max-width: 750px;
  margin-bottom: 1.5rem;
}

.workshop-meta-bar {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.workshop-banner-actions {
  display: flex;
  gap: 1rem;
}

/* Live Class Demo Subtab */
.live-demo-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-tour-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.tour-nav-buttons {
  display: flex;
  gap: 0.75rem;
}

.live-classroom-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.live-stream-card {
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

.live-stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--glass-border);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fca5a5;
}

.instructor-tag {
  font-size: 0.78rem;
  color: var(--color-grey-muted);
}

.live-video-canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #090c15;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.live-stream-screen-graphic {
  width: 85%;
  height: 75%;
  background: #020408;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.mock-code-screen {
  font-family: monospace;
  font-size: 0.85rem;
  color: #94a3b8;
}

.screen-top-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.screen-dot.red { background: #ef4444; }
.screen-dot.yellow { background: #f59e0b; }
.screen-dot.green { background: #10b981; }

.screen-filename {
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.code-keyword { color: #c084fc; }
.code-func { color: #60a5fa; }
.code-str { color: #34d399; }

.stream-reaction-bar {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.4rem 0.75rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.emoji-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.emoji-btn:hover {
  transform: scale(1.3);
}

.hand-raise-btn {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--color-purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
}

.hand-raise-btn.active {
  background: var(--color-purple);
  box-shadow: 0 0 15px var(--color-purple);
}

.floating-emojis-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.floating-emoji-item {
  position: absolute;
  bottom: 20px;
  font-size: 1.8rem;
  animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-150px) scale(1.5); }
}

.live-stream-footer {
  padding: 1.25rem;
}

.live-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.live-poll-box {
  padding: 1.25rem;
  border-radius: 14px;
}

.poll-header-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-grey-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.poll-question-text {
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 1rem;
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.poll-option-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.poll-option-item:hover, .poll-option-item.selected {
  border-color: var(--color-purple);
  background: rgba(124, 58, 237, 0.08);
}

.poll-option-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.poll-bar-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: var(--color-purple);
  transition: width 0.4s ease;
}

.live-chat-box {
  padding: 1.25rem;
  border-radius: 14px;
}

.chat-header-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-grey-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.live-chat-messages {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.chat-message-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.chat-message-item.instructor {
  background: rgba(124, 58, 237, 0.12);
  border-left: 2px solid var(--color-purple);
}

.chat-author {
  font-size: 0.7rem;
  font-weight: 800;
  color: #c084fc;
  display: block;
}

.chat-text {
  font-size: 0.8rem;
  color: #fff;
  margin-top: 0.15rem;
}

.live-chat-input-form {
  display: flex;
  gap: 0.5rem;
}

.chat-input-field {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  color: #fff;
  font-size: 0.8rem;
}

/* Colors and utility tags */
.text-purple { color: #c084fc !important; }
.text-blue { color: #60a5fa !important; }
.text-green { color: #34d399 !important; }
.text-gold { color: #facc15 !important; }
.text-pink { color: #f472b6 !important; }
.text-cyan { color: #22d3ee !important; }

/* ----------------------------------------------------------------
   NOTIFICATIONS BELL & DROPDOWN MENU
---------------------------------------------------------------- */
.notif-wrapper {
  position: relative;
  display: inline-block;
}

.notif-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.notif-trigger:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--color-purple);
  color: #D8B4FE;
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  border: 2px solid var(--color-bg-navy);
}

.notif-dropdown-content {
  position: absolute;
  top: 52px;
  right: 0;
  width: 340px;
  background: rgba(9, 18, 36, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 1050;
  overflow: hidden;
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.notif-dropdown-header h4 {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-clear-btn {
  background: none;
  border: none;
  color: var(--color-grey-muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.notif-clear-btn:hover {
  color: var(--color-purple);
}

.notif-list-container {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  display: block;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.notif-item:hover {
  background: rgba(124, 58, 237, 0.08);
}

.notif-item.unread {
  border-left: 3px solid var(--color-purple);
  background: rgba(124, 58, 237, 0.04);
}

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.notif-item-msg {
  font-size: 0.78rem;
  color: var(--color-grey-muted);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 0.68rem;
  color: var(--color-purple);
  margin-top: 0.35rem;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   TEACHER LIVE STUDIO & CAMERA BROADCAST STYLES
---------------------------------------------------------------- */
.teacher-workspace {
  padding-top: 2rem;
}

.teacher-hero-card {
  position: relative;
  margin-bottom: 2rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.teacher-avatar-glow {
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  font-weight: 800;
  color: #fff;
}

.teacher-glow-link {
  color: #F472B6 !important;
}

.teacher-glow-link:hover {
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
}

.btn-teacher-login, .btn-teacher-dash {
  border-color: rgba(244, 114, 182, 0.3) !important;
  color: #F472B6 !important;
}

.btn-teacher-login:hover, .btn-teacher-dash:hover {
  background: rgba(244, 114, 182, 0.15) !important;
}

.auth-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.role-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-grey-muted);
  padding: 0.65rem;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.role-tab-btn.active {
  background: var(--color-purple);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.teacher-fast-login-box {
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(124, 58, 237, 0.3);
  padding: 1rem;
  border-radius: 14px;
  margin-top: 1.25rem;
}

.fast-login-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.6rem;
}

.fast-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fast-teacher-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  text-align: left;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 100%;
}

.fast-teacher-btn:hover {
  border-color: var(--color-purple);
  background: rgba(124, 58, 237, 0.15);
}

.teacher-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-purple);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* STUDIO CAMERA LAYOUT */
.teacher-studio-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .teacher-studio-layout {
    grid-template-columns: 1fr;
  }
}

.studio-main-card {
  padding: 1.25rem;
}

.studio-video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-live {
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-offline {
  background: rgba(148, 163, 184, 0.15);
  color: var(--color-grey-muted);
  border: 1px solid var(--glass-border);
}

.studio-device-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.device-select-input {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.device-select-input option {
  background: #091224;
  color: #fff;
}

.webcam-viewport-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.webcam-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(1); /* Set standard view */
}

.webcam-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), #091224);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 5;
}

.placeholder-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.live-overlay-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(9, 18, 36, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.live-badge-red {
  background: #EF4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;

  animation: livePulse 1.5s infinite alternate;
}

@keyframes livePulse {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.7; transform: scale(1.05); }
}

.studio-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.controls-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.studio-ctrl-btn {
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
}

.btn-go-live {
  background: linear-gradient(135deg, #EF4444, #7C3AED) !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4) !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1.4rem !important;
}

.btn-end-live {
  background: #EF4444 !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1.4rem !important;
}

.portal-live-alert-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.live-pulse-badge {
  background: #EF4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  animation: livePulse 1.5s infinite alternate;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-text strong {
  display: block;
  font-family: var(--font-secondary);
  color: #fff;
  font-size: 1rem;
}

.banner-text small {
  color: var(--color-grey-muted);
  font-size: 0.82rem;
}

