/* ==========================================================================
   Parikshawala CSS stylesheet
   Highly Premium & Responsive Design
   Built with Modern Glassmorphism & Soft Glows
   ========================================================================== */

/* Design Tokens / Root Variables */
:root {
  /* Dark Theme Default */
  --bg-color: #0b0d19;
  --bg-surface: rgba(18, 22, 40, 0.85);
  --bg-surface-opaque: #121628;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --accent: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.3);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --whatsapp-color: #25d366;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.4);
  --glass-blur: 8px;
  
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
  --transition-slow: 0.4s ease-out;
  
  --max-width: 1200px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-opaque: #ffffff;
  --border-color: rgba(99, 102, 241, 0.16);
  --border-focus: #4f46e5;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.18);
  --accent: #9333ea;
  --accent-glow: rgba(147, 51, 234, 0.18);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
}

/* Light Theme Component Contrast Overrides */
[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card-glass {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.14);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

[data-theme="light"] .simulator-card {
  background: #ffffff;
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .simulator-text h3 {
  color: #0f172a;
}

[data-theme="light"] .simulator-text p {
  color: #475569;
}

[data-theme="light"] .input-with-button {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .input-with-button input {
  color: #0f172a;
}

[data-theme="light"] .input-with-button input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .input-wrapper input,
[data-theme="light"] .input-wrapper select {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

[data-theme="light"] .input-wrapper input:focus,
[data-theme="light"] .input-wrapper select:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

[data-theme="light"] .input-wrapper input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .input-wrapper select option {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .btn-secondary {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

[data-theme="light"] .btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="light"] .scorecard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .scorecard-value {
  color: #0f172a;
}

[data-theme="light"] .scorecard-label {
  color: #64748b;
}

[data-theme="light"] .profile-item .label {
  color: #475569;
}

[data-theme="light"] .profile-item .value {
  color: #0f172a;
}

[data-theme="light"] .selector-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
}

[data-theme="light"] .selector-card h3 {
  color: #0f172a;
}

[data-theme="light"] .selector-card p {
  color: #475569;
}

[data-theme="light"] .selector-card.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: #4f46e5;
}

[data-theme="light"] .selector-icon {
  background: #f1f5f9;
}

[data-theme="light"] .class-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .class-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

[data-theme="light"] .class-btn.active {
  background: #4f46e5;
  color: #ffffff;
}

[data-theme="light"] .success-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .summary-row span {
  color: #475569;
}

[data-theme="light"] .summary-row strong {
  color: #0f172a;
}

[data-theme="light"] .modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

[data-theme="light"] .modal-card h2,
[data-theme="light"] .modal-card h3 {
  color: #0f172a;
}

[data-theme="light"] .modal-card p,
[data-theme="light"] .modal-footer-text {
  color: #475569;
}

[data-theme="light"] .modal-text-content {
  color: #334155;
}

[data-theme="light"] .modal-text-content h3,
[data-theme="light"] .modal-text-content h4 {
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .modal-text-content p,
[data-theme="light"] .modal-text-content li {
  color: #475569;
}

[data-theme="light"] .modal-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .policy-callout-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .footer-links a {
  color: #475569;
}

[data-theme="light"] .footer-links a:hover {
  color: #4f46e5;
}

[data-theme="light"] .modal-text-content a {
  color: #4f46e5;
  text-decoration: underline;
}

[data-theme="light"] .modal-text-content a:hover {
  color: #7c3aed;
}

[data-theme="light"] .modal-footer-text a {
  color: #4f46e5;
}

[data-theme="light"] .modal-footer-text a:hover {
  color: #7c3aed;
}

[data-theme="light"] .syllabus-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .syllabus-chip .chip-title {
  color: #0f172a;
}

[data-theme="light"] .syllabus-chip .chip-desc {
  color: #64748b;
}

[data-theme="light"] .step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .step-card h3 {
  color: #0f172a;
}

[data-theme="light"] .step-card p {
  color: #475569;
}

[data-theme="light"] .feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .feature-card h3 {
  color: #0f172a;
}

[data-theme="light"] .feature-card p {
  color: #475569;
}

[data-theme="light"] .pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .pricing-card.featured {
  border-color: #4f46e5;
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.12);
}

[data-theme="light"] .pricing-desc {
  color: #64748b;
}

[data-theme="light"] .price-box .price-value {
  color: #0f172a;
}

[data-theme="light"] .pricing-features li {
  color: #334155;
}

[data-theme="light"] .app-workflow-card .workflow-step h4 {
  color: #0f172a;
}

[data-theme="light"] .app-feature-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .app-feature-preview-card h3 {
  color: #0f172a;
}

[data-theme="light"] .app-feature-preview-card p {
  color: #475569;
}

[data-theme="light"] .platform-chip {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .app-feat-item {
  color: #1e293b;
}

[data-theme="light"] .floating-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-md);
  color: #0f172a;
}

[data-theme="light"] .floating-card h4 {
  color: #0f172a;
}

[data-theme="light"] .floating-card p {
  color: #475569;
}

[data-theme="light"] .app-notification-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .pill-text h5 {
  color: #0f172a;
}

[data-theme="light"] .pill-text p {
  color: #475569;
}

[data-theme="light"] .floating-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-md);
  color: #0f172a;
}

[data-theme="light"] .floating-card h4 {
  color: #0f172a;
}

[data-theme="light"] .floating-card p {
  color: #475569;
}

[data-theme="light"] .data-table th {
  background: #f1f5f9;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}

[data-theme="light"] .data-table td {
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .data-table tbody tr:hover td {
  background: #f8fafc;
}

[data-theme="light"] .footer {
  background-color: #f1f5f9;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Instant, responsive mouse wheel scrolling */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Background Soft Glow Bulbs - Optimized Fixed Layer */
.glow-bg {
  position: fixed;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  z-index: -1;
  contain: strict;
  will-change: transform;
  transform: translateZ(0);
}

.glow-1 {
  top: -10vw;
  right: -10vw;
  background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0.3) 40%, transparent 70%);
}

.glow-2 {
  bottom: 10%;
  left: -10vw;
  background: radial-gradient(circle, var(--accent) 0%, rgba(168, 85, 247, 0.25) 40%, transparent 70%);
}

[data-theme="light"] .glow-bg {
  opacity: 0.05;
}

/* Layout Utilities */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success) !important; }
.text-accent { color: var(--accent) !important; }
.text-warning { color: var(--warning) !important; }
.max-w-sm { max-width: 450px; margin: 0 auto; }
.scroll-margin { scroll-margin-top: 100px; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: var(--font-family);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface-opaque);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #d946ef 100%);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.btn-danger-link {
  background: transparent;
  color: var(--danger);
  border: none;
  padding: 0.5rem;
}
.btn-danger-link:hover {
  color: #ff3b3b;
  opacity: 0.8;
  transform: scale(1.03);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Glassmorphism Card Style - Hardware Accelerated */
.card-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  transform: translateZ(0);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}

.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .card-glass {
  background: var(--bg-surface);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Typography & Badges */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Header & Navbar - Hardware Accelerated */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 25, 0.94);
  border-bottom: 1px solid var(--border-color);
  transform: translateZ(0);
}

[data-theme="light"] header {
  background: rgba(246, 248, 253, 0.96);
}

header .container {
  width: 100%;
  max-width: 1380px;
  padding: 0 1.25rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.logo-area .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.reg-mark {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 700;
  margin-left: 2px;
  color: var(--accent);
  line-height: 0;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 5px 6px;
  border-radius: 14px;
}

[data-theme="light"] .nav-links {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 14px;
  border-radius: 10px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Bilingual Language Switcher */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px 6px;
  gap: 2px;
  user-select: none;
}

[data-theme="light"] .lang-switch-wrap {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.lang-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Hindi typography refinement when lang="hi" */
html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Mobile Language Switcher Row */
.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Mobile Nav Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: var(--bg-surface-hover);
}

.theme-toggle-btn {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Profile Initials Badge in Navbar */
.profile-initials-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.profile-initials-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Tooltip on Hover */
.profile-initials-badge .profile-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: auto;
  transform: translateY(-4px);
  background: #0f172a;
  color: #f8fafc;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 85vw;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

[data-theme="light"] .profile-initials-badge .profile-tooltip {
  background: #1e293b;
  color: #ffffff;
}

.profile-initials-badge .profile-tooltip::before {
  content: '';
  position: absolute;
  top: -4px;
  right: 12px;
  left: auto;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .profile-initials-badge .profile-tooltip::before {
  background: #1e293b;
}

.profile-initials-badge:hover .profile-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Auth States (Desktop & Universal Base - Always Horizontal) */
#auth-nav-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

#auth-nav-buttons #nav-login-btn,
#auth-nav-buttons #nav-signup-btn {
  padding: 0.42rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 9px;
  white-space: nowrap;
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
}

#auth-nav-buttons #nav-login-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="light"] #auth-nav-buttons #nav-login-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

#auth-nav-buttons #nav-signup-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px var(--primary-glow);
}

#auth-nav-buttons.hidden {
  display: none !important;
}

#user-profile-nav {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 0.45rem;
  flex-shrink: 0;
  vertical-align: middle;
}

#user-profile-nav.hidden {
  display: none !important;
}

#user-profile-nav .btn-dashboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  height: 34px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px var(--primary-glow);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

#user-profile-nav .btn-dashboard:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
  color: #ffffff !important;
}

#user-profile-nav #logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

#user-profile-nav #logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

[data-theme="light"] #user-profile-nav #logout-btn {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

[data-theme="light"] #user-profile-nav #logout-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* Mobile Drawer Profile Horizontal Layout */
.mob-profile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.mob-profile-actions .mob-dash-action-btn {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  box-sizing: border-box;
}

.mob-profile-actions .mob-logout-action-btn {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  white-space: nowrap;
  box-sizing: border-box;
}

[data-theme="light"] .mob-profile-actions .mob-logout-action-btn {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

@media (max-width: 420px) {
  .mob-profile-actions {
    flex-direction: column;
    gap: 0.45rem;
  }
  .mob-profile-actions .mob-dash-action-btn,
  .mob-profile-actions .mob-logout-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Real-Time Password Policy Checklist */
.password-hints-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

[data-theme="light"] .password-hints-wrap {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pwd-hint-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  user-select: none;
}

.pwd-hint-item i {
  font-size: 0.7rem;
  opacity: 0.6;
}

.pwd-hint-item.valid {
  color: #10b981 !important;
  font-weight: 600;
}

.pwd-hint-item.valid i {
  color: #10b981 !important;
  opacity: 1;
}

/* Mobile User Info Card */
.mob-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mob-user-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mob-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.mob-user-fullname {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-user-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mobile-nav-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--bg-color);
  z-index: 99;
  overflow: hidden;
  transition: height var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-nav-overlay.open {
  height: calc(100vh - 80px);
}

.mobile-nav-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 0;
}

.mobile-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
}

.mobile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* SPA View Containers */
.active-view {
  display: block;
  animation: fade-in-view var(--transition-normal) forwards;
}

.hidden-view {
  display: none !important;
}

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

/* --------------------------------------------------------
   LANDING VIEW ELEMENTS
   -------------------------------------------------------- */

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  min-height: calc(80vh - 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-trust-metrics {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 35px;
  background-color: var(--border-color);
}

/* Hero Media & Image effects */
.hero-media {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

.hero-img {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* App Feature Preview Card (Clean Mobile App Placeholder) */
.app-feature-preview-card {
  background: var(--bg-surface-opaque);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 440px;
  margin: 0 auto;
}

.preview-app-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.app-badge-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.app-feature-preview-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.app-feature-preview-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.app-platform-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.platform-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.app-preview-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.app-feat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.floating-card {
  position: absolute;
  background: var(--bg-surface-opaque);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  animation: float-slow 4s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform;
}

.floating-card i {
  font-size: 1.5rem;
}

.floating-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.floating-card p {
  font-size: 0.75rem;
  font-weight: 500;
}

.card-top-left {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.card-bottom-right {
  bottom: 12%;
  right: -20px;
  animation-delay: 2s;
}

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

/* Interactive Simulation Banner */
.interactive-simulation-banner {
  padding: 3rem 0;
}

.simulator-card {
  background: rgba(18, 22, 40, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

.simulator-text {
  max-width: 500px;
}

.simulator-text h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.simulator-text h3 i {
  color: var(--accent);
}

.simulator-form {
  flex-grow: 1;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-with-button {
  display: flex;
  background: var(--bg-surface-opaque);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.input-with-button:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-button input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
}

.input-with-button button {
  border-radius: 8px;
}

.input-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* How it Works / Section Header */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.subheading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.how-it-works-section {
  padding: 6rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.step-icon {
  background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(168, 85, 247, 0.05) 100%);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.75rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Features Section */
.features-section {
  padding: 4rem 0 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-icon-alt {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.color-purple { color: #a855f7; }
.color-blue { color: #3b82f6; }
.color-green { color: #10b981; }
.color-orange { color: #f97316; }

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
}

/* App Integration Section */
.app-integration-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.app-visual {
  display: flex;
  justify-content: center;
}

/* Parikshawala Interactive Phone Mockup */
.parikshawala-phone-mockup {
  width: 320px;
  position: relative;
  margin: 0 auto;
}

.phone-frame {
  background: #0f1322;
  border: 10px solid #1e293b;
  border-radius: 44px;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.phone-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem 0.35rem 1.25rem;
  background: #0b0d19;
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
}

.phone-dynamic-island {
  width: 75px;
  height: 18px;
  background: #000000;
  border-radius: 20px;
  margin: 0 auto;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
}

.phone-screen-content {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, #12162a 0%, #0c0e1a 100%);
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.phone-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.phone-student-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.phone-student-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.phone-student-meta {
  flex-grow: 1;
}

.phone-student-meta h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.phone-student-meta p {
  font-size: 0.66rem;
  color: #94a3b8;
  margin: 0;
}

.phone-eval-counter {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Phone Scanner Viewfinder */
.phone-scanner-box {
  background: #ffffff;
  border-radius: 12px;
  position: relative;
  padding: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scanner-reticle {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #6366f1;
}

.scanner-reticle.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.scanner-reticle.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.scanner-reticle.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.scanner-reticle.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.scanner-sheet-title {
  font-size: 0.62rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.05em;
  text-align: center;
  background: #f1f5f9;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.scanner-handwriting-sample {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  line-height: 1.6;
  color: #0369a1;
  font-style: italic;
  background: #f8fafc;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  margin-bottom: 0.5rem;
}

.scanner-tag {
  font-family: var(--font-family);
  font-style: normal;
  font-weight: 700;
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.scanner-tag.check {
  background: #dcfce7;
  color: #15803d;
}

.scanner-tag.correct {
  background: #dbeafe;
  color: #1d4ed8;
}

.scanner-eval-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.scanner-eval-summary .score-badge {
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.scanner-eval-summary .eval-speed {
  font-size: 0.62rem;
  color: #6366f1;
  font-weight: 700;
}

.phone-action-row {
  display: flex;
  gap: 0.5rem;
}

.phone-btn {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.5rem 0.3rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.phone-btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.phone-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.phone-sync-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  color: #94a3b8;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem;
  border-radius: 20px;
}

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

@keyframes pulse-dot-anim {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.app-notification-pill {
  position: absolute;
  bottom: -15px;
  left: -25px;
  right: -25px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: float-slow 3s ease-in-out infinite alternate;
}

.text-whatsapp {
  color: var(--whatsapp-color);
  font-size: 1.75rem;
}

.pill-text h5 {
  font-size: 0.82rem;
  color: white;
  margin-bottom: 0.1rem;
}

.pill-text p {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.app-info h2 {
  margin-bottom: 1.25rem;
}

.app-workflow-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.workflow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.badge-num {
  background: var(--primary-glow);
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.workflow-step h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.workflow-step p {
  font-size: 0.85rem;
}

.app-download-badges {
  display: flex;
  gap: 1rem;
}

.store-btn {
  text-decoration: none;
  background-color: var(--bg-surface-opaque);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.store-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.pricing-card.featured {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, rgba(18, 22, 40, 0.9) 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 12px 35px var(--primary-glow);
}

.pricing-card.best-value {
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.12) 0%, rgba(18, 22, 40, 0.9) 100%);
  border: 2px solid #eab308;
  box-shadow: 0 12px 35px rgba(234, 179, 8, 0.2);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pricing-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-opaque);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.featured-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 12px var(--primary-glow);
}

.best-value-badge {
  background: #eab308;
  border-color: #ca8a04;
  color: #1e1e1e;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.4);
}

.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
  min-height: 2.8rem;
}

.price-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.8rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.price-box-main {
  display: flex;
  align-items: baseline;
}

.price-saving-tag {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
}

.price-saving-tag.gold {
  color: #fbbf24;
}

.price-saving-tag s {
  color: var(--text-muted);
  font-weight: 500;
}

.currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 0.15rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.period {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.4rem;
}

.pricing-quota-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light, #818cf8);
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pricing-features li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.35;
}

.pricing-features li i {
  color: var(--success);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pricing-features li span {
  flex-grow: 1;
  color: var(--text-secondary);
}

.pricing-features li span strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-policy-badge {
  margin-top: 0.85rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pricing-policy-badge div {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.pricing-policy-badge i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Modal Plan Selector Tabs */
.modal-plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.modal-plan-btn {
  background: var(--bg-surface-opaque, rgba(255,255,255,0.03));
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.modal-plan-btn:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.modal-plan-btn.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 10px var(--primary-glow);
  color: var(--text-primary);
}

.modal-plan-btn .plan-tab-title {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
}

.modal-plan-btn .plan-tab-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-light, #818cf8);
  display: block;
  margin-top: 0.15rem;
}

.modal-plan-btn .plan-tab-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.1rem;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .modal-plan-selector {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------
   ONBOARDING VIEW ELEMENTS
   -------------------------------------------------------- */

#onboarding-view {
  padding: 4rem 0;
  display: flex;
  justify-content: center;
}

.onboarding-wrapper {
  width: 100%;
  max-width: 680px;
}

.onboarding-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.progress-step:hover .step-dot {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--primary);
  box-shadow: 0 0 14px var(--primary-glow);
}

.progress-step:hover span {
  color: var(--text-primary);
}

.progress-step:active .step-dot {
  transform: translateY(0) scale(0.98);
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-surface-opaque);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.progress-step span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.progress-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: -1.5rem 0.5rem 0 0.5rem;
  z-index: 0;
  transition: background-color var(--transition-normal);
}

.progress-step.active .step-dot {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 12px var(--primary-glow);
}

.progress-step.active span {
  color: var(--text-primary);
}

.progress-step.complete .step-dot {
  background-color: var(--success);
  border-color: var(--success);
  color: white;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.progress-line.active {
  background-color: var(--primary);
}

.onboarding-step-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.onboarding-step-content p {
  margin-bottom: 2.5rem;
}

/* Authentication Tabs */
.auth-tabs {
  display: flex;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 2rem;
}

.auth-tab {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab.active {
  background-color: var(--bg-surface-opaque);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Onboarding Onboarding forms */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.input-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
}

.input-wrapper input {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem 1rem 3rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-wrapper input[type="password"],
.input-wrapper:has(.toggle-password-btn) input {
  padding-right: 3rem;
}

.toggle-password-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 5;
  font-size: 1.05rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.toggle-password-btn:hover,
.toggle-password-btn:focus-visible {
  color: var(--primary);
  background-color: var(--bg-hover, rgba(0, 0, 0, 0.05));
  outline: none;
}


.input-wrapper select {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 2.5rem 1rem 1.25rem; /* No icon on left, custom chevron room on right */
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.1rem;
}

.input-wrapper select option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.validation-error {
  display: none;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Legal & Trust Mandatory Consent Box on Signup */
.legal-trust-consent-card {
  background: rgba(99, 102, 241, 0.06);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 1.15rem;
  margin: 1.25rem 0 1.5rem 0;
  transition: all 0.3s ease;
  text-align: left;
}

[data-theme="light"] .legal-trust-consent-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.legal-trust-consent-card.shake-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
  animation: shake 0.4s ease-in-out;
}

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

.legal-trust-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-trust-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.btn-select-all-legal {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--primary);
  color: var(--accent-light, #818cf8);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-select-all-legal:hover {
  background: var(--primary);
  color: #ffffff;
}

.legal-trust-subtitle {
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.legal-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.legal-consent-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.legal-consent-item:last-child {
  margin-bottom: 0;
}

.legal-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.legal-consent-item label {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.legal-consent-item label i {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.legal-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.legal-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

[data-theme="light"] .legal-link {
  color: #4f46e5;
  text-decoration-color: #818cf8;
}

[data-theme="light"] .legal-link:hover {
  color: #7c3aed;
  text-decoration-color: #7c3aed;
}

[data-theme="light"] .btn-select-all-legal {
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid #4f46e5;
  color: #4f46e5;
}

[data-theme="light"] .btn-select-all-legal:hover {
  background: #4f46e5;
  color: #ffffff;
}

[data-theme="light"] .legal-consent-item:hover {
  background: rgba(79, 70, 229, 0.04);
}

[data-theme="light"] .legal-consent-item label {
  color: #334155;
}

[data-theme="light"] .legal-trust-title {
  color: #0f172a;
}

.req-star {
  color: var(--danger, #ef4444);
  font-weight: 700;
}

.footer-auth-text {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.footer-auth-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Step 2 Selection Cards */
.board-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.selector-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.selector-card:hover {
  border-color: var(--primary);
}

.selector-card.active {
  border-color: var(--primary);
  background-color: var(--primary-glow);
}

.selector-icon {
  background: var(--bg-surface-opaque);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.selector-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.selector-card p {
  font-size: 0.8rem;
  line-height: 1.4;
}

.selected-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}

.selector-card.active .selected-badge {
  opacity: 1;
  transform: scale(1);
}

.class-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.class-btn {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.class-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.class-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.button-row {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}

/* Onboarding Step 3 Success Dashboard Preview */
.status-illustration {
  margin-bottom: 1.5rem;
}

.success-ring {
  width: 72px;
  height: 72px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.success-summary-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.summary-row span {
  color: var(--text-secondary);
}

.summary-row strong {
  color: var(--text-primary);
}

.app-download-instructions {
  background-color: rgba(99, 102, 241, 0.05);
  border: 1px dashed var(--primary-glow);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.app-download-instructions h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.app-download-instructions ol {
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --------------------------------------------------------
   PARENT DASHBOARD VIEW
   -------------------------------------------------------- */

#dashboard-view {
  padding: 3rem 0;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-sidebar {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-main-content {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar Profile */
.sidebar-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.sidebar-profile-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.user-role-badge {
  font-size: 0.75rem;
  background-color: var(--primary-glow);
  color: var(--primary);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.card-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  width: 100%;
  margin: 1.5rem 0;
}

.profile-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.profile-item .label {
  color: var(--text-secondary);
}

.profile-item .value {
  font-weight: 700;
}

/* QR Code Card */
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.qr-card p {
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.qr-mock {
  width: 140px;
  height: 140px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.qr-icon {
  font-size: 7rem;
  color: #0b0d19;
}

.qr-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dashboard Main Workspace */
.status-banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.status-left {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
}

.bg-emerald {
  background-color: var(--success);
}

.status-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.status-info p {
  font-size: 0.85rem;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.status-credits-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.credit-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.count-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.25rem;
}

.student-hub-card {
  margin-top: 1.5rem;
  padding: 2rem;
}

.student-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.student-hub-info h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.student-hub-info p {
  font-size: 0.92rem;
  margin: 0;
}

.student-hub-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-section-header h2 {
  font-size: 1.6rem;
}

/* Answer Sheet Papers Lists */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.paper-card {
  padding: 1.75rem;
}

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

.subject-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: white;
}

.bg-cbse {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.bg-icse {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.date-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.paper-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.paper-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.paper-stats .stat {
  display: flex;
  flex-direction: column;
}

.paper-stats .stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.paper-stats .stat .value {
  font-weight: 700;
  font-size: 1rem;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

.status-pill.evaluated {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status-pill.pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

/* Empty Dashboard State */
.empty-papers {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.empty-papers h3 {
  margin-bottom: 0.5rem;
}

.empty-papers p {
  font-size: 0.9rem;
  max-width: 400px;
  margin-bottom: 2rem;
}

/* Subject Analytics */
.analytics-card {
  padding: 2rem;
}

.analytics-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analytics-card p {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

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

.analytics-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-list {
  padding-left: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --------------------------------------------------------
   MODALS AND INTERACTIVE OVERLAYS
   -------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 13, 25, 0.88);
  z-index: 5000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  position: relative;
  margin: auto;
  box-sizing: border-box;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  background-color: var(--bg-surface-opaque);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  color: var(--danger);
  transform: scale(1.05);
}

.modal-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  text-align: center;
}

.modal-card p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.modal-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer-text {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.25rem;
  margin-bottom: 0 !important;
}

.modal-footer-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Payment Modal specific */
.payment-modal {
  max-width: 500px;
  padding: 2.25rem;
}

.modal-badge-crown {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.85rem auto;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.order-summary-box {
  background-color: var(--bg-surface-opaque);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.order-item.small {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  gap: 1rem;
}

.summary-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 0.5rem 0;
}

.order-item.total {
  font-size: 1.1rem;
  font-weight: 800;
  padding-top: 0.2rem;
}

.form-section-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.payment-tab {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.payment-tab:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.payment-tab.active {
  border-color: var(--primary);
  background-color: var(--primary-glow);
  color: var(--text-primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.payment-method-fields {
  animation: fade-in-view var(--transition-fast) forwards;
}

/* Razorpay Checkout Container & Action Buttons */
.razorpay-checkout-box {
  width: 100%;
  position: relative;
  z-index: 10;
}

#submit-payment-btn {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 15;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

#submit-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

#submit-payment-btn:active {
  transform: translateY(0);
}

/* Tax Invoice Modal & Printable Receipt */
.invoice-modal {
  max-width: 580px;
  padding: 2.25rem;
}

.invoice-box {
  background: var(--bg-surface-opaque);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.invoice-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.85rem 0;
  font-size: 0.85rem;
}

.inv-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.inv-val {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
}

.inv-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.invoice-items-table {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.inv-row.header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.inv-row.small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.inv-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  padding-top: 0.35rem;
}

.inv-footer-note {
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #22c55e;
  text-align: center;
}

/* Paper Report/Evaluated Sheet Modal specific */
.report-view-modal {
  max-width: 980px;
  width: 95%;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 2.25rem;
  border-radius: 24px;
}

.report-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.15rem;
  margin-bottom: 1.5rem;
}

.report-header h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.report-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.report-content-scroller {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.75rem;
  max-height: none;
  padding-right: 0.25rem;
}

/* Paper Sheet Annotation Area */
.paper-evaluation-simulator {
  background-color: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.evaluated-page {
  padding: 1.75rem 2rem;
}

.page-title-banner {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #475569;
  text-align: center;
  background-color: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}

.paper-body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;
  font-weight: 500;
}

.question-block {
  margin-bottom: 1.75rem;
}

.q-num {
  font-weight: 800;
  color: #1e293b;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.question-text {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.student-answer-handwritten {
  font-style: italic;
  color: #0284c7;
  padding: 1rem 1.25rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  line-height: 2.1;
  position: relative;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.teacher-annotation {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-family);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0.25rem 0 0.25rem 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  vertical-align: middle;
}

.teacher-annotation.wrong {
  color: #b91c1c;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-left: 3px solid #ef4444;
}

.teacher-annotation.check {
  color: #047857;
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
  border-left: 3px solid #10b981;
}

.teacher-annotation.correct-final {
  color: #1d4ed8;
  background-color: #dbeafe;
  border: 1px solid #93c5fd;
  border-left: 3px solid #3b82f6;
  font-size: 0.85rem;
}

.evaluation-card-comment {
  font-family: var(--font-family);
  font-size: 0.88rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  padding: 0.9rem 1.15rem;
  border-radius: 10px;
  color: #334155;
  line-height: 1.55;
}

.evaluation-card-comment strong {
  color: #0f172a;
  display: block;
  margin-bottom: 0.3rem;
}

/* Report Summary Right Panel */
.report-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.report-score-metric {
  background: linear-gradient(145deg, var(--bg-surface-opaque) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-color);
  padding: 1.65rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.report-score-metric .score-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.report-score-metric .score-grade {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.35rem;
}

.suggested-remedies h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.suggested-remedies ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.suggested-remedies li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2147483647 !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: #15192c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(99, 102, 241, 0.2);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slide-in-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 300px;
  max-width: 460px;
}

.modal-inline-alert {
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1.5px solid #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
  animation: slide-in-toast 0.2s ease-out;
}

.modal-inline-alert i {
  color: #f87171;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.modal-inline-alert.success {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #ffffff;
}

.modal-inline-alert.success i {
  color: #34d399;
}

.toast.success { border-left-color: var(--success); }
.toast.info { border-left-color: var(--primary); }
.toast.warning { border-left-color: var(--warning); }
.toast.danger { border-left-color: var(--danger); }

@keyframes slide-in-toast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
  animation: fade-out-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-out-toast {
  to { transform: translateY(10px); opacity: 0; }
}

/* Simulated Phone Notification Panel (WhatsApp Pop-up) */
.phone-notification {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 380px;
  background-color: #1f2c34; /* WhatsApp Web Dark style background */
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 200;
  overflow: hidden;
  font-family: var(--font-family);
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-notification.show {
  transform: translateY(0);
}

.notif-header {
  padding: 0.75rem 1rem;
  background-color: #121b22;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.notif-app-logo {
  background-color: var(--whatsapp-color);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.notif-meta {
  flex-grow: 1;
}

.notif-meta h4 {
  font-size: 0.8rem;
  color: #e9edef;
  margin: 0;
}

.notif-meta span {
  font-size: 0.7rem;
  color: #8696a0;
}

.notif-close {
  background: none;
  border: none;
  color: #8696a0;
  cursor: pointer;
  font-size: 0.9rem;
}

.notif-body {
  padding: 1rem;
  color: #d1d7db;
  font-size: 0.85rem;
  line-height: 1.4;
}

.notif-body p {
  color: #e9edef;
}

.notif-link {
  color: #29b6f6;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  word-break: break-all;
}

/* --------------------------------------------------------
   FOOTER
   -------------------------------------------------------- */

footer {
  background-color: #070911;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  margin-top: 6rem;
  transition: background-color var(--transition-normal);
}

[data-theme="light"] footer {
  background-color: #eaeff8;
}

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

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  background-color: var(--bg-surface-opaque);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.social-icons a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

footer h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-icon {
  margin-right: 0.5rem;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PARIKSHAWALA LOGO & STUDENT ID VALIDATION STYLES
   ========================================================================== */

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.logo:hover .logo-img {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-text {
  opacity: 0.95;
}

.logo-text .accent-part {
  color: var(--accent);
  font-weight: 800;
}

.modal-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.modal-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Student ID validation status badge in sidebar */
.badge-validation {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-validation.unvalidated {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-validation.validated {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Validation banner at the top of dashboard main content */
.validation-banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--warning);
  background: rgba(245, 158, 11, 0.03);
}

.validation-left {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.validation-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.validation-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.validation-right {
  display: flex;
  align-items: center;
}

.bg-warning {
  background-color: var(--warning);
  color: #0f172a;
}

/* Lock overlay for answer sheets list when unvalidated */
.papers-grid-wrapper {
  position: relative;
}

.papers-grid.blur-grid {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.dashboard-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 16px;
}

.dashboard-lock-overlay.hidden {
  display: none !important;
}

.lock-overlay-content {
  text-align: center;
  max-width: 420px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lock-overlay-content .lock-icon {
  font-size: 2.2rem;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.lock-overlay-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lock-overlay-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

/* Validation Modal design customizations */
.modal-badge-shield {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem auto;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.validation-summary-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.validation-modal {
  max-width: 480px;
}

.input-subtext strong {
  color: var(--warning);
  font-weight: 600;
}

/* ==========================================================================
   CHILD PROFILE SWITCHER & OVERALL ACADEMIC SCORECARD STYLES
   ========================================================================== */

/* Child Profile Switcher in Sidebar */
.child-switcher-box {
  width: 100%;
  margin-bottom: 1.25rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem;
}

.child-switcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.child-switcher-header span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.child-pills-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.child-pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.child-pill-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.2);
}

.child-pill-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.18) 100%);
  border-color: var(--primary);
  color: var(--text-primary);
}

.child-pill-btn .child-pill-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.child-pill-btn.active .child-pill-meta {
  color: var(--accent);
  font-weight: 700;
}

/* Overall Scorecard Grid */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.scorecard-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.scorecard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.scorecard-card.card-accent::before {
  background: var(--accent);
}

.scorecard-card.card-success::before {
  background: var(--success);
}

.scorecard-card.card-warning::before {
  background: var(--warning);
}

.scorecard-icon {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.scorecard-card.card-accent .scorecard-icon {
  color: var(--accent);
}

.scorecard-card.card-success .scorecard-icon {
  color: var(--success);
}

.scorecard-card.card-warning .scorecard-icon {
  color: var(--warning);
}

.scorecard-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.scorecard-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.scorecard-sub {
  font-size: 0.72rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Subject Mastery Progress Bars */
.subject-mastery-card {
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.subject-bars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.subject-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.subject-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.subject-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

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

.subject-bar-fill.fill-math {
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
}

.subject-bar-fill.fill-science {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.subject-bar-fill.fill-english {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.subject-bar-fill.fill-social {
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 100%);
}

/* Action Plan & Focus Card */
.focus-card {
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.focus-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.focus-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.focus-item h4 {
  font-size: 0.92rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.focus-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}





/* --------------------------------------------------------
   RESOURCE & LEGAL RICH MODALS STYLING
   -------------------------------------------------------- */
.modal-card-lg {
  max-width: 760px;
}

.modal-card-xl {
  max-width: 960px;
}

.modal-text-content {
  text-align: left;
  line-height: 1.65;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-text-content::-webkit-scrollbar {
  width: 6px;
}

.modal-text-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
}

.modal-text-content h3 {
  color: var(--text-primary);
  font-size: 1.08rem;
  margin: 1.5rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.modal-text-content h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 1rem 0 0.35rem 0;
}

.modal-text-content p {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.modal-text-content ul, .modal-text-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.modal-text-content li {
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 auto 1rem auto;
}

.policy-callout-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.policy-callout-box.warning-callout {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.08);
}

.policy-callout-box.success-callout {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.08);
}

/* Interactive Tabs for Sample Evaluations & Syllabus Matcher */
.tab-pills-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.tab-pill-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.tab-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.syllabus-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.syllabus-chip {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.syllabus-chip .chip-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.syllabus-chip .chip-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.syllabus-chip .chip-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

/* Billing, Tax Invoices & Transaction History Table */
.billing-history-card {
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table-sm th {
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
}

.data-table-sm td {
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
}

.badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-delta-plus {
  color: var(--success);
  font-weight: 700;
}

.badge-delta-minus {
  color: var(--danger);
  font-weight: 700;
}

/* Floating WhatsApp Chat Support Widget */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  padding: 0.75rem 1.15rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
  color: #ffffff !important;
}

.floating-whatsapp-btn i {
  font-size: 1.35rem;
  animation: pulse-wa 2s infinite ease-in-out;
}

.floating-whatsapp-btn .wa-text {
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes pulse-wa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}



/* --------------------------------------------------------
   PARENTS STORY / REALITY SECTION STYLING
   -------------------------------------------------------- */
.parents-story-section {
  padding: 5rem 0 3.5rem 0;
}

.parents-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.85rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
}

.story-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.story-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

[data-theme="light"] .story-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.story-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.story-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.story-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.story-deadlock-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(30, 27, 75, 0.6) 100%);
  border: 2px solid rgba(99, 102, 241, 0.4);
  border-radius: 22px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .story-deadlock-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: #818cf8;
}

.deadlock-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.deadlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.deadlock-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.deadlock-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.deadlock-solution-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sol-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

[data-theme="light"] .sol-pill {
  color: #059669;
  background: rgba(16, 185, 129, 0.15);
}

.deadlock-cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.deadlock-cta-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.deadlock-cta-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

/* ==========================================================================
   CONSOLIDATED RESPONSIVE MEDIA QUERIES (CASCADE DOMINANCE)
   ========================================================================== */

@media (max-width: 1140px) {
  .navbar {
    gap: 0.5rem;
  }
  .nav-links {
    gap: 0.15rem;
    padding: 3px 5px;
  }
  .nav-link {
    font-size: 0.78rem;
    padding: 5px 8px;
  }
  #user-profile-nav .btn-dashboard span {
    display: none;
  }
  #user-profile-nav .btn-dashboard {
    width: 34px;
    min-width: 34px;
    padding: 0;
    gap: 0;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .status-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .status-right {
    width: 100%;
    justify-content: space-around;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
  }
  
  .validation-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .validation-right {
    width: 100%;
  }
  
  .validation-right .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .parents-story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deadlock-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .scorecard-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptop Viewport Optimization (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .navbar {
    gap: 0.5rem !important;
  }
  .nav-links {
    gap: 0.15rem !important;
    padding: 3px 5px !important;
  }
  .nav-link {
    padding: 5px 8px !important;
    font-size: 0.81rem !important;
  }
  #auth-nav-buttons {
    gap: 0.35rem !important;
  }
  #auth-nav-buttons #nav-login-btn,
  #auth-nav-buttons #nav-signup-btn {
    padding: 0.38rem 0.8rem !important;
    font-size: 0.82rem !important;
    height: 35px !important;
    min-height: 35px !important;
  }
  .nav-actions {
    gap: 0.35rem !important;
  }
  .lang-switch-wrap {
    padding: 2px 4px !important;
  }
  .lang-btn {
    padding: 2px 5px !important;
    font-size: 0.75rem !important;
  }
  .btn-icon.theme-toggle-btn {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
  }
}

/* Tablet & Compact Viewport Breakpoint (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    height: 66px !important;
    padding: 0 1rem !important;
    gap: 0.5rem !important;
  }
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mobile-nav-overlay {
    top: 66px !important;
  }
  #auth-nav-buttons #nav-login-btn,
  #auth-nav-buttons #nav-signup-btn {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.8rem !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  
  /* Top Navbar on Tablets & Mobile */
  .navbar { 
    height: 60px !important; 
    padding: 0 0.75rem !important; 
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
    gap: 0.5rem !important;
  }
  
  .mobile-nav-overlay { top: 60px; }
  
  .nav-links {
    display: none !important;
  }
  
  /* Logo Area on Mobile */
  .logo-area {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }

  .logo-area .logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    text-decoration: none !important;
  }

  .logo-img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }

  .logo-text {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
  }
  
  /* Mobile Header Actions: Language Switch and Theme Toggle (Visible on top bar) */
  .nav-actions .lang-switch-wrap {
    display: inline-flex !important;
    padding: 2px 3px !important;
    gap: 1px !important;
    height: 28px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .nav-actions .lang-switch-wrap .lang-btn {
    padding: 1px 3px !important;
    font-size: 0.7rem !important;
    min-width: 23px !important;
    max-width: 25px !important;
    text-align: center !important;
  }

  .nav-actions .lang-switch-wrap .lang-sep {
    font-size: 0.7rem !important;
    opacity: 0.5 !important;
  }

  .nav-actions #theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }
  
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  /* Logged-Out Action Buttons on Mobile Top Bar (Always Visible, Zero Overlap) */
  .nav-actions #auth-nav-buttons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
  }

  .nav-actions #auth-nav-buttons.hidden {
    display: none !important;
  }

  .nav-actions #auth-nav-buttons #nav-login-btn {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
  }

  .nav-actions #auth-nav-buttons #nav-signup-btn {
    padding: 0.2rem 0.55rem !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .nav-actions #user-profile-nav {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
  }

  .nav-actions #user-profile-nav .profile-initials-badge {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 0.72rem !important;
    cursor: pointer !important;
  }

  .nav-actions #user-profile-nav.hidden {
    display: none !important;
  }

  .nav-actions #user-profile-nav .btn-dashboard {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
    white-space: nowrap !important;
  }

  .nav-actions #user-profile-nav #logout-btn {
    display: none !important;
  }

  @media (max-width: 600px) {
    .nav-actions #user-profile-nav .btn-dashboard span {
      display: none !important;
    }
    .nav-actions #user-profile-nav .btn-dashboard {
      width: 28px !important;
      min-width: 28px !important;
      height: 28px !important;
      min-height: 28px !important;
      padding: 0 !important;
    }
    .nav-actions #user-profile-nav #logout-btn {
      display: none !important;
    }
    .nav-actions #auth-nav-buttons #nav-login-btn {
      display: none !important;
    }
    .nav-actions #auth-nav-buttons #nav-signup-btn {
      max-width: 90px !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      font-size: 0.72rem !important;
      padding: 0.2rem 0.45rem !important;
    }
  }
  
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
    margin-left: 0.15rem !important;
    flex-shrink: 0 !important;
    font-size: 1.15rem !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer !important;
    z-index: 10 !important;
  }
  
  /* Mobile Navigation Content & Touch Targets */
  .mobile-nav-content {
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    overflow-y: auto;
  }

  .mobile-top-auth {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .mobile-top-auth .btn {
    width: 100%;
    min-height: 46px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .grid-2, .hero-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-trust-metrics {
    justify-content: center;
  }
  
  .floating-card {
    display: none;
  }
  
  .simulator-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .board-selector-grid {
    grid-template-columns: 1fr;
  }
  
  .class-selector-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.35rem !important;
  }

  .class-btn {
    padding: 0.75rem 0.2rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
  }
  
  /* Dashboard Mobile Architecture & Responsive Fit */
  #dashboard-view {
    padding: 1.25rem 0 3rem 0;
    width: calc(100% - 1.5rem);
    max-width: 100%;
  }

  .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  /* Main Workspace Appears First on Mobile */
  .dashboard-main-content {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Sidebar Profile & Apps Appear Below Workspace on Mobile */
  .dashboard-sidebar {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Card Glass Mobile Sizing */
  .card-glass {
    padding: 1.25rem;
    border-radius: 16px;
    box-sizing: border-box;
    width: 100%;
  }

  /* Validation Banner on Mobile */
  .validation-banner-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.15rem;
    margin-bottom: 0;
  }

  .validation-banner-card .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  /* Subscription Banner on Mobile */
  .status-banner-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 0;
    text-align: left;
  }

  .status-left {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
  }

  .status-left .status-info h3 {
    font-size: 1.15rem;
  }

  .status-left .status-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  .status-right {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    align-items: stretch;
  }

  .status-credits-group {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background: var(--bg-color);
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
  }

  .status-credits-group .count-value {
    font-size: 1.85rem;
  }

  .status-credits-group .count-label {
    font-size: 0.72rem;
  }

  #upgrade-tier-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }

  /* Student Hub Card on Mobile */
  .student-hub-card {
    padding: 1.25rem;
    margin-top: 0;
  }

  .student-hub-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .student-hub-info h2 {
    font-size: 1.2rem;
    line-height: 1.35;
  }

  .student-hub-info p {
    font-size: 0.85rem;
  }

  .student-hub-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .student-hub-actions .btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .focus-items-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .focus-item {
    padding: 0.85rem 1rem;
  }

  .focus-item h4 {
    font-size: 0.9rem;
  }

  .focus-item p {
    font-size: 0.8rem;
  }

  /* Sidebar Profile Card on Mobile */
  .sidebar-profile-card {
    padding: 1.25rem;
    margin-bottom: 0;
    text-align: left;
    align-items: stretch;
  }

  .profile-header {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    text-align: left;
  }

  .avatar-large {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .sidebar-profile-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
  }

  .profile-details {
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .profile-item {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .profile-item .value {
    text-align: right;
    max-width: 60%;
    word-break: break-word;
    font-size: 0.85rem;
  }

  /* QR Companion Card on Mobile */
  .qr-card {
    padding: 1.25rem;
  }

  .qr-card .qr-mock {
    display: none !important;
  }

  .qr-card p {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
  }

  /* Billing & Tables Mobile Containment */
  .billing-history-card {
    padding: 1.25rem;
    margin-top: 0;
  }

  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    margin: 0.5rem 0;
  }

  .data-table {
    min-width: 580px;
    margin-top: 0;
  }

  .data-table th, .data-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Modals Mobile Optimization */
  .modal-overlay {
    padding: 1rem 0.5rem;
    align-items: center;
  }

  .modal-card, 
  .modal-card-lg, 
  .modal-card-xl, 
  .payment-modal, 
  .invoice-modal, 
  .report-view-modal,
  .validation-modal {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1.15rem !important;
    border-radius: 16px !important;
    margin: auto !important;
    max-height: calc(100vh - 2rem) !important;
    box-sizing: border-box !important;
  }

  .modal-close {
    top: 0.65rem !important;
    right: 0.65rem !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  /* Onboarding Wizard Mobile Optimization */
  #onboarding-view {
    padding: 1.5rem 0 3rem 0;
    width: calc(100% - 1.5rem);
    margin: 0 auto;
  }

  .onboarding-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .onboarding-progress {
    margin-bottom: 1.5rem;
    padding: 0;
  }

  .progress-step span {
    font-size: 0.72rem;
  }

  .step-dot {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .onboarding-step-content h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .onboarding-step-content p {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .button-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
  }

  .button-row .btn {
    flex: 1;
    min-height: 46px;
    justify-content: center;
    font-size: 0.95rem;
  }

  /* Toast Notifications on Mobile */
  .toast-container {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    align-items: center;
    width: calc(100% - 2rem);
  }

  .toast {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1.15rem;
    font-size: 0.88rem;
  }

  /* Floating WhatsApp Support Widget on Mobile */
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .parents-story-grid {
    grid-template-columns: 1fr;
  }

  .story-deadlock-banner {
    padding: 1.5rem;
  }

  .papers-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .report-content-scroller {
    grid-template-columns: 1fr;
    max-height: 70vh;
  }
  
  .phone-notification {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; line-height: 1.25; }
  h2 { font-size: 1.45rem; }
  
  .navbar {
    padding: 0 0.4rem !important;
    gap: 0.25rem !important;
  }
  
  .logo-text { 
    font-size: 0.94rem !important; 
  }
  .logo-img { 
    width: 24px !important; 
    height: 24px !important; 
    min-width: 24px !important; 
    min-height: 24px !important; 
  }

  .nav-actions #auth-nav-buttons #nav-login-btn {
    display: none !important;
  }
  .nav-actions #auth-nav-buttons #nav-signup-btn {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.72rem !important;
    height: 28px !important;
    min-height: 28px !important;
    max-width: 85px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .nav-actions #user-profile-nav .btn-dashboard {
    padding: 0 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.95rem;
  }
  .pricing-card {
    padding: 1.25rem 1rem;
  }
  .pricing-card .btn {
    width: 100%;
    min-height: 44px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Parikshawala 4-Tab Cognitive & Career Insights Dashboard (Parent Dashboard)
   Theme-Adaptive (Dark & Light Mode) with Full 8-Axis Visual Integration
   ========================================================================== */
.insights-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-family);
  color: var(--text-primary);
  margin-left: 0;
  margin-right: 0;
}

[data-theme="light"] .insights-container {
  color: #0f172a;
}

.insights-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

[data-theme="light"] .insights-dashboard-header {
  border-bottom: 1px solid #e2e8f0;
}

.insights-header-left {
  display: flex;
  flex-direction: column;
}

.insights-header-title {
  margin: 3px 0 0 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-family);
}

[data-theme="light"] .insights-header-title {
  color: #0f172a;
}

/* Modern 4-Tab Navigation Bar */
.insights-tab-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 14px;
}

[data-theme="light"] .insights-tab-nav {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.insights-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  font-family: var(--font-family);
  min-width: 0;
}

.tab-btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.insights-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .insights-tab-btn {
  color: #64748b;
}

[data-theme="light"] .insights-tab-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .insights-tab-btn.active {
  background: #ffffff;
  color: #4338ca;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-btn-icon {
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .card-glass.insights-container {
    padding: 1.25rem 0.85rem !important;
    gap: 14px;
  }
  .insights-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .insights-header-title {
    font-size: 16px;
  }
  .confidence-pill {
    align-self: flex-start;
    font-size: 10.5px;
    padding: 4px 10px;
  }
  .insights-tab-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 4px;
  }
  .insights-tab-btn {
    padding: 8px 4px;
    font-size: 11px;
    gap: 4px;
  }
  .tab-btn-icon {
    font-size: 13px;
  }
  .insights-card {
    padding: 6px 0 0 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  [data-theme="light"] .insights-card {
    background: transparent !important;
    border: none !important;
  }
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-title {
    font-size: 16px;
  }
  .guide-btn {
    padding: 4px 9px;
    font-size: 10.5px;
  }
  .inclination-banner {
    padding: 10px 12px;
    gap: 10px;
  }
  .banner-icon { font-size: 20px; }
  .banner-main { font-size: 13.5px; word-break: break-word; }
  .superpower-box {
    padding: 8px 10px;
    gap: 8px;
  }
  .superpower-box .spike-val {
    font-size: 12px;
    word-break: break-word;
  }
  .quote-box, .counselor-box, .error-advice-box, .temperament-advice-box {
    padding: 10px 12px;
    word-break: break-word;
  }
}

/* Smooth Tab Panes */
.insights-tab-pane {
  display: none;
}

.insights-tab-pane.active {
  display: block;
  animation: tabFadeIn 0.28s ease-in-out;
}

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

.insights-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  color: var(--text-primary);
  font-family: var(--font-family);
}

[data-theme="light"] .insights-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.badge-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.8px;
}

[data-theme="light"] .badge-tag {
  color: #4338ca;
}

.badge-orange { color: #f97316; }
[data-theme="light"] .badge-orange { color: #ea580c; }

.badge-teal { color: #14b8a6; }
[data-theme="light"] .badge-teal { color: #0d9488; }

.card-title {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-family);
}

[data-theme="light"] .card-title {
  color: #1e293b;
}

.confidence-pill {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.32);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.confidence-pill:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .confidence-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

[data-theme="light"] .confidence-pill:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.inclination-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
}

.banner-icon { font-size: 24px; }
.banner-sub {
  font-size: 10px;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.5px;
}
.banner-main {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

[data-theme="light"] .inclination-banner {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
}

[data-theme="light"] .banner-sub { color: #1e40af; }
[data-theme="light"] .banner-main { color: #0f172a; }

.quote-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #6366f1;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 14px;
}

.quote-title { font-size: 11px; font-weight: 800; color: #a5b4fc; margin-bottom: 4px; }
.quote-text { font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin: 0; }

[data-theme="light"] .quote-box {
  background: #f8fafc;
  border-left: 3px solid #4f46e5;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .quote-title { color: #4338ca; }
[data-theme="light"] .quote-text { color: #334155; }

.stream-section-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  margin: 14px 0 8px;
}

[data-theme="light"] .stream-section-title {
  color: #64748b;
}

.stream-row {
  margin-bottom: 12px;
}

.stream-info {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

[data-theme="light"] .stream-info { color: #1e293b; }

.stream-progress-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="light"] .stream-progress-bg { background: #f1f5f9; }

.stream-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.6s ease-in-out;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 6px;
}

[data-theme="light"] .spec-chip {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.counselor-box {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
}

.counselor-header { font-size: 11px; font-weight: 800; color: #d8b4fe; margin-bottom: 4px; }
.counselor-box p { font-size: 12px; line-height: 1.5; color: #f3e8ff; margin: 0; }

[data-theme="light"] .counselor-box {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}

[data-theme="light"] .counselor-header { color: #7e22ce; }
[data-theme="light"] .counselor-box p { color: #4c1d95; }

.superpower-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 12px;
}

.superpower-box .spike-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #a5b4fc;
  letter-spacing: 0.5px;
}

.superpower-box .spike-val {
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
}

[data-theme="light"] .superpower-box {
  background: linear-gradient(135deg, #eef2ff, #eff6ff);
  border: 1px solid #e0e7ff;
}

[data-theme="light"] .superpower-box .spike-lbl { color: #3730a3; }
[data-theme="light"] .superpower-box .spike-val { color: #1e1b4b; }

.section-subtext {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 6px 0 14px;
}

[data-theme="light"] .section-subtext { color: #64748b; }

.chart-wrapper {
  width: 100%;
  max-width: 360px;
  margin: 1rem auto;
  position: relative;
}
.chart-wrapper canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.chips-grid { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 580px) {
  .chart-wrapper {
    max-width: 290px;
    margin: 0.5rem auto;
  }
  .chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .radar-chip {
    padding: 6px 8px;
    font-size: 10.5px;
    justify-content: space-between;
    min-width: 0;
  }
  .radar-chip span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.radar-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #e0e7ff;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.radar-chip:hover {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
}

[data-theme="light"] .radar-chip {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #312e81;
}

[data-theme="light"] .radar-chip:hover {
  background: #e0e7ff;
  border-color: #818cf8;
}

.guide-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-family);
}

.guide-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

[data-theme="light"] .guide-btn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

[data-theme="light"] .guide-btn:hover {
  background: #fde68a;
}

.error-badge {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

[data-theme="light"] .error-badge {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.error-proportions-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  margin: 12px 0 16px 0;
}

[data-theme="light"] .error-proportions-container { background: #f1f5f9; }

.prop-bar {
  height: 100%;
  transition: width 0.5s ease;
}

.prop-bar-orange { background: #f97316; }
.prop-bar-red { background: #ef4444; }
.prop-bar-blue { background: #3b82f6; }

.error-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.error-tile {
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.tile-icon { font-size: 18px; margin-bottom: 4px; }
.tile-text-wrap { margin: 2px 0; }
.tile-label { font-size: 10.5px; font-weight: 700; color: var(--text-secondary); }
.tile-val { font-size: 17px; font-weight: 800; color: #ffffff; margin: 2px 0; }
.tile-sub { font-size: 9px; color: var(--text-muted); }

@media (max-width: 600px) {
  .error-tiles-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .error-tile {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 10px 14px;
    gap: 12px;
  }
  .error-tile .tile-icon {
    margin-bottom: 0;
    font-size: 20px;
    flex-shrink: 0;
  }
  .error-tile .tile-text-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .error-tile .tile-label {
    font-size: 11.5px;
  }
  .error-tile .tile-sub {
    font-size: 9.5px;
    line-height: 1.25;
  }
  .error-tile .tile-val {
    margin: 0;
    margin-left: auto;
    font-size: 16px;
    flex-shrink: 0;
  }
}

.tile-orange { background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.28); }
.tile-red { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.28); }
.tile-blue { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.28); }

[data-theme="light"] .tile-orange { background: #fff7ed; border-color: #ffedd5; }
[data-theme="light"] .tile-red { background: #fef2f2; border-color: #fee2e2; }
[data-theme="light"] .tile-blue { background: #eff6ff; border-color: #dbeafe; }
[data-theme="light"] .tile-label { color: #475569; }
[data-theme="light"] .tile-val { color: #0f172a; }
[data-theme="light"] .tile-sub { color: #64748b; }

.error-advice-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.error-advice-box strong { color: var(--text-primary); }

[data-theme="light"] .error-advice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .error-advice-box strong { color: #0f172a; }

.temperament-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

[data-theme="light"] .temperament-pill {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.gauges-row {
  display: flex;
  justify-content: space-around;
  margin: 18px 0;
}

.gauge-card { text-align: center; }

.gauge-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 6px solid #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background: rgba(18, 22, 40, 0.85);
}

.gauge-accuracy { border-color: #10b981; }
.gauge-number { font-size: 18px; font-weight: 800; color: #ffffff; }
.gauge-label { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.gauge-sub { font-size: 10px; color: var(--text-muted); }

[data-theme="light"] .gauge-circle {
  background: #ffffff;
  border: 6px solid #4f46e5;
}

[data-theme="light"] .gauge-accuracy { border-color: #10b981; }
[data-theme="light"] .gauge-number { color: #1e293b; }
[data-theme="light"] .gauge-label { color: #1e293b; }
[data-theme="light"] .gauge-sub { color: #64748b; }

.temperament-advice-box {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.28);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: #ccfbf1;
  line-height: 1.5;
}

.temperament-advice-title {
  font-size: 12px;
  font-weight: 800;
  color: #5eead4;
  margin-bottom: 4px;
}

[data-theme="light"] .temperament-advice-box {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  color: #134e4a;
}

[data-theme="light"] .temperament-advice-title {
  color: #0f766e;
}

/* ==========================================================================
   Parent Guide Modal: Fully Scrollable & 8-Axis Explainers
   ========================================================================== */
.parent-guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

[data-theme="light"] .parent-guide-modal-overlay {
  background: rgba(15, 23, 42, 0.65);
}

.parent-guide-modal-card {
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  border-radius: 20px;
  background: #121628;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-family);
  animation: modalPopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .parent-guide-modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

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

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  background: inherit;
  flex-shrink: 0;
}

[data-theme="light"] .modal-header-row {
  border-bottom: 1px solid #e2e8f0;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-guide-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

[data-theme="light"] .modal-guide-badge {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.modal-guide-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

[data-theme="light"] .modal-guide-title {
  color: #0f172a;
}

.modal-guide-subtitle {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.modal-close-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] .modal-close-icon-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
}

[data-theme="light"] .modal-close-icon-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Dedicated Scrollable Content Body */
.modal-body-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}

.modal-body-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

.guide-callout-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

[data-theme="light"] .guide-callout-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.guide-callout-title {
  font-size: 13px;
  font-weight: 800;
  color: #a5b4fc;
  margin-bottom: 6px;
}

[data-theme="light"] .guide-callout-title {
  color: #1e293b;
}

.guide-callout-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

[data-theme="light"] .guide-callout-text {
  color: #475569;
}

/* ==========================================================================
   Progressive Calibration Roadmap in Parent Guide
   ========================================================================== */
.guide-roadmap-section {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}

.guide-roadmap-section.highlight-pulse {
  animation: dimPulse 1.4s ease-in-out;
  border-color: #6366f1 !important;
}

[data-theme="light"] .guide-roadmap-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.guide-roadmap-header {
  margin-bottom: 12px;
}

.guide-roadmap-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 3px 0 0;
  line-height: 1.45;
}

[data-theme="light"] .guide-roadmap-sub {
  color: #64748b;
}

.roadmap-stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 580px) {
  .roadmap-stages-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.roadmap-stage-card {
  background: rgba(18, 22, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

[data-theme="light"] .roadmap-stage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.roadmap-stage-card:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.35);
}

.stage-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.stage-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
}

[data-theme="light"] .stage-tag {
  background: #eef2ff;
  color: #4338ca;
}

.stage-papers-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .stage-papers-pill {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.stage-conf-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.stage-1 .stage-conf-pill { background: rgba(249, 115, 22, 0.16); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.stage-2 .stage-conf-pill { background: rgba(59, 130, 246, 0.16); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.stage-3 .stage-conf-pill { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.stage-4 .stage-conf-pill { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

[data-theme="light"] .stage-1 .stage-conf-pill { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
[data-theme="light"] .stage-2 .stage-conf-pill { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
[data-theme="light"] .stage-3 .stage-conf-pill { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
[data-theme="light"] .stage-4 .stage-conf-pill { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.stage-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 3px 0 4px;
}

[data-theme="light"] .stage-title {
  color: #0f172a;
}

.stage-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.42;
  margin: 0 0 8px;
  flex: 1;
}

[data-theme="light"] .stage-desc {
  color: #475569;
}

.stage-takeaway {
  font-size: 10.5px;
  line-height: 1.35;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
  color: var(--text-secondary);
}

.stage-takeaway strong {
  color: var(--text-primary);
}

[data-theme="light"] .stage-takeaway {
  background: #f8fafc;
  color: #334155;
  border-left-color: #4338ca;
}

[data-theme="light"] .stage-takeaway strong {
  color: #0f172a;
}

.roadmap-quote-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-top: 12px;
}

[data-theme="light"] .roadmap-quote-banner {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.roadmap-quote-banner strong {
  color: var(--text-primary);
}

[data-theme="light"] .roadmap-quote-banner strong {
  color: #0f172a;
}

.guide-section-heading {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 16px 0 10px;
  letter-spacing: 0.3px;
}

[data-theme="light"] .guide-section-heading {
  color: #0f172a;
}

.guide-section-counter {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .guide-section-counter {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.shape-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.shape-tip-icon { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.shape-tip-title { font-size: 12.5px; font-weight: 800; margin-bottom: 2px; }
.shape-tip-body { font-size: 11.5px; line-height: 1.4; color: var(--text-secondary); }
[data-theme="light"] .shape-tip-body { color: #334155; }

.shape-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.shape-blue .shape-tip-title { color: #93c5fd; }
[data-theme="light"] .shape-blue { background: #eff6ff; border-color: #bfdbfe; }
[data-theme="light"] .shape-blue .shape-tip-title { color: #1e40af; }

.shape-teal {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
}
.shape-teal .shape-tip-title { color: #5eead4; }
[data-theme="light"] .shape-teal { background: #f0fdfa; border-color: #99f6e4; }
[data-theme="light"] .shape-teal .shape-tip-title { color: #0f766e; }

.shape-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
}
.shape-purple .shape-tip-title { color: #d8b4fe; }
[data-theme="light"] .shape-purple { background: #faf5ff; border-color: #e9d5ff; }
[data-theme="light"] .shape-purple .shape-tip-title { color: #7e22ce; }

/* 8 Dimensions Explainer Cards */
.dimension-explainers-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.dimension-explainer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.dimension-explainer-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.dimension-explainer-card.highlight-pulse {
  animation: dimPulse 1.4s ease-in-out;
  border-color: #6366f1 !important;
}

@keyframes dimPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 16px rgba(99, 102, 241, 0.6); }
}

[data-theme="light"] .dimension-explainer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .dimension-explainer-card:hover {
  border-color: #818cf8;
  background: #fcfdfe;
}

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

.dim-card-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dim-icon { font-size: 20px; }
.dim-friendly-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

[data-theme="light"] .dim-friendly-title {
  color: #0f172a;
}

.dim-technical-metric {
  font-size: 10.5px;
  color: var(--text-muted);
}

.dim-score-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
}

.dim-score-pill.tested {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dim-score-pill.locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

[data-theme="light"] .dim-score-pill.tested {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

[data-theme="light"] .dim-score-pill.locked {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.dim-explanation {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

[data-theme="light"] .dim-explanation {
  color: #475569;
}

.dim-stream-fit {
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="light"] .dim-stream-fit {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

/* Modal Footer Pinned */
.modal-footer-pinned {
  padding: 14px 22px;
  border-top: 1px solid var(--border-color);
  background: inherit;
  flex-shrink: 0;
}

[data-theme="light"] .modal-footer-pinned {
  border-top: 1px solid #e2e8f0;
}

.modal-guide-done-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .gauges-row {
    margin: 14px 0;
    gap: 10px;
  }
  .gauge-circle {
    width: 72px;
    height: 72px;
    border-width: 5px;
  }
  .gauge-number {
    font-size: 15px;
  }
  .gauge-label {
    font-size: 11px;
  }
  .gauge-sub {
    font-size: 9px;
  }

  .parent-guide-modal-overlay {
    padding: 8px;
  }
  .parent-guide-modal-card {
    max-height: 94vh;
    border-radius: 16px;
  }
  .modal-header-row {
    padding: 12px 14px;
  }
  .modal-guide-badge {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .modal-guide-title {
    font-size: 15px;
  }
  .modal-body-scroll {
    padding: 12px 14px;
  }
  .modal-footer-pinned {
    padding: 10px 14px;
  }
  .modal-guide-done-btn {
    padding: 10px;
    font-size: 13px;
  }
  .dim-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ==========================================================================
   COGNITIVE SCIENCE & CAREER DISCOVERY SECTION STYLING
   ========================================================================== */
.cognitive-science-section {
  padding: 5rem 0 3.5rem 0;
  font-family: var(--font-family);
}

.cog-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.35rem;
}

[data-theme="light"] .cog-subtitle {
  color: #4338ca;
}

.cog-lead-card {
  padding: 2.2rem 2.4rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.cog-lead-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: center;
}

.cog-lead-text p {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cog-lead-text p:last-child {
  margin-bottom: 0;
}

.cog-lead-highlight {
  font-size: 1.15rem !important;
  color: var(--text-primary) !important;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.cog-lead-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cog-pulse-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(30, 27, 75, 0.8) 70%);
  border: 2px solid rgba(99, 102, 241, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.35);
  animation: orbGlow 3s ease-in-out infinite alternate;
}

[data-theme="light"] .cog-pulse-orb {
  background: radial-gradient(circle, #eef2ff 0%, #e0e7ff 70%);
  border-color: #818cf8;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.cog-pulse-orb .orb-icon {
  font-size: 42px;
  line-height: 1;
}

.cog-pulse-orb .orb-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: 6px;
}

@keyframes orbGlow {
  0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(99, 102, 241, 0.25); }
  100% { transform: scale(1.04); box-shadow: 0 0 45px rgba(99, 102, 241, 0.5); }
}

.cog-sub-header {
  margin-bottom: 1.5rem;
}

.cog-sub-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.cog-sub-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cog-science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.cog-res-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cog-res-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
}

.res-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.res-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 1.25rem;
}

[data-theme="light"] .res-icon-wrap {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.res-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

[data-theme="light"] .res-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.cog-res-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.res-citation {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .res-citation {
  color: #4f46e5;
}

.res-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.res-usage-box {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

[data-theme="light"] .res-usage-box {
  background: #f8fafc;
  border-left-color: #4338ca;
  color: #334155;
}

.res-usage-box strong {
  color: var(--text-primary);
}

/* 8 Cognitive Dimensions Table */
.cog-table-container {
  padding: 1.25rem;
  border-radius: 20px;
  margin-bottom: 3.5rem;
}

.cog-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cog-dimensions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.9rem;
}

.cog-dimensions-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

[data-theme="light"] .cog-dimensions-table thead th {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom: 1px solid #cbd5e1;
}

.cog-dimensions-table tbody td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

[data-theme="light"] .cog-dimensions-table tbody td {
  border-bottom: 1px solid #e2e8f0;
}

.cog-dimensions-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .cog-dimensions-table tbody tr:hover {
  background: #f8fafc;
}

.dim-num {
  font-weight: 800;
  color: var(--text-muted);
}

.dim-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.dim-emoji {
  font-size: 1.25rem;
}

.dim-name-cell strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dim-desc-cell {
  color: var(--text-secondary);
  line-height: 1.45;
}

.dim-fit-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

/* Stream Pills inside Table */
.stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
}

.stream-jee { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.stream-math, .stream-quant { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.stream-cs { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.stream-ai, .stream-data { background: rgba(147, 51, 234, 0.15); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.3); }
.stream-arch, .stream-mech, .stream-surg { background: rgba(20, 184, 166, 0.15); color: #5eead4; border: 1px solid rgba(20, 184, 166, 0.3); }
.stream-neet, .stream-biotech, .stream-pharma { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.stream-science, .stream-research, .stream-upsc { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.stream-law, .stream-media, .stream-policy { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.stream-comm, .stream-ca, .stream-ib { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.stream-precision { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }

[data-theme="light"] .stream-jee { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
[data-theme="light"] .stream-math, [data-theme="light"] .stream-quant { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
[data-theme="light"] .stream-cs { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
[data-theme="light"] .stream-ai, [data-theme="light"] .stream-data { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
[data-theme="light"] .stream-arch, [data-theme="light"] .stream-mech, [data-theme="light"] .stream-surg { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
[data-theme="light"] .stream-neet, [data-theme="light"] .stream-biotech, [data-theme="light"] .stream-pharma { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
[data-theme="light"] .stream-science, [data-theme="light"] .stream-research, [data-theme="light"] .stream-upsc { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
[data-theme="light"] .stream-law, [data-theme="light"] .stream-media, [data-theme="light"] .stream-policy { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
[data-theme="light"] .stream-comm, [data-theme="light"] .stream-ca, [data-theme="light"] .stream-ib { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
[data-theme="light"] .stream-precision { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }

/* Benefits Grid */
.cog-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.cog-benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.85rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cog-benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .benefit-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.cog-benefit-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.cog-benefit-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.benefit-slips-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefit-slips-list li {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  padding-left: 0.35rem;
}

.benefit-outcome-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: #6ee7b7;
  line-height: 1.45;
}

[data-theme="light"] .benefit-outcome-box {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.benefit-sub-block {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.benefit-sub-block strong {
  color: var(--text-primary);
}

/* Summary Banner */
.cog-summary-banner {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cog-summary-content {
  max-width: 760px;
  margin: 0 auto;
}

.summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .summary-badge {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.cog-quote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 1.75rem 0;
  font-style: italic;
}

[data-theme="light"] .cog-quote {
  color: #1e1b4b;
}

.cog-summary-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .cog-science-grid,
  .cog-benefits-grid {
    grid-template-columns: 1fr;
  }
  .cog-lead-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cog-lead-highlight {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--primary);
    padding-top: 0.75rem;
  }
}

@media (max-width: 680px) {
  .cognitive-science-section {
    padding: 3.5rem 0 2rem 0;
  }
  .cog-lead-card {
    padding: 1.4rem 1.1rem;
  }
  .cog-table-container {
    padding: 0.85rem 0.5rem;
  }
  .cog-dimensions-table thead th,
  .cog-dimensions-table tbody td {
    padding: 0.75rem 0.65rem;
    font-size: 0.82rem;
  }
  .cog-quote {
    font-size: 1.05rem;
  }
}


/* Field-level Dual OTP Error Styles */
.otp-error-feedback {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--danger, #ef4444);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.4rem;
  line-height: 1.3;
}

input.border-danger {
  border-color: var(--danger, #ef4444) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

input.border-success {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.06) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
  color: #10b981 !important;
}

.badge-verified-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.otp-resend-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--accent-light, #818cf8);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.otp-resend-link-btn:disabled {
  color: var(--text-muted, #94a3b8);
  cursor: not-allowed;
  opacity: 0.75;
}

.otp-resend-link-btn:not(:disabled):hover {
  color: var(--primary, #6366f1);
  text-decoration: underline;
}
/* ------------------------------------------------------------- */
/* Country Dial Code Badge & Dynamic Mobile Phone Input Group    */
/* ------------------------------------------------------------- */
.phone-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.dial-code-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background-color: var(--bg-surface-elevated, #1e293b);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  min-width: 4.5rem;
  user-select: none;
  transition: all var(--transition-fast);
}

[data-theme="light"] .dial-code-badge {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.input-wrapper:has(.input-icon) select {
  padding-left: 3rem;
}

/* ------------------------------------------------------------- */
/* Zero-Test Cognitive Insights Clean Empty State Card           */
/* ------------------------------------------------------------- */
.insights-empty-state-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1.5px dashed var(--border-color);
  margin: 1.25rem 0;
}

.insights-empty-state-card .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.insights-empty-state-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.insights-empty-state-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.insights-empty-state-card .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ------------------------------------------------------------- */
/* Searchable Custom Country Dropdown Picker (Always Drops DOWN) */
/* ------------------------------------------------------------- */
.custom-country-picker {
  position: relative;
  width: 100%;
}

.custom-country-trigger {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 2.5rem 1rem 3rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: all var(--transition-fast);
  outline: none;
  position: relative;
}

[data-theme="light"] .custom-country-trigger {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}

.custom-country-trigger:focus,
.custom-country-trigger.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.custom-country-trigger .input-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
}

.custom-country-trigger .country-chevron {
  position: absolute;
  right: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.custom-country-trigger.active .country-chevron {
  transform: rotate(180deg);
}

.custom-country-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--bg-surface, #1e293b);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 1050;
  overflow: hidden;
  animation: slideDownFade 0.18s ease-out;
}

[data-theme="light"] .custom-country-panel {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

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

.country-search-wrap {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.03));
}

[data-theme="light"] .country-search-wrap {
  background: #f8fafc;
}

.country-search-wrap i {
  position: absolute;
  left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.country-search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem !important;
  font-size: 0.88rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-color) !important;
  color: var(--text-primary) !important;
  outline: none !important;
}

[data-theme="light"] .country-search-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.country-options-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.country-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.12s ease;
}

.country-option-item:hover,
.country-option-item.highlighted {
  background-color: var(--bg-surface-elevated, rgba(99, 102, 241, 0.12));
  color: var(--primary);
}

[data-theme="light"] .country-option-item:hover,
[data-theme="light"] .country-option-item.highlighted {
  background-color: #f1f5f9;
  color: var(--primary);
}

.country-option-item.selected {
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.08);
}

.country-opt-code {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-light, #818cf8);
}


/* --------------------------------------------------------
   SCHOOL AUTOCOMPLETE COMBOBOX (33,990 CBSE & ICSE SCHOOLS)
   -------------------------------------------------------- */
.school-autocomplete-wrap {
  position: relative;
  width: 100%;
}

.school-suggestions-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--bg-surface, #1e293b);
  border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  max-height: 270px;
  overflow-y: auto;
  z-index: 1050;
  padding: 0.4rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

[data-theme="light"] .school-suggestions-panel {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.school-suggestion-item {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.school-suggestion-item:last-child {
  border-bottom: none;
}

.school-suggestion-item:hover,
.school-suggestion-item.active-focus {
  background: rgba(99, 102, 241, 0.12);
  transform: translateX(2px);
}

[data-theme="light"] .school-suggestion-item {
  border-bottom-color: #f1f5f9;
}

[data-theme="light"] .school-suggestion-item:hover,
[data-theme="light"] .school-suggestion-item.active-focus {
  background: #eef2ff;
}

.school-suggestion-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.school-suggestion-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.school-badge-code {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary, #6366f1);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.3px;
}

.school-empty-state {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* --------------------------------------------------------
   GEOGRAPHICAL COMPLIANCE & ANTI-VPN ADVISORY BANNER
   -------------------------------------------------------- */
.geo-vpn-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

[data-theme="light"] .geo-vpn-notice-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.geo-vpn-notice-card.warning-mismatch {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

.geo-notice-icon {
  font-size: 1.15rem;
  color: var(--primary, #6366f1);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.geo-vpn-notice-card.warning-mismatch .geo-notice-icon {
  color: #ef4444;
}

.geo-notice-body {
  flex: 1;
}

.geo-notice-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.geo-notice-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  line-height: 1.45;
}

/* --------------------------------------------------------
   POLICY 'I UNDERSTAND & ACCEPT' CARD & CONSENT PULSE
   -------------------------------------------------------- */
.modal-card:has(.policy-accept-card) .modal-text-content {
  max-height: 56vh;
}

.policy-accept-card {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.04));
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

[data-theme="light"] .policy-accept-card {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.policy-accept-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.policy-accept-icon {
  font-size: 1.65rem;
  flex-shrink: 0;
}

.policy-accept-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.policy-accept-sub {
  margin: 0.15rem 0 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.policy-accept-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.policy-accept-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.policy-accept-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .modal-card:has(.policy-accept-card) .modal-text-content {
    max-height: 50vh;
  }
  .policy-accept-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
    padding: 0.9rem;
    margin-top: 1rem;
  }
  .policy-accept-info {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
  .policy-accept-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Pulse animation on legal-consent-item when auto-ticked */
@keyframes consentPulseTick {
  0% {
    background-color: transparent;
    transform: scale(1);
  }
  35% {
    background-color: rgba(16, 185, 129, 0.22);
    border-radius: 8px;
    transform: scale(1.02);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

.legal-consent-item {
  transition: background-color 0.2s ease, transform 0.2s ease;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.legal-consent-item.pulse-accepted {
  animation: consentPulseTick 0.75s ease-out;
}

/* --------------------------------------------------------
   PARIKSHAWALA GUIDED HELP CENTER & TAWK.TO ESCALATION UI
   -------------------------------------------------------- */
.help-center-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 998;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.help-center-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.55);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

.help-center-floating-btn:active {
  transform: translateY(0);
}

.help-center-floating-btn.hidden,
body:has(#help-center-modal.open) .help-center-floating-btn {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.help-trigger-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-trigger-icon {
  font-size: 1.15rem;
}

.help-online-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.help-trigger-text {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* Help Center Modal Container */
.help-center-card {
  max-width: 600px !important;
  width: 94% !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem 1.6rem !important;
}

.help-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.help-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.help-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.help-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.help-modal-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.help-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.help-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: helpPulse 1.8s infinite;
}

@keyframes helpPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.help-modal-subtitle {
  font-size: 0.8rem;
  margin: 0.15rem 0 0 0;
  color: var(--text-muted);
}

.help-close-btn {
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.help-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

/* Help Center Search Container */
.help-search-container {
  padding: 0.75rem 0 0.5rem 0;
}

.help-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  transition: all 0.2s ease;
}

.help-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.08));
}

[data-theme="light"] .help-search-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.help-search-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.help-search-input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0 !important;
}

.help-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.help-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  margin-left: 0.4rem;
}

.help-search-clear:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Search Results UI */
.help-search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  padding: 0 0.2rem;
}

.help-search-back-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  text-transform: none;
}

.help-search-back-link:hover {
  text-decoration: underline;
}

.help-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.help-search-result-card {
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.help-search-result-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--bg-surface-hover, rgba(99, 102, 241, 0.08));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .help-search-result-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .help-search-result-card:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

.help-search-result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.help-search-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.help-search-live-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.help-search-result-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.help-search-result-title mark,
.help-search-result-snippet mark {
  background: rgba(99, 102, 241, 0.32);
  color: inherit;
  font-weight: 700;
  border-radius: 3px;
  padding: 0 3px;
}

[data-theme="light"] .help-search-result-title mark,
[data-theme="light"] .help-search-result-snippet mark {
  background: #fde047;
  color: #0f172a;
}

.help-search-result-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.35rem;
}

/* No results state */
.help-no-results {
  text-align: center;
  padding: 2.2rem 1.2rem;
}

.help-no-results-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

.help-no-results-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.help-no-results-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 1.35rem auto;
  line-height: 1.5;
}

.help-btn-escalate-search {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: #ffffff;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.help-btn-escalate-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

/* Breadcrumbs */
.help-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.2rem;
  font-size: 0.82rem;
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 0.75rem;
}

.help-breadcrumb-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  padding: 0;
}

.help-breadcrumb-btn:hover {
  text-decoration: underline;
}

.help-breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.help-breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* Body & Messages */
.help-center-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-top: 0.5rem;
  min-height: 280px;
}

.help-bot-msg {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  animation: fadeInMsg 0.2s ease-out;
}

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

.help-bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.help-bot-bubble {
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.05rem;
  border-radius: 4px 16px 16px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

[data-theme="light"] .help-bot-bubble {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.help-prompt-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

/* Category Grid */
.help-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.help-category-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
}

[data-theme="light"] .help-category-chip {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
}

.help-category-chip:hover {
  border-color: var(--primary);
  background: var(--bg-surface-elevated, rgba(99, 102, 241, 0.08));
  transform: translateX(3px);
  color: var(--primary);
}

[data-theme="light"] .help-category-chip:hover {
  background: #f8fafc;
  border-color: #6366f1;
}

.help-category-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.help-cat-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.help-category-chip:hover .help-cat-chevron {
  color: var(--primary);
  transform: translateX(2px);
}

.help-category-chip.chip-counselor {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border-color: rgba(99, 102, 241, 0.4);
}

.help-category-chip.chip-counselor:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
}

/* Question Chips */
.help-question-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 0.5rem;
  text-align: left;
  width: 100%;
}

[data-theme="light"] .help-question-chip {
  background: #ffffff;
  border-color: #e2e8f0;
}

.help-question-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(3px);
  background: rgba(99, 102, 241, 0.06);
}

.help-question-chip.help-chip-escalate {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 700;
  color: var(--accent-light, #818cf8);
  margin-top: 0.75rem;
}

.help-question-chip.help-chip-escalate:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--primary);
}

/* Answer View */
.help-selected-question {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.help-answer-card {
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.03));
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-line;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .help-answer-card {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.help-resolution-bar {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border-color);
  text-align: center;
}

[data-theme="light"] .help-resolution-bar {
  background: #ffffff;
  border-color: #e2e8f0;
}

.help-resolution-prompt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.help-resolution-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.help-btn-resolved {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 0.55rem 1.1rem !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.help-btn-resolved:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  transform: translateY(-1px);
}

.help-btn-escalate {
  background: rgba(99, 102, 241, 0.15) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  color: var(--accent-light, #818cf8) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 0.55rem 1.1rem !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.help-btn-escalate:hover {
  background: rgba(99, 102, 241, 0.25) !important;
  transform: translateY(-1px);
}

/* Thank You State */
.help-thank-you-view {
  text-align: center;
  padding: 2rem 1.5rem;
}

.help-thank-you-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0.85rem 0 0.4rem 0;
  color: var(--text-primary);
}

.help-thank-you-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .help-center-floating-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
  .help-center-card {
    padding: 1.25rem 1.1rem !important;
    max-height: 90vh !important;
  }
  .help-resolution-actions {
    flex-direction: column;
  }
  .help-btn-resolved, .help-btn-escalate {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   STATUTORY TAX INVOICE PRINT STYLESHEET (RULE 46 CGST & MINOR PRIVACY SHIELD)
   Ensures print-to-paper and print-to-PDF output renders ONLY the clean invoice
   and strictly suppresses minor student personal real names from physical/PDF leakage.
   ========================================================================== */
@media print {
  /* Hide the rest of the application body, modals, navigation, headers, footers */
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  body > *:not(#payment-success-modal) {
    display: none !important;
  }

  /* Keep the modal overlay active in flow, but remove background tints/blur */
  #payment-success-modal {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }

  #payment-success-modal .modal-card,
  #payment-success-modal .invoice-modal {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 720px !important;
    width: 100% !important;
  }

  /* Suppress screen-only action elements, modal header, and success greetings */
  #close-invoice-modal,
  #inv-modal-badge,
  #inv-modal-header,
  #payment-success-msg,
  .invoice-actions,
  #invoice-dashboard-btn,
  #invoice-print-btn,
  .modal-close {
    display: none !important;
  }

  /* Printable invoice card: Clean, high-contrast, professional typography */
  #printable-invoice {
    display: block !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 24px 28px !important;
    margin: 0 auto !important;
    max-width: 720px !important;
    width: 100% !important;
    box-shadow: none !important;
  }

  .invoice-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    border-bottom: 2px solid #0f172a !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
  }

  .invoice-header-row div {
    color: #0f172a !important;
  }

  .invoice-badge {
    background: #f1f5f9 !important;
    border: 1px solid #0f172a !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
  }

  .summary-divider {
    display: none !important;
  }

  .invoice-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
  }

  .inv-label {
    color: #64748b !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
  }

  .inv-val {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .inv-sub {
    color: #475569 !important;
    font-size: 11px !important;
  }

  /* CRITICAL MINOR PRIVACY SHIELD:
     Strictly suppress minor student personal name in print / PDF output */
  #inv-student-name,
  .screen-only-student-name,
  .print-suppress-name {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Emphasize the bijective Crockford Student ID */
  #inv-student-code {
    display: block !important;
    font-family: "Courier New", Courier, monospace !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-top: 4px !important;
  }

  .invoice-items-table {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .inv-row {
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .inv-row.header {
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-bottom: none !important;
  }

  .inv-row.header span {
    color: #ffffff !important;
  }

  .inv-row.small {
    background: #f8fafc !important;
    color: #475569 !important;
  }

  .inv-row.total {
    background: #eef2ff !important;
    border-bottom: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .inv-row.total strong {
    color: #0f172a !important;
    font-size: 14px !important;
  }

  .inv-footer-note {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #475569 !important;
    font-size: 11px !important;
    padding: 8px 12px !important;
    text-align: center !important;
  }

  @page {
    margin: 1.5cm;
    size: A4 portrait;
  }
}
