@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #030616;
  --surface: #050b1c;
  --surface-dark: #040917;
  --card: #081330;
  --card-alt: #0b1f3d;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f4f6ff;
  --text-secondary: #9aa8cf;
  --text-muted: #7c8ab2;
  --accent: #ffbf36;
  --accent-strong: #ff9d0d;
  --muted: #132147;
  --success: #43ddb7;
  --warning: #ffd166;
  --danger: #ff5f6d;
  --shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-dark: #f0f2f5;
  --card: #ffffff;
  --card-alt: #f8f9fb;
  --border: rgba(0, 0, 0, 0.1);
  --text-primary: #1a1d2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent: #d4940a;
  --accent-strong: #b87a00;
  --muted: #e8ecf4;
  --success: #0d9668;
  --warning: #d4940a;
  --danger: #dc3545;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Header */
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .site-header--scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Header nav, logo, buttons */
[data-theme="light"] .hdr-nav-link { color: #4a5568; }
[data-theme="light"] .hdr-nav-link:hover,
[data-theme="light"] .hdr-nav-link--active { color: #1a1d2e; }
[data-theme="light"] .hdr-icon-btn { color: #4a5568; }
[data-theme="light"] .hdr-icon-btn:hover { color: #1a1d2e; background: rgba(0,0,0,0.05); }
[data-theme="light"] .hdr-user-btn:hover { background: rgba(0,0,0,0.04); }

/* Header dropdown */
[data-theme="light"] .hdr-user-dropdown {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] .hdr-user-dropdown__item:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .hdr-user-dropdown__item--danger:hover { background: rgba(220,53,69,0.06); }
[data-theme="light"] .hdr-user-dropdown__avatar {
  color: #fff;
}

/* Sidebar */
[data-theme="light"] .app-sidebar {
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link--active { background: rgba(0,0,0,0.04); }

/* Overlays */
[data-theme="light"] .mx-detail-overlay { background: rgba(0,0,0,0.35); }
[data-theme="light"] .gsearch-overlay { background: rgba(0,0,0,0.3); }

/* Buttons — primary keeps the gradient, secondary/ghost adapt */
[data-theme="light"] .btn--primary { color: #fff; }
[data-theme="light"] .btn--secondary:hover { background: rgba(180,120,0,0.08); }
[data-theme="light"] .btn--ghost { border-color: rgba(0,0,0,0.15); color: #4a5568; }
[data-theme="light"] .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Form inputs */
[data-theme="light"] .form-input {
  background: #fff;
  border-color: rgba(0,0,0,0.15);
  color: #1a1d2e;
}
[data-theme="light"] .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,148,10,0.12);
}
[data-theme="light"] .form-input::placeholder { color: #a0aec0; }

/* Cards & surfaces */
[data-theme="light"] .hero-card {
  background: linear-gradient(135deg, rgba(212,148,10,0.06), #fff);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .hero-card::after { display: none; }

/* Assessment domain cards */
[data-theme="light"] .assessment-domain {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .assessment-domain__header:hover { background: rgba(0,0,0,0.02); }

/* Level buttons */
[data-theme="light"] .level-btn {
  border-color: rgba(0,0,0,0.12);
  color: #718096;
}
[data-theme="light"] .level-btn:hover {
  border-color: #4a5568;
  color: #4a5568;
}
[data-theme="light"] .level-btn--active {
  background: rgba(212,148,10,0.1);
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="light"] .level-btn--none.level-btn--active {
  background: rgba(0,0,0,0.04);
  border-color: #718096;
  color: #718096;
}

/* Level badges */
[data-theme="light"] .level-badge--current { background: rgba(220,53,69,0.1); color: #c82333; }
[data-theme="light"] .level-badge--target { background: rgba(13,150,104,0.1); color: #0d9668; }
[data-theme="light"] .level-badge--success { background: rgba(13,150,104,0.1); color: #0d9668; }

/* Gap indicators */
[data-theme="light"] .gap-indicator--low { background: rgba(212,148,10,0.12); }
[data-theme="light"] .gap-indicator--medium { background: rgba(184,122,0,0.12); }
[data-theme="light"] .gap-indicator--high { background: rgba(220,53,69,0.12); }

/* Gap table rows */
[data-theme="light"] .gap-table td { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .gap-table th { border-bottom-color: rgba(0,0,0,0.1); }

/* Stat cards */
[data-theme="light"] .stat-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .stat-card--accent { border-color: rgba(212,148,10,0.3); }

/* Badges */
[data-theme="light"] .badge { background: rgba(0,0,0,0.06); color: #4a5568; }
[data-theme="light"] .badge--accent { background: rgba(212,148,10,0.1); color: #b87a00; }
[data-theme="light"] .badge--warning { background: rgba(212,148,10,0.1); color: #b87a00; }
[data-theme="light"] .badge--success { background: rgba(13,150,104,0.1); color: #0d9668; }

/* Alerts */
[data-theme="light"] .alert--error { background: rgba(220,53,69,0.08); border-color: rgba(220,53,69,0.15); }
[data-theme="light"] .alert--success { background: rgba(13,150,104,0.08); border-color: rgba(13,150,104,0.15); }
[data-theme="light"] .alert--warning { background: rgba(212,148,10,0.08); border-color: rgba(212,148,10,0.15); }

/* AI recommendation card */
[data-theme="light"] .ai-recommendation-card {
  background: linear-gradient(135deg, rgba(212,148,10,0.04), rgba(13,150,104,0.04));
}

/* Domain bar hover */
[data-theme="light"] .prf-domain-bar:hover { background: rgba(0,0,0,0.02); }

/* Strength and gap cards */
[data-theme="light"] .gap-card,
[data-theme="light"] .strength-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

/* Benchmark bar */
[data-theme="light"] .benchmark-bar { background: rgba(0,0,0,0.06); }

/* Links */
[data-theme="light"] a { color: var(--accent); }
[data-theme="light"] a:hover { color: var(--accent-strong); }

/* Footer */
[data-theme="light"] .site-footer { border-top-color: rgba(0,0,0,0.08); background: rgba(245,247,250,0.8); }
[data-theme="light"] .footer-col a { color: #6b7280; }
[data-theme="light"] .footer-col a:hover { color: #111; }
[data-theme="light"] .footer-bottom { color: #9ca3af; }

/* Landing sections */
[data-theme="light"] .landing-section--alt { background: #fff; }

/* Quick-action cards & action cards */
[data-theme="light"] .action-card,
[data-theme="light"] .quick-action {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .action-card:hover,
[data-theme="light"] .quick-action:hover {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: #f0f2f5; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c4c9d4; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #a0a8b8; }

/* Selection */
[data-theme="light"] ::selection { background: rgba(212,148,10,0.2); color: #1a1d2e; }

/* Search box */
[data-theme="light"] .gsearch-input { color: #1a1d2e; }

/* Matrix skill cells */
[data-theme="light"] .mx-cell:hover { background: rgba(0,0,0,0.03); }

/* Role tabs */
[data-theme="light"] .role-tabs { background: rgba(255,255,255,0.95); border-bottom-color: rgba(0,0,0,0.08); }

/* Settings & profile */
[data-theme="light"] .settings-card,
[data-theme="light"] .profile-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

/* Tool-form, misc form wrappers */
[data-theme="light"] .tool-form { background: #fff; }

/* Empty state */
[data-theme="light"] .empty-state__icon { opacity: 0.6; }

/* Nav dropdown menus */
[data-theme="light"] .nav__dropdown-menu {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
[data-theme="light"] .nav__dropdown-item:hover,
[data-theme="light"] .nav__dropdown-link:hover { background: rgba(0,0,0,0.03); }

/* Role tabs (sticky nav on detail page) */
[data-theme="light"] .role-tabs {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Role cards */
[data-theme="light"] .role-card,
[data-theme="light"] .info-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .role-card--featured {
  border-color: rgba(184,122,0,0.4);
  background: linear-gradient(135deg, rgba(212,148,10,0.05), #fff);
}

/* Matrix cells */
[data-theme="light"] .mx-cell { border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .mx-cell:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .mx-cell-tooltip {
  background: #1a1d2e;
  color: #f0f2f5;
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Tables general */
[data-theme="light"] table th { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] table td { border-bottom-color: rgba(0,0,0,0.06); }

/* Community cards */
[data-theme="light"] .community-card,
[data-theme="light"] .proposal-card,
[data-theme="light"] .leaderboard-row {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

/* App dashboard cards */
[data-theme="light"] .dashboard-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

/* Review & goals cards */
[data-theme="light"] .cycle-card,
[data-theme="light"] .goal-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

/* Landing page specific sections */
[data-theme="light"] .feature-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .faq-item {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .pricing-card--featured {
  border-color: rgba(184,122,0,0.3);
}

/* Code/pre blocks */
[data-theme="light"] pre,
[data-theme="light"] code {
  background: #f0f2f5;
  color: #1a1d2e;
}

/* Burger menu icon */
[data-theme="light"] .hdr-burger span { background: #4a5568; }

/* Mobile sidebar overlay */
[data-theme="light"] .app-sidebar--open {
  box-shadow: 4px 0 24px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════
   END LIGHT THEME
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

main {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.section {
  margin: 4rem 0;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  margin-top: 0.35rem;
}

.section-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-description {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  max-width: 720px;
}

.section__intro {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  max-width: 760px;
}

/* ---------- HEADER ---------- */

/* ============================================================
   SITE HEADER — redesigned for clarity and usability
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 6, 22, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s, box-shadow .3s, border-color .3s;
}

.site-header--scrolled {
  background: rgba(3, 6, 22, .96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .45);
  border-bottom-color: rgba(255, 255, 255, .1);
}

.site-header__inner {
  width: min(1340px, 96vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
  padding: 0 0.75rem;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.brand__logo {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 6px;
  transition: opacity .2s, transform .2s;
}

.brand:hover .brand__logo {
  opacity: .85;
  transform: scale(1.02);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
}

.nav__mobile-footer {
  display: none;
}

.nav__link {
  position: relative;
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .05);
}

.nav__link--active {
  color: var(--accent) !important;
  background: rgba(255, 191, 54, .08);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .08);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

/* ---- Nav Dropdown Menus ---- */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.nav__chevron {
  transition: transform .2s;
  opacity: 0.4;
  flex-shrink: 0;
}

.nav__dropdown--open > .nav__dropdown-toggle .nav__chevron {
  transform: rotate(180deg);
  opacity: 0.7;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  z-index: 1000;
  animation: hdr-dropdown-in .15s ease-out;
}

@keyframes hdr-dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav__dropdown--open .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-icon {
  display: inline-block;
  width: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav__dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .06);
}

.nav__dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.25rem 0.5rem;
}

/* ---- Header action buttons ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Unified icon button (theme toggle, notification bell, etc.) */
.hdr-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.hdr-icon-btn:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text-primary);
}

.hdr-icon-btn__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger, #ff5f6d);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Search pill */
.hdr-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.hdr-search:hover {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--text-primary);
}

.hdr-search svg {
  flex-shrink: 0;
  opacity: .55;
}

.hdr-search__text {
  font-size: 0.78rem;
}

.hdr-search__kbd {
  font-size: 0.6rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 0.1rem 0.3rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  color: var(--text-muted);
  line-height: 1;
}

/* ---- Utility group (theme + lang) ---- */
.hdr-util-group {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.15rem;
  padding: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}

/* ---- Language switcher ---- */
.hdr-lang {
  position: relative;
}

.hdr-lang__btn {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .04em;
}

.hdr-lang__btn:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text-primary);
}

.hdr-lang__code {
  font-size: 0.75rem;
}

.hdr-lang__chevron {
  transition: transform .2s;
  opacity: 0.4;
  flex-shrink: 0;
}

.hdr-lang__dropdown--open + .hdr-lang__chevron,
.hdr-lang .hdr-lang__dropdown--open ~ .hdr-lang__chevron { transform: rotate(180deg); }

.hdr-lang__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
  z-index: 1100;
  animation: hdr-dropdown-in-right .15s ease-out;
}

@keyframes hdr-dropdown-in-right {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hdr-lang__dropdown--open {
  display: block;
}

.hdr-lang__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all .12s;
}

.hdr-lang__item:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text-primary);
}

.hdr-lang__item--active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(255, 191, 54, .08);
}

.hdr-lang__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hdr-lang__item--active .hdr-lang__flag {
  background: rgba(255, 191, 54, .15);
  color: var(--accent);
}

.hdr-lang__label {
  flex: 1;
}

/* ---- Mobile burger ---- */
.hdr-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
}

.hdr-burger:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text-primary);
}

.hdr-burger__close { display: none; }
.hdr-burger--active .hdr-burger__open { display: none; }
.hdr-burger--active .hdr-burger__close { display: block; }

/* ---------- HEADER RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .hdr-search__text,
  .hdr-search__kbd {
    display: none;
  }

  .hdr-search {
    padding: 0.35rem 0.5rem;
  }

  .nav__link {
    font-size: 0.78rem;
    padding: 0.35rem 0.45rem;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
  }

  body {
    padding-top: 56px;
  }

  .hdr-burger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    flex-direction: column;
    background: rgba(3, 6, 22, .99);
    padding: 1rem 1.25rem 2rem;
    gap: 0.15rem;
    overflow-y: auto;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
  }

  @keyframes hdr-mobile-nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav--open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .nav__link--active::after {
    display: none;
  }

  .nav__link--active {
    background: rgba(255, 191, 54, .1);
  }

  .nav__divider {
    width: 100%;
    height: 1px;
    margin: 0.35rem 0;
  }

  /* Mobile nav dropdowns — inline (no absolute) */
  .nav__dropdown { width: 100%; }
  .nav__dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav__dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    min-width: auto;
    border: none;
    background: rgba(255, 255, 255, .02);
    border-radius: 10px;
    box-shadow: none;
    padding: 0.2rem 0 0.2rem 0.5rem;
    margin-bottom: 0.15rem;
  }
  .nav__dropdown-item { font-size: 0.88rem; padding: 0.55rem 0.75rem; }

  /* Mobile footer: auth + utils inside burger menu */
  .nav__mobile-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav__mobile-auth {
    display: flex;
    gap: 0.5rem;
  }

  .nav__mobile-auth .btn {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .nav__mobile-utils {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav__mobile-langs {
    display: flex;
    gap: 0.25rem;
  }

  .nav__mobile-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all .15s;
    background: rgba(255, 255, 255, .04);
  }

  .nav__mobile-lang:hover {
    background: rgba(255, 191, 54, .12);
    color: var(--text-primary);
  }

  .nav__mobile-lang--active {
    background: rgba(255, 191, 54, .18);
    color: var(--accent);
  }

  /* Hide desktop-only auth buttons and util group in mobile */
  .hdr-auth-btn,
  .hdr-util-group {
    display: none;
  }
}

.hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-card {
  background: linear-gradient(135deg, rgba(255, 191, 54, 0.1), var(--surface));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0.8rem 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy {
  margin: 1rem 0 1.5rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn.primary {
  background: var(--accent);
  border-color: rgba(0, 0, 0, 0.08);
  color: #040718;
  box-shadow: 0 15px 30px rgba(255, 191, 54, 0.35);
}

.btn.primary:hover {
  background: var(--accent-strong);
}

.btn.pill {
  background: linear-gradient(90deg, rgba(132, 94, 247, 0.15), rgba(255, 191, 54, 0.15));
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.small {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

.btn.secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text-secondary);
  background: transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  margin: 0.3rem 0 0.6rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.color-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.color-swatch {
  height: 120px;
}

.color-info {
  padding: 1rem;
  background: var(--card);
}

.typography-grid,
.ui-grid,
.info-grid,
.roles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.typo-card,
.ui-card,
.role-card,
.info-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.role-card--featured {
  border-color: rgba(255, 191, 54, 0.6);
  background: linear-gradient(135deg, rgba(255, 191, 54, 0.08), var(--card));
}

.role-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.badge.success {
  color: var(--success);
  border-color: rgba(67, 221, 183, 0.5);
}

.info-card h3,
.role-card h3 {
  margin-top: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-dark);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.empty-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-text {
  margin-bottom: 1.5rem;
}

.role-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-icon {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.role-skill-count {
  font-weight: 600;
  color: var(--accent);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--surface-dark);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.roles-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quick-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-context {
  background: rgba(255, 191, 54, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.search-context p {
  margin: 0;
}

.search-context .link-reset {
  margin-left: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="search"],
textarea,
select {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 191, 54, 0.15);
}

.alert {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 221, 141, 0.6);
  background: rgba(255, 191, 54, 0.08);
  color: var(--text-primary);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
  background: rgba(4, 7, 24, 0.6);
}

.footer-inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-col__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.15rem 0;
  transition: color 0.15s;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom__sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.chips {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.matrix-grid,
.navigator-grid,
.skills-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-compact {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.summary-block {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.role-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.role-tabs {
  position: sticky;
  top: 90px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(5, 10, 25, 0.95);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  box-shadow: var(--shadow);
}

.role-tabs a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.role-tabs a:hover {
  color: var(--accent);
}

.site-header--scrolled + main .role-tabs,
.site-header--scrolled + section .role-tabs {
  top: 56px;
}
.section-anchor-offset {
  scroll-margin-top: 140px;
}
.site-header--scrolled + main .section-anchor-offset,
.site-header--scrolled + section .section-anchor-offset {
  scroll-margin-top: 80px;
}

.role-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  background: radial-gradient(circle at 10% 20%, rgba(255, 191, 54, 0.08), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.role-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-hero__subtitle {
  margin: 1rem 0 1.5rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.role-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip--glow {
  background: rgba(255, 191, 54, 0.12);
  border: 1px solid rgba(255, 191, 54, 0.5);
  color: var(--accent);
}

.chip--muted {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.role-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.role-hero__footnote {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.role-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.skill-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  background: radial-gradient(circle at 12% 15%, rgba(255, 191, 54, 0.1), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.skill-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-hero__subtitle {
  margin: 1rem 0 1.5rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.skill-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.section--compact {
  margin: 3rem 0;
  padding: 2rem;
}

.stat-card--hero {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.role-info-grid .info-card {
  min-height: 150px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stack-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.stack-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.timeline-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  min-height: 150px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.metric-card__head {
  margin-bottom: 0.75rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

@media (min-width: 1100px) {
  .focus-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.focus-card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at 15% 0%, rgba(255, 191, 54, 0.08), transparent 55%), var(--surface-dark);
  padding: 0.4rem 1.15rem 1rem;
  box-shadow: 0 10px 25px rgba(4, 7, 24, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.focus-card summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.85rem 0 0.25rem;
}

.focus-card summary::-webkit-details-marker {
  display: none;
}

.focus-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.focus-card__level {
  font-size: 0.8rem;
}

.focus-card__hint {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.focus-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-card[open] .focus-card__title {
  -webkit-line-clamp: unset;
}

.focus-card__body {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.focus-card__body p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.focus-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.pill {
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-secondary);
}

.pill--muted {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 191, 54, 0.35);
  box-shadow: 0 18px 40px rgba(4, 7, 24, 0.8);
}

.focus-card[open] {
  border-color: rgba(255, 191, 54, 0.4);
  box-shadow: 0 22px 45px rgba(4, 7, 24, 0.85);
}

.focus-card--metric {
  background: radial-gradient(circle at 85% 0%, rgba(67, 221, 183, 0.08), transparent 55%), var(--surface-dark);
}

.level-badge--pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.level-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.skill-source-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-source-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.skill-source__name a {
  color: var(--text-primary);
  font-weight: 600;
}

.skill-source__meta {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skill-source__status {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.skill-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-level-card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-dark);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-level-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.role-requirements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.role-requirement {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.role-link {
  font-weight: 600;
  color: var(--text-primary);
}

.role-tags {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

/* ── Skill Detail: View Toggle ────────────────────────── */
.skill-view-toggle {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
  background: var(--surface-dark);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
}
.skill-view-btn {
  padding: 0.4rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.15s;
}
.skill-view-btn--active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skill-view-btn:hover:not(.skill-view-btn--active) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* ── Skill Detail: Table View ─────────────────────────── */
.skill-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.skill-level-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-dark);
  overflow: hidden;
}
.skill-level-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}
.skill-level-toggle:hover {
  background: rgba(255,255,255,0.03);
}
.skill-level-toggle__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.skill-level-toggle__count {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.skill-level-toggle__chevron {
  transition: transform 0.2s;
  color: var(--text-muted);
}
.skill-level-section--open .skill-level-toggle__chevron {
  transform: rotate(180deg);
}
.skill-level-body {
  display: none;
  padding: 0 1.25rem 1rem;
}
.skill-level-section--open .skill-level-body {
  display: block;
}

/* Expectations table */
.skill-exp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.skill-exp-table thead th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.skill-exp-table tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.skill-exp-table tbody tr:last-child td {
  border-bottom: none;
}
.skill-exp-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.skill-exp-table__desc {
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 500px;
}

/* Card expand button */
.skill-card-expand {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  text-align: center;
  transition: background 0.15s;
}
.skill-card-expand:hover {
  background: rgba(255,255,255,0.04);
}

@media (max-width: 680px) {
  .skill-exp-table__desc { max-width: 200px; }
  .skill-exp-table { font-size: 0.8rem; }
  .skill-exp-table thead th,
  .skill-exp-table tbody td { padding: 0.5rem 0.5rem; }
}

.role-highlight {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 191, 54, 0.4);
  background: rgba(255, 191, 54, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.domain-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.domain-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-dark);
  padding: 0 1.5rem 1rem;
  box-shadow: var(--shadow);
}

.domain-panel summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.25rem 0;
}

.domain-panel summary::-webkit-details-marker {
  display: none;
}

.domain-panel__title h3 {
  margin: 0;
}

.domain-panel__title p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.domain-panel__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.group-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.group-block h4 {
  margin: 0;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.skill-collapse {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--card);
}

.skill-collapse summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
}

.skill-collapse summary::-webkit-details-marker {
  display: none;
}

.skill-name-inline a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
}

.skill-name-inline small {
  display: block;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.skill-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.skill-intensity {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.skill-intensity__pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.15rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.skill-intensity__pill small {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.skill-intensity__pill--active {
  color: var(--accent);
  border-color: rgba(255, 191, 54, 0.6);
}

.skill-intensity__pill--inactive {
  opacity: 0.4;
}

.skill-levels--compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.skill-levels--compact .level-card {
  min-height: 160px;
}

.role-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.skill-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.skill-row__meta {
  margin-bottom: 1rem;
}

.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.skill-domain {
  margin: 0.25rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.skill-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .skill-levels {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.level-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface-dark);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.level-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.level-label {
  font-weight: 600;
}

.profile-pill {
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-pill.profile-awareness {
  border-color: rgba(67, 221, 183, 0.4);
  color: var(--success);
}

.profile-pill.profile-working {
  border-color: rgba(255, 209, 102, 0.4);
  color: var(--warning);
}

.profile-pill.profile-advanced,
.profile-pill.profile-expert {
  border-color: rgba(255, 95, 109, 0.4);
  color: var(--danger);
}

.mandatory {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.mandatory--required {
  background: rgba(255, 95, 109, 0.15);
  color: var(--danger);
}

.mandatory--optional {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.level-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.level-text--empty {
  font-style: italic;
  color: var(--text-muted);
}

.evidence-items {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.matrix-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.matrix-hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.matrix-hero__context {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.matrix-hero__subtitle {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.matrix-hero__copy {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.matrix-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matrix-filter-form .filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.matrix-filter-form .filter-group--wide input {
  width: 100%;
}

.applied-filters {
  margin-top: 1rem;
  color: var(--text-secondary);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.matrix-analytics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.matrix-analytics__block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--card);
}

.level-stats,
.top-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.level-stats li,
.top-role-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.level-stats li:last-child,
.top-role-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.top-role-list li span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.matrix-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.domain-section {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.domain-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.role-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.role-cluster {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-cluster__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.role-cluster__count {
  display: inline-flex;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.role-cluster__more {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.competency-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: var(--surface-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 170px;
}

.competency-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.competency-card__group {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.competency-card__description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.competency-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.freshness-pill {
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.freshness-fresh {
  background: rgba(67, 221, 183, 0.15);
  color: var(--success);
  border: 1px solid rgba(67, 221, 183, 0.5);
}

.freshness-stale {
  background: rgba(255, 209, 102, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.freshness-old,
.freshness-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-filters select,
.matrix-filters input[type="search"] {
  width: 100%;
}

.btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
}

.matrix-filter-form label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.matrix-filter-form input,
.matrix-filter-form select {
  margin-top: 0.3rem;
}

@media (max-width: 720px) {
  .matrix-hero__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .role-cluster__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MATRIX — New functional matrix styles
   ============================================================ */

/* ---- Hero Block (Home) ---- */
.mx-hero {
  padding: 3rem 2rem 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.mx-hero__inner {
  background: linear-gradient(135deg, rgba(255,191,54,0.06) 0%, rgba(67,221,183,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
}
.mx-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.mx-hero__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 auto 1.25rem;
  max-width: 640px;
}
.mx-hero__desc strong {
  color: var(--accent);
  font-weight: 600;
}
.mx-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.mx-hero__tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--muted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .mx-hero { padding: 1.5rem 1rem 0; }
  .mx-hero__inner { padding: 1.5rem 1.25rem; }
  .mx-hero__title { font-size: 1.35rem; }
  .mx-hero__desc { font-size: 0.92rem; }
}

/* ---- Role Picker ---- */
.mx-picker {
  padding: 2rem;
}

.mx-search-bar {
  margin-bottom: 2rem;
}

.mx-search-bar input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--card);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit;
}

.mx-search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,191,54,0.15);
}

.mx-families {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mx-family__title {
  margin: 0 0 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,191,54,0.2);
}

.mx-family__roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.mx-role-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.mx-role-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--text-primary);
}

.mx-role-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mx-role-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.mx-role-card__bottom {
  display: flex;
  gap: 1rem;
}

.mx-role-card__stat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mx-demand {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.mx-demand--high {
  background: rgba(67,221,183,0.15);
  color: var(--success);
  border: 1px solid rgba(67,221,183,0.4);
}

.mx-demand--emerging {
  background: rgba(132,94,247,0.15);
  color: #a78bfa;
  border: 1px solid rgba(132,94,247,0.4);
}

/* ---- Role Header (matrix mode) ---- */
.mx-role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 2.5rem;
  background: radial-gradient(circle at 5% 10%, rgba(255,191,54,0.08), transparent 50%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.mx-role-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.mx-role-header__family {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.mx-role-header__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.05em;
}

.mx-role-header__mission {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

.mx-role-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mx-role-switch {
  min-width: 240px;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.mx-role-switch:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Stats bar ---- */
.mx-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.mx-stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.mx-stat:last-of-type {
  border-right: none;
}

.mx-stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.mx-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.mx-stat-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.mx-profile-stat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.mx-profile-stat strong {
  margin-left: 0.25rem;
}

/* ---- Domain navigation ---- */
.mx-domain-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.mx-domain-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}

.mx-domain-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mx-domain-chip--active {
  background: rgba(255,191,54,0.15);
  border-color: rgba(255,191,54,0.5);
  color: var(--accent);
  font-weight: 600;
}

.mx-domain-chip__count {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-left: 0.2rem;
}

/* ---- Inline search ---- */
.mx-inline-search {
  margin-bottom: 1rem;
}

.mx-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mx-search-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.mx-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,191,54,0.12);
}

/* ---- Legend ---- */
.mx-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
}

.mx-legend__title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

.mx-cell-sample {
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Domain section ---- */
.mx-domain-section {
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.mx-domain-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mx-domain-section__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.mx-domain-section__count {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Matrix table ---- */
.mx-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.mx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.mx-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.mx-table th {
  padding: 0.75rem 0.8rem;
  background: var(--surface-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(255,191,54,0.2);
  text-align: center;
  white-space: nowrap;
}

.mx-th-skill {
  text-align: left !important;
  min-width: 200px;
  width: 25%;
}

.mx-th-level {
  width: 15%;
}

/* ---- Group row ---- */
.mx-group-row .mx-group-cell {
  padding: 0.6rem 0.8rem;
  background: rgba(255,191,54,0.06);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid rgba(255,191,54,0.15);
  border-bottom: 1px solid rgba(255,191,54,0.08);
}

/* ---- Skill row ---- */
.mx-skill-row {
  transition: background 0.15s;
}

.mx-skill-row:hover {
  background: rgba(255,255,255,0.02);
}

.mx-skill-row--active {
  background: rgba(255,191,54,0.06) !important;
}

.mx-skill-name {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
}

.mx-skill-name a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.mx-skill-name a:hover {
  color: var(--accent);
}

/* ---- Matrix cell ---- */
.mx-cell {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  vertical-align: middle;
}

.mx-cell:hover {
  transform: scale(1.02);
  z-index: 2;
}

.mx-cell__profile {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.mx-cell__mandatory-dot {
  display: none; /* hidden in collapsed cells — ring on badge signals it */
}

/* Collapsed mandatory cell: ring around the profile letter badge */
.mx-cell--mandatory:not(.mx-cell--active-level) .mx-cell__profile {
  border-color: rgba(255, 95, 109, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 95, 109, 0.25);
}

/* Expanded mandatory cell: show pill tag with text from title attr */
.mx-cell--active-level .mx-cell__mandatory-dot {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  border-radius: 4px;
  background: rgba(255, 95, 109, 0.1);
  border: 1px solid rgba(255, 95, 109, 0.4);
  color: var(--danger);
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.1rem 0.45rem;
  margin-left: 6px;
  vertical-align: middle;
}

.mx-cell--active-level .mx-cell__mandatory-dot::before {
  content: attr(title);
}

[data-theme="light"] .mx-cell--active-level .mx-cell__mandatory-dot {
  background: rgba(220, 50, 47, 0.06);
  border-color: rgba(220, 50, 47, 0.35);
}

.mx-cell--empty {
  cursor: default;
}

.mx-cell--empty:hover {
  transform: none;
}

.mx-cell__dash {
  color: rgba(255,255,255,0.12);
  font-size: 0.85rem;
}

/* ---- Profile color coding ---- */
.mx-profile--awareness {
  background: rgba(67,221,183,0.08);
}

.mx-profile--awareness .mx-cell__profile,
.mx-cell-sample.mx-profile--awareness {
  background: rgba(67,221,183,0.18);
  color: var(--success);
  border: 1px solid rgba(67,221,183,0.3);
}

.mx-profile--working {
  background: rgba(59,130,246,0.08);
}

.mx-profile--working .mx-cell__profile,
.mx-cell-sample.mx-profile--working {
  background: rgba(59,130,246,0.18);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.3);
}

.mx-profile--advanced {
  background: rgba(255,191,54,0.08);
}

.mx-profile--advanced .mx-cell__profile,
.mx-cell-sample.mx-profile--advanced {
  background: rgba(255,191,54,0.18);
  color: var(--accent);
  border: 1px solid rgba(255,191,54,0.3);
}

.mx-profile--expert {
  background: rgba(255,95,109,0.08);
}

.mx-profile--expert .mx-cell__profile,
.mx-cell-sample.mx-profile--expert {
  background: rgba(255,95,109,0.18);
  color: var(--danger);
  border: 1px solid rgba(255,95,109,0.3);
}

.mx-cell--empty {
  background: transparent;
}

.mx-cell-sample.mx-cell--empty {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}


/* Templated (auto-generated) cell - less prominent */
.mx-cell--templated {
  opacity: 0.6;
  border-style: dashed;
}
.mx-cell--templated:hover {
  opacity: 0.85;
}
.mx-cell__templated-dot {
  font-size: 0.65rem;
  position: absolute;
  top: 2px;
  right: 3px;
  opacity: 0.7;
}
/* Quality badge in detail panel */
.quality-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}
.quality-badge--templated {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}
.quality-badge--custom {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.2);
}
.quality-badge--upgraded {
  background: rgba(41, 121, 255, 0.1);
  color: #2979ff;
  border: 1px solid rgba(41, 121, 255, 0.2);
}

/* Optional skills toggle */
.tool-optional-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
}
.tool-optional-toggle {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  user-select: none;
}
.tool-optional-toggle::-webkit-details-marker { display: none; }
.tool-optional-toggle::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}
details[open] > .tool-optional-toggle::before { transform: rotate(90deg); }
.tool-skill-group--optional {
  border-left: 2px dashed var(--border);
  padding-left: 1rem;
  opacity: 0.85;
}

/* Career transitions */
.career-transitions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.career-transition-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.career-transition-card:hover {
  border-color: var(--primary);
}
.career-transition-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.career-transition-card__type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
}
.career-transition-card__type--progression {
  background: rgba(67,221,183,0.15);
  color: var(--success);
}
.career-transition-card__type--lateral {
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
}
.career-transition-card__type--related {
  background: rgba(168,85,247,0.15);
  color: #a855f7;
}
.career-transition-card__type--prerequisite {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
}
.career-transition-card__type--alternative {
  background: rgba(156,163,175,0.15);
  color: #9ca3af;
}
.career-transition-card__name {
  font-weight: 600;
  color: var(--text-primary);
}
.career-transition-card__name a {
  color: inherit;
  text-decoration: none;
}
.career-transition-card__name a:hover {
  color: var(--primary);
}
.career-transition-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.career-transition-card__weight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.career-transition-card__weight-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.career-transition-card__weight-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--primary);
}
.career-transition-card__weight-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Profile stat pills */
.mx-profile-stat.mx-profile--awareness {
  background: rgba(67,221,183,0.12);
  color: var(--success);
  border: 1px solid rgba(67,221,183,0.3);
}

.mx-profile-stat.mx-profile--working {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.3);
}

.mx-profile-stat.mx-profile--advanced {
  background: rgba(255,191,54,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,191,54,0.3);
}

.mx-profile-stat.mx-profile--expert {
  background: rgba(255,95,109,0.12);
  color: var(--danger);
  border: 1px solid rgba(255,95,109,0.3);
}

/* ---- Cell tooltip (hover preview) ---- */
.mx-cell-tooltip {
  position: fixed;
  z-index: 500;
  max-width: 360px;
  padding: 0.6rem 0.85rem;
  background: var(--card-bg, #1a1d2e);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-primary, #e8e8e8);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  white-space: pre-wrap;
  word-break: break-word;
}
.mx-cell-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
}

.mx-legend__hint {
  font-size: 0.75rem;
  color: var(--text-muted, rgba(255,255,255,0.5));
  margin-left: 0.5rem;
  font-weight: 400;
}

/* ---- Level focus switcher ---- */
.mx-level-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  flex-wrap: wrap;
  position: sticky;
  top: 57px;
  z-index: 50;
  background: rgba(3, 6, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

[data-theme="light"] .mx-level-switcher {
  background: rgba(248, 249, 252, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.mx-level-switcher__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.25rem;
}

.mx-level-btn {
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mx-level-btn:hover {
  border-color: rgba(255,191,54,0.4);
  color: var(--accent);
}

.mx-level-btn--active {
  background: rgba(255,191,54,0.12);
  border-color: rgba(255,191,54,0.55);
  color: var(--accent);
}

.mx-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  margin-left: auto;
}

.mx-mode-btn:hover {
  border-color: rgba(255,191,54,0.4);
  color: var(--accent);
}

.mx-mode-btn--active {
  background: rgba(255,191,54,0.12);
  border-color: rgba(255,191,54,0.55);
  color: var(--accent);
}

[data-theme="light"] .mx-mode-btn {
  border-color: rgba(0,0,0,0.12);
  color: var(--text-muted);
}

[data-theme="light"] .mx-mode-btn--active {
  background: rgba(201,151,0,0.1);
  border-color: rgba(201,151,0,0.45);
}

/* ---- Full mode: all levels visible, no horizontal scroll ---- */
body.mx-full-mode .mx-table-wrap {
  overflow-x: visible;
}

body.mx-full-mode .mx-table,
body.mx-full-mode .mx-table tbody {
  display: block;
  min-width: 0;
  width: 100%;
}

body.mx-full-mode .mx-table thead {
  display: none;
}

body.mx-full-mode .mx-group-row,
body.mx-full-mode .mx-group-row td {
  display: block;
  width: 100%;
}

body.mx-full-mode .mx-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: stretch;
}

body.mx-full-mode .mx-skill-name {
  flex: 0 0 100%;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.4rem;
  margin-bottom: 0.1rem;
}

body.mx-full-mode .mx-cell--active-level {
  flex: 1;
  min-width: 160px;
  width: auto !important;
}

body.mx-full-mode .mx-cell--active-level::before {
  content: attr(data-level);
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  opacity: 0.7;
}

body.mx-full-mode .mx-cell--empty {
  display: none;
}

[data-theme="light"] body.mx-full-mode .mx-skill-row {
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] body.mx-full-mode .mx-skill-name {
  border-bottom-color: rgba(0,0,0,0.07);
}

/* Active column header */
.mx-th-level {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mx-th-level:hover {
  color: var(--accent);
}

.mx-th-level--active {
  background: rgba(255,191,54,0.1) !important;
  color: var(--accent) !important;
  border-bottom-color: rgba(255,191,54,0.55) !important;
}

/* Collapsed (non-active) level column — very narrow */
.mx-th-level:not(.mx-th-level--active) {
  width: 4%;
  min-width: 44px;
}

.mx-th-level--active {
  width: auto;
}

/* Collapsed (non-active) cells — compact single-letter profile */
.mx-cell:not(.mx-cell--active-level):not(.mx-cell--empty) {
  padding: 0.25rem 0.15rem;
}

.mx-cell:not(.mx-cell--active-level):not(.mx-cell--empty) .mx-cell__profile {
  padding: 0.15rem 0.25rem;
  font-size: 0.65rem;
  min-width: 1.4rem;
  text-align: center;
}

/* Active level cell — expanded with inline description */
.mx-cell--active-level {
  vertical-align: top !important;
  text-align: left !important;
  padding: 0.6rem 0.7rem !important;
  min-width: 220px;
  width: 32% !important;
}

.mx-cell--active-level:hover {
  transform: none !important;
}

.mx-cell--active-level .mx-cell__profile {
  display: inline-block;
  margin-bottom: 0.1rem;
}

.mx-cell__inline-desc {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  white-space: pre-wrap;
  word-break: break-word;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.4rem;
  text-align: left;
}

.mx-cell--active-level .mx-cell__inline-desc {
  display: block;
}

/* Light theme overrides */
[data-theme="light"] .mx-level-btn {
  border-color: rgba(0,0,0,0.12);
  color: var(--text-muted);
}

[data-theme="light"] .mx-level-btn--active {
  background: rgba(201,151,0,0.1);
  border-color: rgba(201,151,0,0.45);
}

[data-theme="light"] .mx-th-level--active {
  background: rgba(201,151,0,0.08) !important;
}

[data-theme="light"] .mx-cell__inline-desc {
  color: rgba(0,0,0,0.55);
  border-top-color: rgba(0,0,0,0.07);
}

/* ---- Detail overlay / panel ---- */
.mx-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3,6,22,0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.mx-detail-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.mx-detail-panel {
  background: var(--surface);
  border: 1px solid rgba(255,191,54,0.25);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 2.5rem;
  max-width: 640px;
  width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative;
}

.mx-detail-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.15s;
}

.mx-detail-close:hover {
  color: var(--text-primary);
}

.mx-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.mx-detail-skill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mx-detail-level {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-secondary);
  font-weight: 600;
}

.mx-detail-level--junior { border-color: rgba(67,221,183,0.5); color: var(--success); }
.mx-detail-level--middle { border-color: rgba(59,130,246,0.5); color: #60a5fa; }
.mx-detail-level--senior { border-color: rgba(255,191,54,0.5); color: var(--accent); }
.mx-detail-level--lead { border-color: rgba(255,95,109,0.5); color: var(--danger); }
.mx-detail-level--principal { border-color: rgba(168,85,247,0.5); color: #c084fc; }

.mx-detail-profile-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.mx-detail-profile {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
}

.mx-detail-mandatory {
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mx-detail-mandatory--required {
  background: rgba(255,95,109,0.15);
  color: var(--danger);
}

.mx-detail-mandatory--optional {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.mx-detail-weight {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.mx-detail-description {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.mx-detail-evidence {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}

.mx-detail-evidence h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.mx-detail-evidence ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mx-detail-evidence li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .mx-role-header {
    flex-direction: column;
    padding: 1.5rem;
  }

  .mx-role-header__actions {
    width: 100%;
  }

  .mx-role-switch {
    width: 100%;
  }

  .mx-stats-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .mx-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem 0;
  }

  .mx-stat-profiles {
    margin-left: 0;
  }

  .mx-domain-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .mx-table {
    font-size: 0.85rem;
  }

  .mx-detail-panel {
    padding: 1.5rem;
  }

  .mx-family__roles {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   NAVIGATOR (roles/navigator)
   ========================================================================== */

.nav-industry {
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
}

.nav-industry__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.nav-industry__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.nav-industry__desc {
  margin: 0.3rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.nav-families {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-family {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.nav-family__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.nav-family__header::-webkit-details-marker {
  display: none;
}

.nav-family__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-family__title:hover {
  color: var(--accent);
}

.nav-family__count {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-family__badges {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav-family__roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
}


/* ==========================================================================
   COMPARISON (roles/compare)
   ========================================================================== */

.cmp-form {
  margin-top: 1rem;
}

.cmp-form__selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.cmp-form__selects select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.cmp-form__selects select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 191, 54, 0.15);
}

.cmp-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  margin-right: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.cmp-legend::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.cmp-legend--common::before {
  background: var(--success);
}

.cmp-legend--unique::before {
  background: var(--danger);
}

.cmp-row--common {
  background: rgba(67, 221, 183, 0.04);
}

.cmp-row--common td {
  border-bottom-color: rgba(67, 221, 183, 0.1);
}


/* ==========================================================================
   SKILLS LIST ENHANCEMENTS
   ========================================================================== */

.mx-group-row {
  background: rgba(255, 255, 255, 0.02);
}

.mx-group-cell {
  padding: 0.6rem 1rem !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mx-th-skill {
  text-align: left;
  min-width: 200px;
}

.mx-skill-name {
  font-weight: 500;
}

.mx-skill-name a {
  color: var(--text-primary);
  transition: color 0.15s;
}

.mx-skill-name a:hover {
  color: var(--accent);
}


/* ==========================================================================
   TOOL FORMS (shared across vacancy-analysis, grade-calculator, career-path)
   ========================================================================== */

.tool-form {
  margin-top: 1rem;
}

.tool-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tool-form__group label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.tool-form__group select,
.tool-form__group input {
  padding: 0.6rem 0.75rem;
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.tool-form__group select:focus,
.tool-form__group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 191, 54, 0.15);
}

.tool-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
}

.tool-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 191, 54, 0.15);
}

.tool-form__row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ---- Tool Progress Bar ---- */

.tool-progress {
  margin: 1rem 0;
}

.tool-progress__bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
}

.tool-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--accent));
  border-radius: 5px;
  transition: width 0.4s ease;
}

.tool-progress__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: inline-block;
}


/* ---- Tool Chips (skill badges) ---- */

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.tool-chip:hover {
  opacity: 0.85;
}

.tool-chip--success {
  background: rgba(67, 221, 183, 0.12);
  color: var(--success);
  border: 1px solid rgba(67, 221, 183, 0.25);
}

.tool-chip--accent {
  background: rgba(255, 191, 54, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 191, 54, 0.25);
}


/* ---- Tool Gaps (skill gap items) ---- */

.tool-gaps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-gap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.tool-gap--critical {
  border-left-color: var(--danger);
}

.tool-gap__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-gap__name {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

a.tool-gap__name:hover {
  color: var(--accent);
}

.tool-gap__desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ---- Grade Calculator Skill Groups ---- */

.tool-skill-group {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.tool-skill-group__title {
  margin: 0 0 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.tool-skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tool-skill-item:last-child {
  border-bottom: none;
}

.tool-skill-item__info {
  flex: 1;
}

.tool-skill-item__info strong {
  font-size: 0.9rem;
}

.tool-skill-item__desc {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tool-skill-item__select {
  min-width: 160px;
  padding: 0.4rem 0.6rem;
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
}

.tool-skill-item__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 191, 54, 0.15);
}


/* ---- Tool Level Progress Grid ---- */

.tool-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-level-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem;
}

.tool-level-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tool-level-card__header strong {
  font-size: 0.9rem;
}

.tool-level-card__header span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.tool-level-card__sub {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ==========================================================================
   CAREER PATH TIMELINE
   ========================================================================== */

.career-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1.5rem;
}

.career-timeline::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.career-step {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.career-step::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.career-step--current {
  border-color: rgba(67, 221, 183, 0.3);
  background: rgba(67, 221, 183, 0.04);
}

.career-step--current::before {
  background: var(--success);
  border-color: var(--success);
}

.career-step--next {
  border-color: rgba(255, 191, 54, 0.3);
  background: rgba(255, 191, 54, 0.04);
}

.career-step--next::before {
  background: var(--accent);
  border-color: var(--accent);
}

.career-step__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.career-step__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.career-step__experience {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.career-step__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.career-step__body p {
  margin: 0.3rem 0;
}

.career-step__skills {
  margin-top: 0.75rem;
}

.career-step__skills h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.career-step__skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.career-step__skill--has {
  border-left-color: var(--success);
  background: rgba(67, 221, 183, 0.04);
}

.career-step__skill--missing {
  border-left-color: var(--danger);
  background: rgba(255, 95, 109, 0.04);
}

.career-step__transition {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 191, 54, 0.04);
  border: 1px solid rgba(255, 191, 54, 0.12);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.career-step__transition ul {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.career-step__transition li {
  margin-bottom: 0.2rem;
}


/* ==========================================================================
   RESPONSIVE ADDITIONS
   ========================================================================== */

@media (max-width: 768px) {
  .nav-family__roles {
    grid-template-columns: 1fr;
  }

  .cmp-form__selects {
    grid-template-columns: 1fr;
  }

  .tool-form__row {
    flex-direction: column;
  }

  .tool-skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tool-skill-item__select {
    min-width: 100%;
  }

  .tool-levels-grid {
    grid-template-columns: 1fr;
  }

  .career-timeline {
    padding-left: 1rem;
  }

  /* ── Tool forms mobile fix ────────────────────────── */
  .tool-form__group select,
  .tool-form__group input {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* prevent iOS zoom */
  }

  .tool-form__textarea {
    min-height: 80px;
    font-size: 16px; /* prevent iOS zoom */
    box-sizing: border-box;
  }

  .tool-skill-group {
    padding: 0.75rem 0.75rem;
    margin-bottom: 1rem;
  }

  .tool-skill-group__title {
    font-size: 0.78rem;
  }

  /* ── Career path mobile fix ───────────────────────── */
  .career-step {
    padding: 1rem;
  }

  .career-step__header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .career-step__title {
    font-size: 0.95rem;
  }

  .career-step__skill {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
  }

  .career-step::before {
    left: -0.85rem;
    width: 8px;
    height: 8px;
  }

  .career-timeline::before {
    left: 0.25rem;
  }

  .career-step__transition {
    padding: 0.6rem;
    font-size: 0.78rem;
  }

  /* ── Assessment checklist mobile fix ──────────────── */
  .assess-checklist__section {
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.5rem;
  }

  .assess-check {
    font-size: 0.78rem;
    padding: 0.25rem 0.15rem;
    gap: 0.4rem;
  }

  .assess-check__mark {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .assess-hint {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  .assess-hint svg {
    width: 16px;
    height: 16px;
  }

  /* ── General tables overflow fix ─────────────────── */
  .section table,
  .tool-form table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Section mobile padding ──────────────────────── */
  .section {
    padding: 1.25rem;
    margin: 2rem 0;
  }

  /* ── Dev plan mobile fix ──────────────────────────── */
  .dev-plan-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   HOME PAGE
   ========================================================================== */

.home-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 3rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

.home-hero__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.home-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.home-hero__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 560px;
}

.home-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.home-search-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.home-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 191, 54, 0.15);
}

.home-hero__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.home-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.home-stat__val {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.home-stat__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---- Domain bars ---- */

.home-domains {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-domain {
  padding: 0.5rem 0;
}

.home-domain__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.home-domain__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.home-domain__nums {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.home-domain__bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.home-domain__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ---- Roles grid ---- */

.home-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}

.home-role-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.home-role-card:hover {
  border-color: rgba(255, 191, 54, 0.3);
  background: rgba(255, 191, 54, 0.03);
}

.home-role-card__rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 1.5rem;
  text-align: center;
}

.home-role-card__info {
  flex: 1;
  min-width: 0;
}

.home-role-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-role-card__family {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-role-card__stats {
  text-align: center;
  min-width: 40px;
}

.home-role-card__num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  line-height: 1;
}

.home-role-card__sub {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Tools grid ---- */

.home-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
}

.home-tool {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  align-items: flex-start;
}

.home-tool:hover {
  border-color: rgba(255, 191, 54, 0.3);
  background: rgba(255, 191, 54, 0.03);
}

.home-tool__icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.home-tool h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}

.home-tool p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ==========================================================================
   ROLE DETAIL (rd-*)
   ========================================================================== */

.rd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.rd-header__main {
  flex: 1;
  min-width: 300px;
}

.rd-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.rd-header__mission {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  max-width: 640px;
}

.rd-header__meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.rd-level-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--text-secondary);
}

.rd-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rd-header__nums {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.rd-num {
  text-align: center;
}

.rd-num__val {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.rd-num__label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---- SEO Intro ---- */

.rd-intro {
  padding: 0.75rem 0 0;
}

.rd-intro__text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 720px;
}

/* ---- Quick nav ---- */

.rd-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.rd-nav a {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.rd-nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* ---- Context / Stack / Focus ---- */

.rd-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.rd-context-item {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rd-context-item__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.rd-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* ─── FAQ Section ─── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.faq-item__q {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .92rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.faq-item__q::before {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 1rem;
  text-align: center;
  transition: transform .2s;
}

.faq-item[open] .faq-item__q::before {
  content: '−';
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__a {
  padding: 0 1.25rem 1rem;
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item__a a { color: var(--accent); text-decoration: none; }
.faq-item__a a:hover { text-decoration: underline; }

/* ─── Related Roles ─── */
.rd-related-chip {
  display: inline-flex;
  flex-direction: column;
  gap: .15rem;
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: .85rem;
  transition: all .2s ease;
}

.rd-related-chip:hover {
  border-color: var(--accent);
  background: var(--card-alt);
}

.rd-related-chip__count {
  font-size: .72rem;
  color: var(--text-muted);
}

.rd-stack-list,
.rd-focus-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rd-stack-item,
.rd-focus-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.rd-stack-item p,
.rd-focus-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rd-stack-item .rd-level-chip,
.rd-focus-item .rd-level-chip {
  flex-shrink: 0;
  margin-top: 0.15rem;
}


/* ==========================================================================
   RESPONSIVE HOME / ROLE DETAIL
   ========================================================================== */

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .home-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-tools {
    grid-template-columns: 1fr;
  }

  .rd-header {
    flex-direction: column;
    padding: 1.5rem;
  }

  .rd-header__nums {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .home-hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .home-roles-grid {
    grid-template-columns: 1fr;
  }

  .rd-header__nums {
    gap: 1rem;
    justify-content: flex-start;
  }
}


/* ==========================================================================
   MATRIX PROFILE OVERLAY ("Me vs Role")
   ========================================================================== */

.mx-overlay--met {
  box-shadow: inset 0 0 0 2px var(--success) !important;
  position: relative;
}

.mx-overlay--close {
  box-shadow: inset 0 0 0 2px var(--warning) !important;
  position: relative;
}

.mx-overlay--gap {
  box-shadow: inset 0 0 0 2px var(--error) !important;
  position: relative;
}

.mx-overlay--none {
  opacity: 0.4;
}

.mx-profile-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(67,221,183,.06));
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 10px;
  font-size: 0.88rem;
}

.mx-profile-summary__label {
  font-weight: 600;
  color: var(--text-primary);
}

.mx-profile-summary__stat {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

.mx-profile-summary__stat.mx-overlay--met {
  background: rgba(34,197,94,.12);
  color: var(--success);
  box-shadow: none !important;
}

.mx-profile-summary__stat.mx-overlay--gap {
  background: rgba(239,68,68,.1);
  color: var(--error);
  box-shadow: none !important;
}

#mx-profile-toggle.active {
  background: rgba(99,102,241,.2);
  border-color: var(--accent);
  color: var(--accent);
}


/* ==========================================================================
   GLOBAL SEARCH (Ctrl+K)
   ========================================================================== */

/* Search Overlay */
.gsearch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh;
}

.gsearch-panel {
  width: 600px;
  max-width: 95vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  overflow: hidden;
}

.gsearch-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.gsearch-input-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.gsearch-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  padding: 0.3rem 0;
}

.gsearch-input::placeholder {
  color: var(--text-muted);
}

.gsearch-esc {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: monospace;
  cursor: pointer;
  flex-shrink: 0;
}

.gsearch-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.gsearch-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gsearch-group {
  margin-bottom: 0.25rem;
}

.gsearch-group__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 1rem 0.25rem;
}

.gsearch-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  transition: background .1s;
}

.gsearch-item:hover,
.gsearch-item--active {
  background: rgba(99,102,241,.12);
  color: var(--text-primary);
}

.gsearch-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.gsearch-item__text {
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsearch-item__text strong {
  font-weight: 500;
}

.gsearch-item__sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}


/* ==========================================================================
   PROFILE PAGE
   ========================================================================== */

/* (profile link moved to header icon) */

/* Hero section */
.prf-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.05));
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 16px;
}

.prf-hero__text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.prf-hero__text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
}

.prf-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.prf-role-select {
  width: 320px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s;
}

.prf-role-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.prf-hero__btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Stats bar (reuses mx-stats-bar layout) */
.prf-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Domain progress bars */
.prf-domain-progress {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.prf-domain-progress__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.prf-domain-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prf-domain-bar {
  cursor: pointer;
  transition: background .15s;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
}

.prf-domain-bar:hover {
  background: rgba(255,255,255,.03);
}

.prf-domain-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.prf-domain-bar__name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.prf-domain-bar__nums {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.prf-domain-bar__track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}

.prf-domain-bar__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}

.prf-domain-bar__fill--assessed {
  background: rgba(99,102,241,.3);
  z-index: 1;
}

.prf-domain-bar__fill--met {
  background: var(--success);
  z-index: 2;
}

.prf-domain-bars__legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.prf-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.prf-legend-swatch {
  width: 12px;
  height: 6px;
  border-radius: 3px;
  display: inline-block;
}

.prf-legend-swatch--met { background: var(--success); }
.prf-legend-swatch--assessed { background: rgba(99,102,241,.35); }

/* Loading spinner */
.prf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-muted);
}

.prf-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: prf-spin .8s linear infinite;
}

@keyframes prf-spin {
  to { transform: rotate(360deg); }
}

/* Skills grid */
.prf-grid {
  margin-top: 1.5rem;
}

.prf-domain {
  margin-bottom: 2rem;
}

.prf-domain__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.prf-domain__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  margin: 0;
  color: var(--text-primary);
}

.prf-domain__count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prf-group {
  margin-bottom: 1.25rem;
}

.prf-group__title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

/* Individual skill card */
.prf-skill {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  transition: border-color .15s, box-shadow .15s;
}

.prf-skill:hover {
  border-color: rgba(99,102,241,.3);
  box-shadow: 0 0 0 1px rgba(99,102,241,.1);
}

.prf-skill__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.prf-skill__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.prf-skill__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prf-skill__title:hover {
  color: var(--accent);
}

.prf-skill__mandatory {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(239,68,68,.12);
  color: var(--error);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.prf-skill__required {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Rating buttons */
.prf-skill__rating {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 8px;
  transition: background .2s;
}

.prf-rating-btn {
  width: 30px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prf-rating-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: scale(1.08);
}

.prf-rating-btn--active {
  color: #fff !important;
  border-color: transparent !important;
}

.prf-rating-btn--awareness.prf-rating-btn--active { background: #64748b; }
.prf-rating-btn--working.prf-rating-btn--active { background: #3b82f6; }
.prf-rating-btn--advanced.prf-rating-btn--active { background: #8b5cf6; }
.prf-rating-btn--expert.prf-rating-btn--active { background: #f59e0b; }

/* Match state highlights */
.prf-match--met {
  background: rgba(34,197,94,.1);
  border-radius: 8px;
}

.prf-match--close {
  background: rgba(245,158,11,.08);
  border-radius: 8px;
}

.prf-match--gap {
  background: rgba(239,68,68,.08);
  border-radius: 8px;
}

/* Skill detail hints (expandable) */
.prf-skill__details {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.prf-skill__hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.prf-skill__hint strong {
  color: var(--text-primary);
  font-size: 0.78rem;
}

/* Empty state */
.prf-empty {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .prf-hero {
    flex-direction: column;
    padding: 1.5rem;
  }

  .prf-hero__actions {
    align-items: stretch;
    width: 100%;
  }

  .prf-role-select {
    width: 100%;
  }

  .prf-skill__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .prf-skill__rating {
    align-self: flex-end;
  }

  .prf-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* ==========================================================================
   DEVELOPMENT PLAN (IDP)
   ========================================================================== */

.idp-hero {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(67,221,183,.06), rgba(99,102,241,.06));
  border: 1px solid rgba(67,221,183,.12);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.idp-hero__text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.idp-hero__text p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 600px;
}

.idp-hero__controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.idp-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.idp-control label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.idp-warning {
  padding: 0.85rem 1.25rem;
  background: rgba(255,209,102,.08);
  border: 1px solid rgba(255,209,102,.2);
  border-radius: 10px;
  color: var(--warning);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.idp-warning a {
  color: var(--accent);
  text-decoration: underline;
}

/* Stats row */
.idp-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Filter tabs */
.idp-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.idp-tab {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}

.idp-tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.idp-tab--active {
  background: rgba(99,102,241,.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Plan items */
.idp-plan {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.idp-domain {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.idp-domain__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
}

.idp-domain__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin: 0;
  color: var(--text-primary);
}

.idp-domain__progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.idp-domain__bar {
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}

.idp-domain__fill {
  height: 100%;
  background: var(--success);
  border-radius: 3px;
  transition: width .4s ease;
}

.idp-domain__pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
}

/* Individual plan item */
.idp-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .15s;
}

.idp-item:last-child {
  border-bottom: none;
}

.idp-item:hover {
  background: rgba(255,255,255,.02);
}

.idp-item--gap {
  border-left: 3px solid var(--error);
}

.idp-item--improve {
  border-left: 3px solid var(--warning);
}

.idp-item--met {
  border-left: 3px solid var(--success);
  opacity: 0.7;
}

/* Checkbox */
.idp-item__check {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

.idp-item__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.idp-item__checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.idp-item__check input:checked + .idp-item__checkbox {
  background: var(--success);
  border-color: var(--success);
}

.idp-item__check input:checked + .idp-item__checkbox::after {
  content: '\2713';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Item body */
.idp-item__body {
  flex: 1;
  min-width: 0;
}

.idp-item__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.idp-item__status {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.idp-item__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.idp-item__name:hover {
  color: var(--accent);
}

.idp-item__levels {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.idp-item__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.idp-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .idp-hero__controls {
    flex-direction: column;
  }

  .idp-hero__controls .prf-role-select {
    width: 100%;
  }

  .idp-stats {
    flex-direction: column;
  }

  .idp-item__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .idp-item__levels {
    margin-left: 0;
  }
}

/* Print styles for IDP */
@media print {
  .site-header, .site-footer, .idp-hero__controls,
  .idp-tabs, .idp-actions, .idp-warning { display: none !important; }

  body { background: #fff; color: #000; }
  .idp-hero { background: none; border: none; padding: 0; }
  .idp-hero__text h1 { color: #000; font-size: 1.3rem; }
  .idp-hero__text p { color: #333; }
  .idp-stats { background: #f5f5f5; border: 1px solid #ddd; }
  .idp-domain { border: 1px solid #ddd; break-inside: avoid; }
  .idp-domain__header { background: #f9f9f9; }
  .idp-item { break-inside: avoid; }
  .mx-stat__value { color: #000 !important; }
}


/* ==========================================================================
   ANALYTICS DASHBOARD
   ========================================================================== */

.ana-hero {
  padding: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(245,158,11,.05));
  border: 1px solid rgba(99,102,241,.12);
  border-radius: 16px;
}

.ana-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.ana-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.ana-stats {
  margin-bottom: 1rem;
}

.ana-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.ana-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.ana-card--wide {
  grid-column: span 2;
}

.ana-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.ana-chart-wrap {
  position: relative;
  height: 300px;
}

.ana-chart-wrap--sq {
  height: 280px;
}

@media (max-width: 900px) {
  .ana-grid {
    grid-template-columns: 1fr;
  }
  .ana-card--wide {
    grid-column: span 1;
  }
}

.ana-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.ana-period__btns {
  display: flex;
  gap: .4rem;
}
.ana-period__btn {
  background: var(--surface-raised, #111827);
  color: var(--text-muted, #9aa8cf);
  border: 1px solid rgba(255,255,255,.06);
  padding: .35rem .85rem;
  border-radius: 8px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .15s;
}
.ana-period__btn:hover {
  background: rgba(99,102,241,.12);
  color: #a5b4fc;
}
.ana-period__btn.active {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
.ana-no-events {
  margin: 1rem 0;
}

/* ==========================================================================
   PRINT STYLES (global, all pages)
   ========================================================================== */

@media print {
  /* Hide non-essential elements */
  .site-header,
  .site-footer,
  .gsearch-overlay,
  .mx-detail-overlay,
  .hdr-burger,
  .hdr-theme,
  .hdr-search,
  .hdr-profile,
  .mx-inline-search,
  .mx-search-bar,
  .mx-role-header__actions,
  .filter-actions,
  .btn,
  button:not(.idp-item__check),
  .mx-domain-nav,
  .mx-legend {
    display: none !important;
  }

  /* Base reset */
  body {
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 11pt;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  a {
    color: #1a1a1a !important;
    text-decoration: none !important;
  }

  /* Cards and sections */
  .section,
  .prf-hero,
  .idp-hero,
  .ana-hero,
  .prf-stats,
  .idp-stats,
  .ana-stats,
  .mx-stats-bar {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    color: #1a1a1a !important;
    page-break-after: avoid;
  }

  /* Matrix table */
  .mx-table {
    font-size: 9pt;
    border-collapse: collapse;
  }

  .mx-table th,
  .mx-table td {
    border: 1px solid #dee2e6 !important;
    padding: 4px 6px !important;
    background: transparent !important;
  }

  .mx-cell {
    box-shadow: none !important;
  }

  .mx-profile--awareness { background: #e2e8f0 !important; }
  .mx-profile--working { background: #dbeafe !important; }
  .mx-profile--advanced { background: #ede9fe !important; }
  .mx-profile--expert { background: #fef3c7 !important; }
  .mx-cell--empty { background: #f9fafb !important; }

  .mx-domain-section {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  .mx-domain-section__header {
    background: #e9ecef !important;
    border-bottom: 2px solid #adb5bd !important;
    padding: 6px 10px !important;
  }

  /* Stats */
  .mx-stat__value {
    color: #1a1a1a !important;
    font-size: 1.1rem;
  }

  .mx-stat__label {
    color: #6c757d !important;
  }

  /* Profile page */
  .prf-domain {
    page-break-inside: avoid;
  }

  .prf-skill {
    border: 1px solid #dee2e6 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .prf-rating-btn--active {
    border: 2px solid #1a1a1a !important;
    background: #e9ecef !important;
    color: #1a1a1a !important;
  }

  .prf-match--met { box-shadow: inset 0 0 0 2px #198754 !important; }
  .prf-match--gap { box-shadow: inset 0 0 0 2px #dc3545 !important; }

  /* Domain progress bars */
  .prf-domain-bar__track {
    background: #e9ecef !important;
  }
  .prf-domain-bar__fill--met {
    background: #198754 !important;
  }
  .prf-domain-bar__fill--assessed {
    background: #6c757d !important;
  }

  /* IDP items */
  .idp-domain {
    page-break-inside: avoid;
    border: 1px solid #dee2e6 !important;
    background: transparent !important;
  }

  .idp-item {
    border-bottom: 1px solid #e9ecef !important;
    page-break-inside: avoid;
  }

  .idp-item--gap { border-left: 3px solid #dc3545 !important; }
  .idp-item--improve { border-left: 3px solid #ffc107 !important; }
  .idp-item--met { border-left: 3px solid #198754 !important; opacity: 1 !important; }

  /* Overlay classes */
  .mx-overlay--met { box-shadow: inset 0 0 0 2px #198754 !important; }
  .mx-overlay--close { box-shadow: inset 0 0 0 2px #ffc107 !important; }
  .mx-overlay--gap { box-shadow: inset 0 0 0 2px #dc3545 !important; }

  /* Page headers for print */
  .mx-role-header__info,
  .prf-hero__text,
  .idp-hero__text {
    padding: 10px 0 !important;
  }

  /* Analytics charts - show but limit height */
  .ana-chart-wrap {
    height: 200px !important;
    page-break-inside: avoid;
  }

  .ana-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .ana-card {
    border: 1px solid #dee2e6 !important;
    background: transparent !important;
    page-break-inside: avoid;
  }
}

/* ============================================
   VOTING SYSTEM - Like/Dislike for expectations
   ============================================ */

/* Mini vote badge inside matrix cells */
.mx-cell__votes {
  position: absolute;
  bottom: 2px;
  right: 3px;
  display: flex;
  gap: 3px;
  font-size: 0.6rem;
  line-height: 1;
  opacity: 0.7;
}
.mx-cell__vote-up {
  color: #2ecc71;
  font-weight: 600;
}
.mx-cell__vote-up::before {
  content: "\25B2";
  font-size: 0.5rem;
  margin-right: 1px;
}
.mx-cell__vote-down {
  color: #e74c3c;
  font-weight: 600;
}
.mx-cell__vote-down::before {
  content: "\25BC";
  font-size: 0.5rem;
  margin-right: 1px;
}
.mx-cell {
  position: relative;
}

/* Vote section in detail panel */
.mx-detail-vote {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.mx-detail-vote__label {
  font-size: 0.85rem;
  color: var(--text-secondary, #a0a0a0);
  font-weight: 500;
}
.mx-detail-vote__actions {
  display: flex;
  gap: 0.5rem;
}

/* Vote buttons */
.mx-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary, #a0a0a0);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.mx-vote-btn:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
}
.mx-vote-btn svg {
  transition: transform 0.2s ease;
}
.mx-vote-btn:hover svg {
  transform: scale(1.15);
}

/* Like active state */
.mx-vote-btn--like.mx-vote-btn--active {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}
.mx-vote-btn--like:hover {
  color: #2ecc71;
}

/* Dislike active state */
.mx-vote-btn--dislike.mx-vote-btn--active {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}
.mx-vote-btn--dislike:hover {
  color: #e74c3c;
}

/* Hint text */
.mx-detail-vote__hint {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
  width: 100%;
}
.mx-detail-vote__hint--warn {
  color: #f0ad4e;
}
.mx-detail-vote__hint--hidden {
  color: #e74c3c;
}

/* ============================================================
   AUTH & APP STYLES (Phase 1 — B2B SaaS)
   ============================================================ */

/* ---- Header Auth Buttons ---- */
.btn--sm { padding: 0.4rem 1rem; font-size: 0.85rem; border-radius: 999px; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; font-weight: 500; transition: all 0.2s; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #000; border: none; text-decoration: none; display: inline-flex; align-items: center; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn--secondary { background: transparent; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; font-weight: 500; cursor: pointer; border-radius: 999px; padding: 0.6rem 1.5rem; transition: all 0.2s; }
.btn--secondary:hover { background: rgba(255,191,54,0.1); }
.btn--full { width: 100%; justify-content: center; padding: 0.75rem 1.5rem; font-size: 1rem; border-radius: 999px; }
.hdr-auth-btn { margin-left: 0.25rem; }
.hdr-register-btn { display: inline-flex; }

/* ---- User Menu Dropdown ---- */
.hdr-user-menu { position: relative; }
.hdr-user-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 2px;
  border-radius: 20px; transition: background .15s;
}
.hdr-user-btn:hover { background: rgba(255,255,255,0.04); }
.hdr-user-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000; font-weight: 700; font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}
.hdr-user-rep {
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  display: none;
}
@media (min-width: 860px) { .hdr-user-rep { display: inline; } }
.hdr-user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; min-width: 260px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4); z-index: 200; padding: 0;
  overflow: hidden;
  animation: hdr-dropdown-in-right .15s ease-out;
}
.hdr-user-dropdown--open { display: block; }
.hdr-user-dropdown__head {
  display: flex; align-items: center; gap: 10px;
  padding: 0.85rem 1rem 0.5rem;
}
.hdr-user-dropdown__head .hdr-user-dropdown__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000; font-weight: 700; font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif; flex-shrink: 0;
}
.hdr-user-dropdown__name { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; line-height: 1.3; }
.hdr-user-dropdown__email { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
.hdr-user-dropdown__rep-row {
  display: flex; align-items: center; gap: 6px;
  padding: 0.25rem 1rem 0.5rem; font-size: 0.78rem; color: var(--accent);
}
.hdr-user-dropdown__rep-row svg { flex-shrink: 0; }
.hdr-user-dropdown__divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.hdr-user-dropdown__item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.55rem 1rem; color: var(--text-secondary);
  text-decoration: none; font-size: 0.85rem; transition: all 0.15s;
}
.hdr-user-dropdown__item svg { flex-shrink: 0; opacity: 0.5; }
.hdr-user-dropdown__item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.hdr-user-dropdown__item:hover svg { opacity: 0.8; }
.hdr-user-dropdown__item--danger { color: var(--danger); }
.hdr-user-dropdown__item--danger svg { opacity: 0.6; }
.hdr-user-dropdown__item--danger:hover { background: rgba(255,95,109,0.08); }

/* ---- Notification Bell (uses .hdr-icon-btn now — legacy compat) ---- */
.hdr-notif-bell {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--text-secondary); padding: 0.35rem; margin-left: 0.25rem;
  transition: color 0.15s; display: flex; align-items: center;
}
.hdr-notif-bell:hover { color: var(--text-primary); }
.hdr-notif-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--danger, #ff5f6d); color: #fff;
  font-size: 0.6rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}
.hdr-notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; width: 360px; max-height: 420px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4); z-index: 200; overflow: hidden;
  animation: hdr-dropdown-in-right .15s ease-out;
}
.hdr-notif-dropdown__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 0.9rem; color: var(--text-primary);
}
.hdr-notif-dropdown__readall {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 0.8rem; padding: 0;
}
.hdr-notif-dropdown__readall:hover { text-decoration: underline; }
.hdr-notif-dropdown__list { overflow-y: auto; max-height: 360px; }
.hdr-notif-dropdown__empty {
  padding: 2rem 1rem; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}
.hdr-notif-item {
  display: block; padding: 0.65rem 1rem; text-decoration: none;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.hdr-notif-item:hover { background: rgba(255,255,255,0.03); }
.hdr-notif-item--unread { background: rgba(108,92,231,0.06); }
.hdr-notif-item--unread:hover { background: rgba(108,92,231,0.1); }
.hdr-notif-item__text {
  display: block; font-size: 0.85rem; color: var(--text-primary);
  line-height: 1.4; margin-bottom: 0.2rem;
}
.hdr-notif-item__time { font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .hdr-notif-dropdown { width: calc(100vw - 2rem); right: -1rem; }
}

/* ---- Auth Pages ---- */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 200px); padding: 2rem 1rem;
}
.auth-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  width: 100%; max-width: 440px; box-shadow: var(--shadow);
}
.auth-card--wide { max-width: 560px; }
.auth-card__header { text-align: center; margin-bottom: 2rem; }
.auth-card__title { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; color: var(--text-primary); margin: 0 0 0.5rem; }
.auth-card__subtitle { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.auth-card__icon { font-size: 3rem; margin-bottom: 1rem; }
.auth-card__icon--success { color: var(--success); }
.auth-card__icon--error { color: var(--danger); }
.auth-card__footer { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 0.9rem; }
.auth-card__footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-card__footer a:hover { text-decoration: underline; }

/* ---- Forms ---- */
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); display: flex; justify-content: space-between; align-items: center; }
.form-label__link { color: var(--accent); text-decoration: none; font-size: 0.8rem; }
.form-label__link:hover { text-decoration: underline; }
.form-optional { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.form-input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.95rem;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,191,54,0.15); }
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); }
select.form-input { cursor: pointer; appearance: auto; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ---- Alerts ---- */
.alert { padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1rem; }
.alert--error { background: rgba(255,95,109,0.12); color: var(--danger); border: 1px solid rgba(255,95,109,0.2); }
.alert--success { background: rgba(67,221,183,0.12); color: var(--success); border: 1px solid rgba(67,221,183,0.2); }
.alert--warning { background: rgba(255,209,102,0.12); color: var(--warning); border: 1px solid rgba(255,209,102,0.2); }

/* ---- Profile Page ---- */
.profile-grid { display: flex; flex-direction: column; gap: 2rem; }
.profile-card__avatar { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.avatar { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.4rem; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #000; }
.profile-card__name h2 { margin: 0; font-size: 1.3rem; color: var(--text-primary); }
.profile-card__email { color: var(--text-muted); font-size: 0.85rem; }
.profile-form { display: flex; flex-direction: column; gap: 1.25rem; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge--accent { background: rgba(255,191,54,0.15); color: var(--accent); }
.badge--warning { background: rgba(255,209,102,0.15); color: var(--warning); }
.badge--success { background: rgba(67,221,183,0.15); color: var(--success); }

/* ---- Quick Actions ---- */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.action-card {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: all 0.2s; cursor: pointer;
}
.action-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.action-card__icon { font-size: 1.5rem; flex-shrink: 0; }
.action-card__text strong { display: block; color: var(--text-primary); margin-bottom: 0.25rem; }
.action-card__text span { color: var(--text-secondary); font-size: 0.85rem; }

/* ---- Assessed Roles ---- */
.assessed-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.assessed-role-card {
  display: flex; flex-direction: column; padding: 1rem; gap: 0.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; transition: all 0.2s;
}
.assessed-role-card strong { color: var(--text-primary); }
.assessed-role-card:hover { border-color: var(--accent); }
.assessed-role-card__count { color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.assessed-role-card__date { color: var(--text-muted); font-size: 0.8rem; }

/* ---- Assessment Page ---- */
.assessment-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.assessment-header h2 { margin: 0; color: var(--text-primary); }
.assessment-header__actions { display: flex; gap: 0.75rem; }
.assessment-stats { display: flex; gap: 1rem; margin-top: 0.5rem; }
.stat-badge { background: var(--surface); padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.85rem; color: var(--text-secondary); }
.stat-badge strong { color: var(--accent); }

.assessment-domains { display: flex; flex-direction: column; gap: 1rem; }
.assessment-domain { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.assessment-domain__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; cursor: pointer; transition: background 0.2s;
}
.assessment-domain__header:hover { background: rgba(255,255,255,0.03); }
.assessment-domain__header h3 { margin: 0; color: var(--text-primary); font-size: 1.1rem; }
.assessment-domain__toggle { color: var(--text-muted); transition: transform 0.2s; }
.assessment-domain--collapsed .assessment-domain__body { display: none; }
.assessment-domain--collapsed .assessment-domain__toggle { transform: rotate(-90deg); }
.assessment-domain__body { padding: 0 1.25rem 1.25rem; }

.assessment-group { margin-bottom: 1.5rem; }
.assessment-group__title { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

.assessment-skill { padding: 0.6rem 0; }
.assessment-skill__name { color: var(--text-primary); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 200px; flex-wrap: wrap; }
.assessment-skill__levels { display: flex; gap: 0.35rem; flex-shrink: 0; }

.level-btn {
  padding: 0.35rem 0.6rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 0.75rem;
  cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif;
}
.level-btn:hover { border-color: var(--text-secondary); color: var(--text-secondary); }
.level-btn--active { border-color: var(--accent); color: var(--accent); background: rgba(255,191,54,0.1); }
.level-btn--none.level-btn--active { border-color: var(--text-muted); color: var(--text-muted); background: rgba(255,255,255,0.03); }

/* ---- Assessment Checklist UI ---- */

/* Skill row — clickable to expand */
.assessment-skill__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.1rem 0;
  transition: background 0.15s;
  border-radius: 6px;
}
.assessment-skill__row:hover { background: rgba(255,255,255,0.02); }
.assessment-skill__result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.assessment-skill__chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.assessment-skill--open .assessment-skill__chevron { transform: rotate(180deg); }

/* Level badge (auto-calculated result) */
.assess-level-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}
.assess-level-badge--none { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.assess-level-badge--awareness { background: rgba(59,130,246,0.12); color: #3b82f6; }
.assess-level-badge--working { background: rgba(34,197,94,0.12); color: #22c55e; }
.assess-level-badge--advanced { background: rgba(245,158,11,0.12); color: #f59e0b; }
.assess-level-badge--expert { background: rgba(239,68,68,0.12); color: #ef4444; }

/* Assessment skill header meta (badge + toggle) */
.assessment-skill__meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.assessment-skill__header { cursor: pointer; }
.assessment-skill__toggle { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s; }
.assessment-skill--open .assessment-skill__toggle { transform: rotate(180deg); }

/* Level cards inside expanded skill */
.assess-levels { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border, #e5e7eb); }
.assess-level-card {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.assess-level-card:hover { background: rgba(255,255,255,0.03); border-color: var(--border, #e5e7eb); }
.assess-level-card--awareness { border-left: 3px solid #3b82f6; background: rgba(59,130,246,0.03); }
.assess-level-card--working   { border-left: 3px solid #22c55e; background: rgba(34,197,94,0.03); }
.assess-level-card--advanced  { border-left: 3px solid #f59e0b; background: rgba(245,158,11,0.03); }
.assess-level-card--expert    { border-left: 3px solid #ef4444; background: rgba(239,68,68,0.03); }
.assess-level-card--awareness.assess-level-card--selected { background: rgba(59,130,246,0.12); border-color: #3b82f6; }
.assess-level-card--working.assess-level-card--selected   { background: rgba(34,197,94,0.12);  border-color: #22c55e; }
.assess-level-card--advanced.assess-level-card--selected  { background: rgba(245,158,11,0.12); border-color: #f59e0b; }
.assess-level-card--expert.assess-level-card--selected    { background: rgba(239,68,68,0.12);  border-color: #ef4444; }
.assess-level-card__header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.assess-level-card__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.assess-level-card__name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.assess-level-card__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; margin: 0; }

/* Hint bar */
.assess-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.assess-hint svg { flex-shrink: 0; color: #6366f1; }

/* Checklist panel */
.assess-checklist {
  margin-top: 0.5rem;
  padding: 0.6rem 0;
  animation: assess-checklist-in 0.15s ease-out;
}
@keyframes assess-checklist-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Checklist section per profile level */
.assess-checklist__section {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border-left: 3px solid var(--border);
}
.assess-checklist__section--awareness { border-left-color: #3b82f6; background: rgba(59,130,246,0.03); }
.assess-checklist__section--working { border-left-color: #22c55e; background: rgba(34,197,94,0.03); }
.assess-checklist__section--advanced { border-left-color: #f59e0b; background: rgba(245,158,11,0.03); }
.assess-checklist__section--expert { border-left-color: #ef4444; background: rgba(239,68,68,0.03); }

.assess-checklist__header {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.assess-checklist__header strong { font-size: 0.82rem; color: var(--text-primary); }
.assess-checklist__dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; position: relative; top: 1px;
}
.assess-checklist__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.assess-checklist__items { display: flex; flex-direction: column; gap: 0.25rem; }

/* Individual checkbox item */
.assess-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0.2rem;
  border-radius: 6px;
  transition: background 0.1s;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.assess-check:hover { background: rgba(255,255,255,0.03); }
.assess-check__input { display: none; }
.assess-check__mark {
  width: 18px; height: 18px; min-width: 18px;
  border: 2px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; margin-top: 1px; position: relative;
}
.assess-check__mark::after {
  content: ''; width: 5px; height: 9px;
  border: solid transparent; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform 0.15s;
  position: relative; top: -1px;
}
.assess-check__input:checked + .assess-check__mark {
  background: var(--accent); border-color: var(--accent);
}
.assess-check__input:checked + .assess-check__mark::after {
  border-color: #000; transform: rotate(45deg) scale(1);
}
.assess-check__text { flex: 1; }

/* Manual fallback hint */
.assess-checklist__manual-hint { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }

/* Light theme overrides for assessment checklist */
[data-theme="light"] .assessment-skill__row:hover { background: rgba(0,0,0,0.015); }
[data-theme="light"] .assess-level-badge--none { background: rgba(0,0,0,0.04); }
[data-theme="light"] .assess-check:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .assess-checklist__section--awareness { background: rgba(59,130,246,0.04); }
[data-theme="light"] .assess-checklist__section--working { background: rgba(34,197,94,0.04); }
[data-theme="light"] .assess-checklist__section--advanced { background: rgba(245,158,11,0.04); }
[data-theme="light"] .assess-checklist__section--expert { background: rgba(239,68,68,0.04); }
[data-theme="light"] .assess-hint { background: rgba(99,102,241,0.04); }

/* ---- Development Plan Page ---- */
.dev-plan-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-card--accent { border-color: rgba(255,191,54,0.3); }
.stat-card__number { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-card--accent .stat-card__number { color: var(--accent); }
.stat-card__label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.25rem; }

.progress-bar { height: 10px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.progress-bar--sm { height: 6px; }
.progress-bar__fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.progress-bar__fill--success { background: linear-gradient(90deg, #43ddb7, #2ecc71); }
.progress-bar__fill--warning { background: linear-gradient(90deg, #ffd166, #ff9d0d); }
.progress-bar__fill--danger { background: linear-gradient(90deg, #ff5f6d, #e74c3c); }
.progress-hint { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.75rem; }

.domain-bars { display: flex; flex-direction: column; gap: 1rem; }
.domain-bar__label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.domain-bar__label span { color: var(--text-muted); }

.gap-list { display: flex; flex-direction: column; gap: 0.75rem; }
.gap-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.gap-card__rank { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--accent); min-width: 40px; text-align: center; }
.gap-card__info { flex: 1; }
.gap-card__info strong { color: var(--text-primary); display: block; }
.gap-card__domain { color: var(--text-muted); font-size: 0.8rem; }
.gap-card__levels { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.gap-card__arrow { color: var(--text-muted); }

.level-badge { padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-transform: capitalize; }
.level-badge--current { background: rgba(255,95,109,0.15); color: var(--danger); }
.level-badge--target { background: rgba(67,221,183,0.15); color: var(--success); }
.level-badge--success { background: rgba(67,221,183,0.15); color: var(--success); }

.strength-list { display: flex; flex-direction: column; gap: 0.75rem; }
.strength-card { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.strength-card strong { color: var(--text-primary); flex: 1; }
.strength-card__domain { color: var(--text-muted); font-size: 0.8rem; }

.gap-table-wrap { overflow-x: auto; }
.gap-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.gap-table th { text-align: left; padding: 0.6rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); font-weight: 500; }
.gap-table td { padding: 0.6rem; color: var(--text-primary); border-bottom: 1px solid rgba(255,255,255,0.04); }
.gap-indicator { display: inline-block; width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px; font-weight: 700; font-size: 0.75rem; }
.gap-indicator--low { background: rgba(255,209,102,0.2); color: var(--warning); }
.gap-indicator--medium { background: rgba(255,157,13,0.2); color: var(--accent-strong); }
.gap-indicator--high { background: rgba(255,95,109,0.2); color: var(--danger); }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text-primary); margin: 0 0 0.5rem; }
.empty-state p { color: var(--text-secondary); }
.empty-state a { color: var(--accent); }

/* ---- Page Header ---- */
.page-header { margin-bottom: 2rem; }
.page-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; color: var(--text-primary); margin: 0 0 0.5rem; }
.page-subtitle { color: var(--text-secondary); margin: 0; font-size: 1rem; }

/* ---- Tool Form (inline form bar) ---- */
.tool-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }

/* =========================================================
   Phase 2: App Layout + Sidebar + Company + Teams
   ========================================================= */

/* ---- App Layout (sidebar + main) ---- */
.app-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.app-main {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1100px;
  min-width: 0;
}

/* ---- Sidebar ---- */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--surface-dark, var(--surface));
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.app-sidebar__top {
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.app-sidebar__toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a2e;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
}

/* Sidebar company block */
.sidebar-company {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-company__avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1a1a2e;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-company__info {
  flex: 1;
  min-width: 0;
}

.sidebar-company__name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-company__plan {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.sidebar-create-company {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.sidebar-create-company:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,191,54,0.05);
}

.sidebar-create-company__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,191,54,0.1);
  color: var(--accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar navigation */
.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.sidebar-nav__section {
  margin-bottom: 0.5rem;
}

.sidebar-nav__label {
  padding: 0.5rem 1.25rem 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-nav__link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.sidebar-nav__link--active {
  color: var(--accent);
  background: rgba(255,191,54,0.06);
  border-left-color: var(--accent);
  font-weight: 500;
}

.sidebar-nav__link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-nav__link--active svg {
  opacity: 1;
}

/* ---- Page Header with Actions ---- */
.page-header--with-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.page-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.breadcrumb-link:hover { color: var(--accent); }

/* ---- Members Table ---- */
.members-table-wrap { overflow-x: auto; }

.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.members-table th {
  text-align: left;
  padding: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.members-table td {
  padding: 0.75rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.members-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-cell__name {
  font-weight: 500;
  color: var(--text-primary);
}

.member-cell__email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-form {
  display: flex;
  gap: 0.25rem;
}

/* ---- Role Badges ---- */
.role-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.role-badge--owner {
  background: rgba(255,191,54,0.15);
  color: var(--accent);
}

.role-badge--admin {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
}

.role-badge--manager {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

.role-badge--member {
  background: rgba(107,114,128,0.15);
  color: var(--text-secondary);
}

/* ---- Invite Form ---- */
.invite-form__row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* ---- Invitations List ---- */
.invitations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invitation-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.invitation-card__email {
  font-weight: 500;
  color: var(--text-primary);
}

.invitation-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* ---- Teams Grid ---- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}

.team-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.team-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.team-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.team-card__count {
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(255,191,54,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 500;
}

.team-card__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  flex: 1;
}

.team-card__footer {
  margin-top: auto;
}

.team-card__lead {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.team-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.team-link:hover { text-decoration: underline; }

.team-description {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ---- Unassigned Members ---- */
.unassigned-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.unassigned-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---- Plan Card ---- */
.plan-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.plan-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.plan-card__badge--free {
  background: rgba(107,114,128,0.2);
  color: var(--text-secondary);
}

.plan-card__badge--pro {
  background: rgba(255,191,54,0.2);
  color: var(--accent);
}

.plan-card__badge--enterprise {
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
}

.plan-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.plan-card__details strong { color: var(--text-primary); }

.plan-card__upgrade {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.plan-card__upgrade p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

/* ---- Settings Grid ---- */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---- Invite Status Page ---- */
.invite-status {
  text-align: center;
  padding: 2rem 1rem;
}

.invite-status__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.invite-status h2 {
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.invite-status p { color: var(--text-secondary); }

.invite-details {
  text-align: left;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.invite-details__company {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.invite-details__from {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.invite-details__expires {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.invite-auth-options {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.invite-auth-options p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Form Help Text ---- */
.form-help {
  background: rgba(255,191,54,0.06);
  border: 1px solid rgba(255,191,54,0.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-help p { margin: 0 0 0.35rem; }
.form-help p:last-child { margin: 0; }

/* ---- Form Actions Row ---- */
.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

/* ---- Extra button sizes ---- */
.btn--lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn--xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; border-radius: 6px; }
.btn--accent {
  background: var(--accent);
  color: #1a1a2e;
  border: none;
}
.btn--accent:hover { background: var(--accent-strong); }
.btn--danger {
  background: rgba(255,95,109,0.15);
  color: var(--danger);
  border: 1px solid rgba(255,95,109,0.3);
}
.btn--danger:hover { background: rgba(255,95,109,0.25); }
.btn--full { width: 100%; }

.form-input--xs {
  padding: 0.25rem 0.4rem;
  font-size: 0.78rem;
  min-width: 100px;
}

/* ---- Empty State Small ---- */
.empty-state--sm {
  padding: 2rem 1rem;
}

.empty-state--sm .empty-state__icon { font-size: 2rem; }

/* ---- Text helpers ---- */
.text-muted { color: var(--text-muted); }

/* ---- Mobile sidebar ---- */
@media (max-width: 900px) {
  .app-layout { flex-direction: column; }

  .app-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: 260px;
    min-width: 260px;
    transition: left 0.25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }

  .app-sidebar--open {
    left: 0;
  }

  .app-sidebar__toggle {
    display: flex;
  }

  .app-main {
    padding: 1.5rem 1rem;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .page-header--with-actions {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .invite-form__row {
    flex-direction: column;
  }
}

/* ─────────────────────────────────────────────────────────────
   PHASE 3: Performance Review & Goals Styles
   ───────────────────────────────────────────────────────────── */

/* Review cycles list */
.cycles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cycle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.2s;
}

.cycle-card:hover {
  border-color: var(--primary);
}

.cycle-card__info {
  flex: 1;
  min-width: 0;
}

.cycle-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cycle-card__name a {
  color: inherit;
  text-decoration: none;
}

.cycle-card__name a:hover {
  color: var(--primary);
}

.cycle-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.cycle-card__progress {
  min-width: 180px;
}

.cycle-card__actions {
  display: flex;
  gap: 0.5rem;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-badge--draft {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.status-badge--active {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.status-badge--in_review {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.status-badge--completed {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.status-badge--archived {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.status-badge--pending {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.status-badge--in_progress {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.status-badge--cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Progress bar */
.progress-bar {
  background: var(--border);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  transition: width 0.5s ease;
}

.progress-bar__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Stat cards row */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Create cycle form */
.create-cycle-form {
  max-width: 720px;
}

.review-types-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.review-type-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.review-type-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Participants section */
.participants-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.participants-section__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.participant-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.participant-row select {
  flex: 1;
  min-width: 150px;
}

.participants-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.participant-item__info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.participant-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
}

.participant-item__remove:hover {
  color: #ef4444;
}

/* Cycle detail - assignments */
.assignments-section {
  margin-bottom: 2rem;
}

.assignments-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assignment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.assignment-card:hover {
  border-color: var(--primary);
}

.assignment-card__info {
  flex: 1;
  min-width: 0;
}

.assignment-card__name {
  font-weight: 600;
  color: var(--text);
}

.assignment-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.assignment-card__type {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-weight: 500;
}

/* Reviewee group in cycle detail */
.reviewee-group {
  margin-bottom: 1.5rem;
}

.reviewee-group__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.reviewee-group__name {
  font-weight: 600;
  font-size: 1rem;
}

.reviewee-group__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Assessment form */
.assessment-form {
  max-width: 900px;
}

.assessment-domain {
  margin-bottom: 2.5rem;
}

.assessment-domain__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 1.5rem;
}

.assessment-group {
  margin-bottom: 1.5rem;
}

.assessment-group__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assessment-skill {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.assessment-skill:hover {
  border-color: var(--primary);
}

.assessment-skill__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.assessment-skill__name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.assessment-skill__expected {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 8px;
}

.assessment-skill__levels {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.level-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.level-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.level-btn--selected {
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.level-btn--none.level-btn--selected {
  background: #94a3b8;
}

.level-btn--awareness.level-btn--selected {
  background: #3b82f6;
}

.level-btn--working.level-btn--selected {
  background: #22c55e;
}

.level-btn--advanced.level-btn--selected {
  background: #f59e0b;
}

.level-btn--expert.level-btn--selected {
  background: #ef4444;
}

/* Assessment skill comment */
.assessment-skill__comment {
  margin-top: 0.5rem;
}

.assessment-skill__comment textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  resize: vertical;
  min-height: 40px;
}

/* Sticky save bar */
.save-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 20;
  margin: 2rem -1.5rem -1.5rem;
  border-radius: 0 0 12px 12px;
}

.save-bar__status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.save-bar__actions {
  display: flex;
  gap: 0.75rem;
}

/* Results page */
.results-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.results-score {
  text-align: center;
  min-width: 120px;
}

.results-score__value {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  line-height: 1;
}

.results-score__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.results-match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  text-align: center;
}

.results-match__value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.results-match__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.results-recommended {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
}

.results-recommended__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.results-recommended__value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Domain scores */
.domain-scores {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.domain-score {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.domain-score__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  min-width: 140px;
  flex-shrink: 0;
}

.domain-score__bar {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.domain-score__fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.domain-score__fill--high {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.domain-score__fill--medium {
  background: linear-gradient(135deg, #f59e0b, #eab308);
}

.domain-score__fill--low {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.domain-score__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 40px;
  text-align: right;
}

/* Growth areas and strengths */
.growth-areas, .strengths-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.growth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border-left: 3px solid #ef4444;
}

.growth-card__skill {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.growth-card__levels {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.growth-card__arrow {
  color: var(--primary);
  font-weight: 600;
}

.strength-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border-left: 3px solid #22c55e;
}

.strength-card__skill {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.strength-card__level {
  font-size: 0.85rem;
  color: #22c55e;
  font-weight: 500;
}

/* Comparison page */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover {
  background: rgba(99, 102, 241, 0.03);
}

.diff-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.diff-badge--over {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.diff-badge--under {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.diff-badge--match {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

/* Team summary / Heatmap */
.heatmap-container {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 600px;
}

.heatmap-table th {
  background: var(--bg);
  padding: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.heatmap-table th.heatmap-skill-header {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  max-width: 40px;
  padding: 0.75rem 0.25rem;
  vertical-align: bottom;
  height: 120px;
}

.heatmap-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.heatmap-table td:first-child {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 0.75rem;
}

.heatmap-cell {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

.heatmap-cell--none {
  background: #e2e8f0;
  color: #94a3b8;
}

.heatmap-cell--awareness {
  background: #93c5fd;
}

.heatmap-cell--working {
  background: #4ade80;
}

.heatmap-cell--advanced {
  background: #fbbf24;
}

.heatmap-cell--expert {
  background: #f87171;
}

.heatmap-legend {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.heatmap-legend__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.heatmap-legend__color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Member scores in team summary */
.member-scores {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.member-score-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.member-score-row__name {
  font-weight: 600;
  min-width: 160px;
  color: var(--text);
}

.member-score-row__bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.member-score-row__fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
}

.member-score-row__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  min-width: 50px;
  text-align: right;
}

/* Goals */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.goal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 0.2s;
}

.goal-card:hover {
  border-color: var(--primary);
}

.goal-card--completed {
  opacity: 0.7;
}

.goal-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.goal-card__icon--active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.goal-card__icon--completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.goal-card__info {
  flex: 1;
  min-width: 0;
}

.goal-card__skill {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.goal-card__levels {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.goal-card__levels .arrow {
  color: var(--primary);
}

.goal-card__deadline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.goal-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Goals empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state__text {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Section headings */
.section__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Comment/note block */
.reviewer-comment {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.reviewer-comment__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Form row (used in goals create) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Responsive adjustments for review pages */
@media (max-width: 768px) {
  .cycle-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cycle-card__progress {
    min-width: auto;
    width: 100%;
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .assignment-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .assessment-skill__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .assessment-skill__levels {
    width: 100%;
  }

  .level-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.3rem;
    font-size: 0.75rem;
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }

  .growth-areas,
  .strengths-list {
    grid-template-columns: 1fr;
  }

  .goal-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-card__actions {
    width: 100%;
  }

  .goal-card__actions .btn {
    flex: 1;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .save-bar {
    flex-direction: column;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .heatmap-table th.heatmap-skill-header {
    height: 80px;
  }

  .domain-score {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .domain-score__name {
    min-width: auto;
  }

  .domain-score__bar {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────
   PHASE 4: Dashboard & Analytics Styles
   ───────────────────────────────────────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-section {
  margin-bottom: 2rem;
}

/* Skill gaps chart */
.skill-gaps-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-gap-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-gap-row__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  min-width: 140px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-gap-row__bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.skill-gap-row__fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.skill-gap-row__value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  min-width: 30px;
  text-align: right;
}

.skill-gap-row__count {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 50px;
}

/* Dashboard team cards */
.dashboard-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.dashboard-team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.dashboard-team-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.dashboard-team-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dashboard-team-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.dashboard-team-card__score {
  margin-top: 0.5rem;
}

/* Activity feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.activity-item__content {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.activity-item__user {
  font-weight: 600;
}

.activity-item__action {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.activity-item__entity {
  color: var(--primary);
}

.activity-item__time {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Member info card */
.member-info-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.member-info-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.member-info-card__details {
  flex: 1;
}

.member-info-card__email {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.member-info-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Review history cards */
.review-history {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.review-history-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.review-history-card__cycle {
  font-weight: 600;
  color: var(--text);
}

.review-history-card__scores {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.review-history-card__score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-history-card__score-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.review-history-card__score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-history-card__gaps {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-history-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Tags */
.tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0 0.25rem;
}

.tag--gap {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.badge--small {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

/* Text utilities */
.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Review Assessment Form ── */
.review-save-bar {
  position: sticky;
  top: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.review-save-bar__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.review-save-bar__actions {
  display: flex;
  gap: 0.5rem;
}

.review-domain {
  margin-bottom: 2.5rem;
}

.review-domain__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.review-group {
  margin-bottom: 1.5rem;
}

.review-group__title {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.review-skill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.review-skill:hover {
  border-color: rgba(255,191,54,0.25);
}

.review-skill__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-skill__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.review-skill__expected {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.2rem 0.6rem;
  background: rgba(99,102,241,0.1);
  border-radius: 6px;
}

.review-skill__expected strong {
  color: var(--primary);
}

.review-skill__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.review-skill__levels {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rlevel-btn {
  position: relative;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.rlevel-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.rlevel-btn--active {
  color: #000;
  font-weight: 600;
  border-color: transparent;
}

.rlevel-btn--none.rlevel-btn--active {
  background: rgba(107,114,128,0.4);
  color: var(--text-primary);
}

.rlevel-btn--awareness.rlevel-btn--active {
  background: #3b82f6;
  color: #fff;
}

.rlevel-btn--working.rlevel-btn--active {
  background: #22c55e;
  color: #fff;
}

.rlevel-btn--advanced.rlevel-btn--active {
  background: #f59e0b;
  color: #000;
}

.rlevel-btn--expert.rlevel-btn--active {
  background: #a855f7;
  color: #fff;
}

.rlevel-btn--expected {
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.4);
}

.rlevel-btn--expected::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 768px) {
  .review-skill__header { flex-direction: column; align-items: flex-start; }
  .review-skill__levels { gap: 0.3rem; }
  .rlevel-btn { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
  .review-save-bar { flex-direction: column; gap: 0.75rem; }
  .review-save-bar__actions { width: 100%; justify-content: stretch; }
  .review-save-bar__actions .btn { flex: 1; justify-content: center; }
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .skill-gap-row__name {
    min-width: 100px;
  }

  .member-info-card {
    flex-direction: column;
    text-align: center;
  }

  .member-info-card__meta {
    justify-content: center;
  }

  .review-history-card__scores {
    flex-wrap: wrap;
  }

  .member-score-row {
    flex-wrap: wrap;
  }

  .member-score-row__name {
    min-width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────
   PHASE 5: Pricing & Billing Styles
   ───────────────────────────────────────────────────────────── */

.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-header__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--featured {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.pricing-card--current {
  border-color: #22c55e;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pricing-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-feature--disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.pricing-feature__icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 600;
}

.pricing-card__footer {
  margin-top: auto;
}

/* Pricing comparison table */
.pricing-comparison {
  margin-top: 3rem;
}

.pricing-comparison h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.pricing-table th {
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-table th:first-child {
  text-align: left;
}

.pricing-table td {
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* Billing manage page */
.billing-current {
  margin-bottom: 2rem;
}

.billing-plan-card {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
  text-align: center;
}

.billing-plan-card__badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.billing-plan-card__price {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
}

.billing-plan-card__price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.billing-section {
  margin-bottom: 2rem;
}

.billing-usage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-usage-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.billing-usage-item__label {
  font-weight: 500;
  min-width: 150px;
}

.billing-usage-item__bar {
  flex: 1;
}

.billing-usage-item__value {
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.billing-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.billing-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.billing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.billing-feature-item__icon {
  color: #22c55e;
  font-weight: 600;
}

/* Billing success */
.billing-success {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
}

.billing-success__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.billing-success h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.billing-success__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.billing-success__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.billing-success__features {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.billing-success__features h3 {
  margin-bottom: 0.75rem;
}

.billing-success__features ul {
  list-style: none;
  padding: 0;
}

.billing-success__features li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card__amount {
    font-size: 2rem;
  }

  .billing-usage-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .billing-usage-item__bar {
    width: 100%;
  }

  .billing-success__actions {
    flex-direction: column;
  }
}

/* ─────────────────────────────────────────────────────────────
   PHASE 6: GitHub Assessment Styles
   ───────────────────────────────────────────────────────────── */

/* Start card */
.github-start-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.github-start-card__icon {
  color: var(--text);
  margin-bottom: 1rem;
}

.github-start-card h2 {
  margin-bottom: 0.75rem;
}

.github-start-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.github-form__row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.github-form__input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.github-form__prefix {
  padding: 0 0.5rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.github-form__input {
  border: none !important;
  background: transparent !important;
  padding-left: 0 !important;
  box-shadow: none !important;
}

.github-start-card__note {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Loading animation */
.github-loading {
  text-align: center;
  max-width: 500px;
  margin: 3rem auto;
}

.github-loading__spinner {
  margin-bottom: 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.github-loading h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.github-loading__username {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2rem;
}

.github-loading__steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.github-loading__step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.github-loading__step-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.github-loading__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Results header */
.github-results-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.github-results-score {
  text-align: center;
}

.github-results-level {
  text-align: center;
}

.github-results-stats {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.github-results-stat {
  text-align: center;
}

.github-results-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  display: block;
}

.github-results-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Level badge */
.github-level-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.github-level-badge--large {
  font-size: 1.1rem;
  padding: 0.35rem 1rem;
}

.github-level-badge--none {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.github-level-badge--awareness {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.github-level-badge--working {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.github-level-badge--advanced {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.github-level-badge--expert {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Summary */
.github-summary {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Results grid */
.github-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Languages */
.github-languages {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.github-lang-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.github-lang-row__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  min-width: 90px;
}

.github-lang-row__bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.github-lang-row__fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
}

.github-lang-row__value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  min-width: 45px;
  text-align: right;
}

/* Skills grid */
.github-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.github-skill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.github-skill-card__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-transform: capitalize;
}

/* Latest card */
.github-latest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.github-latest-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.github-latest-card__username {
  font-weight: 600;
  color: var(--text);
}

.github-latest-card__date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.github-latest-card__scores {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.github-latest-card__score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.github-latest-card__score-value {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
}

.github-latest-card__score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* History */
.github-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.github-history-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.github-history-item:last-child {
  border-bottom: none;
}

.github-history-item__username {
  font-weight: 600;
  min-width: 120px;
}

.github-history-item__date {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-left: auto;
}

@media (max-width: 768px) {
  .github-results-header {
    flex-direction: column;
    align-items: center;
  }

  .github-results-grid {
    grid-template-columns: 1fr;
  }

  .github-form__row {
    flex-direction: column;
  }

  .github-start-card__note {
    flex-direction: column;
    gap: 0.5rem;
  }

  .github-skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LANDING PAGE COMPONENTS (Phase 7)
   ========================================================================== */

/* ── LP Hero ──────────────────────────────────────────────── */
.lp-hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.lp-hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.lp-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.lp-hero__title span {
  color: var(--accent);
}

.lp-hero__desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.lp-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.lp-hero__actions .btn {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
}

/* ── LP Stats Bar ─────────────────────────────────────────── */
.lp-stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem auto;
  max-width: 900px;
}

.lp-stat {
  text-align: center;
}

.lp-stat__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.lp-stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── LP Section ───────────────────────────────────────────── */
.lp-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.lp-section--alt {
  background: var(--surface);
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.lp-section--alt > .lp-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lp-section--accent {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-alt) 100%);
  border-radius: var(--radius);
  max-width: 1100px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  text-align: center;
}

.lp-section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lp-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.lp-section__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.lp-section--alt .lp-section__desc,
.lp-section--accent .lp-section__desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── LP Features Grid ─────────────────────────────────────── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.lp-features-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.lp-features-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.lp-feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
}

.lp-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.lp-feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.lp-feature-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.lp-feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── LP Steps ─────────────────────────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.lp-step {
  text-align: center;
  position: relative;
  counter-increment: step-counter;
}

.lp-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.lp-step__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.lp-step__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── LP Split (Two-column) ────────────────────────────────── */
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lp-split--reverse {
  direction: rtl;
}

.lp-split--reverse > * {
  direction: ltr;
}

.lp-split__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lp-split__text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lp-split__text p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.lp-split__text ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lp-split__text ul li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.lp-split__text ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.lp-split__visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Mock UI panels inside split visual */
.lp-mock {
  width: 100%;
}

.lp-mock__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.lp-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.lp-mock__dot--red { background: var(--danger); }
.lp-mock__dot--yellow { background: var(--warning); }
.lp-mock__dot--green { background: var(--success); }

.lp-mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.lp-mock__row-label {
  color: var(--text-secondary);
}

.lp-mock__row-value {
  font-weight: 600;
  color: var(--text-primary);
}

.lp-mock__badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lp-mock__badge--expert { background: rgba(239,68,68,0.2); color: #ef4444; }
.lp-mock__badge--advanced { background: rgba(245,158,11,0.2); color: #f59e0b; }
.lp-mock__badge--working { background: rgba(34,197,94,0.2); color: #22c55e; }
.lp-mock__badge--awareness { background: rgba(59,130,246,0.2); color: #3b82f6; }

.lp-mock__score {
  text-align: center;
  padding: 1.5rem 0;
}

.lp-mock__score-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
}

.lp-mock__score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lp-mock__bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.lp-mock__bar-label {
  min-width: 80px;
  color: var(--text-secondary);
  text-align: right;
}

.lp-mock__bar {
  flex: 1;
  height: 8px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}

.lp-mock__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.lp-mock__bar-pct {
  min-width: 35px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Heatmap mock */
.lp-mock-heatmap {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  gap: 3px;
  font-size: 0.65rem;
}

.lp-mock-heatmap__header {
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem;
  font-weight: 600;
}

.lp-mock-heatmap__name {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  font-size: 0.7rem;
}

.lp-mock-heatmap__cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  min-height: 20px;
}

.lp-mock-heatmap__cell--none { background: var(--muted); }
.lp-mock-heatmap__cell--awareness { background: rgba(59,130,246,0.3); }
.lp-mock-heatmap__cell--working { background: rgba(34,197,94,0.3); }
.lp-mock-heatmap__cell--advanced { background: rgba(245,158,11,0.3); }
.lp-mock-heatmap__cell--expert { background: rgba(239,68,68,0.3); }

/* ── LP CTA Block ─────────────────────────────────────────── */
.lp-cta-block {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 3rem auto;
}

.lp-cta-block__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.lp-cta-block__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.lp-cta-block__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── LP Use Cases ─────────────────────────────────────────── */
.lp-use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.lp-use-case {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.lp-use-case__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.lp-use-case__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.lp-use-case__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── LP FAQ ───────────────────────────────────────────────── */
.lp-faq {
  max-width: 800px;
  margin: 0 auto;
}

.lp-faq__item {
  border-bottom: 1px solid var(--border);
}

.lp-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.lp-faq__question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.lp-faq__item.active .lp-faq__question::after {
  transform: rotate(45deg);
}

.lp-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.lp-faq__item.active .lp-faq__answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.lp-faq__answer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── LP Comparison / Problem-Solution ───────────────────────── */
.lp-problem-solution {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.lp-problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.lp-problem-card__problem {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.lp-problem-card__arrow {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.lp-problem-card__solution {
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.lp-problem-card__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── LP Audience Blocks ───────────────────────────────────── */
.lp-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.lp-audience-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}

.lp-audience-card:hover {
  border-color: var(--accent);
}

.lp-audience-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.lp-audience-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.lp-audience-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.lp-audience-card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.lp-audience-card__link:hover {
  text-decoration: underline;
}

/* ── LP Pricing Mini ──────────────────────────────────────── */
.lp-pricing-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.lp-pricing-mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.lp-pricing-mini-card--featured {
  border-color: var(--accent);
  position: relative;
}

.lp-pricing-mini-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.lp-pricing-mini-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.lp-pricing-mini-card__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.lp-pricing-mini-card__period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lp-pricing-mini-card__features {
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.lp-pricing-mini-card__features li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.lp-pricing-mini-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.75rem;
}

/* ── LP Docs Layout ───────────────────────────────────────── */
.lp-docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 60vh;
}

.lp-docs-nav {
  position: sticky;
  top: 80px;
  align-self: start;
}

.lp-docs-nav__group {
  margin-bottom: 1.5rem;
}

.lp-docs-nav__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.lp-docs-nav__link {
  display: block;
  padding: 0.35rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.lp-docs-nav__link:hover,
.lp-docs-nav__link--active {
  color: var(--accent);
}

.lp-docs-content {
  min-width: 0;
}

.lp-docs-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.lp-docs-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.lp-docs-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.lp-docs-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.lp-docs-content ul,
.lp-docs-content ol {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.lp-docs-content li {
  margin-bottom: 0.35rem;
}

.lp-docs-content code {
  background: var(--card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent);
}

.lp-docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.lp-docs-content table th {
  background: var(--card);
  color: var(--text-primary);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.lp-docs-content table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ── LP Tools Grid (reuse for home tools) ─────────────────── */
.lp-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.lp-tool-card {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.lp-tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.lp-tool-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border-radius: 10px;
}

.lp-tool-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.lp-tool-card__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── LP Quick Start Cards ────────────────────────────────── */
.lp-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-quick-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lp-quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.lp-quick-card--accent::before { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.lp-quick-card--success::before { background: linear-gradient(90deg, var(--success), #2ecc71); }
.lp-quick-card--info::before { background: linear-gradient(90deg, #6366f1, #818cf8); }

.lp-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

.lp-quick-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.lp-quick-card__step {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.lp-quick-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.lp-quick-card__desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.lp-quick-card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Light theme quick cards */
[data-theme="light"] .lp-quick-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .lp-quick-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  .lp-quick-grid {
    grid-template-columns: 1fr;
  }
}

/* ── LP Mapping Table ─────────────────────────────────────── */
.lp-mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.lp-mapping-table th {
  background: var(--card);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-mapping-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.lp-mapping-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.lp-mapping-table .lp-arrow {
  color: var(--accent);
  text-align: center;
}

/* ── LP About Columns ─────────────────────────────────────── */
.lp-about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.lp-about-column {
  text-align: center;
}

.lp-about-column__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.lp-about-column__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.lp-about-column__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── LP Contact Card ──────────────────────────────────────── */
.lp-contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
}

.lp-contact-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.lp-contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.lp-contact-card a:hover {
  text-decoration: underline;
}

.lp-contact-card p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ── LP Footer (legacy — styles moved to main .site-footer) ── */

/* ── LP Nav Dropdown (legacy, removed — conflicts with header nav) ── */

/* ── Share Inline Buttons ─────────────────────────────────── */
.share-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.share-inline__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  padding: 0;
  font-size: 0;
}

.share-inline__btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.share-inline__btn--telegram:hover { color: #2aabee; border-color: #2aabee; }
.share-inline__btn--x:hover { color: var(--text-primary); }
.share-inline__btn--linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.share-inline__btn--copy:hover { color: var(--accent); border-color: var(--accent); }

.share-inline__btn--native {
  display: none;
}

@media (max-width: 768px) {
  .share-inline__btn--native {
    display: flex;
  }
}

/* ── Methodology Trust Banner ────────────────── */
.methodology-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.methodology-banner__icon {
  flex-shrink: 0;
  color: var(--accent);
}
.methodology-banner__text {
  flex: 1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.methodology-banner__link {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}
.methodology-banner__link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .methodology-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .methodology-banner__icon {
    display: none;
  }
}

/* ── LP Role Grid (homepage popular roles) ────────────────── */
.lp-role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.lp-role-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lp-role-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.lp-role-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.lp-role-card__family {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.lp-role-card__meta {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── LP Home Split (2-column community layout) ───────────── */
.lp-home-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.lp-home-split__subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ── LP Mini Proposals ───────────────────────────────────── */
.lp-mini-proposals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lp-mini-proposal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.lp-mini-proposal:hover {
  border-color: var(--accent);
}

.lp-mini-proposal__status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-mini-proposal__status--draft {
  background: var(--muted);
  color: var(--text-secondary);
}

.lp-mini-proposal__status--open {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.lp-mini-proposal__status--merged {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.lp-mini-proposal__status--closed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.lp-mini-proposal__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-mini-proposal__author {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ── LP Community Stats ──────────────────────────────────── */
.lp-community-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lp-community-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lp-community-stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.lp-community-stat__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ── LP Domain Chips ─────────────────────────────────────── */
.lp-domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.lp-domain-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.lp-domain-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.lp-domain-chip strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.lp-domain-chip__meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ── LP Dashboard (Homepage) ──────────────────────────────── */
.lp-ticker {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  text-align: center;
  background: var(--card-bg);
}
.lp-ticker__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.lp-ticker__item strong { color: var(--accent); font-weight: 700; }
.lp-ticker__sep { color: var(--text-muted); opacity: 0.5; }

.lp-dash {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}
.lp-dash__main { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.lp-dash__side { display: flex; flex-direction: column; gap: 1.25rem; }

/* Card section — consistent cards for main column (matches sidebar) */
.lp-card-section {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.lp-card-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.lp-card-section__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.lp-card-section__more:hover { text-decoration: underline; }
.lp-card-section__empty {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Activity feed items */
.lp-feed { display: flex; flex-direction: column; }
.lp-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.lp-feed-item:last-child { border-bottom: none; }

/* Activity type badge (colored icon) */
.lp-feed-item__badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 1px;
}
.lp-feed-item__badge--proposal { background: rgba(245,158,11,0.15); color: #f59e0b; }
.lp-feed-item__badge--comment  { background: rgba(99,102,241,0.15); color: #818cf8; }
.lp-feed-item__badge--merge    { background: rgba(34,197,94,0.15); color: #22c55e; }

.lp-feed-item__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  margin-top: 1px;
}
.lp-feed-item__body { flex: 1; min-width: 0; }
.lp-feed-item__text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
}
.lp-feed-item__author {
  font-weight: 600;
  color: var(--text-primary);
}
.lp-feed-item__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.lp-feed-item__link:hover { text-decoration: underline; }
.lp-feed-item__time {
  display: inline;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.lp-feed-item__time::before {
  content: '·';
  margin: 0 0.25rem;
}

/* Platform updates (changelog) */
.lp-updates { display: flex; flex-direction: column; }
.lp-update {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: background 0.15s;
}
.lp-update:last-child { border-bottom: none; }
.lp-update:hover { background: var(--bg-hover, rgba(128,128,128,0.05)); }
.lp-update__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.lp-update__body { flex: 1; min-width: 0; }
.lp-update__text {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-primary);
  display: block;
}
.lp-update__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.lp-update__tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lp-update__votes { font-weight: 600; }

/* Sidebar sections */
.lp-side-section {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.lp-side-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.lp-side-section__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}
.lp-side-section__more:hover { text-decoration: underline; }

/* Sidebar: stats */
.lp-side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.lp-side-stat { text-align: center; }
.lp-side-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
}
.lp-side-stat__label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Sidebar: tools */
.lp-side-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.lp-side-tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.lp-side-tool:hover {
  border-color: var(--accent);
  background: var(--bg-hover, rgba(128,128,128,0.05));
}
.lp-side-tool__icon { font-size: 1rem; flex-shrink: 0; }

/* Sidebar: roles */
.lp-side-roles { display: flex; flex-direction: column; gap: 0.25rem; }
.lp-side-role {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.lp-side-role:last-child { border-bottom: none; }
.lp-side-role:hover .lp-side-role__name { color: var(--accent); }
.lp-side-role__name { font-weight: 500; transition: color 0.15s; }
.lp-side-role__meta { font-size: 0.75rem; color: var(--text-muted); }

/* Sidebar: domains */
.lp-side-domains { display: flex; flex-direction: column; gap: 0.2rem; }
.lp-side-domain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}
.lp-side-domain:last-child { border-bottom: none; }
.lp-side-domain:hover { color: var(--accent); }
.lp-side-domain__count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary, rgba(128,128,128,0.1));
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* ── PERSONAL DASHBOARD ─────────────────────────────────── */
.pd-hero {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.pd-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.pd-hero__greeting {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.pd-hero__role { display: flex; align-items: center; gap: 0.5rem; }
.pd-hero__role-name { font-size: 0.9rem; color: var(--text-secondary); }
.pd-hero__level-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.pd-hero__progress { flex: 0 0 340px; }
.pd-hero__match { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.3rem; }
.pd-hero__match-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}
.pd-hero__match-label { font-size: 0.82rem; color: var(--text-secondary); }
.pd-hero__bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.pd-hero__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong, #f59e0b));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.pd-hero__gap-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}
.pd-grid__main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.pd-grid__side { display: flex; flex-direction: column; gap: 1.25rem; }

.pd-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.pd-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.pd-card__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.pd-card__more:hover { text-decoration: underline; }
.pd-card__empty { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* Progress sparkline */
.pd-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.pd-sparkline__bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), rgba(245,158,11,0.3));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  position: relative;
  transition: height 0.3s ease;
}
.pd-sparkline__bar:hover { opacity: 0.8; }
.pd-sparkline__val {
  display: none;
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.pd-sparkline__bar:hover .pd-sparkline__val { display: block; }

.pd-progress__stats { display: flex; gap: 1.5rem; }
.pd-stat { text-align: center; }
.pd-stat__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pd-stat__value--up { color: #22c55e; }
.pd-stat__value--down { color: #ef4444; }
.pd-stat__label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }

/* Top gaps */
.pd-gaps { display: flex; flex-direction: column; }
.pd-gap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}
.pd-gap:last-child { border-bottom: none; }
.pd-gap__info { flex: 1; min-width: 0; }
.pd-gap__name { display: block; font-weight: 500; color: var(--text-primary); }
.pd-gap__domain { display: block; font-size: 0.72rem; color: var(--text-muted); }
.pd-gap__levels { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; }
.pd-gap__current { color: var(--text-muted); }
.pd-gap__arrow { color: var(--accent); font-weight: 700; }
.pd-gap__target { color: var(--accent); font-weight: 600; }
.pd-gap__mandatory {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* GitHub card */
.pd-github { display: flex; align-items: center; gap: 1rem; }
.pd-github__score { display: flex; align-items: baseline; }
.pd-github__score-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.pd-github__score-max { font-size: 1rem; color: var(--text-muted); }
.pd-github__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.pd-github__level { font-size: 0.82rem; font-weight: 600; text-transform: capitalize; }
.pd-github__time { font-size: 0.72rem; color: var(--text-muted); }

/* Quick actions */
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pd-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.pd-action:hover {
  border-color: var(--accent);
  background: var(--bg-hover, rgba(128,128,128,0.05));
}
.pd-action__icon { font-size: 1rem; flex-shrink: 0; }

/* Ranking */
.pd-ranking { display: flex; flex-direction: column; gap: 0.75rem; }
.pd-ranking__pct, .pd-ranking__rep { text-align: center; }
.pd-ranking__pct-val {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}
.pd-ranking__pct-label, .pd-ranking__rep-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.pd-ranking__rep-val {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.pd-ranking__badges { display: flex; justify-content: center; gap: 0.5rem; }
.pd-badge { font-size: 0.82rem; font-weight: 600; }

/* Community mini feed */
.pd-feed { display: flex; flex-direction: column; }
.pd-feed__item {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-primary);
}
.pd-feed__item:last-child { border-bottom: none; }
.pd-feed__item a { color: var(--accent); text-decoration: none; font-weight: 500; }
.pd-feed__item a:hover { text-decoration: underline; }
.pd-feed__time {
  display: inline;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
}
.pd-feed__time::before { content: '· '; }

/* ── SKILL CHALLENGES ─────────────────────────────────────── */
.ch-hero {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.ch-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}
.ch-hero p { color: var(--text-secondary); font-size: 0.92rem; margin: 0 0 1rem; }
.ch-hero__stats { display: flex; justify-content: center; gap: 2rem; font-size: 0.82rem; color: var(--text-muted); }
.ch-hero__stats strong { color: var(--accent); font-weight: 700; }

.ch-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}
.ch-layout__main { min-width: 0; }
.ch-layout__side { display: flex; flex-direction: column; gap: 1.25rem; }

.ch-domain { margin-bottom: 2rem; }
.ch-domain__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.ch-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.ch-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s, transform 0.1s;
}
.ch-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ch-card__title { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.5rem; }
.ch-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; align-items: center; }
.ch-card__diff {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  display: inline-block;
}
.ch-card__diff--beginner { background: rgba(34,197,94,0.15); color: #22c55e; }
.ch-card__diff--intermediate { background: rgba(59,130,246,0.15); color: #3b82f6; }
.ch-card__diff--advanced { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ch-card__diff--expert { background: rgba(239,68,68,0.15); color: #ef4444; }
.ch-card__stats { font-size: 0.72rem; color: var(--text-muted); display: flex; gap: 1rem; }

/* Challenge detail */
.ch-detail-hero {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.ch-detail-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 800; margin: 0 0 0.75rem; }
.ch-detail-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; align-items: center; }
.ch-detail-desc { max-width: 600px; margin: 0 auto 1.5rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.ch-breadcrumb { max-width: 1200px; margin: 0 auto; padding: 0.75rem 2rem; font-size: 0.8rem; }
.ch-breadcrumb a { color: var(--accent); text-decoration: none; }
.ch-breadcrumb a:hover { text-decoration: underline; }

.ch-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.ch-badge--beginner { background: rgba(34,197,94,0.15); color: #22c55e; }
.ch-badge--intermediate { background: rgba(59,130,246,0.15); color: #3b82f6; }
.ch-badge--advanced { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ch-badge--expert { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Leaderboard table */
.ch-lb-section { max-width: 800px; margin: 2rem auto; padding: 0 2rem; }
.ch-lb-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; margin-bottom: 1rem; }
.ch-lb-wrapper { max-width: 900px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }
.ch-lb-hero { text-align: center; padding: 2rem; background: var(--card-bg); border-bottom: 1px solid var(--border); }
.ch-lb-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 800; margin: 0 0 0.3rem; }
.ch-lb-hero p { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }

.ch-lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.ch-lb-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}
.ch-lb-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ch-lb-table__top td { background: rgba(245,158,11,0.05); }
.ch-lb-back { display: inline-block; margin-top: 1.5rem; font-size: 0.85rem; color: var(--accent); text-decoration: none; }
.ch-lb-back:hover { text-decoration: underline; }

/* Sidebar card */
.ch-side-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.ch-side-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 700; margin: 0 0 0.75rem; }
.ch-side-card > a { display: inline-block; margin-top: 0.75rem; font-size: 0.82rem; color: var(--accent); text-decoration: none; }
.ch-side-card > a:hover { text-decoration: underline; }

.ch-mini-lb { list-style: none; padding: 0; margin: 0; }
.ch-mini-lb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.ch-mini-lb li:last-child { border-bottom: none; }
.ch-mini-lb__icon { font-size: 0.85rem; flex-shrink: 0; }
.ch-mini-lb__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-mini-lb__score { font-weight: 700; color: var(--accent); font-size: 0.78rem; }

/* Results page */
.ch-results-hero {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.ch-results-score__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
}
.ch-results-score--great .ch-results-score__value { color: #22c55e; }
.ch-results-score--ok .ch-results-score__value { color: #f59e0b; }
.ch-results-score--low .ch-results-score__value { color: #ef4444; }
.ch-results-score__label { font-size: 0.9rem; color: var(--text-secondary); }
.ch-results-meta { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.ch-results-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

.ch-review { max-width: 800px; margin: 2rem auto; padding: 0 2rem 3rem; }
.ch-review h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; margin-bottom: 1rem; }
.ch-review-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--border);
}
.ch-review-item--correct { border-left-color: #22c55e; }
.ch-review-item--wrong { border-left-color: #ef4444; }
.ch-review-item__header { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; }
.ch-review-item--correct .ch-review-item__header { color: #22c55e; }
.ch-review-item--wrong .ch-review-item__header { color: #ef4444; }
.ch-review-item__text { font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.75rem; }
.ch-review-item__answer { font-size: 0.82rem; margin-bottom: 0.5rem; }
.ch-review-item__wrong { color: #ef4444; }
.ch-review-item__correct { color: #22c55e; }
.ch-review-item__explanation {
  background: rgba(128,128,128,0.08);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Code snippets in challenges */
.ch-question__code {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.75rem 0;
}
.ch-question__code code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* User attempts table */
.ch-attempts { margin-top: 1rem; }
.ch-attempts__title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }

/* ── BADGE GAMIFICATION ─────────────────────────────────── */

/* Badge list in dashboard */
.ch-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.ch-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(128,128,128,0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: background 0.15s;
}
.ch-badge-item:hover { background: rgba(128,128,128,0.15); }
.ch-badge-item__icon { font-size: 1rem; line-height: 1; }
.ch-badge-item__label { font-weight: 500; }

/* Challenge stats row in dashboard */
.pd-challenge-stats__row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* New badges section on results page */
.ch-new-badges {
  text-align: center;
  padding: 1.5rem 2rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.ch-new-badges__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.ch-new-badges__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.ch-new-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  min-width: 130px;
  max-width: 180px;
  animation: ch-badge-pop 0.4s ease-out;
}
.ch-new-badge-card__icon {
  font-size: 2rem;
  line-height: 1;
}
.ch-new-badge-card__name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
}
.ch-new-badge-card__desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
@keyframes ch-badge-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── SKILL CHALLENGES RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .ch-layout { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
  .ch-cards { grid-template-columns: 1fr; }
  .ch-hero { padding: 1.5rem 1rem; }
  .ch-hero h1 { font-size: 1.4rem; }
  .ch-detail-hero { padding: 1.5rem 1rem; }
  .ch-lb-section, .ch-review, .ch-lb-wrapper { padding: 0 1rem; }
}
@media (max-width: 600px) {
  .ch-hero__stats { flex-direction: column; gap: 0.3rem; }
  .ch-detail-meta { gap: 0.4rem; }
  .ch-results-score__value { font-size: 2.2rem; }
  .ch-results-meta { flex-direction: column; gap: 0.3rem; }
  .ch-results-actions { flex-direction: column; }
}

/* ── PERSONAL DASHBOARD RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .pd-hero { padding: 1.25rem 1rem; }
  .pd-hero__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .pd-hero__progress { flex: 1 1 auto; width: 100%; }
  .pd-hero__match-pct { font-size: 1.4rem; }
  .pd-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .pd-grid__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .pd-actions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pd-hero { padding: 1rem 0.75rem; }
  .pd-hero__greeting { font-size: 1.1rem; }
  .pd-hero__match-pct { font-size: 1.2rem; }
  .pd-grid { padding: 0.75rem; gap: 0.75rem; }
  .pd-grid__side { grid-template-columns: 1fr; }
  .pd-sparkline { height: 60px; }
  .pd-progress__stats { gap: 1rem; flex-wrap: wrap; }
  .pd-github__score-val { font-size: 1.5rem; }
  .pd-card { padding: 1rem; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-dash {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .lp-dash__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .lp-dash__side {
    grid-template-columns: 1fr;
  }
  .lp-ticker { padding: 0.5rem 1rem; }
  .lp-ticker__inner { font-size: 0.78rem; gap: 0.5rem; }
  .lp-feed-item__badge { width: 20px; height: 20px; font-size: 0.6rem; }
  .lp-feed-item__avatar { width: 22px; height: 22px; }
}

@media (max-width: 860px) {
  .lp-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lp-split--reverse {
    direction: ltr;
  }

  .lp-audience-grid {
    grid-template-columns: 1fr;
  }

  .lp-features-grid--3,
  .lp-features-grid--2 {
    grid-template-columns: 1fr;
  }

  .lp-pricing-mini {
    grid-template-columns: 1fr;
  }

  .lp-about-columns {
    grid-template-columns: 1fr;
  }

  .lp-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-home-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lp-domain-chips {
    gap: 0.5rem;
  }

  .lp-domain-chip {
    padding: 0.75rem 1rem;
    border-radius: 12px;
  }

  .lp-mini-proposal__author {
    display: none;
  }

  .lp-docs-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .lp-docs-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .lp-docs-nav__group {
    margin-bottom: 0;
  }

  .lp-docs-nav__link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  .lp-hero {
    padding: 3rem 1rem 2rem;
  }

  .lp-section {
    padding: 2rem 1rem;
  }

  .lp-steps {
    grid-template-columns: 1fr 1fr;
  }

  .lp-stats-bar {
    gap: 1.5rem;
  }

}

@media (max-width: 480px) {
  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-stats-bar {
    gap: 1rem;
  }

  .lp-stat__value {
    font-size: 1.5rem;
  }

  .lp-role-grid {
    grid-template-columns: 1fr;
  }

  .lp-community-stats {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════
   B2C GROWTH FEATURES
   ════════════════════════════════════════════════════ */

/* ─── Welcome Wizard ─── */
.wizard-container {
  width: min(700px, 94vw);
  margin: 2rem auto;
  padding: 0 1rem;
}

.wizard-progress {
  background: var(--card);
  border-radius: 8px;
  height: 6px;
  margin-bottom: .5rem;
  overflow: hidden;
}

.wizard-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 8px;
  transition: width .4s ease;
}

.wizard-progress__steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.wizard-step.active { color: var(--accent); font-weight: 600; }

.wizard-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0 0 .5rem;
}

.wizard-subtitle {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.wizard-search { margin-bottom: 1.5rem; }

.wizard-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.wizard-role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  color: inherit;
}

.wizard-role-card:hover { border-color: var(--accent); }
.wizard-role-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.wizard-role-card__name { font-weight: 600; font-size: .95rem; }
.wizard-role-card__family { font-size: .8rem; color: var(--text-muted); }
.wizard-role-card__skills { font-size: .75rem; color: var(--accent); }

.wizard-skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wizard-skill-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.wizard-skill-item__info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: .75rem;
}

.wizard-skill-item__name { font-weight: 600; }
.wizard-skill-item__domain { font-size: .8rem; color: var(--text-muted); }

.wizard-skill-item__buttons {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.wizard-rating-btn {
  padding: .4rem .7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: .8rem;
  font-family: inherit;
  transition: all .15s;
}

.wizard-rating-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.wizard-rating-btn.selected { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.wizard-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.wizard-result-card__label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.wizard-result-card__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.wizard-result-card__bar {
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: .75rem;
}

.wizard-result-card__progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 4px;
  transition: width .6s ease;
}

.wizard-result-card__desc { color: var(--text-secondary); margin: 0; }

.wizard-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.wizard-cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: border-color .2s, transform .2s;
}

.wizard-cta-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.wizard-cta-card__icon { font-size: 1.5rem; }
.wizard-cta-card__title { font-weight: 600; font-size: .95rem; }
.wizard-cta-card__desc { font-size: .8rem; color: var(--text-muted); }

/* Grade badge colors */
.grade-junior { color: var(--success); }
.grade-middle { color: #5bc0de; }
.grade-senior { color: var(--accent); }
.grade-lead { color: var(--accent-strong); }
.grade-principal { color: var(--danger); }

/* ─── Shareable Card ─── */
.share-page {
  width: min(600px, 94vw);
  margin: 2rem auto;
  padding: 0 1rem;
}

.share-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.share-card__header {
  background: linear-gradient(135deg, var(--card-alt), var(--card));
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.share-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 .25rem;
}

.share-card__role {
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

.share-card__body { padding: 2rem; }

.share-card__grade {
  text-align: center;
  margin-bottom: 1.5rem;
}

.share-card__grade-label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.share-card__grade-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.share-card__levels { margin-bottom: 1.5rem; }

.share-card__level-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.share-card__level-name {
  width: 70px;
  text-transform: capitalize;
  font-size: .85rem;
  color: var(--text-secondary);
}

.share-card__level-bar {
  flex: 1;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.share-card__level-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.share-card__level-pct {
  width: 40px;
  text-align: right;
  font-size: .85rem;
  color: var(--text-muted);
}

.share-card__skills h3 {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0 0 .75rem;
}

.share-card__skill-row {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.share-card__skill-level {
  text-transform: capitalize;
  color: var(--accent);
  font-weight: 500;
}

.share-card__footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}

.share-card__cta {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.share-card__badge {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: #6366f1;
  letter-spacing: .05em;
}

.share-card {
  position: relative;
}

.share-card__level-row--active .share-card__level-name {
  color: var(--accent);
  font-weight: 600;
}

.share-card__level-row--active .share-card__level-pct {
  color: var(--text-primary);
  font-weight: 600;
}

.share-card__level-fill--complete {
  background: var(--success);
}

/* ─── Share Social Buttons ─── */
.share-card__social {
  display: flex;
  gap: .5rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s ease;
}

.share-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: var(--card-alt);
}

.share-btn--telegram:hover { border-color: #0088cc; color: #0088cc; }
.share-btn--x:hover { border-color: var(--text-primary); color: var(--text-primary); }
.share-btn--linkedin:hover { border-color: #0077b5; color: #0077b5; }
.share-btn--copy:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Grade Actions ─── */
.grade-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 0 2rem;
}

.btn.accent {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
}

.btn.accent:hover {
  background: linear-gradient(135deg, #5558e6, #7c4feb);
}

/* ─── Progress Timeline ─── */
.progress-page {
  width: min(900px, 94vw);
  margin: 0 auto;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.progress-current-grade {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.progress-current-grade__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.progress-chart-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.progress-changes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.progress-change-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.progress-change-card__icon { font-size: 1.2rem; }
.progress-change-card__skill { font-weight: 500; }
.progress-change-card__transition { font-size: .85rem; color: var(--text-secondary); }

/* ─── Learning Resources ─── */
.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s;
}

.resource-card:hover { border-color: var(--accent); }

.resource-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.resource-card__body { flex: 1; min-width: 0; }

.resource-card__title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: .25rem;
}

.resource-card__title:hover { color: var(--accent); }

.resource-card__meta {
  display: flex;
  gap: .75rem;
  font-size: .75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.resource-badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 600;
}

.resource-badge--free { background: rgba(67, 221, 183, .15); color: var(--success); }
.resource-badge--paid { background: rgba(255, 191, 54, .15); color: var(--accent); }

.resource-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ─── Public Portfolio ─── */
.portfolio-page {
  width: min(800px, 94vw);
  margin: 2rem auto;
  padding: 0 1rem;
}

.portfolio-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-header__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 .25rem;
}

.portfolio-header__role {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}

.portfolio-header__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--text-secondary);
}

.portfolio-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-grades {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.portfolio-grade-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-grade-row__name {
  width: 200px;
  font-weight: 500;
  font-size: .9rem;
}

.portfolio-grade-row__bar {
  flex: 1;
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}

.portfolio-grade-row__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.portfolio-grade-row__value {
  width: 100px;
  text-align: right;
  font-size: .85rem;
  color: var(--text-secondary);
}

/* ─── Peer Benchmarks ─── */
.benchmark-indicator {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--text-muted);
  padding: .2rem .5rem;
  background: var(--surface);
  border-radius: 4px;
}

.benchmark-bar {
  height: 4px;
  width: 60px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.benchmark-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.benchmark-percentile {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ─── Embeddable Badge ─── */
.badge-embed-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.badge-embed-section__preview {
  margin-bottom: 1rem;
  text-align: center;
}

.badge-embed-section__code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem;
  font-family: monospace;
  font-size: .8rem;
  color: var(--text-secondary);
  word-break: break-all;
  cursor: pointer;
}

.badge-embed-section__code:hover { color: var(--text-primary); }

/* ─── Salary Ranges ─── */
.salary-range-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.salary-range-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.salary-range-card__level {
  font-weight: 600;
  text-transform: capitalize;
}

.salary-range-card__geo {
  font-size: .8rem;
  color: var(--text-muted);
}

.salary-range-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.salary-range-bar__track {
  flex: 1;
  height: 12px;
  background: var(--surface);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.salary-range-bar__fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--muted), var(--accent), var(--muted));
  border-radius: 6px;
}

.salary-range-bar__labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
}

.salary-premium-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(67, 221, 183, .12);
  color: var(--success);
}

/* ─── Notification Settings ─── */
.notification-settings {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.notification-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

.notification-setting-row__label { font-size: .9rem; }
.notification-setting-row__desc { font-size: .8rem; color: var(--text-muted); }

/* ─── AI Recommendation ─── */
.ai-recommendation-card {
  background: linear-gradient(135deg, rgba(255, 191, 54, .05), rgba(67, 221, 183, .05));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.ai-recommendation-card__badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--accent);
  color: #000;
  padding: .15rem .6rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ai-recommendation-card__title {
  font-weight: 600;
  margin: 0 0 .5rem;
}

.ai-recommendation-card__body {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Pro badge ─── */
.pro-badge {
  display: inline-flex;
  align-items: center;
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  background: var(--accent);
  color: #000;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-left: .3rem;
  vertical-align: middle;
}

/* ─── Share button ─── */
.share-btn-group {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}

.share-btn {
  padding: .4rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: .8rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: all .15s;
}

.share-btn:hover { border-color: var(--accent); color: var(--accent); }
