/* ==========================================================================
   PadhaiBuddy - Cosmic Kids EdTech Modern Responsive Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

:root {
  /* Cosmic Backgrounds */
  --bg-dark-base: #030712;
  --bg-cosmic-1: #070d2b;
  --bg-cosmic-2: #0f1742;
  --bg-card: rgba(15, 23, 58, 0.75);
  --bg-card-hover: rgba(22, 33, 82, 0.85);
  --bg-glass-input: rgba(13, 20, 51, 0.85);
  --border-glass: rgba(99, 102, 241, 0.2);
  --border-glass-hover: rgba(139, 92, 246, 0.45);
  
  /* Vibrant Accents */
  --primary-purple: #8b5cf6;
  --primary-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-yellow: #f59e0b;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Button Gradients */
  --btn-gradient-yellow: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  --btn-gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --btn-gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --gradient-cosmic-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(59, 130, 246, 0.2) 100%);

  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fonts */
  --font-heading: 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  /* Shadows & Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-glow-purple: 0 0 35px rgba(139, 92, 246, 0.3);
  --shadow-glow-yellow: 0 8px 25px rgba(245, 158, 11, 0.35);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--bg-dark-base);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #05091e 0%, #080f2d 50%, #040817 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #060b24;
}
::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Cosmic Glow Elements */
.cosmic-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #a855f7, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 80px, #38bdf8, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 240px 120px, #facc15, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 320px 60px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 180px, #ec4899, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 600px 90px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 750px 140px, #38bdf8, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 900px 50px, #facc15, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 800px 400px;
  opacity: 0.55;
  z-index: 0;
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-yellow {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Common Navigation Header
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 43, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.brand-name span {
  color: #fbbf24;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: #1e295f;
  box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
  font-size: 0.95rem;
}

.btn-primary-yellow {
  background: var(--btn-gradient-yellow);
  color: #0f172a;
  box-shadow: var(--shadow-glow-yellow);
}

.btn-primary-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-login {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  color: #ffffff;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-signup {
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  background: var(--btn-gradient-yellow);
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.5rem;
}

/* ==========================================================================
   Home Page Hero Section (Exact to media_1791663666836.jpg)
   ========================================================================== */
.hero-cosmic-section {
  position: relative;
  padding: 40px 0 50px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr;
  align-items: center;
  gap: 30px;
}

.hero-left-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title .title-learn {
  color: #ffffff;
  display: block;
}

.hero-title .title-explore {
  color: #60a5fa;
  display: block;
}

.hero-title .title-succeed {
  color: #fbbf24;
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 380px;
  line-height: 1.6;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Center Character Graphic */
.hero-center-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  overflow: visible;
  display: flex;
  justify-content: center;
}

.hero-kids-image {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.45));
  animation: floatHero 5s ease-in-out infinite alternate;
}

@keyframes floatHero {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Hero Right Floating Stats Box */
.hero-right-stats {
  display: flex;
  justify-content: flex-end;
}

.stats-glass-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 290px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.stat-row-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-row-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  flex-shrink: 0;
}

.stat-row-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-row-icon.yellow { background: linear-gradient(135deg, #fbbf24, #d97706); }
.stat-row-icon.orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.stat-row-info h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-row-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   4-Pill Feature Strip (White Card)
   ========================================================================== */
.feature-ribbon-section {
  margin-bottom: 50px;
}

.feature-ribbon-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ribbon-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  flex-shrink: 0;
}

.ribbon-icon-box.blue { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.ribbon-icon-box.pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.ribbon-icon-box.yellow { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ribbon-icon-box.green { background: linear-gradient(135deg, #34d399, #059669); }

.ribbon-text h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.ribbon-text p {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   Courses & Why Students Love Us Split Section
   ========================================================================== */
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
  margin-bottom: 50px;
}

.content-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.content-block-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.view-all-link:hover {
  color: #60a5fa;
  transform: translateX(3px);
}

/* Subject Badges Cards */
.subject-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.subject-item-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: var(--transition-normal);
  cursor: pointer;
}

.subject-item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
  background: rgba(25, 36, 92, 0.85);
}

.subject-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
}

.subject-icon-wrap.math { background: linear-gradient(135deg, #6366f1, #4338ca); }
.subject-icon-wrap.science { background: linear-gradient(135deg, #10b981, #047857); }
.subject-icon-wrap.english { background: linear-gradient(135deg, #f59e0b, #b45309); }
.subject-icon-wrap.social { background: linear-gradient(135deg, #ea580c, #c2410c); }
.subject-icon-wrap.computer { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.subject-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Why Students Love Us Card */
.why-love-card {
  background: rgba(15, 23, 62, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.why-love-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.trophy-image-box {
  width: 100px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-image-box img {
  max-height: 100%;
  filter: drop-shadow(0 10px 20px rgba(245, 158, 11, 0.4));
}

.why-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}

.why-benefits-list li i {
  color: #fbbf24;
  font-size: 0.85rem;
}

/* ==========================================================================
   Bottom Action Banner (Rocket & Grad Books)
   ========================================================================== */
.action-banner-section {
  margin-bottom: 60px;
}

.action-banner-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #1e1b4b 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-xl);
  padding: 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(46, 16, 101, 0.5);
}

.action-banner-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rocket-icon-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(239, 68, 68, 0.4));
  animation: floatRocket 4s ease-in-out infinite alternate;
}

@keyframes floatRocket {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(-5deg); }
}

.banner-text-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.banner-text-content h2 span {
  color: #fbbf24;
}

.banner-text-content p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-top: 4px;
}

.action-banner-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.grad-books-img {
  width: 100px;
  height: 75px;
  object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: #020617;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #60a5fa;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Authentication Pages (Login & Sign Up)
   Exact match to media_1791663666837.jpg & media_1791663666846.jpg
   ========================================================================== */
.auth-page-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.auth-container-grid {
  width: 100%;
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.auth-left-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.auth-heading span {
  color: #60a5fa;
}

.auth-subtext {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 440px;
}

.auth-hero-img-box {
  width: 100%;
  max-width: 360px;
  margin: 10px 0;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.auth-hero-img-box img {
  width: 100%;
  filter: drop-shadow(0 15px 30px rgba(139, 92, 246, 0.4));
  border-radius: var(--radius-lg);
}

/* 4 Feature Badges Bottom of Auth Left */
.auth-features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.auth-feature-mini {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.auth-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
}

.auth-mini-icon.purple { background: linear-gradient(135deg, #a855f7, #6366f1); }
.auth-mini-icon.pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.auth-mini-icon.yellow { background: linear-gradient(135deg, #fbbf24, #d97706); }
.auth-mini-icon.green { background: linear-gradient(135deg, #34d399, #059669); }

.auth-feature-mini h5 {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.auth-feature-mini p {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Role Selector Switcher in Sign Up */
.role-tabs-container {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
  gap: 8px;
}

.role-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.role-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.role-tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.role-tab-btn.active.teacher {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0d1434;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

@media (max-width: 480px) {
  .role-tabs-container {
    flex-direction: column;
  }
}

/* Auth Right Glass Card */
.auth-card-box {
  background: rgba(13, 20, 52, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
}

.auth-card-title span {
  color: #60a5fa;
}

.auth-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Auth Input Fields */
.auth-form-group {
  margin-bottom: 18px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper i.field-icon {
  position: absolute;
  left: 18px;
  color: #64748b;
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

.input-icon-wrapper .toggle-password-btn {
  position: absolute;
  right: 18px;
  color: #64748b;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
}

.auth-input, .auth-select {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px 14px 50px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.auth-input:focus, .auth-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  background: rgba(18, 27, 72, 0.95);
}

.auth-input:focus + i.field-icon {
  color: #8b5cf6;
}

.auth-select option {
  background: #0f1738;
  color: #ffffff;
}

/* Remember me & Forgot Password Row */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

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

.checkbox-label input {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
}

.forgot-link {
  color: #60a5fa;
  font-weight: 600;
}

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

.btn-auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: #60a5fa;
  font-weight: 700;
  margin-left: 4px;
}

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

/* ==========================================================================
   Student Dashboard (Exact to media_1791663666864.jpg)
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  min-height: 100vh;
  background: #04081c;
}

/* Dashboard Sidebar Left */
.dashboard-sidebar-left {
  background: #060b24;
  border-right: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  margin-bottom: 28px;
  padding-left: 10px;
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.sidebar-item-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.sidebar-item-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-item-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.sidebar-item-link i {
  font-size: 13px;
  width: 20px;
  text-align: center;
}

/* Sidebar Go Premium Card */
.sidebar-premium-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 62, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  margin-top: 20px;
}

.premium-crown-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.1rem;
}

.sidebar-premium-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.sidebar-premium-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.btn-upgrade-sm {
  width: 100%;
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
}

/* Dashboard Center Content */
.dashboard-main-area {
  padding: 24px 30px;
  overflow-y: auto;
  max-height: 100vh;
}

/* Top Search Bar & Header in Dashboard */
.dashboard-top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-search-box {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.dashboard-search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.dashboard-search-input {
  width: 100%;
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-pill);
  padding: 11px 18px 11px 44px;
  color: #ffffff;
  font-size: 0.9rem;
}

.dashboard-user-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Dashboard Hero Banner */
.dash-welcome-banner {
  background: linear-gradient(135deg, #131b4d 0%, #1c2668 50%, #0d1238 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.dash-welcome-text h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.dash-welcome-text h2 span {
  color: #60a5fa;
}

.dash-welcome-text p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.dash-welcome-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-boy-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.5));
}

/* Dashboard Stats 4-Card Row */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dash-stat-icon.flame { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.dash-stat-icon.target { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.dash-stat-icon.chart { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.dash-stat-icon.star { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.dash-stat-details h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.dash-stat-details p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* My Subjects Grid */
.dash-subjects-section {
  margin-bottom: 28px;
}

.subjects-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.subject-progress-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.subject-progress-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  cursor: pointer;
}

.subject-progress-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
}

.subject-progress-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.subject-progress-card .topic-count {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.progress-bar-fill.purple { background: #8b5cf6; }
.progress-bar-fill.green { background: #10b981; }
.progress-bar-fill.yellow { background: #f59e0b; }
.progress-bar-fill.blue { background: #3b82f6; }
.progress-bar-fill.cyan { background: #06b6d4; }

/* Recent Quiz Attempts & Community Split */
.dash-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-panel-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.quiz-attempt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.quiz-attempt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.quiz-icon-small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ffffff;
}

.quiz-name-date h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.quiz-name-date span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.quiz-score-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-text {
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
}

.status-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
}

.status-pill.excellent { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-pill.good { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.status-pill.practicing { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-pill.great { background: rgba(139, 92, 246, 0.2); color: #c084fc; }

/* Create Post Box */
.create-post-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.post-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-input-box {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.88rem;
}

.post-options-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-attachments {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-attachments button {
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.post-attachments button:hover {
  color: #60a5fa;
}

.btn-post-submit {
  padding: 6px 18px;
  background: #2563eb;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

/* Latest Post Feed Item */
.feed-post-card {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
}

.feed-author-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feed-author-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.feed-author-info span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.feed-post-content {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 10px;
}

.feed-post-tags {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 12px;
}

.feed-post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feed-post-actions button {
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.feed-post-actions button:hover {
  color: #ffffff;
}

/* Dashboard Right Sidebar */
.dashboard-sidebar-right {
  background: #060b24;
  border-left: 1px solid rgba(99, 102, 241, 0.15);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Calendar Widget */
.calendar-widget-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
}

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

.calendar-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.calendar-grid-table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

.calendar-grid-table th {
  color: var(--text-dim);
  font-size: 0.72rem;
  padding: 6px 0;
  font-weight: 600;
}

.calendar-grid-table td {
  font-size: 0.78rem;
  color: #94a3b8;
  padding: 6px 0;
}

.calendar-grid-table td.active-day {
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Upcoming Quizzes List */
.upcoming-quizzes-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.upcoming-quiz-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.upcoming-quiz-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.upcoming-quiz-info span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.badge-upcoming {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Discipline Quote Card */
.quote-girl-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(20, 10, 50, 0.8));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-girl-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.quote-girl-text p {
  color: #f472b6;
  font-size: 0.8rem;
  margin-top: 4px;
}

.dash-girl-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  filter: drop-shadow(0 6px 15px rgba(236, 72, 153, 0.4));
}

/* Today's Goal Progress */
.today-goals-card {
  background: rgba(15, 23, 62, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.goals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.goals-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.goals-body-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.goals-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.goal-item input {
  accent-color: #10b981;
}

.goal-circle-stat {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #10b981;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
}

.goal-circle-stat span {
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Interactive Quiz Page & Results Page
   ========================================================================== */
.quiz-container {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}

.quiz-card-box {
  background: rgba(13, 20, 52, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
}

.quiz-question-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition-fast);
}

.quiz-option-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.quiz-option-btn.selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(139, 92, 246, 0.4));
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.option-badge-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.quiz-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Result Page */
.result-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.result-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.result-box-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.result-box-item h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.result-box-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Courses Catalog Page
   ========================================================================== */
.courses-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-chip {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.filter-chip.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.courses-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.course-card-item {
  background: rgba(15, 23, 62, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.course-card-item:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.25);
}

.course-thumb-box {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b, #31104b);
}

.course-thumb-box.math { background: linear-gradient(135deg, #1e1b4b, #3730a3); }
.course-thumb-box.science { background: linear-gradient(135deg, #064e3b, #047857); }
.course-thumb-box.english { background: linear-gradient(135deg, #78350f, #b45309); }
.course-thumb-box.social { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.course-thumb-box.code { background: linear-gradient(135deg, #172554, #1d4ed8); }
.course-thumb-box.physics { background: linear-gradient(135deg, #3b0764, #7e22ce); }

.course-badge-subject {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
}

.course-badge-level {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.course-thumb-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.course-body-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.course-title-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.course-desc-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.course-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.course-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.course-rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
}

.course-rating-stars span {
  color: #94a3b8;
  font-weight: 500;
  margin-left: 2px;
}

/* ==========================================================================
   Leaderboard Page Styles
   ========================================================================== */
.leaderboard-top-section {
  margin: 30px 0 50px;
}

.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 40px;
}

.podium-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-avatar-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.podium-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0 auto;
}

.podium-column.first .podium-avatar {
  width: 96px;
  height: 96px;
  border-color: #fbbf24;
  background: linear-gradient(135deg, #d97706, #fbbf24);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.5);
}

.podium-column.second .podium-avatar {
  border-color: #94a3b8;
  background: linear-gradient(135deg, #475569, #94a3b8);
  box-shadow: 0 0 25px rgba(148, 163, 184, 0.4);
}

.podium-column.third .podium-avatar {
  border-color: #f97316;
  background: linear-gradient(135deg, #9a3412, #f97316);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

.podium-crown-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  color: #fbbf24;
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.podium-rank-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #000;
}

.podium-column.first .podium-rank-badge { background: #fbbf24; }
.podium-column.second .podium-rank-badge { background: #cbd5e1; }
.podium-column.third .podium-rank-badge { background: #fdba74; }

.podium-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.podium-points {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 700;
}

.podium-base {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
}

.podium-column.first .podium-base {
  height: 140px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-bottom: none;
}

.podium-column.second .podium-base {
  height: 100px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.25) 0%, rgba(148, 163, 184, 0.05) 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: none;
}

.podium-column.third .podium-base {
  height: 80px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0.05) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-bottom: none;
}

/* Leaderboard Table */
.leaderboard-table-card {
  background: rgba(13, 20, 52, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  overflow-x: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table td {
  padding: 16px 18px;
  font-size: 0.92rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr.highlight-user {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-weight: 700;
}

.leaderboard-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
}

/* Review Answers List on Result Page */
.review-answers-box {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-item-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
}

.review-item-row.correct {
  border-left: 4px solid #10b981;
}

.review-item-row.incorrect {
  border-left: 4px solid #ef4444;
}

/* ==========================================================================
   Mobile Sidebar Drawer & Student Topbar
   ========================================================================== */
.student-mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.sidebar-backdrop.active {
  display: block;
}

/* ==========================================================================
   Study Material Page Component Styles
   ========================================================================== */
.study-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.study-card-item {
  background: rgba(15, 23, 62, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.study-card-item:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.25);
}

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

.material-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.material-type-pill.pdf { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.material-type-pill.video { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.material-type-pill.doc { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.35); }
.material-type-pill.ppt { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.material-type-pill.image { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }

.material-size-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

.study-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.study-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.study-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.study-card-meta span {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.btn-material-action {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Community Forum Component Styles
   ========================================================================== */
.community-feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-post-card {
  background: rgba(15, 23, 62, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.community-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-post-content {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 14px;
}

.community-post-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  margin-bottom: 16px;
}

.community-actions-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-action-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.post-action-btn:hover, .post-action-btn.liked {
  color: #ec4899;
}

.post-action-btn.comment-toggle:hover {
  color: #60a5fa;
}

.post-comments-thread {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.single-comment-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.comment-author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.comment-text-body {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 3px;
}

.comment-input-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.comment-text-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  color: #fff;
  font-size: 0.85rem;
}

/* ==========================================================================
   Leaderboard Alignment Overhaul
   ========================================================================== */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  max-width: 760px;
  margin: 20px auto 40px;
}

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

.podium-column.first {
  width: 240px;
  order: 2;
}

.podium-column.second {
  order: 1;
}

.podium-column.third {
  order: 3;
}

.podium-avatar-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.podium-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  color: #ffffff;
}

.podium-column.second .podium-avatar {
  width: 76px;
  height: 76px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #475569, #94a3b8);
  border: 3px solid #cbd5e1;
  box-shadow: 0 0 25px rgba(203, 213, 225, 0.4);
}

.podium-column.first .podium-avatar {
  width: 96px;
  height: 96px;
  font-size: 2.1rem;
  background: linear-gradient(135deg, #d97706, #fbbf24);
  border: 4px solid #fbbf24;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
}

.podium-column.third .podium-avatar {
  width: 70px;
  height: 70px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #9a3412, #f97316);
  border: 3px solid #fdba74;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

.podium-crown-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fbbf24;
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.6));
}

.podium-rank-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  color: #000;
}

.podium-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 6px;
  white-space: nowrap;
}

.podium-points {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 800;
  margin-top: 2px;
}

.podium-base {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
}

.podium-column.first .podium-base {
  height: 150px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-bottom: none;
}

.podium-column.second .podium-base {
  height: 110px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.3) 0%, rgba(203, 213, 225, 0.06) 100%);
  border: 2px solid rgba(203, 213, 225, 0.4);
  border-bottom: none;
}

.podium-column.third .podium-base {
  height: 90px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.3) 0%, rgba(249, 115, 22, 0.06) 100%);
  border: 2px solid rgba(249, 115, 22, 0.4);
  border-bottom: none;
}

/* ==========================================================================
   Responsive Media Queries (Fully Responsive for Mobile, Tablet, iPad & PC)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
  }
  .hero-right-stats {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .stats-glass-card {
    max-width: 600px;
    flex-direction: row;
    justify-content: space-around;
  }
  .dashboard-layout {
    grid-template-columns: 220px 1fr 280px;
  }
  .study-materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  /* Collapse Sidebar into Mobile Drawer on Tablets and iPads */
  .dashboard-layout {
    grid-template-columns: 1fr !important;
  }
  .dashboard-sidebar-right {
    display: none;
  }

  .dashboard-sidebar-left {
    position: fixed !important;
    top: 0 !important;
    left: -290px !important;
    width: 270px !important;
    height: 100vh !important;
    z-index: 9999 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
  }

  .dashboard-sidebar-left.open {
    left: 0 !important;
  }

  .sidebar-close-btn {
    display: block !important;
  }

  .student-mobile-menu-btn {
    display: inline-flex !important;
  }

  .courses-grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .feature-ribbon-card {
    grid-template-columns: 1fr 1fr;
  }
  .home-bottom-grid {
    grid-template-columns: 1fr;
  }
  .subject-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth-container-grid {
    grid-template-columns: 1fr;
  }
  .auth-left-brand {
    text-align: center;
    align-items: center;
  }
  .dash-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .subjects-progress-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dash-two-col-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .feature-ribbon-card {
    grid-template-columns: 1fr;
  }
  .subject-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid-cards {
    grid-template-columns: 1fr;
  }
  .study-materials-grid {
    grid-template-columns: 1fr;
  }
  .action-banner-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 24px;
  }
  .action-banner-left {
    flex-direction: column;
  }
  .dash-welcome-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .dash-welcome-actions {
    justify-content: center;
  }
  .dash-boy-img {
    width: 100px;
    height: 100px;
  }
  .user-chip-name {
    display: none;
  }
  .podium-container {
    gap: 12px;
  }
  .podium-column {
    width: 33%;
  }
  .podium-column.first {
    width: 36%;
  }
  .podium-name {
    font-size: 0.85rem;
  }
  .podium-column.first .podium-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }
  .podium-column.second .podium-avatar,
  .podium-column.third .podium-avatar {
    width: 58px;
    height: 58px;
    font-size: 1.2rem;
  }
  .podium-column.first .podium-base { height: 110px; }
  .podium-column.second .podium-base { height: 80px; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Dedicated Distraction-Free Quiz Arena (No Left/Right Sidebars)
   ========================================================================== */
.quiz-arena-header {
  background: #060b24;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.quiz-arena-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-arena-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz-mode-pill {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz-arena-student-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-quit-quiz {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-quit-quiz:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.quiz-standalone-arena {
  min-height: calc(100vh - 72px);
  padding: 30px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-standalone-inner {
  width: 100%;
  max-width: 860px;
}

/* ==========================================================================
   PadhaiBuddy Pro Upgrade & Pricing Styles
   ========================================================================== */
.pricing-card-box {
  background: rgba(13, 20, 52, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.pricing-card-box:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.pricing-card-box.featured {
  border: 2px solid #fbbf24;
  background: linear-gradient(180deg, rgba(20, 26, 68, 0.95), rgba(11, 16, 46, 0.95));
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.pricing-badge-tier {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.pricing-badge-tier.gold {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
}

.pricing-price-wrap .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
}

.pricing-price-wrap .amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.pricing-price-wrap .period {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-left: 4px;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.pricing-features-list li.muted-feat {
  color: #64748b;
  text-decoration: line-through;
}

.text-green { color: #10b981; }
.text-yellow { color: #fbbf24; }




/* Cloud Drop Answer UI */
.clouds-wrapper {
  position: relative;
  height: 180px; /* adjust as needed */
  margin-top: 20px;
}

.cloud {
  position: absolute;
  top: -100px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  animation-name: cloudFall;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.cloud.correct {
  border: 4px solid #10b981; /* green */
}

.cloud.wrong {
  border: 4px solid #ef4444; /* red */
  animation: shake 0.3s;
}

@keyframes cloudFall {
  0% { top: -100px; }
  100% { top: 80%; }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}


/* Site-wide typography: Roboto regular and medium only */
body *:not(i):not([class*="fa-"]) {
  font-family: 'Roboto', Arial, sans-serif !important;
  font-weight: 400 !important;
  font-synthesis: none;
}

body *:not(i):not([class*="fa-"]):is(h1, h2, h3, h4, h5, h6, strong, b, th, button, label, .btn, .sidebar-item-link, .brand-name, .admin-badge, .filter-chip, .class-chip-btn, [role="button"]) {
  font-weight: 500 !important;
}

body h1 {
  font-size: clamp(1.75rem, 2.4vw, 2rem) !important;
  line-height: 1.2;
}

body h2 {
  font-size: clamp(1.4rem, 2vw, 1.65rem) !important;
  line-height: 1.25;
}

body h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.3rem) !important;
  line-height: 1.3;
}

body h4 {
  font-size: 1.125rem !important;
  line-height: 1.35;
}

body h5 {
  font-size: 1rem !important;
  line-height: 1.4;
}

body h6 {
  font-size: 0.9375rem !important;
  line-height: 1.4;
}
