/* ==========================================================================
   EDTECH MM - 2027 FUTURE DESIGN SYSTEM STYLESHEET
   Dual Theme (Dark OLED / Luminous Zinc), Liquid Glass 2.0, Bento Grid 2.0
   ========================================================================== */

:root {
  /* Common Brand Accents */
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --cyan-accent: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --violet-accent: #8b5cf6;
  --amber-accent: #f59e0b;
  --rose-accent: #f43f5e;
  --blue-accent: #3b82f6;
  --gold-accent: #eab308;
  
  /* Font Families */
  --font-arabic: 'Alexandria', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-latin: 'Plus Jakarta Sans', sans-serif;
  
  /* Radii & Micro Precision */
  --radius-xs: 0.375rem;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.375rem;
  --radius-xl: 1.75rem;
  --radius-pill: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   THEME 1: DARK OLED / CYBER-SLATE (DEFAULT)
   ========================================================================== */
[data-theme="dark"] {
  --bg-primary: #050811;
  --bg-secondary: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(11, 17, 32, 0.75);
  --bg-input: rgba(15, 23, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.5);
  --border-glass: rgba(255, 255, 255, 0.12);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #050811;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-elevation: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.25);
  
  --grid-line-color: rgba(255, 255, 255, 0.025);
}

/* ==========================================================================
   THEME 2: LUMINOUS ZINC / SILK PORCELAIN (LIGHT MODE)
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-input: #ffffff;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(16, 185, 129, 0.7);
  --border-glass: rgba(0, 0, 0, 0.1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-elevation: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.15);
  
  --grid-line-color: rgba(0, 0, 0, 0.035);
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Ambient Canvas Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

.glow-1 {
  width: 550px;
  height: 550px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  top: 40%;
  left: -10%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
}

.ambient-grid-overlay {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-symbol {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px var(--emerald-glow));
}

.logo-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: var(--emerald-primary);
  opacity: 0.3;
  filter: blur(6px);
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.2; transform: scale(0.95); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-latin);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.highlight-mm {
  background: linear-gradient(135deg, var(--emerald-primary), var(--cyan-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.08);
}

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

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-bounce);
  font-size: 1.15rem;
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.08);
  border-color: var(--emerald-primary);
}

[data-theme="dark"] .icon-moon { display: inline-block; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: inline-block; }

.nav-btn-secondary {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-btn-secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--emerald-primary), #059669);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--emerald-glow);
  transition: var(--transition-smooth);
}

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 4.75rem;
  inset-inline: 0;
  bottom: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-whatsapp-drawer {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 5rem;
  text-align: center;
  z-index: 10;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-subtle);
}

.badge-spark {
  color: var(--amber-accent);
}

.badge-tag {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.hero-title {
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 980px;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.btn-glow-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--emerald-primary), #059669);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--emerald-glow);
  transition: var(--transition-bounce);
  text-align: right;
}

.btn-glow-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.btn-glow-primary .btn-icon {
  font-size: 1.5rem;
}

.btn-glow-primary .btn-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-glow-primary .btn-text small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.btn-glass-secondary:hover {
  border-color: var(--emerald-primary);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

/* Metrics Bar */
.hero-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  margin-bottom: 4rem;
  box-shadow: var(--shadow-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-number {
  font-family: var(--font-latin);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--emerald-primary);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

/* Floating Preview Browser Card */
.hero-preview-wrapper {
  width: 100%;
  max-width: 1050px;
}

.preview-browser-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
  overflow: hidden;
  backdrop-filter: blur(25px);
  text-align: right;
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-latin);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--emerald-primary);
  font-weight: 600;
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; transform: scale(1.3); }
}

.browser-body {
  padding: 1.5rem;
}

.mini-tool-ribbon {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.ribbon-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--text-secondary);
}

.ribbon-chip.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  font-weight: 700;
}

.mini-workspace-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.file-card-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.file-icon {
  font-size: 2rem;
}

.file-meta {
  flex: 1;
}

.file-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.file-meta span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-primary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.ai-insight-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-size: 0.85rem;
}

.insight-label {
  font-weight: 700;
  color: var(--cyan-accent);
  display: block;
  margin-bottom: 0.25rem;
}

.graph-visual-mock {
  position: relative;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.center-node {
  background: linear-gradient(135deg, var(--emerald-primary), var(--cyan-accent));
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--emerald-glow);
}

.sub-branches {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.branch-node {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* ==========================================================================
   SECTION: UPLOAD SANDBOX
   ========================================================================== */
.section-upload-demo {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

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

.upload-sandbox-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-elevation);
  backdrop-filter: blur(20px);
}

.sample-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pills-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sample-pill-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sample-pill-btn:hover, .sample-pill-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

.dropzone-area {
  position: relative;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dropzone-area:hover, .dropzone-area.dragover {
  border-color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.04);
}

.file-hidden-input {
  display: none;
}

.upload-radar-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.dropzone-area:hover .upload-radar-icon {
  transform: scale(1.1);
  background: var(--emerald-primary);
  color: #ffffff;
}

.dropzone-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.highlight-link {
  color: var(--emerald-primary);
  text-decoration: underline;
}

.dropzone-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 580px;
  margin-inline: auto;
}

.supported-formats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Processing State */
.processing-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.spinner-orbit {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--emerald-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.25rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.processing-bar-wrap {
  width: 100%;
  max-width: 450px;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.processing-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--cyan-accent));
  transition: width 0.3s ease;
}

.processing-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Generated Result Bar */
.generated-tools-result {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.result-top-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.result-badge-ready {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.btn-refresh-demo {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
}

.generated-tools-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tool-mini-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.tool-mini-card:hover, .tool-mini-card.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  transform: translateY(-2px);
}

.btn-jump-to-lab {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-jump-to-lab:hover {
  background: linear-gradient(135deg, var(--emerald-primary), var(--cyan-accent));
  color: #ffffff;
}

/* ==========================================================================
   SECTION: BENTO GRID 2.0 - THE 12 CORE STUDY TOOLS
   ========================================================================== */
.section-tools {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

.bento-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-elevation), var(--shadow-glow);
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bento-card:hover .card-glow {
  opacity: 1;
}

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

.tool-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
}

.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--violet-accent); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan-accent); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald-primary); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber-accent); }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: var(--rose-accent); }
.icon-indigo { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.icon-teal { background: rgba(20, 184, 166, 0.15); color: #14b8a6; }
.icon-gold { background: rgba(234, 179, 8, 0.15); color: var(--gold-accent); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-accent); }
.icon-violet { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.icon-coral { background: rgba(251, 113, 133, 0.15); color: #fb7185; }
.icon-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.tool-number {
  font-family: var(--font-latin);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.tool-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.tool-action-def {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tool-action-def strong {
  color: var(--emerald-primary);
}

/* Tool Mock Snippets */
.tool-visual-preview, .tool-mock-content, .flashcard-3d-snippet, .mini-bullet-list,
.concept-nodes-snippet, .case-box-snippet, .game-stats-snippet, .tutor-chat-snippet,
.audio-wave-snippet, .calendar-task-snippet, .forgetting-curve-snippet {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.mindmap-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}
.mindmap-chip.root { background: var(--violet-accent); color: #ffffff; }
.mindmap-chip.sub { background: var(--bg-card); border: 1px solid var(--border-subtle); margin-inline: 4px; }

.mock-quiz-q { font-weight: 700; margin-bottom: 0.4rem; }
.mock-quiz-options { display: flex; flex-direction: column; gap: 0.3rem; }
.mock-quiz-options .opt { font-size: 0.78rem; color: var(--text-secondary); }
.mock-quiz-options .opt.correct { color: var(--emerald-primary); font-weight: 700; }

.chat-role-snippet .bubble { padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); margin-bottom: 0.3rem; }
.chat-role-snippet .bubble.bot { background: rgba(16, 185, 129, 0.1); color: var(--emerald-primary); }
.chat-role-snippet .bubble.user { background: var(--bg-card); }

.flashcard-3d-snippet .fc-front { font-weight: 700; color: var(--amber-accent); margin-bottom: 0.25rem; }
.flashcard-3d-snippet .fc-back { color: var(--text-secondary); font-size: 0.8rem; }

.mini-bullet-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }

.concept-nodes-snippet { color: #6366f1; font-weight: 600; text-align: center; }

.case-box-snippet .case-tag { color: var(--teal-accent); font-weight: 700; display: block; margin-bottom: 0.2rem; }

.game-stats-snippet { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; font-weight: 700; }
.badge-streak { color: var(--amber-accent); }
.badge-xp { color: var(--cyan-accent); }

.tutor-chat-snippet .chat-row { margin-bottom: 0.3rem; font-size: 0.8rem; }
.tutor-chat-snippet .chat-row.user { color: var(--text-secondary); }
.tutor-chat-snippet .chat-row.bot { color: var(--blue-accent); font-weight: 600; }

.audio-wave-snippet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.play-btn-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.sound-waves { display: flex; gap: 3px; align-items: center; height: 18px; flex: 1; }
.sound-waves span { width: 3px; height: 60%; background: var(--violet-accent); border-radius: 2px; }

.calendar-task-snippet .task-status { color: var(--emerald-primary); font-weight: 700; font-size: 0.75rem; float: left; }

.progress-repetition { height: 6px; background: var(--bg-card); border-radius: 4px; overflow: hidden; margin-top: 0.35rem; }
.rep-fill { height: 100%; background: var(--rose-accent); }

.tool-student-view {
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.75rem;
}

.badge-role {
  display: inline-block;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 0.35rem;
}

/* ==========================================================================
   SECTION: LIVE INTERACTIVE LAB (المعمل التفاعلي)
   ========================================================================== */
.section-interactive-lab {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

.lab-main-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  backdrop-filter: blur(25px);
}

.lab-tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
}

.lab-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.lab-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.lab-tab-btn.active {
  background: var(--bg-card);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  box-shadow: var(--shadow-subtle);
}

.lab-stage-container {
  padding: 2.25rem;
}

.lab-tab-panel {
  display: none;
}

.lab-tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.panel-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.badge-status-live, .badge-scenario, .badge-grounded, .badge-audio-hd {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-status-live { background: rgba(16, 185, 129, 0.15); color: var(--emerald-primary); }
.badge-scenario { background: rgba(245, 158, 11, 0.15); color: var(--amber-accent); }
.badge-grounded { background: rgba(6, 182, 212, 0.15); color: var(--cyan-accent); }
.badge-audio-hd { background: rgba(139, 92, 246, 0.15); color: var(--violet-accent); }

/* TAB 1: Mind Map Interactive */
.mindmap-interactive-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.node-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-bounce);
  user-select: none;
}

.tree-root {
  background: linear-gradient(135deg, var(--emerald-primary), var(--cyan-accent));
  color: #ffffff;
  box-shadow: 0 8px 25px var(--emerald-glow);
  font-size: 1.05rem;
}

.tree-root:hover { transform: scale(1.05); }

.tree-branches {
  display: flex;
  gap: 3rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.tree-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tree-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.tree-node:hover {
  border-color: var(--emerald-primary);
  transform: translateY(-3px);
}

.node-children {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.leaf-node {
  background: var(--bg-card);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

.node-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--emerald-primary);
  width: 100%;
  max-width: 650px;
}

.detail-icon { font-size: 1.75rem; }
.detail-text strong { display: block; color: var(--emerald-primary); margin-bottom: 0.25rem; }
.detail-text span { font-size: 0.9rem; color: var(--text-primary); line-height: 1.6; }

/* TAB 2: Quiz */
.quiz-score-pill {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  color: var(--emerald-primary);
}

.quiz-interactive-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quiz-question-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.q-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.q-badge { color: var(--cyan-accent); font-weight: 700; }
.q-source { color: var(--text-muted); }

.q-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

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

.opt-btn {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: var(--transition-smooth);
}

.opt-btn:hover {
  border-color: var(--emerald-primary);
  background: var(--bg-card-hover);
}

.opt-btn.correct-choice {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--emerald-primary) !important;
  color: var(--emerald-primary) !important;
}

.opt-btn.wrong-choice {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.q-explanation {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* TAB 3: Role Play */
.roleplay-chat-wrap {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roleplay-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 380px;
  overflow-y: auto;
}

.rp-msg {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.rp-avatar { font-size: 2rem; }

.rp-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  max-width: 80%;
}

.rp-bubble strong { display: block; color: var(--amber-accent); margin-bottom: 0.25rem; }

.roleplay-choices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

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

.choice-btn {
  text-align: right;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.choice-btn:hover {
  border-color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.1);
  transform: translateX(-4px);
}

/* TAB 4: Flashcards 3D */
.card-counter {
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--emerald-primary);
}

.flashcard-showcase-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.flashcard-3d-flipper {
  width: 100%;
  max-width: 580px;
  min-height: 280px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
}

.fc-side {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  position: absolute;
  inset: 0;
}

.fc-front-view {
  transform: rotateY(0deg);
}

.fc-back-view {
  transform: rotateY(180deg);
  background: var(--bg-secondary);
  border-color: var(--emerald-primary);
}

.flashcard-3d-flipper.flipped .fc-front-view {
  transform: rotateY(-180deg);
}

.flashcard-3d-flipper.flipped .fc-back-view {
  transform: rotateY(0deg);
}

.fc-type-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-accent);
  background: rgba(245, 158, 11, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.fc-type-badge.success {
  color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.15);
}

.fc-term {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.fc-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.fc-answer {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.fc-ref {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 580px;
  gap: 1rem;
  flex-wrap: wrap;
}

.fc-nav-btn {
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

.rating-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-rate {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}

.btn-rate.hard:hover { border-color: #ef4444; color: #ef4444; }
.btn-rate.medium:hover { border-color: #f59e0b; color: #f59e0b; }
.btn-rate.easy:hover { border-color: #10b981; color: #10b981; }

/* TAB 5: AI Tutor Sandbox */
.tutor-sandbox-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tutor-history {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tutor-msg {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  max-width: 85%;
}

.tutor-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.tutor-avatar { font-size: 1.75rem; }

.tutor-bubble {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tutor-msg.bot .tutor-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.tutor-msg.user .tutor-bubble {
  background: linear-gradient(135deg, var(--emerald-primary), #059669);
  color: #ffffff;
}

.tutor-quick-prompts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.qp-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qp-chip:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

.tutor-input-bar {
  display: flex;
  gap: 0.75rem;
}

.tutor-input-bar input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.tutor-input-bar input:focus {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.tutor-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-primary);
  color: #ffffff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tutor-send-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* TAB 6: Audio Lecture Podcast */
.audio-player-mock {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.podcast-cover-art {
  text-align: center;
}

.podcast-badge {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--violet-accent);
  background: rgba(139, 92, 246, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.podcast-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.podcast-hosts {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.player-controls-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.player-btn-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--violet-accent);
  color: #ffffff;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transition: var(--transition-bounce);
}

.player-btn-action:hover {
  transform: scale(1.1);
}

.player-track-info {
  flex: 1;
}

.track-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.track-time {
  font-family: var(--font-latin);
  color: var(--text-muted);
}

.audio-progress-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  background: var(--violet-accent);
  transition: width 0.3s ease;
}

.speed-switcher {
  display: flex;
  gap: 0.25rem;
}

.btn-speed {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-latin);
  cursor: pointer;
}

.btn-speed.active {
  background: var(--violet-accent);
  color: #ffffff;
}

.waveform-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
}

.wave-bar {
  width: 4px;
  height: 15px;
  background: var(--violet-accent);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.waveform-container.playing .wave-bar {
  animation: wavePulse 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2n) { animation-delay: 0.2s; }
.wave-bar:nth-child(3n) { animation-delay: 0.4s; }
.wave-bar:nth-child(4n) { animation-delay: 0.6s; }

@keyframes wavePulse {
  0% { height: 10px; opacity: 0.4; }
  100% { height: 38px; opacity: 1; }
}

.transcript-snippet {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.speaker-tag {
  color: var(--violet-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   SECTION: HOW IT WORKS
   ========================================================================== */
.section-how {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.step-card {
  flex: 1;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-subtle);
  text-align: center;
  transition: var(--transition-smooth);
}

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

.step-card.featured {
  border-color: var(--emerald-primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}

.step-badge-ai {
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(50%);
  background: var(--emerald-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
}

.step-index {
  font-family: var(--font-latin);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--emerald-primary);
  margin-bottom: 0.75rem;
}

.step-icon-glow {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.step-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-arrow {
  font-size: 2rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION: COMPARISON TABLE
   ========================================================================== */
.section-comparison {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  min-width: 680px;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-secondary);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.col-highlight {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-primary);
}

.check-yes { color: var(--emerald-primary); font-weight: 700; }
.warn-mid { color: var(--amber-accent); font-weight: 600; }
.cross-no { color: #ef4444; font-weight: 600; }

/* ==========================================================================
   SECTION: PRICING
   ========================================================================== */
.section-pricing {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

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

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald-primary);
}

.pricing-card.featured {
  border: 2px solid var(--emerald-primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.09) 0%, var(--bg-card) 100%);
  box-shadow: 0 15px 45px var(--emerald-glow);
  transform: scale(1.03);
}

.badge-most-popular {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, var(--emerald-primary), var(--cyan-accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
}

.plan-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.plan-tag {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.plan-price {
  font-family: var(--font-latin);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-price .currency {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-primary);
}

.plan-price .unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--emerald-primary);
}

.plan-price .period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features li strong {
  color: var(--text-primary);
}

.btn-plan-outline {
  display: block;
  text-align: center;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-plan-outline:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

.btn-plan-primary {
  display: block;
  text-align: center;
  padding: 0.95rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--emerald-primary), #059669);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--emerald-glow);
  transition: var(--transition-bounce);
}

.btn-plan-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   SECTION: FAQ ACCORDION
   ========================================================================== */
.section-faq {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

.faq-accordion-wrapper {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--emerald-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-inline: 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.35rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   SECTION: CTA BANNER
   ========================================================================== */
.section-cta-banner {
  padding-block: 5rem;
  position: relative;
  z-index: 10;
}

.cta-banner-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(25px);
  box-shadow: var(--shadow-elevation);
}

.cta-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-primary);
  margin-bottom: 0.75rem;
}

.cta-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.btn-cta-big {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem 2.25rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--emerald-primary), #059669);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 10px 30px var(--emerald-glow);
  transition: var(--transition-bounce);
}

.btn-cta-big:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem 2rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: var(--transition-bounce);
}

.btn-cta-whatsapp:hover {
  transform: translateY(-3px);
  background: #20ba5a;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  position: relative;
  z-index: 10;
}

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

.footer-logo {
  margin-bottom: 1rem;
}

.footer-about {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.direct-contact-pill {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.direct-contact-pill a {
  color: var(--emerald-primary);
  font-weight: 700;
  text-decoration: none;
  margin-right: 0.35rem;
}

.footer-head {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

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

.footer-links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--emerald-primary);
  transform: translateX(-4px);
}

.footer-safe-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.safe-badges {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.safe-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   PULSING MAGNETIC WHATSAPP BUTTON (GSAP DRIVEN)
   ========================================================================== */
.whatsapp-magnetic-wrap {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  left: 2rem; /* Left corner for RTL interface thumb zone */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-pulse-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.4;
  pointer-events: none;
}

.whatsapp-pulse-ring.ring-1 {
  animation: sonarWave 2.8s infinite ease-out;
}

.whatsapp-pulse-ring.ring-2 {
  animation: sonarWave 2.8s infinite ease-out 0.9s;
}

.whatsapp-pulse-ring.ring-3 {
  animation: sonarWave 2.8s infinite ease-out 1.8s;
}

@keyframes sonarWave {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.whatsapp-btn-core {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.whatsapp-btn-core:hover {
  transform: scale(1.08);
}

.whatsapp-badge-pulse {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
}

.whatsapp-tooltip-badge {
  position: absolute;
  bottom: 80px;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevation);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  animation: floatTooltip 3s ease-in-out infinite alternate;
}

@keyframes floatTooltip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.tooltip-icon { font-size: 1rem; color: #25d366; }
.tooltip-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .steps-grid {
    flex-direction: column;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-btn-secondary {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mini-workspace-split {
    grid-template-columns: 1fr;
  }
  
  .bento-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .q-options {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-magnetic-wrap {
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  
  .whatsapp-tooltip-badge {
    display: none; /* Hide floating badge on small mobile to avoid occlusion */
  }
  
  .hero-metrics-bar {
    gap: 1.25rem;
  }
  
  .metric-divider {
    display: none;
  }
}
