/* ===== CSS VARIABLES ===== */
:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C3A;
  --saffron-dark: #CC5500;
  --gold: #FFD700;
  --gold-light: #FFE44D;
  --cream: #FFF8E7;
  --cream-dark: #F5EDCF;
  --brown: #3B1F0A;
  --brown-light: #6B3A1F;
  --brown-mid: #8B4513;
  --text-dark: #2A1204;
  --text-mid: #5C3317;
  --text-light: #8B6040;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(59,31,10,0.13);
  --shadow-lg: 0 8px 40px rgba(59,31,10,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --nav-h: 70px;
  --font-sans: 'Poppins', sans-serif;
  --font-skt: 'Tiro Devanagari Sanskrit', serif;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-sans); border: none; outline: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--saffron); border-radius: 3px; }

/* ===== PAGE SYSTEM ===== */
.page { display: none; min-height: calc(100vh - var(--nav-h)); padding-top: var(--nav-h); }
.page.active { display: block; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: linear-gradient(135deg, var(--brown) 0%, #5A2E10 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.nav-logo-text { color: var(--gold); }
.nav-logo-text .site-name {
  font-family: var(--font-skt); font-size: 1.35rem; display: block; line-height: 1.1;
}
.nav-logo-text .site-tagline {
  font-size: 0.62rem; color: var(--cream); opacity: 0.8; display: block; font-style: italic;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links li { position: relative; }
.nav-links a, .nav-links .nav-btn {
  color: var(--cream); font-size: 0.82rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: var(--transition); display: block; white-space: nowrap;
  background: none; cursor: pointer;
}
.nav-links a:hover, .nav-links .nav-btn:hover {
  background: rgba(255,215,0,0.15); color: var(--gold);
}
.nav-links .nav-btn.active { color: var(--gold); background: rgba(255,215,0,0.1); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--brown); border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-sm); min-width: 180px;
  box-shadow: var(--shadow-lg); z-index: 100;
  overflow: hidden;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--cream);
  font-size: 0.8rem; transition: var(--transition);
  border-bottom: 1px solid rgba(255,215,0,0.08);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(255,107,0,0.2); color: var(--gold); }
.dropdown > .nav-btn::after { content: ' ▾'; font-size: 0.65rem; }


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: var(--transition); cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: var(--white); box-shadow: 0 4px 20px rgba(255,107,0,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,0,0.45); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #E6A800);
  color: var(--brown); box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,215,0,0.4); }
.btn-outline {
  border: 2px solid var(--saffron); color: var(--saffron); background: transparent;
}
.btn-outline:hover { background: var(--saffron); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ===== SECTION WRAPPER ===== */
.section { padding: 64px 24px; max-width: 1200px; margin: 0 auto; }

/* 🚀 NEW: Crush the 64px gap above Quick Access on desktop */
#page-home .section {
  padding-top: 32px;
}

.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--brown); line-height: 1.2;
}
.section-title .skt { font-family: var(--font-skt); color: var(--saffron); }
.section-title p { color: var(--text-light); margin-top: 10px; font-size: 1rem; }
.divider {
  width: 60px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  margin: 12px auto 0;
}

/* ===== CARD BASE ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===== BADGE ===== */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}
.badge-free { background: #e8f5e9; color: #2e7d32; }
.badge-paid { background: #fff3e0; color: #e65100; }
.badge-new { background: #e3f2fd; color: #1565c0; }

/* ===== HERO SECTION ===== */
.hero {
  min-height: auto;
  /*  cnange the original banner color */
  background: linear-gradient(129deg, #a00000ee 0%, #c81f0cef 30%, #d45901f4 65%, #c5930bf9 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1' fill='%23FFD700' opacity='0.08'/%3E%3Ccircle cx='10' cy='10' r='0.8' fill='%23FFD700' opacity='0.05'/%3E%3Ccircle cx='70' cy='70' r='0.8' fill='%23FFD700' opacity='0.05'/%3E%3Cpath d='M40 10 Q45 40 40 70' stroke='%23FF6B00' stroke-width='0.3' fill='none' opacity='0.06'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
/* Decorative circles */
.hero::after {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.07) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-content {
  text-align: center; padding: 30px 24px 20px; position: relative; z-index: 1;
  max-width: 800px;
}
/* 🚀 Shrink the logo on desktop */
.hero-lamp { margin-bottom: 24px; display: flex; justify-content: center; }
.hero-lamp svg { width: 115px; height: 115px; } /* NEW: Overrides HTML size 145px */

/* 🚀 Dial down the maximum font sizes */
.hero-heading {
  font-family: var(--font-skt); 
  font-size: clamp(2.4rem, 5vw, 4rem); /* Shrunk from (2.8rem, 6vw, 5rem) */
  color: var(--gold); line-height: 1.1; margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(255,215,0,0.4);
  animation: fadeUp 0.8s ease both;
}
.hero-tagline {
  font-family: var(--font-skt); 
  font-size: clamp(1rem, 2vw, 1.3rem); /* Shrunk from (1.1rem, 2.5vw, 1.6rem) */
  color: var(--cream); opacity: 0.9; margin-bottom: 16px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-sub {
  color: rgba(255,248,231,0.75); 
  font-size: clamp(0.85rem, 1.5vw, 1rem); /* Shrunk from (0.9rem, 2vw, 1.1rem) */
  margin-bottom: 12px; line-height: 1.6;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-sub br {
  display: none;
}

.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Devanagari chars */
.hero-floats {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-float {
  position: absolute; font-family: var(--font-skt);
  color: rgba(255,215,0,0.06); font-size: 5rem; user-select: none;
  animation: floatAnim 12s ease-in-out infinite;
}
@keyframes floatAnim {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== ABOUT BANNER ===== */
.about-banner {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--white); text-align: center; padding: 40px 32px;
}
.about-banner p {
  max-width: 800px; margin: 0 auto; font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.8; font-weight: 400;
}
.about-banner strong { font-weight: 700; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow); transition: var(--transition);
  border-top: 4px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-top-color: var(--saffron);
}
.feature-card:hover .svg-icon { transform: scale(1.1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.feature-card p { font-size: 0.87rem; color: var(--text-light); line-height: 1.6; }

/* ===== QUICK ACCESS ===== */
.quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.quick-card {
  background: linear-gradient(135deg, var(--white), var(--cream));
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  cursor: pointer; box-shadow: var(--shadow); transition: var(--transition);
  border: 3px solid rgba(215, 96, 4, 0.796);
}
.quick-card:hover {
  border-color: var(--saffron); 
  transform: translateY(-6px) scale(1.02); /* Floats up and slightly expands */
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.15); /* Soft saffron glow instead of dark shadow */
  background: linear-gradient(135deg, #FFF8E7, #FFF3E0);
}
.svg-icon {
  width: 48px; height: 48px; margin: 0 auto 16px;
  transition: var(--transition);
}
.quick-card:hover .svg-icon { transform: scale(1.1); }
.quick-card h3 { font-size: 1rem; font-weight: 700; color: var(--brown); }
.quick-card p { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* ===== COURSES PREVIEW ===== */
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.course-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-header {
  padding: 24px; background: linear-gradient(135deg, #092347, #ac3c05);
  position: relative;
}
.course-header h3 { color: var(--gold); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.course-header p { color: rgba(255,248,231,0.7); font-size: 0.8rem; }
.course-badge { position: absolute; top: 16px; right: 16px; }
.course-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.course-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-light); }
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.course-price .current { font-size: 1.5rem; font-weight: 800; color: var(--saffron); }
.course-price .og { font-size: 1.5rem; font-weight: 600; color: var(--text-light); text-decoration: line-through; }
.course-price .discount { font-size: 0.8rem; font-weight: 700; color: #D32F2F; background: #FFEBEE; padding: 4px 8px; border-radius: 4px; border: 1px solid #FFCDD2; }
.course-price.free-price { font-size: 1.5rem; font-weight: 800; color: #2e7d32; display: block; margin-bottom: 12px; }
.course-body .btn { margin-top: auto; justify-content: center; }

/* ===== SOCIAL BAR ===== */
.social-bar {
  background: var(--brown); padding: 40px 24px;
}
.social-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.social-inner h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 24px; font-weight: 700; }
.social-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,215,0,0.2);
  color: var(--cream); padding: 12px 24px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.social-link:hover { background: rgba(255,107,0,0.2); color: var(--gold); border-color: var(--saffron); transform: translateY(-2px); }
.social-icon { width: 22px; height: 22px; }

/* ===== STUDY MATERIALS PAGE ===== */
.tabs-container { margin-bottom: 40px; }
.tabs-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--cream-dark); padding: 6px; border-radius: 50px;
  width: fit-content; margin: 0 auto 32px;
}
.tab-btn {
  padding: 10px 22px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-mid); background: none; transition: var(--transition);
}
.tab-btn.active { background: var(--saffron); color: var(--white); box-shadow: 0 2px 12px rgba(255,107,0,0.3); }
.tab-btn:hover:not(.active) { background: rgba(255,107,0,0.1); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.notes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.note-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: var(--transition); border-left: 4px solid var(--saffron);
}
.note-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.note-card h4 { font-family: var(--font-skt); font-size: 1.15rem; color: var(--brown); margin-bottom: 6px; }
.note-card p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }

.pyq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.pyq-card {
  background: var(--white); border-radius: var(--radius); padding: 20px; text-align: center;
  box-shadow: var(--shadow); transition: var(--transition);
}
.pyq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pyq-card .year { font-size: 1.8rem; font-weight: 800; color: var(--saffron); display: block; }
.pyq-card p { font-size: 0.78rem; color: var(--text-light); margin: 4px 0 12px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.video-thumb {
  background: linear-gradient(135deg, var(--brown), var(--saffron-dark));
  height: 160px; display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer;
}
.video-thumb .play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,215,0,0.9); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: var(--transition);
}
.video-thumb:hover .play-btn { transform: scale(1.1); background: var(--gold); }
.video-info { padding: 14px 16px; }
.video-info h4 { font-size: 0.88rem; font-weight: 600; color: var(--brown); margin-bottom: 4px; }
.video-info p { font-size: 0.76rem; color: var(--text-light); }

/* ===== MOCK TEST PAGE ===== */
.test-categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.test-cat-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 20px;
  text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: var(--transition);
  position: relative; overflow: hidden;
}
.test-cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  opacity: 0; transition: var(--transition);
}
.test-cat-card:hover::before { opacity: 0.08; }
.test-cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--saffron); }
.test-cat-card { border: 2px solid transparent; }
.test-cat-card:hover { border-color: var(--saffron); }
.test-cat-icon { font-size: 2.4rem; margin-bottom: 12px; position: relative; }
.test-cat-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--brown); position: relative; }
.test-cat-card p { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; position: relative; }
.test-cat-card .q-count {
  display: inline-block; background: var(--saffron); color: var(--white);
  font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 50px;
  margin-top: 10px; position: relative;
}
/* --- PREMIUM LOCK OVERLAY --- */
.test-cat-card.locked-card {
  filter: grayscale(80%);
  cursor: pointer;
}
.test-cat-card.locked-card::after {
  content: '🔒';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.1rem;
  background: var(--white);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid var(--cream-dark);
}

/* Test Interface */
#test-interface { display: none; }
#test-interface.active { display: block; }


.test-header {
  background: linear-gradient(135deg, var(--brown), #5A2E10);
  color: var(--white); padding: 16px 24px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.test-header h3 { color: var(--gold); font-size: 1rem; font-weight: 700; }
.test-timer {
  font-size: 1.4rem; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.test-timer.warning { color: #FF4444; animation: pulse 1s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.test-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
@media (max-width: 900px) { .test-layout { grid-template-columns: 1fr; } }

.test-main {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  /* Anti-Copy Protection */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.question-number { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.question-text {
  font-size: 1.05rem; font-weight: 600; color: var(--brown);
  line-height: 1.7; margin-bottom: 24px; font-family: var(--font-skt);
}
.options-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.option-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 2px solid var(--cream-dark); cursor: pointer; transition: var(--transition);
  font-size: 0.95rem; color: var(--text-dark);
}
.option-item:hover { border-color: var(--saffron); background: #FFF3E0; }
.option-item.selected { border-color: var(--saffron); background: #FFF3E0; }
.option-item.correct { border-color: #4CAF50; background: #E8F5E9; color: #1B5E20; }
.option-item.wrong { border-color: #F44336; background: #FFEBEE; color: #B71C1C; }
.option-item.reveal-correct { border-color: #4CAF50; background: #E8F5E9; color: #1B5E20; }
.option-label {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0; transition: var(--transition);
}
.option-item.selected .option-label { background: var(--saffron); color: var(--white); }
.option-item.correct .option-label { background: #4CAF50; color: var(--white); }
.option-item.wrong .option-label { background: #F44336; color: var(--white); }
.option-item.reveal-correct .option-label { background: #4CAF50; color: var(--white); }

.test-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mark-review-btn {
  background: none; border: 2px solid #9C27B0; color: #9C27B0;
  padding: 8px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  transition: var(--transition);
}
.mark-review-btn:hover, .mark-review-btn.marked { background: #9C27B0; color: var(--white); }
.nav-test-btn {
  padding: 10px 22px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.btn-prev { background: var(--cream-dark); color: var(--brown); }
.btn-prev:hover { background: var(--cream); }
.btn-next { background: var(--saffron); color: var(--white); }
.btn-next:hover { background: var(--saffron-dark); }
.btn-submit { background: #4CAF50; color: var(--white); }
.btn-submit:hover { background: #388E3C; }

.explanation-box {
  margin-top: 16px; padding: 14px 18px;
  background: #F3E5F5; border-left: 4px solid #9C27B0; border-radius: var(--radius-sm);
  font-size: 0.87rem; color: #4A148C; display: none; line-height: 1.6;
}
.explanation-box.visible { display: block; }

/* Question Palette */
.test-sidebar {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); height: fit-content; position: sticky; top: calc(var(--nav-h) + 20px);
}
.sidebar-title { font-size: 0.85rem; font-weight: 700; color: var(--brown); margin-bottom: 16px; }
.palette-grid { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 6px; 
  margin-bottom: 16px; 
  max-height: 250px; /* Locks height to exactly 6 rows (30 questions) */
  overflow-y: auto;  /* Turns on vertical scrolling */
  padding: 4px; /* FIX: Gives the active outline room to render without getting cut */
  padding-right: 8px; /* Prevents scrollbar from overlapping buttons */
}

/* Beautiful custom thin scrollbar specifically for the palette */
.palette-grid::-webkit-scrollbar { width: 5px; }
.palette-grid::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 10px; }
.palette-grid::-webkit-scrollbar-thumb { background: var(--saffron-light); border-radius: 10px; }
.palette-item {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  background: var(--cream-dark); color: var(--text-mid); border: none;
}
.palette-item.answered { background: var(--saffron); color: var(--white); }
.palette-item.marked { background: #9C27B0; color: var(--white); }
.palette-item.answered-marked { background: #9C27B0; color: var(--white); position: relative; }
.palette-item.answered-marked::after {
  content: ''; position: absolute; bottom: 2px; right: 2px;
  width: 8px; height: 8px; background: #4CAF50; border-radius: 50%; border: 1px solid var(--white);
}
.legend-dot.answered-marked { background: #9C27B0; position: relative; }
.legend-dot.answered-marked::after {
  content: ''; position: absolute; bottom: -2px; right: -2px;
  width: 6px; height: 6px; background: #4CAF50; border-radius: 50%; border: 1px solid var(--white);
}
.palette-item.current { outline: 2px solid var(--brown); outline-offset: 2px; }

.palette-legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; }
.legend-item { display: flex; align-items: center; gap: 8px; color: var(--text-light); }
.legend-dot { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.legend-dot.unanswered { background: var(--cream-dark); }
.legend-dot.answered { background: var(--saffron); }
.legend-dot.marked { background: #9C27B0; }

/* Results */
.results-container {
  background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
  /* Anti-Copy Protection */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.score-circle {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--saffron) var(--pct, 0%), var(--cream-dark) 0%);
  position: relative;
}
.score-circle::before {
  content: ''; position: absolute;
  width: 120px; height: 120px; border-radius: 50%; background: var(--white);
}
.score-inner { position: relative; text-align: center; }
.score-inner .num { font-size: 1.8rem; font-weight: 800; color: var(--saffron); display: block; }
.score-inner .lbl { font-size: 0.7rem; color: var(--text-light); }
.results-stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.stat-box { text-align: center; padding: 16px 24px; background: var(--cream); border-radius: var(--radius-sm); }
.stat-box .val { font-size: 1.4rem; font-weight: 800; color: var(--brown); display: block; }
.stat-box .key { font-size: 0.75rem; color: var(--text-light); }
.results-review h3 { font-size: 1rem; font-weight: 700; color: var(--brown); margin-bottom: 16px; }
.review-item { border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.review-item.correct-ans { background: #E8F5E9; border-left: 4px solid #4CAF50; }
.review-item.wrong-ans { background: #FFEBEE; border-left: 4px solid #F44336; }
.review-item.skipped-ans { background: #F5F5F5; border-left: 4px solid #9E9E9E; }
.review-q { font-size: 0.88rem; font-weight: 600; color: var(--brown); margin-bottom: 6px; font-family: var(--font-skt); }
.review-ans { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 4px; }
.review-exp { font-size: 0.78rem; color: #7B1FA2; margin-top: 6px; font-style: italic; }

/* ===== COURSES PAGE ===== */
.all-courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}

/* ===== FREE SERVICES PAGE ===== */
.free-section { margin-bottom: 48px; }
.free-section h3 {
  font-size: 1.3rem; font-weight: 700; color: var(--brown); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.free-section h3::after {
  content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--saffron), transparent);
}

/* ===== DASHBOARD PAGE ===== */
.dashboard-hero {
  background: linear-gradient(135deg, var(--brown), #5A2E10);
  padding: 48px 32px; text-align: center; border-radius: var(--radius);
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.dashboard-hero::before {
  content: 'ॐ'; font-family: var(--font-skt); position: absolute;
  font-size: 20rem; color: rgba(255,215,0,0.03); top: -50px; right: -20px;
  line-height: 1;
}
.dashboard-hero h2 { color: var(--gold); font-size: 1.6rem; margin-bottom: 6px; position: relative; }
.dashboard-hero p { color: rgba(255,248,231,0.75); position: relative; }
.dashboard-hero .quote {
  font-family: var(--font-skt); font-size: 1.1rem; color: rgba(255,215,0,0.6);
  margin-top: 12px; position: relative;
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.stat-card .icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--saffron); display: block; }
.stat-card .label { font-size: 0.82rem; color: var(--text-light); }

.name-setup { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center; margin-bottom: 24px; }
.name-setup h3 { color: var(--brown); margin-bottom: 16px; }
.name-input {
  border: 2px solid var(--cream-dark); border-radius: 50px; padding: 12px 20px;
  font-family: var(--font-sans); font-size: 0.95rem; width: 100%; max-width: 320px;
  outline: none; transition: var(--transition); color: var(--text-dark);
  background: var(--cream);
}
.name-input:focus { border-color: var(--saffron); }

#history-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.history-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.history-table th { background: var(--brown); color: var(--gold); padding: 14px 16px; font-size: 0.85rem; text-align: left; white-space: nowrap; }
.history-table td { padding: 12px 16px; font-size: 0.85rem; border-bottom: 1px solid var(--cream-dark); }
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:nth-child(even) td { background: var(--cream); }

/* ===== SUBJECT ANALYTICS ===== */
.analytics-item { margin-bottom: 18px; }
.analytics-item:last-child { margin-bottom: 0; }
.analytics-header { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: var(--brown); 
}
.analytics-header .pct { 
  color: var(--saffron); font-weight: 800; font-variant-numeric: tabular-nums; 
}
.progress-track { 
  width: 100%; height: 10px; background: var(--cream-dark); 
  border-radius: 10px; overflow: hidden; 
}
.progress-fill { 
  height: 100%; border-radius: 10px; 
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); 
}
/* Dynamic Performance Colors */
.fill-red { background: linear-gradient(90deg, #FFCDD2, #F44336); }
.fill-orange { background: linear-gradient(90deg, #FFE0B2, #FF9800); }
.fill-green { background: linear-gradient(90deg, #C8E6C9, #4CAF50); }

/* ===== ABOUT PAGE ===== */
.about-story {
  background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
  margin-bottom: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 700px) { .about-story { grid-template-columns: 1fr; } }
.about-story-text h2 { color: var(--brown); font-size: 1.4rem; margin-bottom: 16px; }
.about-story-text p { color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; }
.about-art { text-align: center; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
@media (max-width: 600px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--saffron); }
.mv-card h3 { color: var(--brown); margin-bottom: 10px; font-size: 1.05rem; }
.mv-card p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.7; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.team-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--saffron), var(--gold)); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.team-card h4 { color: var(--brown); font-weight: 700; margin-bottom: 4px; }
.team-card p { color: var(--text-light); font-size: 0.8rem; }

/* ===== CONTACT PAGE ===== */
/* Desktop: Grid Layout */
.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 32px 40px; 
}
/* Pin "Get In Touch" to top left */
#contact-get-in-touch { grid-column: 1; grid-row: 1; }
/* Pin "Follow Us" to bottom left */
#contact-follow-us { grid-column: 1; grid-row: 2; align-self: start; }
/* Stretch "Contact Form" across the entire right side */
#contact-form-block { grid-column: 2; grid-row: 1 / span 2; }

/* Mobile Layout: Flex Column Reordering */
@media (max-width: 700px) { 
  .contact-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 32px; 
  }
  #contact-get-in-touch { order: 1; } /* First */
  #contact-form-block { order: 2; }   /* Second */
  #contact-follow-us { order: 3; }    /* Last */
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { color: var(--brown); font-size: 1.2rem; margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--saffron), var(--saffron-dark)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--white); flex-shrink: 0; }
.contact-item-text strong { display: block; color: var(--brown); font-size: 0.9rem; }
.contact-item-text span { color: var(--text-light); font-size: 0.85rem; }
/* Contact page specific overrides for social links (light background) */
.contact-info .social-link {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  color: var(--brown);
}
.contact-info .social-link:hover {
  background: #FFF3E0;
  color: var(--saffron);
  border-color: var(--saffron);
}

.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { color: var(--brown); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; border: 2px solid var(--cream-dark); border-radius: var(--radius-sm);
  padding: 10px 14px; font-family: var(--font-sans); font-size: 0.9rem;
  color: var(--text-dark); background: var(--cream); outline: none; transition: var(--transition);
}
.form-input:focus, .form-textarea:focus { border-color: var(--saffron); background: var(--white); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--brown) 0%, #2A1204 100%);
  color: var(--cream); padding: 48px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { 
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } 
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .site-name { font-family: var(--font-skt); font-size: 1.3rem; color: var(--gold); margin-bottom: 6px; }
.footer-brand .tagline { font-size: 0.8rem; color: rgba(255,248,231,0.6); margin-bottom: 12px; font-style: italic; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,248,231,0.55); line-height: 1.7; }
.footer-col h4 { color: var(--gold); font-size: 0.9rem; margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,248,231,0.6); font-size: 0.82rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,215,0,0.1); padding-top: 20px; text-align: center; color: rgba(255,248,231,0.4); font-size: 0.78rem; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  
  .section { padding: 48px 16px; }
  .test-layout { grid-template-columns: 1fr; }
  .test-sidebar { position: static; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
/* Mobile App Grid Overrides (For Phones specifically) */
@media (max-width: 600px) {
  /* 1. Quick Access: 3 rows of 2 */
  .quick-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  .quick-card { 
    padding: 20px 10px; 
  }
  .quick-card h3 { 
    font-size: 0.9rem; 
  }
  .quick-card p {
    font-size: 0.7rem;
  }
  .svg-icon { 
    width: 36px; height: 36px; margin-bottom: 12px; 
  }
  
  /* 2. Why Choose Us: 2 rows of 2 */
  .features-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  .feature-card { 
    padding: 24px 12px; 
  }
  .feature-card h3 { 
    font-size: 0.9rem; 
  }
  .feature-card p {
    font-size: 0.75rem; line-height: 1.4;
  }
  /* 3. Dashboard Stats: 2 columns (5th item spans full width) */
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  .stat-card { 
    padding: 16px 12px; 
  }
  .stat-card .icon { 
    font-size: 1.5rem; margin-bottom: 4px; 
  }
  .stat-card .value { 
    font-size: 1.5rem; 
  }
  .stat-card .label { 
    font-size: 0.7rem; 
  }
  

  /* 4. Mock Tests & Free Services Grids: 2 columns */
  .test-categories-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  .test-cat-card { 
    padding: 16px 10px; 
  }
  .test-cat-icon { 
    font-size: 1.8rem; margin-bottom: 8px; 
  }
  .test-cat-card h3 { 
    font-size: 0.85rem; 
  }
  .test-cat-card p { 
    font-size: 0.7rem; margin-top: 2px; 
  }
  .test-cat-card .q-count { 
    font-size: 0.65rem; padding: 2px 8px; margin-top: 8px; 
  }
  /* 5. Dashboard fixes for mobile */
  .history-table th, .history-table td { padding: 10px; font-size: 0.75rem; }
  .name-setup, .dashboard-hero { padding: 32px 16px; }
  /* 6. Mobile Tabs: Smooth Horizontal Scroll */
  .tabs-nav {
    width: 100%; 
    flex-wrap: nowrap; 
    justify-content: flex-start;
    padding: 6px;
    border-radius: 12px;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    gap: 8px;
    scroll-snap-type: x mandatory;
  }
  .tabs-nav::-webkit-scrollbar { display: none; } 
  
  .tab-btn {
    flex: 0 0 auto; 
    padding: 8px 16px; 
    font-size: 0.8rem; 
    white-space: nowrap; 
    border-radius: 8px;
    scroll-snap-align: start;
  }

  /* 7. Home Courses Carousel (Mobile Only) */
  #home-courses-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 20px; /* Leaves room so the drop-shadow isn't cut off */
    /* Edge-to-edge scroll trick: breaks out of the section padding */
    margin-left: -16px; 
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* 8. Results Page Mobile Optimizations (Anti-Scroll) */
  .results-container {
    padding: 24px 10px !important; /* Removes the massive outer side gaps */
  }
  .review-item {
    padding: 16px 10px !important; /* Removes side padding on the individual cards */
    margin-left: -4px; /* Pulls cards tight to the edges */
    margin-right: -4px;
  }
  
  /* Force long compound words or URLs to break instead of stretching the screen */
  .review-q, .review-ans, .review-exp {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* Hide the ugly default scrollbar */
  #home-courses-grid::-webkit-scrollbar {
    display: none; 
  }
  
  #home-courses-grid .course-card {
    /* 85% width forces the edge of the NEXT card to peek out, telling the user to swipe! */
    flex: 0 0 85%; 
    scroll-snap-align: center;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeIn 0.5s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.scale-in { animation: scaleIn 0.4s ease both; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.fade-in-up { animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes fadeInUp { 
  from { opacity: 0; transform: translateY(20px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* ===== LOADING SPINNER ===== */
.loading-overlay {
  display: none; position: fixed; inset: 0; background: rgba(255,248,231,0.9);
  z-index: 3500; align-items: center; justify-content: center; flex-direction: column;
}
.spinner {
  width: 50px; height: 50px; border: 5px solid var(--cream-dark);
  border-top-color: var(--saffron); border-radius: 50%;
  animation: spin 1s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-weight: 700; color: var(--brown); font-family: var(--font-skt); }


/* ===== LAMP SVG glow ===== */
.lamp-svg { filter: drop-shadow(0 0 12px rgba(255,215,0,0.6)); }
.lamp-flame { animation: flicker 2s ease-in-out infinite; transform-origin: center bottom; }
@keyframes flicker {
  0%,100% { transform: scale(1) rotate(-2deg); }
  25% { transform: scale(1.05,0.95) rotate(2deg); }
  50% { transform: scale(0.95,1.05) rotate(-1deg); }
  75% { transform: scale(1.03,0.97) rotate(1deg); }
}
/* ===== TOAST NOTIFICATIONS & MODALS ===== */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast { background: #269b17; color: var(--white); padding: 14px 24px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); font-size: 0.9rem; border-left: 4px solid var(--saffron); font-weight: 500; }.toast.show { transform: translateX(0); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 3500; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 20px; }
.modal-content { background: var(--white); padding: 32px; border-radius: var(--radius); max-width: 400px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); animation: scaleIn 0.3s ease; }

/* ==========================================
   MOBILE BOTTOM NAVIGATION & DRAWER
   ========================================== */
.bottom-nav-material, .drawer-overlay, .more-drawer { display: none; }

@media (max-width: 768px) {
    
  /* 2. Add bottom padding to pages so content isn't covered by the bar */
  .page { padding-bottom: 90px; }
  footer { padding-bottom: 100px; }

  /* 3. Dark Premium Bottom Nav Styles */
  .bottom-nav-material {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1005;
    background: var(--brown); box-shadow: 0 -4px 20px rgba(59,31,10,0.3);
    justify-content: space-between; padding: 0 10px; height: 70px;
    padding-bottom: env(safe-area-inset-bottom, 12px); /* iPhone safe area support */
    transform: translateZ(0); -webkit-transform: translateZ(0); /* Hardware lock to prevent disappearing */
  }
  .mat-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    cursor: pointer; transition: 0.3s ease; flex: 1; position: relative;
    color: rgba(255,248,231,0.5); /* Faded cream */
  }
  .mat-item::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; border-radius: 0 0 4px 4px; transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    background: var(--gold);
  }
  .mat-item.active::before { width: 32px; }
  .mat-item.active { color: var(--gold); }
  .mat-icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; transition: 0.3s ease; }
  .mat-item.active .mat-icon { transform: translateY(-3px); }
  .mat-label { font-size: 0.65rem; font-weight: 500; transition: 0.3s ease; }
  .mat-item.active .mat-label { font-weight: 600; }

  /* 4. Slide-Up "More" Drawer Styles */
  .drawer-overlay {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 1000; opacity: 0; pointer-events: none; transition: 0.3s;
  }

  /* 🚀 NEW: Add this missing line back! It makes the overlay clickable */
  .drawer-overlay.open { opacity: 1; pointer-events: all; }
  /* Update bottom and padding */
  .more-drawer {
    display: block; position: fixed; left: 0; right: 0;
    
    /* 🚀 PROACTIVE FIX: Hard-lock it to the exact height of the nav bar */
    bottom: 70px;  
    
    background: var(--white); border-radius: 24px 24px 0 0;
    
    /* 🚀 NEW: Standardized padding since it's no longer touching the phone edge */
    padding: 24px; 
    
    z-index: 1001; 
    transform: translateY(100%); transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  }
  .more-drawer.open { transform: translateY(0); }
  .drawer-handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 0 auto 20px; }
  .drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .drawer-btn {
    background: var(--cream); border-radius: 12px; padding: 16px;
    text-align: center; color: var(--brown); font-size: 0.8rem; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; gap: 8px; border: none; cursor: pointer;
  }
  .drawer-btn:active { background: #FFF3E0; }
  .drawer-btn svg { width: 24px; height: 24px; stroke: var(--saffron); stroke-width: 2; fill: none; }
}

/* ==========================================
   === SOFT & ELEGANT NOTIFICATION DESIGN ===
   ========================================== */
.elegant-notify-card {
  background: linear-gradient(145deg, #FFFCF5, #FFF5E6);
  border: 1px solid #F5E6D3;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.elegant-notify-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.08);
}

/* Subtle left accent line */
.elegant-notify-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brown);
  border-radius: 4px 0 0 4px;
  opacity: 0.8;
}

.elegant-notify-title {
  color: var(--brown);
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.elegant-notify-msg {
  color: #5D4037;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.elegant-notify-link {
  display: inline-block;
  background: white;
  border: 1px solid #E8D5C4;
  color: #D32F2F;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.elegant-notify-link:hover {
  background: #FFF0E6;
  border-color: #D32F2F;
}

.elegant-notify-date {
  font-size: 0.75rem;
  color: #A1887F;
  margin-top: 10px;
  font-style: italic;
}

/* ==========================================
   === PREMIUM NAVBAR UI (BELL & DROPDOWN) ===
   ========================================== */

/* The Notification Bell */
.nav-bell-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  position: relative;
  padding: 8px;
  margin-right: 12px;
  transition: transform 0.2s;
  /* 🚀 UI FIX: Forces the SVG to perfectly center vertically and horizontally! */
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-bell-btn:hover {
  transform: scale(1.1);
}
.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #FF5252;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  display: none; 
}

/* User Dropdown Container */
.user-menu-container {
  position: relative;
  display: inline-block;
}

/* The actual dropdown box */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
  z-index: 2000;
  overflow: hidden;
  flex-direction: column;
}

/* Dropdown showing state (Triggered by JavaScript) */
.dropdown-content.show {
  display: flex;
  animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dropdown items */
.dropdown-content a {
  color: var(--text-dark);
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background 0.2s;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
.dropdown-content a:last-child {
  border-bottom: none;
}
.dropdown-content a:hover {
  background-color: var(--cream);
  color: var(--saffron);
}

/* ==========================================
   === MOBILE TOP NAVBAR FIX ===
   ========================================== */
@media (max-width: 600px) {
  /* 1. Give the edges more breathing room */
  .nav-inner {
    padding: 0 12px;
  }
  
  /* 2. Prevent the Logo text from stacking & scale it nicely */
  .nav-logo svg {
    width: 36px; 
    height: 36px;
  }
  .nav-logo-text .site-name {
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .nav-logo-text .site-tagline {
    font-size: 0.55rem;
    white-space: nowrap;
  }
  
  /* 3. Force the "Hi, Name" button to stay on ONE line */
  #nav-user-name-btn {
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
  }
  
  /* 4. Tighten up the Bell Icon spacing so everything fits */
  .nav-bell-btn {
    margin-right: 4px !important;
    padding: 4px !important;
    font-size: 1.3rem;
  }
  #nav-user-menu {
    margin-right: 0 !important;
  }
}

/* ==========================================
   === SKELETON LOADER ANIMATION ===
   ========================================== */

/* The sweeping light animation */
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* The base gray box */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--cream-dark); /* Matches your theme */
  border-radius: 4px;
}

/* The light beam that sweeps across */
.skeleton::after {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.5s infinite;
}

/* Specific Skeleton Card Layouts */
.skel-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 180px; /* Rough height of your actual cards */
}

/* Individual ghost elements inside the card */
.skel-icon { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto; }
.skel-title { width: 70%; height: 20px; margin: 0 auto; }
.skel-text { width: 100%; height: 14px; }
.skel-text-short { width: 80%; height: 14px; margin: 0 auto; }
.skel-button { width: 120px; height: 32px; border-radius: 50px; margin: auto auto 0; }

/* ==========================================
   === NATIVE APP TEST UI UPGRADE ===
   ========================================== */

/* DESKTOP: Fixed height card with internal scroll */
.test-main {
  display: flex;
  flex-direction: column;
  height: 75vh;
  min-height: 550px;
}
.test-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 12px;
  margin-bottom: 16px;
}
.test-scroll-area::-webkit-scrollbar { width: 6px; }
.test-scroll-area::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 10px; }
.test-scroll-area::-webkit-scrollbar-thumb { background: var(--saffron-light); border-radius: 10px; }

/* Pin actions to the bottom of the card */
.test-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
  background: var(--white);
}
.btn-palette-toggle { display: none; } /* Hidden on desktop */
.mobile-palette-close { display: none; }

/* MOBILE: Full Screen Immersive Mode */
@media (max-width: 900px) {
  /* Hide regular navigation & footer when test is active */
  body.test-mode-active #navbar,
  body.test-mode-active .bottom-nav-material,
  body.test-mode-active footer,
  body.test-mode-active .section-title { /* <--- FIX: Hides the stray text! */
    display: none !important;
  }
  body.test-mode-active .page,
  body.test-mode-active .section {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  /* Fix Header to Top Edge */
  body.test-mode-active .test-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 2000; border-radius: 0; margin: 0;
    padding: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  
  /* Show the subtitle and force text truncation if it's too long */
  body.test-mode-active .test-header h3 { 
    font-size: 0.9rem; margin-bottom: 2px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
  }
  body.test-mode-active .test-header p { 
    display: block !important; font-size: 0.75rem; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
  } 

  /* Let body scroll naturally between fixed header and footer */
  body.test-mode-active .test-main {
    height: auto; min-height: 100vh;
    padding: 68px 16px 90px 16px; /* FIX: Reduced padding removes the gap */
    box-shadow: none; background: transparent; border-radius: 0;
  }
  body.test-mode-active .test-scroll-area {
    overflow-y: visible; padding-right: 0;
  }

  /* Fix Action Bar to Bottom Edge */
  body.test-mode-active .test-actions {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 2000; padding: 12px 16px; margin: 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    justify-content: space-between;
  }

  /* Mobile Button Resizing */
  body.test-mode-active .nav-test-btn,
  body.test-mode-active .mark-review-btn {
    padding: 10px 14px; font-size: 0.85rem;
  }
  .btn-palette-toggle {
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-dark); color: var(--brown); border: none;
    border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem;
  }

  /* Slide-Up Bottom Sheet Palette */
  .palette-overlay {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 2500; opacity: 0; pointer-events: none; transition: 0.3s;
  }
  body.palette-open .palette-overlay {
    opacity: 1; pointer-events: all;
  }
  
  body.test-mode-active .test-sidebar {
    position: fixed; 
    bottom: 64px; /* Sits perfectly above the bottom action bar */
    left: 0; 
    right: 0; 
    top: auto; /* FIX: Tells the browser to forget the desktop 'top' rule */
    z-index: 3000; transform: translateY(100%);
    visibility: hidden; opacity: 0; 
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0.3s, opacity 0.3s;
    max-height: 80vh; overflow-y: auto; margin: 0;
    border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
  }
  body.test-mode-active .test-sidebar.open { 
    transform: translateY(0); 
    visibility: visible; opacity: 1; 
  }
}

/* ==========================================
   === DESKTOP PALETTE SAFEGUARD ===
   ========================================== */
@media (min-width: 901px) {
  /* ==========================================
     === DESKTOP FOCUS MODE ===
     ========================================== */
  /* Hide the navbar, footer, and top page headers when a test is active */
  body.test-mode-active #navbar,
  body.test-mode-active footer,
  body.test-mode-active .page > .text-center,
  body.test-mode-active .section-title {
    display: none !important;
  }

  /* Remove the default navbar spacing */
  body.test-mode-active .page {
    padding-top: 0 !important;
  }

  /* Fix the Test Header to the top edge */
  body.test-mode-active .test-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    border-radius: 0;
    margin: 0;
    /* Magic padding: keeps text aligned with the central test card while the background stretches */
    padding: 16px max(24px, calc((100vw - 1200px) / 2));
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

  /* Push the test card down so it isn't hidden underneath the new fixed header */
  body.test-mode-active .test-layout {
    margin-top: 100px;
  }
  /* Force the desktop palette to remain a standard, sticky sidebar */
  .test-sidebar,
  body.test-mode-active .test-sidebar {
    position: sticky !important;
    top: 100px !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 75vh !important;
    min-height: 550px !important;
    overflow-y: auto !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    margin: 0 !important;
    background: var(--white) !important;
  }

  /* Hide the dark mobile overlay on desktop completely */
  .palette-overlay {
    display: none !important;
  }

  /* Give the desktop palette a beautiful custom scrollbar */
  .test-sidebar::-webkit-scrollbar { width: 6px; }
  .test-sidebar::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 10px; }
  .test-sidebar::-webkit-scrollbar-thumb { background: var(--saffron-light); border-radius: 10px; }
}

/* ==========================================
   === NATIVE HTML TABLE RESPONSIVENESS ===
   ========================================== */
.question-text table,
.explanation-box table,
.options-list table,
.results-review table,
#saved-qs-container table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  
  /* The Magic Trick for Mobile Horizontal Scroll */
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap; /* Keeps table columns from squishing */
}

.question-text th, .question-text td,
.explanation-box th, .explanation-box td,
.results-review th, .results-review td,
#saved-qs-container th, #saved-qs-container td {
  border: 1px solid var(--cream-dark);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-dark);
}

/* Beautiful Header Styling */
.question-text th,
.explanation-box th,
.results-review th,
#saved-qs-container th {
  background-color: var(--cream);
  font-weight: 700;
  color: var(--brown);
}

/* ==========================================
   === IRONCLAD MOBILE ANTI-SCROLL FIX ===
   ========================================== */
@media (max-width: 900px) {
  /* 1. Lock the master browser viewport */
  html, body {
    max-width: 100%; /* FIX: Changed 100vw to 100% to respect desktop scrollbars */
    overflow-x: hidden !important;
  }

  /* 2. Build an invisible wall around the cards so tables cannot stretch them */
  .page,
  .section,
  .test-main,
  .results-container,
  .review-item,
  #saved-qs-container > div {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden !important; /* Traps the table inside the card */
  }

  /* 3. Allow the specific text zones holding the tables to scroll smoothly */
  .question-text,
  .options-list,
  .explanation-box,
  .review-q,
  .review-ans,
  .review-exp {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================
   === 🚀 UNIVERSAL TEST OVERLAY SYSTEM ===
   ========================================== */
.test-overlay-system {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  z-index: 900; /* Floats above content, but safely BELOW the top navbar (1000) */
  background: var(--cream);
  overflow-y: auto;
  padding: 24px;
  overscroll-behavior: contain; /* 🚀 UX FIX: Stops the background website from scrolling! */
}

/* Mobile Adjustments: Keep Bottom Nav visible unless taking a test */
@media (max-width: 900px) {
  .test-overlay-system {
    padding: 16px 12px;
    height: calc(100vh - var(--nav-h) - 65px); /* Leaves room for bottom nav */
  }
}

/* IMMERSIVE MODE: Only goes full screen when a test is ACTUALLY running */
body.test-mode-active .test-overlay-system {
  top: 0;
  height: 100vh; /* Fallback for older phones */
  height: 100dvh; /* 🚀 UX FIX: Solves mobile Safari/Chrome URL bar cut-off! */
  z-index: 2500; /* Covers the navbar and bottom nav completely */
}

/* ==========================================
   === 🧠 AI BOOSTER SKELETON LOADER ===
   ========================================== */
.ai-loader-container {
  grid-column: 1 / -1; /* Forces it to span the entire width of the grid */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.05), rgba(21, 101, 192, 0.05));
  border: 2px dashed rgba(156, 39, 176, 0.3); text-align: center;
}

.ai-core-scanner {
  position: relative; width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}

.ai-brain-icon {
  font-size: 3.5rem; z-index: 2;
  animation: floatBrain 2s ease-in-out infinite alternate;
}

.ai-scan-ring {
  position: absolute; inset: 0; border: 3px solid #9C27B0; border-radius: 50%; opacity: 0;
  animation: scanPulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.ai-scan-ring.delay-1 { animation-delay: 1s; border-color: #1565C0; }

.ai-loading-title {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 24px;
  background: linear-gradient(90deg, #9C27B0, #1565C0, #9C27B0);
  background-size: 200% auto;
  
  /* 🚀 FIX: Add standard properties to satisfy VS Code */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  
  animation: gradientText 2s linear infinite;
}

.ai-loading-steps {
  display: flex; flex-direction: column; gap: 14px; text-align: left;
  width: 100%; max-width: 300px;
}

.ai-step {
  font-size: 0.9rem; color: var(--text-mid);
  display: flex; align-items: center; gap: 12px; opacity: 0.5; font-weight: 500;
  transition: 0.3s ease;
}
.ai-step::before { content: '⚙️'; font-size: 1.1rem; filter: grayscale(100%); }

.ai-step.active { opacity: 1; color: #9C27B0; font-weight: 700; }
.ai-step.active::before { content: '⚡'; filter: none; animation: wiggle 0.5s ease-in-out infinite alternate; }

.ai-step.done { opacity: 1; color: #4CAF50; }
.ai-step.done::before { content: '✅'; filter: none; }

/* AI Animations */
@keyframes scanPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes floatBrain {
  0% { transform: translateY(5px) scale(0.95); }
  100% { transform: translateY(-5px) scale(1.05); }
}
@keyframes gradientText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes wiggle {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(15deg); }
}

/* ==========================================
   === 📈 ANALYTICS MINI-TABS ===
   ========================================== */
.analytics-tabs {
  display: flex; gap: 4px; background: rgba(0,0,0,0.04); 
  padding: 4px; border-radius: 50px;
}
.a-tab {
  padding: 6px 16px; border-radius: 50px; border: none; background: transparent; 
  font-size: 0.8rem; font-weight: 600; color: var(--text-mid); cursor: pointer; transition: 0.2s;
}
.a-tab.active {
  background: var(--white); color: var(--saffron); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ==========================================
   === MOBILE HERO SHRINK (APPROACH 1) ===
   ========================================== */
@media (max-width: 600px) {
  /* 1. Reduce the padding inside the banner (crushed the bottom padding to 12px) */
  .hero-content {
    padding: 20px 16px 12px;
  }
  
  /* 2. Shrink the Lamp Logo using CSS */
  .hero-lamp {
    margin-bottom: 12px;
  }
  .hero-lamp svg {
    width: 90px;
    height: 90px;
  }
  
  /* 3. Shrink the minimum font sizes and margins between texts */
  .hero-heading {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 8px;
  }
  .hero-tagline {
    font-size: clamp(1rem, 4vw, 1.1rem);
    margin-bottom: 8px;
  }
  .hero-sub {
    margin-bottom: 8px; /* Reduced from 20px */
    font-size: 0.9rem;
  }
  .hero-sub br {
    display: none; /* Hides the invisible line break you had in HTML */
  }

  /* 4. Cut the huge 48px gap above the "Quick Access" title */
  #page-home .section {
    padding-top: 16px; 
  }
}

/* ==========================================
   🛡️ IN-APP BROWSER OVERLAY CSS
   ========================================== */
#in-app-browser-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999; /* Ensure it covers EVERYTHING */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.in-app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.in-app-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.in-app-card h2 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.in-app-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.in-app-instructions {
  background: var(--bg);
  border-radius: 12px;
  padding: 15px;
  text-align: left;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.instruction-step {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.instruction-step:last-child {
  margin-bottom: 0;
}

.step-num {
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.in-app-footnote {
  font-size: 0.8rem !important;
  color: #888 !important;
  margin-bottom: 0 !important;
}

/* ==========================================
   === ACCESSIBILITY & SEO ===
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 🎨 Make the Premium Gold Bell glow when the red dot is visible! */
#nav-bell-btn:has(#bell-dot:not([style*="display: none"])) svg path {
  fill: rgba(255, 215, 0, 0.3);
}