/* ===== TOKENS ===== */
:root {
  --ink: #132238;
  --ink-soft: #506076;
  --muted: #eff5f7;
  --bg: #f8fbfd;
  --panel: #ffffff;
  --panel-elevated: #ffffff;
  --line: #dce7ed;
  --blue: #185adb;
  --blue-dark: #0f3d96;
  --blue-soft: #e8f0ff;
  --mint: #20b486;
  --mint-soft: #dcf7ee;
  --violet: #7b61ff;
  --violet-soft: #ece8ff;
  --amber: #f5a524;
  --danger: #e65c4f;
  --header-bg: rgba(248, 251, 253, 0.92);
  --hero-overlay: rgba(248, 251, 253, 0.94);
  --dashboard-bg: #eef4f7;
  --shadow-sm: 0 8px 20px rgba(20, 39, 63, 0.06);
  --shadow-md: 0 16px 36px rgba(20, 39, 63, 0.08);
  --shadow-lg: 0 22px 60px rgba(20, 39, 63, 0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-display: clamp(2.7rem, 6.4vw, 5.2rem);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-normal: 320ms;
  --font-ar: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-latin: "DM Sans", system-ui, sans-serif;
  --header-h: 70px;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;
}

[data-theme="dark"] .radial-progress {
  background:
    radial-gradient(circle at center, var(--panel) 0 58%, transparent 59%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), var(--line) 0);
}

[data-theme="dark"] .mentor-card {
  background: color-mix(in srgb, var(--blue-soft) 40%, var(--panel));
  border-color: color-mix(in srgb, var(--mint) 20%, var(--line));
}

[data-theme="dark"] .dashboard-topbar,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dash-card,
[data-theme="dark"] .panel {
  background: var(--panel);
  border-color: var(--line);
}

[data-theme="dark"] .dash-search {
  background: var(--muted);
  border-color: var(--line);
}

[data-theme="dark"] .quick-access-item {
  background: var(--muted);
}

[data-theme="dark"] {
  --ink: #e8eef4;
  --ink-soft: #9aacbe;
  --muted: #141c28;
  --bg: #0f1419;
  --panel: #1a2332;
  --panel-elevated: #212d3f;
  --line: #2a3a4d;
  --blue: #4d8fff;
  --blue-dark: #7aadff;
  --blue-soft: #1e2d4a;
  --mint: #3dd4a0;
  --mint-soft: #1a3d32;
  --violet: #9b87ff;
  --violet-soft: #2a2540;
  --amber: #f5b84a;
  --danger: #ff7a6e;
  --header-bg: rgba(15, 20, 25, 0.94);
  --hero-overlay: rgba(15, 20, 25, 0.92);
  --dashboard-bg: #0f1419;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.45);
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

#services,
#journey,
#impact,
#home {
  scroll-margin-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ar);
  font-size: var(--text-base);
  line-height: 1.6;
  transition: background var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out);
}

body.lang-fr .latin {
  font-family: var(--font-latin);
}

.latin {
  font-family: var(--font-latin);
}

button,
input {
  font: inherit;
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-frame {
  min-height: 100vh;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: 12px;
  padding-inline: max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  transition: background var(--duration-normal) var(--ease-out), box-shadow var(--duration-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-cta-mobile {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--mint));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: var(--text-base);
  line-height: 1.2;
}

.brand small {
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-family: var(--font-latin);
}

.main-nav,
.header-actions,
.hero-actions,
.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.header-actions {
  justify-content: flex-end;
}

.main-nav {
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.main-nav a,
.nav-button {
  border: 0;
  color: inherit;
  background: transparent;
}

.main-nav a:hover,
.nav-button:hover {
  color: var(--blue);
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.theme-toggle-sidebar:not(.sidebar-utility) {
  width: 100%;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: 0 14px;
  min-height: 44px;
}

.theme-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-soft);
  text-align: start;
}

.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.theme-icon-sun {
  background: radial-gradient(circle at 30% 30%, #ffe566, var(--amber));
  box-shadow: 0 0 0 2px var(--line);
}

.theme-icon-moon {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4d4e8 40%, transparent 40%);
  box-shadow: inset -4px -2px 0 0 #8fa4bc;
  opacity: 0;
  transform: scale(0.5) rotate(-30deg);
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.5);
  position: absolute;
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
  position: static;
}

[data-theme="dark"] .theme-toggle-sidebar .theme-icon-sun {
  display: none;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--panel);
  font-weight: 700;
  font-family: var(--font-latin);
}

.lang-opt {
  transition: color var(--duration-fast);
}

.lang-opt.is-active {
  color: var(--blue);
}

.lang-sep {
  opacity: 0.4;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(19, 34, 56, 0.45);
  backdrop-filter: blur(4px);
}

.mobile-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: min(300px, 88vw);
  padding: var(--space-6) var(--space-5);
  border-inline-start: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

[dir="rtl"] .mobile-nav {
  transform: translateX(-100%);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a,
.mobile-nav button {
  min-height: 44px;
  padding: var(--space-3);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  text-align: start;
}

.mobile-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.mobile-nav-tools {
  display: none;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.mobile-nav-tools .language-pill,
.mobile-nav-tools .theme-toggle {
  flex: 1;
}

/* ===== BUTTONS ===== */
.primary-button,
.secondary-button,
.nav-button,
.tabs button,
.dashboard-nav button,
.icon-button {
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast), background var(--duration-fast), color var(--duration-fast), box-shadow var(--duration-fast);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow-sm);
}

.topbar-actions .primary-button {
  box-shadow: 0 4px 14px rgba(24, 90, 219, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.primary-button:active {
  transform: scale(0.98);
}

.primary-button.glow:hover {
  box-shadow: 0 14px 32px rgba(24, 90, 219, 0.38), 0 0 24px rgba(24, 90, 219, 0.15);
}

.secondary-button {
  color: var(--blue-dark);
  border-color: var(--line);
  background: var(--panel);
}

.secondary-button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.secondary-button.animated-border {
  position: relative;
  overflow: hidden;
}

.secondary-button.animated-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--violet), var(--blue));
  background-size: 300% 100%;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderShift 4s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.secondary-button.animated-border:hover::before {
  opacity: 1;
}

@keyframes borderShift {
  to { background-position: 300% 0; }
}

.compact {
  min-height: 38px;
  padding-inline: 14px;
  font-size: var(--text-sm);
}

.full-width {
  width: 100%;
}

/* ===== VIEWS ===== */
.view {
  display: none;
  opacity: 0;
}

.view-active {
  display: block;
  opacity: 1;
}

.view-active.view-enter {
  animation: viewEnter var(--duration-normal) var(--ease-out) forwards;
}

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

/* ===== HERO ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-7);
  background:
    linear-gradient(180deg, transparent, var(--hero-overlay)),
    linear-gradient(135deg, var(--bg) 0%, var(--muted) 54%, var(--violet-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 90, 219, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 90, 219, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero-product {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.hero-dashboard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  min-height: 300px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(0.5deg) translateY(-6px); }
}

.hero-dashboard-bar {
  display: flex;
  gap: var(--space-2);
  direction: ltr;
  margin-bottom: 18px;
}

.hero-dashboard-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.hero-dashboard-bar span:nth-child(1) { background: var(--danger); }
.hero-dashboard-bar span:nth-child(2) { background: var(--amber); }
.hero-dashboard-bar span:nth-child(3) { background: var(--mint); }

.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hero-tile {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}

.hero-tile.wide {
  grid-column: span 2;
}

.hero-tile small,
.preview-cards small,
.panel-header span:not(.chip) {
  display: block;
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.hero-tile strong {
  display: block;
  margin-top: 10px;
  font-size: var(--text-lg);
}

.mini-line {
  height: 50px;
  margin-top: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 0 14%, color-mix(in srgb, var(--mint) 22%, transparent) 14% 32%, transparent 32% 42%, color-mix(in srgb, var(--blue) 22%, transparent) 42% 70%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 8%, transparent), color-mix(in srgb, var(--mint) 8%, transparent));
}

.mini-progress {
  height: 8px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--line);
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--mint));
}

.chart-tile {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
}

.chart-tile span {
  width: 20px;
  height: var(--h, 50%);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--violet), var(--blue));
  animation: barGrow 1.2s var(--ease-out) backwards;
}

.chart-tile span:nth-child(1) { animation-delay: 0.1s; }
.chart-tile span:nth-child(2) { animation-delay: 0.2s; }
.chart-tile span:nth-child(3) { animation-delay: 0.3s; }
.chart-tile span:nth-child(4) { animation-delay: 0.4s; }
.chart-tile span:nth-child(5) { animation-delay: 0.5s; }

@keyframes barGrow {
  from { height: 0; }
  to { height: var(--h, 50%); }
}

.knowledge-map {
  display: none;
  position: absolute;
  inset: -10%;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

.knowledge-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.knowledge-lines line {
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.knowledge-map span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--blue) 12%, transparent);
  animation: nodePulse 3s ease-in-out infinite;
}

.knowledge-map span:nth-child(2) { inset-block-start: 18%; inset-inline-start: 18%; animation-delay: 0s; }
.knowledge-map span:nth-child(3) { inset-block-start: 34%; inset-inline-start: 72%; background: var(--mint); animation-delay: 0.5s; }
.knowledge-map span:nth-child(4) { inset-block-start: 70%; inset-inline-start: 28%; background: var(--violet); animation-delay: 1s; }
.knowledge-map span:nth-child(5) { inset-block-start: 78%; inset-inline-start: 74%; background: var(--amber); animation-delay: 1.5s; }
.knowledge-map span:nth-child(6) { inset-block-start: 48%; inset-inline-start: 49%; background: var(--mint); animation-delay: 2s; }

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

.hero-content {
  text-align: center;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title-gradient {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: var(--text-display);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 45%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--blue) 50%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 22px auto 0;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, var(--text-xl));
}

.hero-subtitle span {
  display: block;
  margin-top: 8px;
  direction: ltr;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}

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

/* ===== STATS ===== */
.stats-band {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

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

.stats-grid article {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 148px;
  padding: 26px 22px;
  border-inline-start: 1px solid var(--line);
  transition: background var(--duration-fast);
}

.stats-grid article:hover {
  background: color-mix(in srgb, var(--blue-soft) 40%, transparent);
}

.stats-grid article:first-child {
  border-inline-start: 0;
}

.stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--blue-soft);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stats-grid strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
}

.stats-grid span:last-child {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ===== SECTIONS ===== */
.section-block {
  padding: var(--space-8) 0;
}

.muted-section {
  background: var(--muted);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  padding-bottom: var(--space-4);
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--space-3) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
}

.section-heading.align-start h2::after {
  margin-inline: 0 auto;
}

.align-start {
  margin-inline: 0;
  text-align: start;
}

.section-heading h2,
.cta-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.18;
}

.section-heading p:not(.eyebrow),
.cta-copy p {
  color: var(--ink-soft);
  font-size: var(--text-lg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.feature-card,
.panel,
.dashboard-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.feature-card {
  min-height: 260px;
  padding: 26px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon-blue {
  color: var(--blue-dark);
  background: linear-gradient(145deg, var(--blue-soft), color-mix(in srgb, var(--blue) 15%, transparent));
}

.feature-icon-mint {
  color: #087453;
  background: linear-gradient(145deg, var(--mint-soft), color-mix(in srgb, var(--mint) 15%, transparent));
}

.feature-icon-violet {
  color: #5138c6;
  background: linear-gradient(145deg, var(--violet-soft), color-mix(in srgb, var(--violet) 15%, transparent));
}

.feature-card h3,
.timeline h3,
.panel h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.feature-card p,
.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

/* ===== TIMELINE ===== */
.journey-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-inline-start: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 24px 24px;
  inset-inline-start: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--mint), var(--violet));
  border-radius: 2px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.timeline span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.timeline article:nth-child(2) span { background: var(--mint); }
.timeline article:nth-child(3) span { background: var(--violet); }

/* ===== PREVIEW ===== */
.split-preview {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.dashboard-preview {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.glass-preview {
  backdrop-filter: blur(8px);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  background: linear-gradient(115deg, color-mix(in srgb, var(--ink) 94%, transparent), color-mix(in srgb, var(--blue-dark) 92%, transparent));
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px;
}

.preview-cards article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.preview-cards strong {
  display: block;
  margin-top: 10px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--line);
  background: var(--muted);
}

.footer-inner {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 769px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-nav a,
.footer-nav button {
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 700;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--blue);
}

.footer-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ===== DASHBOARD SHELL (EdTech) ===== */
.dashboard-shell {
  --dash-sidebar-bg: #1e1b4b;
  --dash-sidebar-text: rgba(255, 255, 255, 0.72);
  --dash-sidebar-active: rgba(124, 58, 237, 0.35);
  --dash-accent: #6366f1;
  --dash-accent-dark: #4f46e5;
  --dash-surface: #f4f6fb;
  --dash-hero-bg: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 55%, #f5f3ff 100%);
  min-height: 100vh;
  background: var(--dash-surface);
}

[data-theme="dark"] .dashboard-shell {
  --dash-sidebar-bg: #12102a;
  --dash-sidebar-text: rgba(255, 255, 255, 0.7);
  --dash-sidebar-active: rgba(139, 92, 246, 0.28);
  --dash-surface: #0f1419;
  --dash-hero-bg: linear-gradient(135deg, #1e1b4b 0%, #1a2332 100%);
}

.dashboard-shell.view-active {
  display: grid;
  grid-template-columns: 260px 1fr;
  direction: ltr;
}

.dashboard-shell.view-active .sidebar {
  grid-column: 1;
  grid-row: 1;
}

.dashboard-shell.view-active .dashboard-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(15, 23, 42, 0.45);
}

.dashboard-shell.sidebar-open .sidebar-backdrop {
  display: block;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 36;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 20px 16px;
  overflow-y: auto;
  background: var(--dash-sidebar-bg);
  color: #fff;
}

.sidebar-brand {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-brand .brand-mark {
  background: linear-gradient(145deg, var(--dash-accent), #a855f7);
}

.sidebar-brand strong,
.sidebar-brand small {
  color: #fff;
}

.sidebar-brand small {
  opacity: 0.65;
}

.sidebar-student {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-student strong {
  color: #fff;
}

.sidebar-student small {
  color: var(--dash-sidebar-text);
  font-size: var(--text-xs);
}

.student-avatar,
.profile-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--dash-accent), #a855f7);
  font-size: var(--text-sm);
  font-weight: 800;
}

.dashboard-nav {
  display: grid;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.dashboard-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--dash-sidebar-text);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: start;
}

.dashboard-nav button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

@media (min-width: 1025px) {
  .dashboard-nav .nav-mobile-only {
    display: none;
  }
}

.dashboard-nav button:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-nav .dash-nav-active {
  color: #fff;
  background: var(--dash-sidebar-active);
  border-color: rgba(167, 139, 250, 0.35);
}

.dashboard-nav .nav-soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.nav-badge {
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  font-weight: 800;
}

.sidebar-upgrade {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #4c1d95, #6366f1);
  text-align: center;
}

.sidebar-upgrade p {
  margin: 8px 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.upgrade-icon {
  font-size: 1.25rem;
  color: #fde68a;
}

.upgrade-button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #312e81;
  background: #fff;
  font-weight: 800;
}

.sidebar-footer {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-utility {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 40px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--dash-sidebar-text);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: start;
}

.sidebar-utility:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle-sidebar.sidebar-utility .theme-label {
  display: none;
}

.dashboard-content {
  padding: 0;
  min-width: 0;
}

.dashboard-main {
  direction: rtl;
  min-height: 100vh;
  background: var(--dash-surface);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.topbar-end {
  flex-shrink: 0;
}

.dash-menu-toggle {
  display: none;
}

.dash-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  max-width: 420px;
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--muted);
}

.dash-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-soft);
}

.dash-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.dash-search input::placeholder {
  color: var(--ink-soft);
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: end;
}

.topbar-profile strong {
  display: block;
  font-size: var(--text-sm);
}

.topbar-profile small {
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.theme-toggle-topbar {
  display: grid;
}

.dashboard-sections {
  padding: var(--space-5);
}

.dashboard-section {
  display: none;
}

.dashboard-section.is-active {
  display: block;
  animation: panelFade var(--duration-fast) var(--ease-out);
}

.dashboard-shell .primary-button {
  background: linear-gradient(135deg, var(--dash-accent), #7c3aed);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

.dashboard-shell .primary-button:hover {
  filter: brightness(1.05);
}

.dash-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--dash-hero-bg);
  box-shadow: var(--shadow-sm);
}

.dash-hero h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
}

.dash-hero p {
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
}

.dash-hero-art {
  width: min(180px, 32vw);
  color: var(--dash-accent);
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.stat-card {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.stat-card-body {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.stat-radial {
  width: 64px;
  height: 64px;
  font-size: 0.85rem;
}

.stat-radial strong {
  font-size: 0.9rem;
}

.stat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.stat-value {
  display: block;
  margin-top: var(--space-2);
  font-size: 1.75rem;
  line-height: 1;
}

.stat-label {
  display: block;
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.stat-sub {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  font-weight: 800;
}

.stat-trend {
  display: block;
  margin-top: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.stat-trend-up {
  color: var(--mint);
}

.dash-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.dash-card {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.dash-card h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dash-card-head h3 {
  margin: 0;
}

.trend-up {
  color: var(--mint);
  font-size: var(--text-xs);
  font-weight: 800;
}

.dash-quick-access {
  grid-column: span 4;
}

.dash-recommendations {
  grid-column: span 4;
}

.dash-ongoing {
  grid-column: span 4;
}

.dash-achievements {
  grid-column: span 6;
}

.dash-weekly {
  grid-column: span 6;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 88px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-align: center;
}

.quick-access-item:hover {
  border-color: color-mix(in srgb, var(--dash-accent) 40%, var(--line));
  background: color-mix(in srgb, var(--dash-accent) 8%, var(--panel));
  color: var(--dash-accent-dark);
}

.quick-access-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--dash-accent);
  background: color-mix(in srgb, var(--dash-accent) 12%, var(--panel));
}

.quick-access-icon svg {
  width: 20px;
  height: 20px;
}

.recommendation-list-compact .recommendation-card {
  padding: var(--space-3);
}

.recommendation-list-compact .recommendation-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ongoing-courses-list {
  display: grid;
  gap: var(--space-4);
}

.ongoing-item {
  display: grid;
  gap: var(--space-2);
}

.ongoing-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-2);
}

.ongoing-head h4 {
  margin: 0;
  font-size: var(--text-sm);
}

.achievement-list {
  display: grid;
  gap: var(--space-3);
}

.achievement-item {
  display: flex;
  align-items: start;
  gap: var(--space-3);
}

.achievement-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: var(--muted);
  font-size: 1rem;
}

.achievement-item h4 {
  margin: 0;
  font-size: var(--text-sm);
}

.achievement-item small {
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.weekly-chart {
  color: var(--dash-accent);
}

.chart-label {
  fill: var(--ink-soft);
  font-size: 9px;
}

.panel-readiness {
  margin-top: var(--space-4);
}

#dashSectionGuidance .dashboard-grid,
#dashSectionEvaluation .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

#dashSectionGuidance .panel,
#dashSectionEvaluation .panel {
  grid-column: span 6;
}

#dashSectionGuidance .panel-wide {
  grid-column: 1 / -1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.welcome-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-soft);
}

.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: var(--text-xs);
  font-weight: 800;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--blue);
}

.bell-button svg {
  width: 20px;
  height: 20px;
}

.notif-badge {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.bell-button.is-clear .notif-badge {
  display: none;
}

.tabs {
  padding: 4px;
  border-radius: var(--radius);
  background: var(--muted);
}

.tabs button {
  flex: 1;
  min-height: 40px;
  padding-inline: 10px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink-soft);
  background: transparent;
  font-weight: 800;
  text-align: center;
}

.tabs .tab-active {
  color: var(--blue-dark);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.dashboard-grid.panels-fade.is-transitioning .panel:not(.panel-hidden) {
  animation: panelFade var(--duration-fast) var(--ease-out);
}

@keyframes panelFade {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.panel {
  grid-column: span 4;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.panel-wide {
  grid-column: span 8;
}

.panel-tall {
  display: flex;
  flex-direction: column;
  max-height: 720px;
  overflow: hidden;
}

.dashboard-grid[data-active-section="overview"] .panel-tall {
  grid-row: span 2;
}

/* Section layouts — no empty side columns */
.dashboard-grid[data-active-section="courses"] .panel:not(.panel-hidden) {
  grid-column: 1 / -1;
  grid-row: auto;
  max-height: none;
}

.dashboard-grid[data-active-section="guidance"] .panel:not(.panel-hidden),
.dashboard-grid[data-active-section="evaluation"] .panel:not(.panel-hidden) {
  grid-column: span 6;
  grid-row: auto;
  max-height: none;
}

.panel-tall .course-list {
  flex: 1;
  overflow-y: auto;
}

.panel-header-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  background: var(--panel);
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
}

.panel-header .eyebrow {
  margin-bottom: 4px;
}

.panel-header > span:not(.chip) {
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-weight: 900;
}

.readiness-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-5);
  align-items: center;
}

.radial-progress {
  --value: 0;
  display: grid;
  width: 196px;
  height: 196px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel) 0 58%, transparent 59%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), var(--line) 0);
  transition: background var(--duration-normal) var(--ease-out);
}

.radial-progress.is-updating {
  animation: radialPulse 0.6s var(--ease-out);
}

@keyframes radialPulse {
  50% { transform: scale(1.03); }
}

.radial-progress strong {
  font-size: 2.6rem;
  line-height: 1;
}

.radial-progress span {
  margin-top: -54px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.metric-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.45rem;
}

.metric-sparkline {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 28px;
  margin-top: 10px;
}

.metric-sparkline span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--blue), color-mix(in srgb, var(--mint) 60%, var(--blue)));
}

.metric-sparkline span:nth-child(1) { height: 40%; }
.metric-sparkline span:nth-child(2) { height: 65%; }
.metric-sparkline span:nth-child(3) { height: 50%; }
.metric-sparkline span:nth-child(4) { height: 85%; }

.metric-card span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.mentor-card {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--mint) 25%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--blue-soft) 55%, var(--panel));
}

.mentor-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--mint);
  font-weight: 900;
}

.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: 14px;
}

.course-list,
.skills-list,
.recommendation-list,
.notification-list,
.evaluation-list {
  display: grid;
  gap: 14px;
}

.course-card,
.recommendation-card,
.notification-item,
.evaluation-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.course-card {
  background: var(--panel-elevated);
}

.course-card:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: var(--shadow-sm);
}

.course-card h4,
.recommendation-card h4,
.notification-item h4 {
  margin: 0 0 6px;
  font-size: var(--text-base);
}

.course-card p,
.recommendation-card p,
.notification-item p,
.mentor-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.course-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 6px;
}

.type-pill {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.type-pill.research {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.type-pill.digital {
  color: #5138c6;
  background: var(--violet-soft);
}

.course-card.is-complete {
  border-color: color-mix(in srgb, var(--mint) 40%, var(--line));
}

.status-done {
  font-size: var(--text-xs);
  color: var(--mint);
  font-weight: 800;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: var(--text-xs);
}

.skill-item {
  display: grid;
  gap: var(--space-2);
}

.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.skill-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.skill-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--mint));
}

.recommendation-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border-inline-start: 4px solid var(--blue);
  background: linear-gradient(90deg, var(--bg), var(--panel));
}

.recommendation-card.rec-project { border-inline-start-color: var(--mint); }
.recommendation-card.rec-course { border-inline-start-color: var(--violet); }
.recommendation-card.rec-mentor { border-inline-start-color: var(--amber); }

.rec-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.rec-icon svg {
  width: 20px;
  height: 20px;
}

.notification-item {
  border-inline-start: 4px solid var(--blue);
  transition: opacity var(--duration-fast);
}

.notification-item:not(.is-read) {
  background: color-mix(in srgb, var(--blue-soft) 35%, var(--panel));
  animation: notifPulse 2.5s ease-in-out infinite;
}

@keyframes notifPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 20%, transparent); }
}

.notification-item.is-read {
  opacity: 0.65;
  border-inline-start-color: var(--line);
}

.evaluation-item {
  display: grid;
  gap: 10px;
}

.evaluation-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

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

/* ===== RESPONSIVE ===== */
/* Desktop large: hero 2 columns */
@media (min-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    text-align: start;
  }

  .hero-content {
    text-align: start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .knowledge-map {
    display: block;
  }

  .hero-dashboard {
    max-width: 100%;
  }
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .stats-grid,
  .service-grid,
  .preview-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-layout,
  .split-preview {
    grid-template-columns: 1fr;
  }

  .dashboard-shell.view-active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
  }

  .dashboard-shell.view-active .dashboard-content {
    order: 1;
    flex: none;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .dashboard-shell.view-active .sidebar {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) max(16px, env(safe-area-inset-right)) var(--space-3) max(16px, env(safe-area-inset-left));
  }

  .sidebar-brand .brand span:not(.brand-mark) {
    display: none;
  }

  .sidebar-student,
  .sidebar-footer,
  .sidebar-upgrade {
    display: none;
  }

  .nav-desktop-only {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dashboard-nav::-webkit-scrollbar {
    display: none;
  }

  .dashboard-nav button {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .dash-mosaic {
    grid-template-columns: 1fr;
  }

  .dash-quick-access,
  .dash-recommendations,
  .dash-ongoing,
  .dash-achievements,
  .dash-weekly {
    grid-column: 1 / -1;
  }

  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-search {
    max-width: 280px;
  }

  .theme-toggle-topbar {
    display: grid;
  }

  .panel,
  .panel-wide,
  .panel-tall {
    grid-column: 1 / -1;
    grid-row: auto;
    max-height: none;
  }

  .timeline::before {
    display: none;
  }

  .timeline {
    padding-inline-start: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --bottom-nav-h: 72px;
  }

  .header-actions .language-pill {
    display: none;
  }

  .header-cta-mobile {
    display: inline-flex;
  }

  .mobile-nav-tools {
    display: flex;
  }

  .container {
    width: min(100% - 28px, 1140px);
  }

  .hero-section {
    padding-block: var(--space-5);
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-product {
    display: none;
  }

  .hero-content {
    padding: var(--space-5) var(--space-4);
  }

  .hero-dashboard {
    max-width: 100%;
    min-height: 260px;
    animation: none;
    transform: none;
  }

  .hero-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-tile {
    min-height: 100px;
    padding: 12px;
  }

  .stats-grid,
  .service-grid,
  .preview-cards,
  .metric-list {
    grid-template-columns: 1fr;
  }

  .stats-grid article {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .stats-grid article:first-child {
    border-top: 0;
  }

  .section-block {
    padding: 58px 0;
  }

  .dashboard-content {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .dashboard-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-sections {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-4);
    padding-bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));
  }

  .dash-menu-toggle {
    display: grid;
  }

  .dash-search {
    display: none;
  }

  .topbar-profile small {
    display: none;
  }

  .dash-hero {
    grid-template-columns: 1fr;
  }

  .dash-hero-art {
    display: none;
  }

  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #dashSectionGuidance .panel,
  #dashSectionEvaluation .panel,
  #dashSectionGuidance .panel-wide {
    grid-column: 1 / -1;
  }

  .panel-header,
  .course-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .readiness-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
  }

  body.dashboard-mode {
    overflow: hidden;
    height: 100dvh;
    margin: 0;
  }

  /* Bottom nav */
  .dashboard-shell.view-active {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }

  .dashboard-shell.view-active .dashboard-content {
    flex: 1 1 0;
    min-height: calc(100dvh - var(--bottom-nav-h) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - var(--bottom-nav-h) - env(safe-area-inset-bottom));
  }

  .nav-desktop-only {
    display: none !important;
  }

  .sidebar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    top: auto;
    z-index: 35;
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: var(--space-2) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-inline-end: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--dash-sidebar-bg);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
    transform: none;
  }

  .dashboard-shell.sidebar-open .sidebar {
    top: 0;
    bottom: 0;
    flex-direction: column;
    width: min(280px, 88vw);
    inset-inline-start: 0;
    inset-inline-end: auto;
    padding: 20px 16px;
    overflow-y: auto;
  }

  .dashboard-shell.sidebar-open .nav-desktop-only {
    display: flex !important;
  }

  .dashboard-shell.sidebar-open .nav-mobile-only {
    display: none !important;
  }

  .sidebar-brand,
  .dashboard-shell.sidebar-open .sidebar-brand {
    display: none;
  }

  .dashboard-shell.sidebar-open .sidebar-brand,
  .dashboard-shell.sidebar-open .sidebar-student,
  .dashboard-shell.sidebar-open .sidebar-upgrade,
  .dashboard-shell.sidebar-open .sidebar-footer {
    display: flex;
  }

  .dashboard-shell.sidebar-open .sidebar-footer {
    display: grid;
  }

  .sidebar-student,
  .sidebar-upgrade,
  .sidebar-footer {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
    overflow: visible;
    flex: 1;
  }

  .dashboard-nav button {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-height: 52px;
    padding: var(--space-1);
    font-size: 0.65rem;
    justify-content: center;
  }

  .dashboard-nav button svg {
    width: 20px;
    height: 20px;
  }

  .nav-badge {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .brand strong,
  .brand small {
    display: none;
  }

  .hero-title-gradient {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .preview-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-nav button {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-dashboard {
    animation: none;
  }

  .primary-button:active {
    transform: none;
  }
}
