/* ==========================================================================
   FIZYA OMAN — MASTER DESIGN SYSTEM & RESPONSIVE STYLESHEET
   Typography: Cairo (Official Arabic Font) & Outfit
   Brand: Royal Violet, Electric Indigo, Vibrant Coral, Clean White
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-purple: #6d28d9;
  --primary-indigo: #4f46e5;
  --accent-orange: #ff6b00;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-coral: #f43f5e;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #6d28d9 0%, #4f46e5 50%, #2563eb 100%);
  --grad-orange: linear-gradient(135deg, #ff6b00 0%, #ff8c33 100%);
  --grad-button: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  --grad-atom: linear-gradient(135deg, #06b6d4 0%, #6d28d9 100%);

  /* Backgrounds */
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --bg-light-purple: #f5f3ff;
  --bg-dark-lab: #0a0e1a;
  --bg-card-dark: #121829;

  /* Text */
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-purple: #ddd6fe;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(109, 40, 217, 0.15);
  --shadow-dark-glow: 0 0 30px rgba(6, 182, 212, 0.25);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --trans: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Cairo', sans-serif;
  transition: var(--trans);
}

.container-custom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-padding {
  padding: 5rem 0;
}

.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-body); }
.bg-dark { background-color: var(--bg-dark-lab); color: #fff; }

.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-purple);
  margin-bottom: 0.75rem;
  background: var(--bg-light-purple);
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
}

.section-subtitle.cyan-glow {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

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

.text-white .section-title,
.text-white .section-desc {
  color: #fff;
}
.text-white .section-desc {
  color: #cbd5e1;
}

.text-center { text-align: center; }

/* Responsive Visibility Helpers */
.show-on-tablet { display: none !important; }
.hide-on-mobile { display: flex; }
.hide-on-tablet { display: flex; }

/* ================= Top Announcement Bar ================= */
.top-announcement-bar {
  background: linear-gradient(90deg, #4c1d95, #6d28d9, #4f46e5);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.badge-new {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.announcement-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  flex-shrink: 0;
}

.announcement-links .sep { opacity: 0.6; }
.announcement-links a:hover { text-decoration: underline; }

/* ================= Main Navbar ================= */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-vector-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--grad-button);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.3);
  padding: 8px;
}

.brand-vector-icon.small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 6px;
}

.brand-vector-icon svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
}

.brand-title h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-purple);
  line-height: 1;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-purple);
}

.nav-link.highlight-pill {
  background: var(--bg-light-purple);
  color: var(--primary-purple);
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-gradient-custom {
  background: var(--grad-button);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-gradient-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.45);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary-purple);
  border: 1.5px solid var(--border-purple);
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-outline-custom:hover {
  background: var(--bg-light-purple);
  border-color: var(--primary-purple);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: transparent;
  color: var(--primary-purple);
  padding: 0.5rem;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.mobile-drawer.active {
  display: block;
}

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

.mobile-nav-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link:hover,
.mobile-nav-link.highlight {
  color: var(--primary-purple);
}

/* ================= Hero Section ================= */
.hero-section {
  position: relative;
  padding: 5rem 0 5.5rem;
  background: linear-gradient(180deg, #fbfaff 0%, #f1f5f9 100%);
  overflow: hidden;
}

.hero-bg-shapes .shape-circle-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-shapes .shape-circle-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-purple);
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-main-title {
  font-size: 3.1rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-indigo), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--grad-button);
  color: #fff;
  padding: 0.95rem 2rem;
  border-radius: var(--r-full);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(109, 40, 217, 0.45);
}

.btn-hero-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
  padding: 0.95rem 1.75rem;
  border-radius: var(--r-full);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-hero-secondary:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.hero-trust-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* Hero Right: Interactive Trial Card */
.hero-quick-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-purple);
}

.card-header-gradient {
  background: linear-gradient(135deg, var(--bg-light-purple), #ffffff);
  padding: 1rem;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-purple);
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 0.35rem;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-ring-anim 1.5s infinite;
}

@keyframes pulse-ring-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.card-preview-box {
  background: var(--bg-dark-lab);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-preview-atom-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--grad-button);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
  padding: 14px;
}

.hero-preview-atom-icon svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
}

.preview-stats {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 0.82rem;
  flex-wrap: wrap;
  justify-content: center;
}

.preview-stats .lbl {
  color: var(--accent-cyan);
  margin-left: 4px;
}

.btn-block-gradient {
  width: 100%;
  background: var(--grad-orange);
  color: #fff;
  padding: 0.85rem;
  border-radius: var(--r-md);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.3);
}

.btn-block-gradient:hover {
  transform: translateY(-2px);
}

/* ================= Stats Counter Banner ================= */
.stats-counter-banner {
  background: #ffffff;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.stat-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon-wrapper.purple { background: var(--bg-light-purple); color: var(--primary-purple); }
.stat-icon-wrapper.cyan { background: #ecfeff; color: var(--accent-cyan); }
.stat-icon-wrapper.orange { background: #fff7ed; color: var(--accent-orange); }
.stat-icon-wrapper.green { background: #ecfdf5; color: var(--accent-emerald); }

.stat-info h3 {
  font-size: 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  margin-bottom: 0.15rem;
}

.stat-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ================= Features Grid ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.25rem 1.75rem;
  transition: var(--trans);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-purple);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bg-purple-light { background: var(--bg-light-purple); }
.text-purple { color: var(--primary-purple); }
.bg-blue-light { background: #eff6ff; }
.text-blue { color: #2563eb; }
.bg-orange-light { background: #fff7ed; }
.text-orange { color: var(--accent-orange); }
.bg-green-light { background: #ecfdf5; }
.text-green { color: var(--accent-emerald); }

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.feature-link {
  font-weight: 800;
  color: var(--primary-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

/* ================= 3D Virtual Lab Arena ================= */
.lab-main-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.lab-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  padding: 1rem 1.5rem;
}

.lab-exp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 2px;
}

.lab-tab-btn {
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-tab-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lab-tab-btn.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  font-weight: 700;
}

.lab-tab-btn.active i {
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.lab-mode-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-mode {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-mode:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-mode.active {
  background: rgba(14, 165, 233, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.lab-interactive-viewport {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: 560px;
  position: relative;
}

.canvas-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #020617;
  overflow: hidden;
}

.canvas-3d-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 40px rgba(14, 165, 233, 0.1);
  pointer-events: none;
}

#threeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.floating-hud {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hud-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3rem;
}
.hud-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hud-item .lbl { color: #94a3b8; font-weight: 500; }
.hud-item .val { 
  font-family: 'Fira Code', monospace; 
  color: #38bdf8; 
  font-weight: 700; 
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.canvas-hint-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lab-data-sidebar {
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid rgba(14, 165, 233, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

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

.data-box-header h4 {
  font-size: 1.05rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.data-box-header h4 i { color: #22d3ee; }

.btn-xs {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-xs:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(109, 40, 217, 0.5);
}

.table-scroll-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.mini-data-table {
  width: 100%;
  font-size: 0.8rem;
  color: #e2e8f0;
  border-collapse: collapse;
}

.mini-data-table th,
.mini-data-table td {
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.mini-data-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.graph-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.graph-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.slope-text { color: #10b981; font-weight: 700; text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.cambridge-callout {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.cambridge-callout::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.2), transparent 70%);
  pointer-events: none;
}

.cambridge-callout strong { color: #818cf8; display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem;}
.cambridge-callout p { color: #e2e8f0; margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.5; }

.formula-render-box {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: #38bdf8;
  text-align: center;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
}

/* Slider Controls Tray */
.lab-controls-tray {
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(14, 165, 233, 0.2);
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.3);
}

.param-slider-group {
  flex: 1;
  min-width: 180px;
}

.param-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.param-slider-group label span {
  color: var(--accent-cyan);
  font-family: 'Fira Code', monospace;
}

.param-slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--primary-indigo);
}

.lab-tray-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-fire-cannon {
  background: var(--grad-orange);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-reset-exp {
  background: #1e293b;
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--r-md);
  font-weight: 700;
}

/* ================= Curriculum Explorer ================= */
.curriculum-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.grade-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.grade-pill-btn {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.88rem;
}

.grade-pill-btn.active {
  background: var(--primary-purple);
  color: #fff;
  border-color: var(--primary-purple);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.term-toggle-wrapper {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  padding: 3px;
}

.term-toggle-btn {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.45rem 1.15rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.85rem;
}

.term-toggle-btn.active {
  background: var(--primary-indigo);
  color: #fff;
}

.units-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.unit-modern-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}

.unit-modern-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-purple);
  box-shadow: var(--shadow-lg);
}

.unit-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-light-purple), #ffffff);
  border-bottom: 1px solid var(--border-purple);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.unit-badge-pill {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--primary-purple);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
}

.unit-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.unit-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.unit-topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.unit-topics-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.unit-card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-open-lab-inline {
  background: var(--bg-light-purple);
  color: var(--primary-purple);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-open-lab-inline:hover {
  background: var(--primary-purple);
  color: #fff;
}

/* ================= Textbooks Library ================= */
.books-filter-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.book-chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.book-chip-btn.active {
  background: var(--grad-button);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.books-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.book-modern-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}

.book-modern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.book-cover-top {
  padding: 1.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-cover-top.student { background: linear-gradient(135deg, #ede9fe, #dbeafe); }
.book-cover-top.activity {
  background: linear-gradient(135deg, #10b981, #059669);
}
.book-cover-top.teacher {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.book-cover-top.notes {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.book-icon-large {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  box-shadow: var(--shadow-sm);
}

.book-details-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.book-details-body h4 {
  font-size: 1.15rem;
  font-weight: 800;
}

.book-details-body .meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.book-card-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.btn-read-modal {
  flex: 1;
  background: var(--grad-button);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-external-moe {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
}

/* ================= Bloom Question Bank ================= */
.bloom-chips-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.bloom-chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.85rem;
}

.bloom-chip-btn.active {
  background: var(--primary-indigo);
  color: #fff;
  border-color: var(--primary-indigo);
}

.questions-modern-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.question-modern-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

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

.q-bloom-tag {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--bg-light-purple);
  color: var(--primary-purple);
}

.q-marks-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.q-body-text {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.q-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.q-opt-btn {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.q-opt-btn:hover {
  background: #ffffff;
  border-color: var(--primary-purple);
}

.q-opt-btn.correct {
  background: #ecfdf5 !important;
  border-color: var(--accent-emerald) !important;
  color: #065f46 !important;
}

.q-opt-btn.incorrect {
  background: #fff1f2 !important;
  border-color: var(--accent-coral) !important;
  color: #9f1239 !important;
}

.q-explanation-box {
  background: #f8fafc;
  border-right: 4px solid var(--primary-indigo);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

.q-explanation-box.active {
  display: block;
}

/* ================= Teacher Lesson Planner ================= */
.planner-actions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.planner-info-tag {
  font-weight: 800;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.planner-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lesson-plan-document {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.plan-official-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-side {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.header-center {
  text-align: center;
}

.header-center h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.plan-subject-tag {
  font-size: 0.85rem;
  color: var(--primary-purple);
  font-weight: 800;
}

.table-responsive-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.longitudinal-table {
  width: 100%;
  border-collapse: collapse;
}

.longitudinal-table th,
.longitudinal-table td {
  border: 1px solid #cbd5e1;
  padding: 0.75rem;
  vertical-align: top;
}

.longitudinal-table th {
  background: var(--bg-light-purple);
  color: var(--primary-purple);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.plan-cell-input {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.6;
  background: transparent;
}

.plan-signatures {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border-light);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================= Pricing Cards ================= */
.thawani-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
}

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

.pricing-box {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--trans);
  box-shadow: var(--shadow-sm);
}

.pricing-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-box.featured {
  border-color: var(--primary-purple);
  box-shadow: 0 15px 35px rgba(109, 40, 217, 0.15);
  transform: scale(1.03);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 1.25rem;
  border-radius: var(--r-full);
}

.pricing-plan-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.featured-badge {
  color: var(--primary-purple);
}

.price-row {
  margin: 1.25rem 0 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price-val {
  font-size: 2.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: var(--text-main);
}

.price-curr { font-weight: 800; font-size: 1.1rem; color: var(--text-secondary); }
.price-period { color: var(--text-muted); font-size: 0.9rem; }

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.plan-features-list li i { color: var(--accent-emerald); }
.plan-features-list li.disabled { color: var(--text-muted); text-decoration: line-through; }
.plan-features-list li.disabled i { color: var(--text-muted); }

.btn-block { width: 100%; text-align: center; justify-content: center; }

/* ================= Footer ================= */
.main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 4.5rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo h3 { color: #fff; font-size: 1.35rem; }

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

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

.footer-social-links a {
  width: 36px;
  height: 36px;
  background: #1e293b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links-col a:hover { color: #fff; }

.thawani-logo-pill {
  margin-top: 1rem;
  background: #1e293b;
  color: #38bdf8;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-md);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

/* ================= Modals ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.thawani-icon-badge {
  width: 36px;
  height: 36px;
  background: #0284c7;
  color: #fff;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn {
  background: transparent;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.modal-body { 
  padding: 1.5rem; 
  overflow-y: auto;
}

.payment-order-summary {
  background: var(--bg-body);
  border-radius: var(--r-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.price-highlight { color: var(--primary-purple); font-size: 1.1rem; }

.payment-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }

.form-control {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus { border-color: var(--primary-purple); }
.form-row { display: flex; gap: 0.75rem; }
.col-6 { flex: 1; }

/* Reader Modal */
.reader-modal-card {
  max-width: 1000px !important;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.pdf-fullscreen-modal {
  max-width: 98vw !important;
  height: 98vh;
}

.reader-modal-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.reader-sidebar-chapters {
  background: #f8fafc;
  border-left: 1px solid var(--border-light);
  padding: 1.25rem;
  overflow-y: auto;
}

.reader-sidebar-chapters h5 { font-size: 0.9rem; margin-bottom: 1rem; color: var(--primary-purple); }
.reader-sidebar-chapters ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.reader-sidebar-chapters button {
  width: 100%;
  text-align: right;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.reader-sidebar-chapters button.active {
  background: var(--bg-light-purple);
  color: var(--primary-purple);
}

.reader-content-viewport {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.8;
}

.reader-objective-box {
  background: #f0fdf4;
  border-right: 4px solid var(--accent-emerald);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: #065f46;
}

.reader-formula-highlight {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: var(--r-md);
  text-align: center;
  font-size: 1.1rem;
  color: #0284c7;
  font-family: 'Fira Code', monospace;
  margin: 1rem 0;
}

.reader-experiment-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1rem;
  border-radius: var(--r-md);
  margin-top: 1.5rem;
}

/* ================= AUTH LOCK OVERLAY ================= */
.lab-overlay-lock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.lab-overlay-lock .lock-content {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  border: 1px solid #e2e8f0;
}

.lab-overlay-lock h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.lab-overlay-lock p {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}


/* ================= USER DROPDOWN MENU ================= */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 100;
  border: 1px solid #e2e8f0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 5px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: var(--primary-purple);
}

.dropdown-item.text-danger {
  color: #ef4444;
}

.dropdown-item.text-danger:hover {
  background: #fef2f2;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.25rem 0;
}

/* ================= CREATIVE AUTH MODAL ================= */
.creative-modal-container {
  display: flex;
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: all 0.4s ease;
  min-height: 550px;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  left: 15px; /* RTL layout */
  background: rgba(0,0,0,0.05);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: 0.3s;
}

.modal-close-btn:hover {
  background: rgba(0,0,0,0.1);
  color: #0f172a;
}

.creative-modal-content {
  display: flex;
  width: 100%;
}

.creative-form-pane {
  flex: 1;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.form-header .subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

.modern-auth-form .form-group {
  margin-bottom: 1.25rem;
}

.modern-auth-form .input-with-icon {
  position: relative;
}

.modern-auth-form .input-with-icon i {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 20px;
}

.modern-auth-form .form-control {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem; /* RTL padding */
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #334155;
  transition: all 0.3s;
}

.modern-auth-form .form-control:focus {
  background: #ffffff;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
  outline: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--primary-purple);
  width: 16px;
  height: 16px;
}

.forgot-pwd {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-pwd:hover {
  color: var(--primary-purple);
  text-decoration: underline;
}

.btn-creative-submit {
  width: 100%;
  background: var(--primary-purple);
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #ffffff;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.btn-creative-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4);
}

.mobile-toggle-auth {
  display: none;
  text-align: center;
  margin-top: 2rem;
  color: #64748b;
  font-size: 0.95rem;
}

.mobile-toggle-auth button {
  background: none;
  border: none;
  color: var(--primary-purple);
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
}

.creative-info-pane {
  flex: 0.8;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #6366f1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
  color: #ffffff;
}

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

.info-content h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline-light:hover {
  background: #ffffff;
  color: #1e3a8a;
}

/* Abstract Shapes for Info Pane */
.bg-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(8px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  background: rgba(255, 255, 255, 0.15);
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  background: rgba(255, 255, 255, 0.1);
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 20%;
  background: rgba(255, 255, 255, 0.05);
}

/* ================= RESPONSIVENESS & MEDIA QUERIES ================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .pricing-cards-container { grid-template-columns: 1fr; }
  .pricing-box.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lab-interactive-viewport { grid-template-columns: 1fr; height: auto; }
  .canvas-3d-wrapper { height: 420px; }
  .lab-data-sidebar { border-right: none; border-top: 1px solid #1e293b; }
}

/* Tablet & Mobile Nav breakpoint (max-width: 900px) */
@media (max-width: 900px) {
  .hide-on-tablet { display: none !important; }
  .show-on-tablet { display: flex !important; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .section-padding { padding: 3.5rem 0; }
  .hero-main-title { font-size: 2.3rem; }
  .section-title { font-size: 1.85rem; }
  .hide-on-mobile { display: none !important; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .q-options-grid { grid-template-columns: 1fr; }
  .reader-modal-body { grid-template-columns: 1fr; }
  .reader-sidebar-chapters { max-height: 180px; }
  .curriculum-filter-bar { padding: 1rem; }
  .filter-group { width: 100%; flex-direction: column; align-items: flex-start; }
  .grade-pills { width: 100%; }
  .lesson-plan-document { padding: 1.25rem; }
  .canvas-3d-wrapper { height: 350px; }
  
  /* Creative Modal Responsiveness */
  .creative-info-pane { display: none; }
  .creative-form-pane { padding: 2.5rem 1.5rem; }
  .mobile-toggle-auth { display: block; }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-main-title { font-size: 1.95rem; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .units-modern-grid, .books-modern-grid { grid-template-columns: 1fr; }
  .floating-hud { font-size: 0.75rem; padding: 0.5rem; }
}
