@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;900&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&display=swap');


/* --- CUSTOM PROPERTIES --- */
:root {
  /* Colors */
  --bg-page: #EDE0D4;
  --bg-primary: #FFFFFF;
  --bg-secondary: #f3f4f6;
  --bg-dark: #111111;
  --bg-surface: #F5EBE0;
  
  --border-color: #000000;
  
  --color-primary: #39E079;
  --color-primary-dark: #2bc465;
  --color-secondary: #8c52ff;
  --color-secondary-dark: #7b40f2;
  --color-accent: #FEF3C7;
  --color-blue: #254cfa;
  --color-pink: #FF007F;
  
  --text-main: #000000;
  --text-muted: #4b5563;
  --text-muted-dark: #1f2937;
  --text-inverse: #EDE0D4;
  
  /* Shadow Scale */
  --shadow-sm: 3px 3px 0px var(--border-color);
  --shadow-md: 5px 5px 0px var(--border-color);
  --shadow-lg: 8px 8px 0px var(--border-color);
  
  /* Radius Scale */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Border Scale */
  --border-thin: 2px;
  --border-md: 3px;
  --border-thick: 4px;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  --section-pad: 120px;
  
  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-secondary);
  color: #FFFFFF;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

button, .cta-button {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-smooth);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 3px solid var(--bg-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted-dark);
}

/* --- UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  color: var(--color-secondary);
  font-weight: 800;
  display: inline-block;
}

.glass-panel {
  background: var(--bg-primary);
  border: 3px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 5px 5px 0px var(--border-color);
}

/* --- GLOW EFFECTS (Disabled for Neubrutalism) --- */
.ambient-glow {
  display: none !important;
}

/* --- STICKY NAV --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--bg-page);
  border-bottom: 3.5px solid var(--border-color);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background-color: var(--bg-page);
  border-bottom-width: 4px;
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--border-color);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  background: var(--color-secondary);
  color: var(--bg-primary);
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2.5px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 3px 3px 0px var(--border-color);
  transition: var(--transition-fast);
}

.header-cta:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0px var(--border-color);
  color: var(--bg-primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  color: var(--text-main);
  border: none;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 120px;
  overflow: hidden;
}

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

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

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 2.5px solid var(--border-color);
  box-shadow: 3px 3px 0px var(--border-color);
  border-radius: 100px;
  margin-bottom: 24px;
}

.promo-tag {
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-text {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 600;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-primary);
  border: 2.5px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 4px 4px 0px var(--border-color);
  transition: var(--transition-fast);
}

.store-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
  background: var(--bg-primary);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--text-main);
}

.btn-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-meta span:first-child {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.btn-meta span:last-child {
  font-size: 0.95rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 1px;
  color: var(--text-main);
}

/* Stats Badges */
.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 3px solid var(--border-color);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-value.gradient-stat {
  color: var(--color-secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}

/* Hero Mockup View */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
  perspective: 1000px;
}

.phone-mockup-container {
  position: relative;
  width: 320px;
  height: 640px;
  transform: rotate3d(1, -1, 1, 6deg) translateY(-20px);
  transform-style: preserve-3d;
  animation: floatMockup 6s ease-in-out infinite;
  transition: var(--transition-smooth);
}

.phone-mockup-container:hover {
  transform: rotate3d(1, -1, 1, 3deg) translateY(-25px) scale(1.02);
}

.phone-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 70%);
  background-size: 200% 200%;
  pointer-events: none;
  z-index: 100;
  border-radius: 40px;
  transition: var(--transition-smooth);
}

.phone-mockup-container:hover .phone-sheen {
  background-position: 100% 100%;
}

.phone-shadow {
  position: absolute;
  width: 90%;
  height: 12px;
  background: var(--border-color);
  opacity: 0.15;
  border-radius: 50%;
  bottom: -40px;
  left: 5%;
}

/* --- STATS DASHBOARD STRIP --- */
.brand-strip {
  background: var(--bg-primary);
  border-top: 3.5px solid var(--border-color);
  border-bottom: 3.5px solid var(--border-color);
  padding: 40px 0;
  position: relative;
  z-index: 5;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.strip-item h3 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-secondary);
}

.strip-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* --- FEATURE GRID --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.features-section {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-page);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 3.5px solid var(--border-color);
  box-shadow: 6px 6px 0px var(--border-color);
  border-radius: 16px;
}

.feature-card:hover {
  transform: translate(-3px, -3px) scale(1.01);
  box-shadow: 9px 9px 0px var(--border-color);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 1.6rem;
  position: relative;
  z-index: 2;
  border: 2px solid var(--border-color);
}

.feature-card.primary-feat .feature-icon-box {
  background: var(--color-primary);
  color: #000000;
}

.feature-card.secondary-feat .feature-icon-box {
  background: var(--color-secondary);
  color: #FFFFFF;
}

.feature-card.accent-feat .feature-icon-box {
  background: var(--color-accent);
  color: #000000;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  font-weight: 900;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  position: relative;
  z-index: 2;
  font-weight: 600;
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-accent);
  color: #000000;
  border: 1.5px solid var(--border-color);
  z-index: 2;
}

.feature-card.primary-feat {
  border-top: 5px solid var(--color-primary);
}

.feature-card.secondary-feat {
  border-top: 5px solid var(--color-secondary);
}

.feature-card.accent-feat {
  border-top: 5px solid var(--color-accent);
}

/* --- INTERACTIVE SANDBOX SECTION --- */
.sandbox-section {
  padding: 120px 0;
  background-color: var(--bg-surface, #F5EBE0);
  position: relative;
  border-top: 3.5px solid var(--border-color);
  border-bottom: 3.5px solid var(--border-color);
}

.sandbox-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  align-items: start;
}

.sandbox-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sandbox-tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-primary);
  color: var(--text-main);
  border: 2.5px solid var(--border-color);
  text-align: left;
  border-radius: 16px;
  box-shadow: 3px 3px 0px var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.sandbox-tab-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--border-color);
  color: var(--text-main);
}

.sandbox-tab-btn.active {
  background: var(--color-primary);
  color: #000000;
  box-shadow: 1px 1px 0px var(--border-color);
  transform: translate(2px, 2px);
}

.tab-icon {
  font-size: 1.4rem;
  opacity: 0.7;
}

.sandbox-tab-btn.active .tab-icon {
  opacity: 1;
  color: #000000;
}

.tab-btn-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
}

.tab-btn-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 700;
}

.sandbox-tab-btn.active .tab-btn-sub {
  color: #000000;
}

/* Sandbox Workspace Pane */
.sandbox-workspace {
  min-height: 480px;
  padding: 40px;
  position: relative;
  background: #FFFFFF;
  border: 3.5px solid var(--border-color);
  box-shadow: 6px 6px 0px var(--border-color);
  border-radius: 20px;
}

.sandbox-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.sandbox-pane.active {
  display: block;
}

/* Tab 1: Interactive MCQ simulator */
.mcq-pane-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mcq-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid var(--border-color);
  padding-bottom: 16px;
}

.mcq-subject-pill {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 900;
  background: var(--color-secondary);
  color: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  text-transform: uppercase;
}

.mcq-timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.mcq-question-text {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.45;
}

.mcq-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mcq-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-primary);
  border: 3px solid var(--border-color);
  border-radius: 14px;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: 4px 4px 0px var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.mcq-option:hover:not(.disabled) {
  transform: translate(1.5px, 1.5px);
  box-shadow: 2.5px 2.5px 0px var(--border-color);
  background: var(--bg-primary);
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.mcq-option.correct {
  background: #DCFCE7 !important;
  border-color: var(--border-color) !important;
  box-shadow: 3px 3px 0px var(--border-color) !important;
}

.mcq-option.correct .option-badge {
  background: var(--color-primary);
  color: #000000;
  border-color: var(--border-color);
}

.mcq-option.incorrect {
  background: #FEE2E2 !important;
  border-color: var(--border-color) !important;
  box-shadow: 3px 3px 0px var(--border-color) !important;
}

.mcq-option.incorrect .option-badge {
  background: #ef4444;
  color: #ffffff;
  border-color: var(--border-color);
}

.mcq-explanation-box {
  display: none;
  background: var(--bg-primary);
  border: 3px solid var(--border-color);
  border-left: 6px solid var(--color-primary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 4px 4px 0px var(--border-color);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.explanation-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.explanation-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mcq-option.shake-active {
  animation: shakeOption 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.mcq-option.bounce-active {
  animation: bounceOption 0.45s ease-in-out;
}

/* Tab 2: Visual Concept Mind Map */
.mindmap-pane-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mindmap-canvas {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 3px solid var(--border-color);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-shadow: 4px 4px 0px var(--border-color);
}

.mindmap-connectors-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.mindmap-curve-path {
  fill: none;
  stroke: rgba(0,0,0,0.15);
  stroke-width: 2px;
  stroke-linecap: round;
  transition: var(--transition-smooth);
}

.mindmap-curve-path.active {
  stroke: var(--color-secondary);
  stroke-width: 2.5px;
  filter: none;
}

.mindmap-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.mindmap-node {
  background: var(--bg-primary);
  border: 3.5px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
  text-align: center;
  z-index: 3;
  box-shadow: 4px 4px 0px var(--border-color);
}

.mindmap-node.root-node {
  border-color: var(--border-color);
  background: var(--color-secondary);
  color: #FFFFFF;
}

.mindmap-node:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.mindmap-children {
  display: flex;
  justify-content: center;
  gap: 35px;
  width: 100%;
  position: relative;
}

.mindmap-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mindmap-node-detail {
  display: none;
  background: var(--bg-primary);
  border: 2.5px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  width: 180px;
  margin-top: 16px;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
  box-shadow: 3px 3px 0px var(--border-color);
}

.mindmap-node-detail.active {
  display: block;
}

.mindmap-node-detail h4 {
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 900;
}

.mindmap-node-detail p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Tab 3: Countdown and Stats Pane */
.countdown-pane-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

.countdown-visual-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.countdown-circle-widget {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.countdown-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.countdown-track-circle {
  fill: none;
  stroke: var(--bg-secondary);
  stroke-width: 8px;
}

.countdown-fill-circle {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 8px;
  stroke-linecap: round;
  stroke-dasharray: 565.48; /* 2 * PI * r (90) */
  stroke-dashoffset: 141.37;
  filter: none;
  animation: countdownDash 10s linear infinite alternate;
}

.countdown-days-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-days-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.countdown-days-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
  font-weight: 700;
}

.countdown-grid-timers {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.time-box {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 64px;
  text-align: center;
  box-shadow: 2px 2px 0px var(--border-color);
}

.time-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
}

.time-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.countdown-stats-desc h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1.3;
  font-weight: 900;
}

.countdown-stats-desc p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.countdown-badge-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent);
  border: 2.5px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 3px 3px 0px var(--border-color);
  color: #000000;
}

.countdown-badge-info .badge-icon {
  font-size: 1.4rem;
}

.countdown-badge-info p {
  font-weight: 700;
  color: #000000;
  margin: 0;
  font-size: 0.85rem;
}

/* --- 3D BOOK SHOWCASE --- */
.book-section {
  padding: 120px 0;
  background-color: var(--bg-page);
  overflow: hidden;
  border-top: 3.5px solid var(--border-color);
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Volumetric 3D Book Cover Cover */
.book-visual-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.book-3d-scene {
  width: 280px;
  height: 380px;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(12deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-3d-scene:hover {
  transform: rotateY(-6deg) rotateX(4deg) rotateZ(1deg) scale(1.03);
}

.book-side {
  position: absolute;
  height: 100%;
  border-radius: 2px 4px 4px 2px;
}

.book-front {
  width: 100%;
  background: var(--bg-primary);
  border: 3.5px solid var(--border-color);
  transform: translateZ(13px);
  z-index: 10;
  overflow: hidden;
  box-shadow: 5px 5px 0px rgba(0,0,0,0.8);
}

.book-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-spine {
  width: 26px;
  background: linear-gradient(90deg, #090514 0%, #1e1b4b 25%, #0f172a 75%, #020617 100%);
  transform: rotateY(-90deg) translateZ(13px);
  left: -13px;
  border-radius: 3px 0 0 3px;
}

.book-pages {
  position: absolute;
  width: 26px;
  height: calc(100% - 6px);
  top: 3px;
  right: 3px;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px),
                    linear-gradient(90deg, #f3f4f6 0%, #d1d5db 100%);
  transform: rotateY(90deg) translateZ(13px);
  transform-origin: right center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.book-back {
  width: 100%;
  background: #111827;
  border: 3.5px solid var(--border-color);
  transform: rotateY(180deg) translateZ(13px);
  box-shadow: -5px 5px 0px rgba(0,0,0,0.8);
}

.book-details h2 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.book-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.book-feat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.book-feat-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #000000;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.book-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn {
  background: var(--color-primary);
  color: #000000;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 900;
  border: 3px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 4px 4px 0px var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.primary-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.secondary-btn {
  background: var(--bg-primary);
  color: var(--text-main);
  border: 3px solid var(--border-color);
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 14px;
  box-shadow: 4px 4px 0px var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.secondary-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-color);
}

/* --- GAMIFIED STUDY STREAK PREVIEW --- */
.streak-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
  border-top: 3.5px solid var(--border-color);
  border-bottom: 3.5px solid var(--border-color);
  position: relative;
}

.streak-card-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.streak-visual-mock {
  background: #FFFFFF;
  border: 3.5px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 6px 6px 0px var(--border-color);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Confetti particles canvas layer */
.streak-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  border-radius: 20px;
}

.fire-avatar-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(38, 92%, 54%, 0.25) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounceFlame 4s ease-in-out infinite;
}

.streak-counter-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1;
}

.streak-counter-lbl {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
  margin-bottom: 24px;
  font-weight: 800;
}

.streak-track-horizontal {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 5;
}

.streak-day-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--text-main);
  position: relative;
  transition: var(--transition-fast);
}

.streak-day-dot.active {
  background: var(--color-accent);
  color: #000000;
  border-color: var(--border-color);
  box-shadow: none;
}

.xp-claim-btn {
  margin-top: 30px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #000000;
  font-weight: 900;
  border: 2.5px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 3px 3px 0px var(--border-color);
  position: relative;
  z-index: 5;
  transition: var(--transition-fast);
  cursor: pointer;
}

.xp-claim-btn:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0px var(--border-color);
}

/* XP claim alert overlay toast */
.xp-toast {
  position: absolute;
  top: 20px;
  background: var(--bg-primary);
  border: 2.5px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  color: var(--color-secondary);
  box-shadow: 4px 4px 0px var(--border-color);
  display: none;
  z-index: 20;
  animation: toastFade 2.5s ease-out forwards;
}

/* --- COMMUNITY SPOTLIGHT --- */
.community-section {
  padding: 120px 0;
  background-color: var(--bg-page);
  border-top: 3.5px solid var(--border-color);
}

.community-card-link.whatsapp:hover {
  background: #f0fdf4;
}

.community-card-link.facebook:hover {
  background: #f5f3ff;
}

.community-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.community-pill-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-card-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--bg-primary);
  border: 3px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 4px 4px 0px var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.community-card-link:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 5.5px 5.5px 0px var(--border-color);
}

.community-social-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.community-card-link.whatsapp .community-social-circle {
  background: var(--color-primary);
  color: #000000;
}

.community-card-link.facebook .community-social-circle {
  background: var(--color-secondary);
  color: #FFFFFF;
}

.social-meta h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  font-weight: 800;
  color: var(--text-main);
}

.social-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.social-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  opacity: 0.8;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.community-card-link:hover .social-arrow {
  opacity: 1;
  transform: translateX(4px);
  color: var(--color-primary);
}

/* --- PRICING SECTION --- */
.pricing-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
  position: relative;
  border-top: 3.5px solid var(--border-color);
  border-bottom: 3.5px solid var(--border-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  border: 3.5px solid var(--border-color);
  box-shadow: 6px 6px 0px var(--border-color);
  border-radius: 16px;
}

.pricing-card.premium-tier {
  border-color: var(--color-secondary);
  border-width: 4px;
  box-shadow: 8px 8px 0px var(--border-color);
  background: #FFFFFF;
  transform: scale(1.03);
  position: relative;
  z-index: 2;
}

.pricing-card.premium-tier::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 25px;
  right: -30px;
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #000000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 4px 30px;
  border: 1.5px solid var(--border-color);
}

.tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.premium-tier .tier-name {
  color: var(--color-secondary);
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-right: 4px;
}

.price-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 700;
}

.tier-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 600;
}

.tier-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.benefit-check {
  font-size: 1rem;
  font-weight: 900;
}

.benefit-item.included .benefit-check {
  color: var(--color-secondary);
}

.benefit-item.excluded {
  color: var(--text-muted-dark);
}

.benefit-item.excluded .benefit-check {
  color: var(--text-muted-dark);
}

.pricing-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 12px;
  text-align: center;
  border: 2.5px solid var(--border-color);
  box-shadow: 3px 3px 0px var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.free-tier .pricing-btn {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.free-tier .pricing-btn:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0px var(--border-color);
}

.premium-tier .pricing-btn {
  background: var(--color-primary);
  color: #000000;
}

.premium-tier .pricing-btn:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1.5px 1.5px 0px var(--border-color);
}

/* --- FAQ & ACCORDIONS --- */
.faq-section {
  padding: 120px 0;
  background-color: var(--bg-page);
  border-top: 3.5px solid var(--border-color);
}

.faq-item.active {
  border-left: 5px solid var(--color-secondary);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.faq-intro h2 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.faq-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-primary);
  border: 3px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 4px 4px 0px var(--border-color);
  transition: var(--transition-fast);
}

.faq-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px var(--border-color);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  background: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  border: none;
  cursor: pointer;
}

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

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: max-height 0.3s ease-out;
}

.faq-content p {
  padding: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 2.5px solid var(--border-color);
  font-weight: 600;
}

/* --- FOOTER --- */
.main-footer {
  background: var(--bg-dark, #111111);
  border-top: 4px solid var(--color-secondary);
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 5;
  color: var(--text-inverse, #EDE0D4);
}

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

.footer-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-top: 20px;
  max-width: 320px;
  font-weight: 600;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

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

.footer-links a {
  font-size: 0.95rem;
  color: #9ca3af;
  font-weight: 600;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
  font-size: 0.85rem;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  box-shadow: none;
  transition: var(--transition-fast);
  font-size: 0.8rem;
}

.social-icon-btn:hover {
  background: var(--color-secondary);
  color: #FFFFFF;
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: none;
}

/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes floatMockup {
  0%, 100% {
    transform: rotate3d(1, -1, 1, 6deg) translateY(-20px);
  }
  50% {
    transform: rotate3d(1, -1, 1, 5deg) translateY(-32px);
  }
}

@keyframes bounceFlame {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px hsla(148, 100%, 70%, 0.08);
  }
  100% {
    box-shadow: 0 0 20px hsla(148, 100%, 70%, 0.22);
  }
}

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

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

@keyframes toastFade {
  0% { opacity: 0; transform: translate(-50%, -20px); display: block; }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); display: none; }
}

@keyframes shakeOption {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes bounceOption {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes countdownDash {
  to {
    stroke-dashoffset: 0;
  }
}

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

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* --- SCROLL REVEAL SYSTEM --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .store-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-mockup-wrapper {
    order: -1;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sandbox-container {
    grid-template-columns: 1fr;
  }
  
  .book-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .book-ctas {
    justify-content: center;
  }
  
  .book-features-list {
    align-items: center;
  }
  
  .streak-card-display {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .community-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .sandbox-workspace {
    padding: 24px;
  }
  
  .mcq-option {
    padding: 14px 18px;
  }
  
  .countdown-pane-wrapper {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .strip-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- URDU TRANSLATIONS ENGINE AND RTL SUPPORT --- */
[lang="ur"] {
  font-family: 'Noto Sans Arabic', sans-serif !important;
  direction: rtl;
  text-align: right;
}
[lang="ur"] .nav-container,
[lang="ur"] .hero-grid,
[lang="ur"] .features-grid,
[lang="ur"] .book-grid,
[lang="ur"] .streak-card-display,
[lang="ur"] .community-grid,
[lang="ur"] .footer-grid,
[lang="ur"] .parent-grid {
  direction: rtl;
}
[lang="ur"] .cta-button.header-cta,
[lang="ur"] .store-buttons,
[lang="ur"] .hero-stats,
[lang="ur"] .book-ctas,
[lang="ur"] .footer-socials {
  direction: rtl;
}
[lang="ur"] .faq-arrow {
  float: left;
  transform: rotate(180deg);
}
[lang="ur"] .faq-item.active .faq-arrow {
  transform: rotate(270deg);
}
[lang="ur"] .nav-menu {
  gap: 24px;
}

/* --- LANGUAGE SWITCHER BUTTONS --- */
.lang-switcher {
  display: flex;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 30px;
  padding: 3px;
  gap: 4px;
  margin-right: 15px;
  align-items: center;
}
[lang="ur"] .lang-switcher {
  margin-right: 0;
  margin-left: 15px;
}
.lang-btn {
  font-family: 'Space Grotesk', 'Noto Sans Arabic', sans-serif;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn.active {
  background: var(--color-secondary);
  color: var(--bg-primary);
  border: 1.5px solid var(--border-color);
}

/* --- PARENTS' PORTAL --- */
.parents-portal-section {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-primary);
  border-top: 3.5px solid var(--border-color);
  border-bottom: 3.5px solid var(--border-color);
}
.parent-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.parents-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}
.parent-feature-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-primary);
  border: 3px solid var(--border-color);
  box-shadow: 4px 4px 0px var(--border-color);
  border-radius: 16px;
  transition: var(--transition-fast);
}
.parent-feature-card:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 2.5px 2.5px 0px var(--border-color);
}
.parent-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #000000;
}
.parent-feature-card.secondary-feat .parent-icon-box {
  background: var(--color-secondary);
  border: 2px solid var(--border-color);
  color: #FFFFFF;
}
.parent-card-text h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 800;
}
.parent-card-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 600;
}
.parents-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.parents-stat-card {
  padding: 30px;
  width: 100%;
  max-width: 400px;
  position: relative;
  background: #FFFFFF;
  border: 3.5px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 6px 6px 0px var(--border-color);
}
.parents-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2.5px solid var(--border-color);
  padding-bottom: 16px;
}
.parents-avatar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.parent-student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
}
.parent-student-name h5 {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 800;
}
.parent-student-name p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}
.parents-progress-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.parents-ring-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
}
.parents-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.parents-metric-item {
  background: var(--bg-secondary);
  border: 2.5px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.parents-metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-secondary);
  display: block;
}
.parents-metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 700;
}

/* --- SMARTPHONE MOCKUP & SIMULATOR --- */
.phone-frame {
  width: 320px;
  height: 640px;
  border: 12px solid #000000;
  border-radius: 40px;
  background: var(--bg-page);
  overflow: hidden;
  position: relative;
  box-shadow: 6px 6px 0px #000000;
  display: flex;
  flex-direction: column;
  transform: translateZ(0); /* Fix overflow on Safari */
}
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background: #000;
  border-radius: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  box-sizing: border-box;
}
.phone-dynamic-island::after {
  content: '';
  width: 5px;
  height: 5px;
  background: #101827;
  border-radius: 50%;
}
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-main);
  z-index: 999;
  pointer-events: none;
  box-sizing: border-box;
}
.phone-status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}
.phone-status-icon {
  font-size: 0.75rem;
}
.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(0,0,0,0.8);
  border-radius: 2px;
  z-index: 1000;
  pointer-events: none;
}
.phone-screen {
  flex-grow: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-page);
}

/* --- SIMULATOR SCREENS ENGINE --- */
.sim-screen {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-top: 38px;
  padding-bottom: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 5;
  color: var(--text-main);
}
.sim-screen::-webkit-scrollbar {
  width: 4px;
}
.sim-screen::-webkit-scrollbar-track {
  background: transparent;
}
.sim-screen::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
}
.sim-screen.active {
  transform: translateX(-100%);
  z-index: 10;
}
.sim-screen.prev {
  transform: translateX(-200%);
  z-index: 1;
}

/* --- SIM HEADER BAR --- */
.sim-screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  flex-shrink: 0;
}
.sim-back-btn {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
}
.sim-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
[lang="ur"] .sim-title {
  text-align: right;
}

/* --- SCREEN: DASHBOARD HOME --- */
#sim-screen-dashboard {
  padding-top: 38px;
}
.sim-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sim-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #000000;
  border: 1.5px solid var(--border-color);
  position: relative;
}
.sim-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}
.sim-greeting h5 {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 800;
  margin: 0;
  text-align: left;
}
[lang="ur"] .sim-greeting h5 {
  text-align: right;
}
.sim-greeting p {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0;
  text-align: left;
  font-weight: 700;
}
[lang="ur"] .sim-greeting p {
  text-align: right;
}
.sim-dash-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sim-streak-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--color-accent);
  border: 1.5px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #000000;
}
.sim-icon-btn {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  position: relative;
  box-shadow: 1px 1px 0px var(--border-color);
}
.sim-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-secondary);
  color: #FFFFFF;
  font-size: 0.55rem;
  font-weight: 900;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

/* Countdown Widget */
.sim-countdown-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 2px 2px 0px var(--border-color);
}
.sim-countdown-circle {
  width: 44px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sim-countdown-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.sim-circle-bg {
  fill: none;
  stroke: var(--bg-secondary);
  stroke-width: 3;
}
.sim-circle-fill {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 28; /* ~75% complete */
  transition: stroke-dashoffset 0.5s ease;
}
.sim-countdown-days {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.sim-countdown-days span {
  font-size: 0.45rem;
  color: var(--text-muted);
  font-weight: 700;
}
.sim-countdown-info {
  flex-grow: 1;
  text-align: left;
}
[lang="ur"] .sim-countdown-info {
  text-align: right;
}
.sim-countdown-info h6 {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 2px 0;
}
.sim-prov-selector {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  outline: none;
}

/* Upgrade / Trial Card */
.sim-upgrade-card {
  background: var(--color-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  box-shadow: 2px 2px 0px var(--border-color);
}
[lang="ur"] .sim-upgrade-card {
  text-align: right;
}
.sim-upgrade-text h6 {
  font-size: 0.75rem;
  color: #000000;
  font-weight: 900;
  margin: 0 0 1px 0;
}
.sim-upgrade-text p {
  font-size: 0.6rem;
  color: #000000;
  opacity: 0.8;
  margin: 0;
  font-weight: 700;
}
.sim-upgrade-btn {
  background: #000000;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Dashboard Menu Grid */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.sim-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  box-shadow: 2px 2px 0px var(--border-color);
}
[lang="ur"] .sim-card {
  text-align: right;
}
.sim-card:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
  background: var(--bg-primary);
}
.sim-card.double-col {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.sim-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.sim-card-icon.blue { background: #3b82f6; color: #FFFFFF; }
.sim-card-icon.purple { background: #8c52ff; color: #FFFFFF; }
.sim-card-icon.indigo { background: #4f46e5; color: #FFFFFF; }
.sim-card-icon.teal { background: #0d9488; color: #FFFFFF; }
.sim-card-icon.amber { background: #f59e0b; color: #FFFFFF; }
.sim-card-icon.green { background: #39E079; color: #000000; }

.sim-card-content h6 {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
}
.sim-card-content p {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
  line-height: 1.2;
  font-weight: 700;
}
.sim-badge-pro {
  background: var(--color-accent);
  border: 1px solid var(--border-color);
  color: #000000;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Floating Gift FAB */
.sim-gift-fab {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 2px 2px 0px var(--border-color);
  cursor: pointer;
  z-index: 99;
  animation: simGiftBreathing 2s infinite ease-in-out;
}
@keyframes simGiftBreathing {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 3px 3px 0px var(--border-color); }
  100% { transform: scale(1); }
}

/* --- SCREEN: MCQ WORKSPACE --- */
.sim-mcq-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.sim-mcq-meta-sec {
  display: flex;
  align-items: center;
  gap: 3px;
}
.sim-mcq-question {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
  text-align: left;
}
[lang="ur"] .sim-mcq-question {
  text-align: right;
}
.sim-mcq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.sim-mcq-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  box-shadow: 2px 2px 0px var(--border-color);
}
[lang="ur"] .sim-mcq-opt {
  text-align: right;
}
.sim-mcq-opt:hover:not(.disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
  background: var(--bg-primary);
}
.sim-mcq-opt-badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--text-main);
  flex-shrink: 0;
}
.sim-mcq-opt-text {
  font-size: 0.72rem;
  color: var(--text-main);
  font-weight: 700;
}
.sim-mcq-opt.correct {
  background: #DCFCE7 !important;
  border-color: var(--border-color) !important;
  box-shadow: 2px 2px 0px var(--border-color) !important;
}
.sim-mcq-opt.correct .sim-mcq-opt-badge {
  background: var(--color-primary);
  color: #000000;
}
.sim-mcq-opt.correct .sim-mcq-opt-text {
  color: #000000;
  font-weight: 900;
}
.sim-mcq-opt.wrong {
  background: #FEE2E2 !important;
  border-color: var(--border-color) !important;
  box-shadow: 2px 2px 0px var(--border-color) !important;
}
.sim-mcq-opt.wrong .sim-mcq-opt-badge {
  background: #ef4444;
  color: #fff;
  border-color: var(--border-color);
}
.sim-mcq-opt.wrong .sim-mcq-opt-text {
  color: #ef4444;
  font-weight: 900;
}
.sim-mcq-explanation {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-left: 5px solid var(--color-primary);
  padding: 10px;
  border-radius: 8px;
  margin-top: 8px;
  display: none;
  text-align: left;
  box-shadow: 2px 2px 0px var(--border-color);
}
[lang="ur"] .sim-mcq-explanation {
  border-left: 2px solid var(--border-color);
  border-right: 5px solid var(--color-primary);
}
.sim-mcq-explanation h6 {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 4px 0;
}
.sim-mcq-explanation p {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

/* --- SCREEN: MIND MAPS --- */
.sim-map-desc {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}
.sim-map-canvas {
  width: 100%;
  height: 380px;
  position: relative;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  box-sizing: border-box;
}
.sim-map-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sim-map-path {
  fill: none;
  stroke: rgba(0,0,0,0.15);
  stroke-width: 1.5;
  transition: stroke 0.3s, stroke-width 0.3s;
}
.sim-map-path.active {
  stroke: var(--color-secondary);
  stroke-width: 2.5;
}
.sim-map-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 14px;
  gap: 50px;
  box-sizing: border-box;
}
.sim-map-node {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 10;
  text-align: center;
  transition: var(--transition-fast);
  white-space: nowrap;
  box-shadow: 2px 2px 0px var(--border-color);
}
.sim-map-node:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
  background: var(--bg-primary);
}
.sim-map-node.root {
  background: var(--color-secondary);
  border-color: var(--border-color);
  color: #FFFFFF;
  font-size: 0.75rem;
}
.sim-map-branches {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 6px;
}
.sim-map-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.sim-map-node-sub {
  font-size: 0.6rem;
  background: var(--bg-primary);
}
.sim-map-node.active {
  border-color: var(--border-color);
  box-shadow: 1px 1px 0px var(--border-color);
  transform: translate(1px, 1px);
  background: var(--color-primary);
  color: #000000;
}
.sim-map-details {
  width: calc(100% - 24px);
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  display: none;
  z-index: 20;
  text-align: left;
  box-shadow: 3px 3px 0px var(--border-color);
}
[lang="ur"] .sim-map-details {
  text-align: right;
}
.sim-map-details h6 {
  font-size: 0.68rem;
  color: var(--color-secondary);
  font-weight: 900;
  margin: 0 0 3px 0;
}
.sim-map-details p {
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

/* --- SCREEN: STUDY PLANNER --- */
.sim-planner-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0px var(--border-color);
}
.sim-planner-progress-text {
  font-size: 0.65rem;
  color: var(--text-main);
  font-weight: 900;
}
.sim-planner-bar-bg {
  width: 100px;
  height: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}
.sim-planner-bar-fill {
  width: 33%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.sim-planner-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0px var(--border-color);
}
.sim-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 900;
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.sim-cal-day:hover {
  background: var(--bg-secondary);
}
.sim-cal-day.active {
  background: var(--color-primary);
  color: #000000;
  border: 1.5px solid var(--border-color);
}
.sim-cal-day.completed {
  border: 1.5px solid var(--border-color);
  background: var(--color-primary);
  color: #000000;
}
.sim-cal-hdr {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 900;
  padding-bottom: 4px;
}

.sim-planner-tasks-title {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
  text-align: left;
}
[lang="ur"] .sim-planner-tasks-title {
  text-align: right;
}
.sim-planner-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sim-planner-task {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  box-shadow: 1px 1px 0px var(--border-color);
}
[lang="ur"] .sim-planner-task {
  text-align: right;
}
.sim-task-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #000000;
  background: transparent;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.sim-planner-task.completed .sim-task-checkbox {
  background: var(--color-primary);
  border-color: var(--border-color);
}
.sim-task-text {
  font-size: 0.65rem;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}
.sim-planner-task.completed .sim-task-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* --- SCREEN: AI CHAT --- */
.sim-chat-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 4px;
  box-sizing: border-box;
  min-height: 230px;
  max-height: 250px;
}
.sim-chat-msg {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  line-height: 1.3;
  box-sizing: border-box;
  text-align: left;
  font-weight: 700;
}
[lang="ur"] .sim-chat-msg {
  text-align: right;
}
.sim-chat-msg.bot {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  box-shadow: 2px 2px 0px var(--border-color);
}
[lang="ur"] .sim-chat-msg.bot {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 3px;
  align-self: flex-start;
}
.sim-chat-msg.user {
  background: var(--color-secondary);
  border: 2px solid var(--border-color);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  box-shadow: 2px 2px 0px var(--border-color);
}
[lang="ur"] .sim-chat-msg.user {
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 3px;
  align-self: flex-end;
}
.sim-chat-msg.typing {
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 10px;
  font-weight: 500;
  border: none;
  box-shadow: none;
  background: transparent;
}
.sim-chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.sim-chat-prompt-btn {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.58rem;
  padding: 4px 8px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 1.5px 1.5px 0px var(--border-color);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.sim-chat-prompt-btn:hover {
  transform: translate(0.5px, 0.5px);
  box-shadow: 1px 1px 0px var(--border-color);
}
.sim-chat-input-box {
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 18px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 1px 1px 0px var(--border-color);
}
.sim-chat-placeholder {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}
.sim-chat-send {
  font-size: 0.8rem;
  color: var(--color-secondary);
  cursor: pointer;
  font-weight: 900;
}

/* --- SCREEN: PRO UPGRADE --- */
.sim-pro-card {
  background: #FFFFFF;
  border: 3px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 4px 4px 0px var(--border-color);
}
.sim-pro-logo {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px auto;
  background: var(--color-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #FFFFFF;
}
.sim-pro-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 2px;
}
.sim-pro-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.sim-pro-price span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}
.sim-pro-feats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 16px;
  padding: 0 6px;
}
[lang="ur"] .sim-pro-feats {
  text-align: right;
}
.sim-pro-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--text-main);
  font-weight: 700;
}
.sim-pro-feat span.check {
  color: var(--color-secondary);
  font-weight: 900;
}
.sim-pro-buy-btn {
  width: 100%;
  background: var(--color-primary);
  color: #000000;
  border: 2px solid var(--border-color);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
  box-shadow: 2px 2px 0px var(--border-color);
}
.sim-pro-buy-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
  background: var(--color-primary);
}

/* Lucky Wheel Spin Mock inside simulator */
.sim-wheel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.sim-wheel-box {
  background: #ffffff;
  border: 3px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  box-shadow: 4px 4px 0px #000000;
}
.sim-wheel-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  margin: 12px auto;
  position: relative;
  overflow: hidden;
  transition: transform 3s cubic-bezier(0.1, 0.8, 0.1, 1);
  background: conic-gradient(
    #8c52ff 0% 16.6%,
    #f59e0b 16.6% 33.3%,
    #39E079 33.3% 50%,
    #3b82f6 50% 66.6%,
    #ef4444 66.6% 83.3%,
    #e9d5ff 83.3% 100%
  );
}
.sim-wheel-pointer {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid #000000;
  z-index: 10;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}
.sim-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-color);
  z-index: 5;
}

/* --- RESPONSIVENESS REFINEMENTS FOR SIMULATOR --- */
@media (max-width: 992px) {
  .parent-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .parents-showcase {
    order: -1;
  }
  .parent-feature-card {
    text-align: left;
  }
  [lang="ur"] .parent-feature-card {
    text-align: right;
  }
}

@media (max-width: 480px) {
  .phone-mockup-container {
    width: 280px;
    height: 560px;
  }
  .phone-mockup-container:hover {
    transform: rotate3d(1, -1, 1, 3deg) translateY(-10px) scale(1.02);
  }
  .phone-frame {
    width: 280px;
    height: 560px;
    border-width: 8px;
    border-radius: 30px;
  }
  .phone-sheen {
    border-radius: 30px;
  }
  .phone-dynamic-island {
    width: 80px;
    height: 16px;
  }
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .sim-card.double-col {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   URDU TYPOGRAPHY & RTL LAYOUT (.urdu-mode)
   ========================================================= */
body.urdu-mode {
  direction: rtl;
  text-align: right;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Mehr Nastaliq', 'Nafees Nastaleeq', serif;
}

/* Ensure child elements inherit the Nastaliq font where appropriate, but allow overrides */
body.urdu-mode h1,
body.urdu-mode h2,
body.urdu-mode h3,
body.urdu-mode h4,
body.urdu-mode h5,
body.urdu-mode h6,
body.urdu-mode p,
body.urdu-mode span,
body.urdu-mode a,
body.urdu-mode button,
body.urdu-mode div {
  /* Only apply Nastaliq if the element actually contains Urdu text (via attribute) or is a wrapper.
     Using a generic override here. */
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Mehr Nastaliq', serif;
}

/* Fix Line Heights for Nastaliq Script */
body.urdu-mode p,
body.urdu-mode .section-desc,
body.urdu-mode .tier-desc,
body.urdu-mode .faq-content p,
body.urdu-mode .sim-chat-msg,
body.urdu-mode .sim-mcq-question {
  line-height: 2.2 !important;
  font-size: 1.1em; /* Nastaliq often needs a bump in size to match English legibility */
}

body.urdu-mode h1,
body.urdu-mode h2,
body.urdu-mode h3 {
  line-height: 1.8 !important;
}

/* Structural Alignment Fixes for RTL */
body.urdu-mode .features-grid,
body.urdu-mode .about-mdcat-grid,
body.urdu-mode .pricing-grid,
body.urdu-mode .comparison-matrix,
body.urdu-mode .parent-info-col {
  text-align: right;
}

body.urdu-mode .sim-card-content,
body.urdu-mode .sim-pro-card,
body.urdu-mode .tier-benefits,
body.urdu-mode .sim-pro-feats {
  text-align: right;
}

body.urdu-mode .benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.urdu-mode .benefit-check {
  margin-right: 0;
  margin-left: 8px; /* Move checkmark to the right side of text in RTL */
}

/* English Isolation: Force LTR for specific terms/numbers if needed */
body.urdu-mode .ltr-force {
  direction: ltr !important;
  display: inline-block;
  font-family: 'Inter', sans-serif !important;
}

/* --- COMPARISON MATRIX STYLES --- */
.matrix-container {
  margin-top: 80px; 
  background: #fff; 
  border: 3px solid #000; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 6px 6px 0 #000;
}
.matrix-title {
  text-align: center; 
  padding: 20px; 
  background: var(--bg-page); 
  border-bottom: 3px solid #000; 
  margin: 0; 
  font-size: 1.5rem; 
  font-weight: 900;
}
.matrix-header {
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr; 
  font-weight: 900; 
  background: var(--bg-dark); 
  color: #fff; 
  padding: 16px;
}
.matrix-row {
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr; 
  padding: 16px; 
  border-bottom: 1px solid #e5e7eb;
}
.matrix-row:last-child {
  border-bottom: none;
}
.matrix-feature-name {
  font-weight: 800;
}
.matrix-free-val {
  text-align: center; 
  color: #6b7280;
}
.matrix-pro-val {
  text-align: center; 
  font-weight: 800; 
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .matrix-header {
    display: none;
  }
  .matrix-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .matrix-feature-name {
    grid-column: span 2;
    font-size: 1.1rem;
    text-align: center;
    background: var(--bg-surface);
    padding: 8px;
    border-radius: 8px;
  }
  .matrix-free-val::before {
    content: "FREE: ";
    font-weight: 900;
    color: #000;
    display: block;
    font-size: 0.85rem;
  }
  .matrix-pro-val::before {
    content: "PRO: ";
    font-weight: 900;
    color: #000;
    display: block;
    font-size: 0.85rem;
  }
}

/* Matrix Comparison RTL Alignment */
body.urdu-mode .comparison-matrix div {
  text-align: right;
}
body.urdu-mode .matrix-free-val,
body.urdu-mode .matrix-pro-val {
  text-align: center !important;
}

/* Fix Simulator RTL Headers */
body.urdu-mode .sim-screen-header {
  flex-direction: row-reverse; /* Flip the back button position */
}


