/* Student Portal Styles */
:root {
  --gold: #FFD700;
  --orange: #FF6B00;
  --red: #E8003D;
  --purple: #7B2FBE;
  --blue: #1A6DFF;
  --cyan: #00C8FF;
  --dark: #08090E;
  --dark2: #111320;
  --dark3: #1A1E35;
  --card: #161A2E;
  --text: #F0F2FF;
  --muted: #8892B0;
  --green: #00E676;
  --pink: #FF4081;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Nunito', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== INTRO SPLASH ===== */
#intro-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, #7B2FBE44 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, #E8003D33 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, #1A6DFF33 0%, transparent 60%),
              #000;
  animation: splashPulse 3s ease-in-out infinite;
}

@keyframes splashPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.splash-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.splash-logo {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.splash-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 60px;
  font-weight: 900;
  background: linear-gradient(135deg, #FFD700 0%, #FF6B00 30%, #E8003D 60%, #7B2FBE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px #FFD70088);
  line-height: 1;
  animation: shimmer 2s linear infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.splash-sub {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #ffffff99;
  margin-top: 15px;
  text-transform: uppercase;
  font-weight: 700;
}

.splash-powered {
  margin-top: 20px;
  font-size: 12px;
  color: #FFD700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.splash-tap {
  margin-top: 40px;
  font-size: 14px;
  color: #ffffff66;
  animation: blink 1.5s ease-in-out infinite;
  letter-spacing: 0.15em;
  text-align: center;
}

@keyframes blink {
  0%,100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.splash-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid;
  animation: expandRing 3s ease-out infinite;
}

.ring:nth-child(1) {
  width: 80px;
  height: 80px;
  border-color: #FFD700;
  animation-delay: 0s;
}

.ring:nth-child(2) {
  width: 130px;
  height: 130px;
  border-color: #FF6B00;
  animation-delay: 0.5s;
}

.ring:nth-child(3) {
  width: 180px;
  height: 180px;
  border-color: #E8003D;
  animation-delay: 1s;
}

@keyframes expandRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

#intro-splash.fade-out {
  animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .splash-title {
    font-size: 40px;
  }
  .splash-sub {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .splash-tap {
    margin-top: 30px;
    font-size: 12px;
  }

  .ring:nth-child(1) {
    width: 50px;
    height: 50px;
  }
  .ring:nth-child(2) {
    width: 90px;
    height: 90px;
  }
  .ring:nth-child(3) {
    width: 130px;
    height: 130px;
  }
}

/* ===== MAIN APP ===== */
#app {
  display: none;
  min-height: 100vh;
}

#app.visible {
  display: block;
  animation: appIn 0.6s ease;
}

@keyframes appIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(8, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  flex: 1;
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid var(--gold);
}

.grade-badge {
  background: linear-gradient(90deg, var(--orange), var(--red));
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== PAGES ===== */
.page {
  display: none;
  padding-top: 68px;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ===== HOME / HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 20%, #7B2FBE55 0%, transparent 50%),
              radial-gradient(ellipse at 90% 80%, #E8003D44 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, #1A6DFF22 0%, transparent 70%),
              var(--dark);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 215, 0, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 215, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.floating-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat ease-in-out infinite;
}

@keyframes orbFloat {
  0%,100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title .line1 {
  color: var(--text);
  display: block;
}

.hero-title .line2 {
  display: block;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.4);
  font-family: 'Nunito', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Nunito', sans-serif;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SUBJECTS STRIP ===== */
.subjects-strip {
  background: var(--dark2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.strip-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollStrip 20s linear infinite;
}

@keyframes scrollStrip {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
}

.strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title span {
  color: var(--gold);
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1e35, #2a1a4e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.play-btn {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  z-index: 2;
  transition: all 0.2s;
}

.video-card:hover .play-btn {
  transform: scale(1.15);
  background: var(--gold);
}

.ep-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--red);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 14, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  gap: 0.5rem;
}

.lock-icon {
  font-size: 2rem;
}

.lock-text {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 800;
}

.video-info {
  padding: 1.1rem;
}

.video-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.video-tag {
  font-size: 0.72rem;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
}

.video-dur {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== SEASON TABS ===== */
.season-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.season-tab {
  padding: 0.5rem 1.3rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.season-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  color: #fff;
}

.season-tab:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== QUIZ PAGE ===== */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.quiz-header {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.quiz-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}

.quiz-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.progress-bar-wrap {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 8px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 0.4s ease;
}

.question-card {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.q-number {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.q-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.q-option {
  padding: 1rem 1.3rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.q-option:hover {
  border-color: var(--blue);
  background: rgba(26, 109, 255, 0.1);
}

.q-option.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}

.q-option.correct {
  border-color: var(--green);
  background: rgba(0, 230, 118, 0.1);
}

.q-option.wrong {
  border-color: var(--red);
  background: rgba(232, 0, 61, 0.1);
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== NOTES PAGE ===== */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.note-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.8rem;
  border-left: 4px solid var(--gold);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s;
  cursor: pointer;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.note-card.science {
  border-left-color: var(--cyan);
}

.note-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.note-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.note-preview {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.note-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.note-tag.science {
  background: rgba(0, 200, 255, 0.1);
  color: var(--cyan);
}

/* ===== CHAT PAGE ===== */
.chat-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.teacher-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.teacher-info .name {
  font-weight: 900;
}

.teacher-info .status {
  font-size: 0.78rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.msg {
  max-width: 75%;
}

.msg.teacher {
  align-self: flex-start;
}

.msg.student {
  align-self: flex-end;
}

.msg-bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.msg.teacher .msg-bubble {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px 18px 18px 18px;
}

.msg.student .msg-bubble {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 18px 18px 4px 18px;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
  padding: 0 0.3rem;
}

.msg.student .msg-time {
  text-align: right;
}

.voice-msg {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.voice-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.voice-wave {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wave-bar {
  flex: 1;
  border-radius: 2px;
  background: rgba(255, 107, 0, 0.5);
  animation: wavePulse 0.8s ease-in-out infinite;
}

@keyframes wavePulse {
  0%,100% {
    opacity: 0.3;
    transform: scaleY(0.4);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.chat-input-row {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 0.75rem 1.2rem;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--gold);
}

.chat-input::placeholder {
  color: var(--muted);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.send-btn {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #000;
}

.voice-btn {
  background: rgba(255, 107, 0, 0.2);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.voice-btn:hover {
  background: rgba(255, 107, 0, 0.4);
}

/* ===== MARKS PAGE ===== */
.marks-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.marks-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
}

.stat-value.gold {
  color: var(--gold);
}

.stat-value.green {
  color: var(--green);
}

.stat-value.blue {
  color: var(--cyan);
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-weight: 700;
}

.marks-table {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.marks-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  gap: 1rem;
}

.marks-row:last-child {
  border-bottom: none;
}

.marks-row.header {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.mark-score {
  font-weight: 900;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  text-align: center;
  min-width: 60px;
}

.mark-score.pass {
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
}

.mark-score.avg {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.mark-score.fail {
  background: rgba(232, 0, 61, 0.1);
  color: var(--red);
}

.mark-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.view-corrections-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.view-corrections-btn:hover {
  background: rgba(26, 109, 255, 0.15);
}

/* ===== LOGIN MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--dark3);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    transform: scale(0.85) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.modal-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
}

.form-select option {
  background: var(--dark3);
}

.modal-footer {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.btn-login {
  flex: 2;
  padding: 0.85rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #000;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ===== VIDEO PLAYER MODAL ===== */
.player-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.player-modal-overlay.open {
  display: flex;
}

.player-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
}

.player-wrap {
  width: 100%;
  max-width: 960px;
}

.fake-player {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1e35, #0d1028);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-emoji {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.player-title-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold);
}

.player-sub-text {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.episode-steps {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.player-controls {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 16px 16px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.3rem;
  transition: color 0.2s;
}

.ctrl-btn:hover {
  color: var(--gold);
}

.progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  width: 35%;
  border-radius: 5px;
}

.time-text {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

/* ===== SUBSCRIPTION BANNER ===== */
.sub-banner {
  background: linear-gradient(135deg, #1a0a00, #2d1200);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.sub-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.sub-desc {
  color: var(--muted);
  margin: 0.8rem 0 1.5rem;
}

.plans {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.plan-card {
  background: var(--dark3);
  border-radius: 16px;
  padding: 1.8rem;
  min-width: 200px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.plan-card.popular {
  border-color: var(--gold);
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.25rem 0.8rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.plan-name {
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}

.plan-period {
  color: var(--muted);
  font-size: 0.8rem;
}

.plan-features {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plan-feat {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-feat::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-powered {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--card);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  display: none;
}

.toast.show {
  display: flex;
}

@keyframes toastIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-text {
  font-weight: 800;
  font-size: 0.9rem;
}

.toast-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .marks-row {
    grid-template-columns: 1fr auto auto;
  }

  .marks-row > *:last-child {
    display: none;
  }
}

/* User Menu Styles */
.user-menu {
  position: fixed;
  top: 68px;
  right: 20px;
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  min-width: 220px;
  z-index: 200;
  display: none;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-menu.show {
  display: block;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
}

.user-menu-name {
  font-weight: 800;
  font-size: 0.9rem;
}

.user-menu-email {
  font-size: 0.7rem;
  color: var(--muted);
}

.user-menu-school {
  font-size: 0.75rem;
  color: var(--dim);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu-logout {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.user-menu-logout:hover {
  background: rgba(255, 51, 85, 0.1);
  border-color: var(--red);
}

/* User Menu Styles */
.user-menu {
  position: fixed;
  top: 68px;
  right: 20px;
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  min-width: 220px;
  z-index: 200;
  display: none;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-menu.show {
  display: block;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
}

.user-menu-name {
  font-weight: 800;
  font-size: 0.9rem;
}

.user-menu-email {
  font-size: 0.7rem;
  color: var(--muted);
}

.user-menu-school {
  font-size: 0.75rem;
  color: var(--dim);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu-logout {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.user-menu-logout:hover {
  background: rgba(255, 51, 85, 0.1);
  border-color: var(--red);
}

/* Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.paper-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s;
  cursor: pointer;
}

.paper-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.paper-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.paper-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.paper-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.paper-pages {
  font-size: 0.75rem;
  color: var(--dim);
}

/* Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.paper-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s;
  cursor: pointer;
}

.paper-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.paper-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.paper-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.paper-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.paper-pages {
  font-size: 0.75rem;
  color: var(--dim);
}

/* ===== MODERN LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3e 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.loading-container {
  text-align: center;
  position: relative;
  z-index: 10;
}

.loading-rings {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
}

.ring-1 {
  border-top-color: #FFD700;
  animation: spinRing 1s linear infinite;
}

.ring-2 {
  border-right-color: #FF6B00;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  animation: spinRing 1.2s linear infinite reverse;
}

.ring-3 {
  border-bottom-color: #E8003D;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation: spinRing 0.8s linear infinite;
}

.ring-4 {
  border-left-color: #00FFCC;
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  animation: spinRing 1.5s linear infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #FFD700, #FF6B00, #E8003D, #7B2FBE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.loading-text {
  margin-top: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loading-dots {
  display: inline-flex;
  gap: 0.2rem;
  margin-left: 0.3rem;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFD700;
  animation: bounceDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.loading-subtitle {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #8892B0;
  font-weight: 500;
}

.loading-progress {
  width: 250px;
  margin-top: 2rem;
  position: relative;
}

.progress-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill-animated {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFD700, #FF6B00, #E8003D);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-percent {
  position: absolute;
  top: -20px;
  right: 0;
  font-size: 0.7rem;
  color: #FFD700;
  font-weight: bold;
}

.loading-steps {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 1;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  background: linear-gradient(135deg, #FFD700, #FF6B00);
  color: #000;
  box-shadow: 0 0 15px rgba(255,215,0,0.5);
  transform: scale(1.1);
}

.step.completed .step-icon {
  background: #22CC88;
  color: #000;
}

.step-label {
  font-size: 0.65rem;
  color: #8892B0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step.active .step-label {
  color: #FFD700;
}

.loading-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,215,0,0.5);
  border-radius: 50%;
  animation: floatParticle 8s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.loading-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .loading-progress {
    width: 200px;
  }
  .step-label {
    font-size: 0.55rem;
  }
  .step-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* Updated Splash Screen - Centered */
#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, #7B2FBE44 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, #E8003D33 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, #1A6DFF33 0%, transparent 60%),
              #000;
  animation: splashPulse 3s ease-in-out infinite;
}

@keyframes splashPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.splash-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.splash-logo {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: splashEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes splashEntrance {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.splash-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #FFD700 0%, #FF6B00 30%, #E8003D 60%, #7B2FBE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px #FFD70088);
  line-height: 1;
  animation: shimmer 2s linear infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.splash-sub {
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  color: #ffffff99;
  margin-top: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
}

.splash-powered {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #FFD700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.splash-tap {
  margin-top: 3rem;
  font-size: 1rem;
  color: #ffffff66;
  animation: blink 1.5s ease-in-out infinite;
  letter-spacing: 0.15em;
}

@keyframes blink {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: expandRing 3s ease-out infinite;
}

@keyframes expandRing {
  0% {
    transform: scale(0.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

#intro-splash.fade-out {
  animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.splash-tap {
  margin-top: 3rem;
  font-size: 1rem;
  color: #ffffff66;
  animation: blink 1.5s ease-in-out infinite;
  letter-spacing: 0.15em;
  text-align: center;

  /* Assignments Page */
  .assignments-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .assignment-card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.3s;
    cursor: pointer;
  }

  .assignment-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
  }

  .assignment-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
  }

  .assignment-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }

  .assignment-subject {
    background: rgba(255,215,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--gold);
  }

  .assignment-due {
    color: #FF8888;
  }

  .assignment-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
  }

  .status-active {
    background: rgba(34,197,94,0.15);
    color: #22CC88;
  }

  .status-closed {
    background: rgba(255,51,85,0.15);
    color: #FF3355;
  }

  .view-btn {
    margin-top: 0.8rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
  }
