/* =================================================================
   SCOPEVIX — styles.css
   "This is not a decision, it's a discovery."
   Dark • Elegant • Cinematic • Premium. Red is an accent — used for
   emphasis, action, progress and selection only. Never a background.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Core surfaces ---- */
  --black:            #000000;
  --background:       #050505;
  --background-deep:  #020202;
  --surface:          #0A0A0A;
  --surface-elevated: #101010;
  --surface-hover:    #151515;

  /* ---- Text ---- */
  --text-primary:  #F5F5F5;
  --text-white:    #FFFFFF;
  --text-secondary:#B8B8B8;
  --text-muted:    #777777;
  --text-disabled: #505050;

  /* ---- Scopevix Red ---- */
  --red:        #FF1F2D;   /* Scopevix Red — primary brand red */
  --red-primary:#E50914;   /* hover states */
  --red-bright: #FF3038;   /* highlights */
  --red-dark:   #A9000A;   /* background accents */

  /* ---- Borders ---- */
  --border:        rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 31, 45, 0.65);

  /* ---- Glows ---- */
  --red-glow:       0 0 18px rgba(255, 31, 45, 0.18);
  --red-glow-hover: 0 0 25px rgba(255, 31, 45, 0.25);
  --white-glow:     0 0 18px rgba(255, 255, 255, 0.12);

  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--text-white); }
h1 { font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.5px; }
h1 .red { color: var(--red); }
h2 { font-weight: 600; font-size: 32px; }
h3 { font-weight: 600; font-size: 24px; }
h4 { font-weight: 600; font-size: 20px; }
p  { font-weight: 400; font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
small, .text-small { font-weight: 400; font-size: 14px; color: var(--text-muted); }
.text-muted, .text-dim { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-disabled { color: var(--text-disabled); }
.text-red { color: var(--red); }
.eyebrow {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.6px;
}

/* ---------- Logo ---------- */
.logo {
  font-weight: 700; font-size: 1.15rem; letter-spacing: 3px;
  color: var(--text-white); text-transform: uppercase;
}
.logo .o { color: var(--red); }

/* ---------- Navbar ---------- */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar nav a {
  margin-left: 20px; font-weight: 500; font-size: 15px; color: var(--text-secondary);
  transition: color .2s;
}
.navbar nav a:hover, .navbar nav a.active { color: var(--text-white); }

.demo-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-subtle);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: border-color .2s;
}
.demo-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-disabled); }
.demo-toggle.on { border-color: var(--border-active); color: var(--text-white); }
.demo-toggle.on .dot { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(255, 31, 45, 0.3);
  box-shadow: 0 0 18px rgba(255, 31, 45, 0.08);
}
.card.card-static:hover { border-color: var(--border-subtle); box-shadow: none; }
.card-accent { border-color: var(--border-active); box-shadow: var(--red-glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600; font-size: 16px;
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--red);
  color: var(--text-white);
  box-shadow: var(--red-glow);
}
.btn-primary:hover { background: var(--red-primary); box-shadow: var(--red-glow-hover); }
.btn-secondary {
  background: var(--surface-elevated); color: var(--text-primary); border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-active); background: var(--surface-hover); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; text-align: center; }
.hero p.subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 540px; margin: 16px auto 30px; }
.hero .social-proof { margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.hero .social-proof strong { color: var(--text-white); }

.hero-video {
  margin: 34px auto 0; max-width: 640px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-subtle); position: relative; aspect-ratio: 16/9;
  box-shadow: var(--white-glow);
}
.hero-video iframe, .hero-video video { width: 100%; height: 100%; border: 0; }
.video-xp-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(5,5,5,0.8); border: 1px solid var(--border-active);
  color: var(--text-white); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- Journey / Gamification preview card ---------- */
.journey-id { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; }
.journey-id b { color: var(--text-white); font-weight: 600; }

.preview-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.stat-pill {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: 999px; padding: 10px 18px; font-size: 14px; color: var(--text-secondary);
}
.stat-pill b { color: var(--red); }

/* ---------- Grid layouts ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- XP counter / dashboard ---------- */
.xp-counter { font-size: 3rem; font-weight: 700; color: var(--red); }
.xp-label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; }
.xp-inline { color: var(--red); font-weight: 700; }

.streak-box { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--text-white); }
.streak-cal { display: flex; gap: 6px; margin-top: 10px; }
.streak-day {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-elevated); border: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-muted);
}
.streak-day.active { background: rgba(255,31,45,0.12); border-color: var(--border-active); }

.progress-bar-track {
  width: 100%; height: 10px; border-radius: 999px;
  background: var(--surface-elevated); overflow: hidden; position: relative;
  border: 1px solid var(--border-subtle);
}
.progress-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  box-shadow: 0 0 10px rgba(255,31,45,0.35);
  transition: width .6s ease;
}

/* ---------- Badges ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.badge-item {
  text-align: center; padding: 16px 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-subtle);
  opacity: 0.45; filter: grayscale(1);
  transition: all .2s;
}
.badge-item.unlocked {
  opacity: 1; filter: none;
  border-color: var(--border-active);
  box-shadow: var(--red-glow);
}
.badge-item .icon { font-size: 1.9rem; margin-bottom: 6px; }
.badge-item .name { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* ---------- Leaderboard ---------- */
.leaderboard-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: 10px;
}
.leaderboard-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.leaderboard-row .rank { width: 28px; font-weight: 700; color: var(--red); }
.leaderboard-row.you { border: 1px solid var(--border-active); background: rgba(255,31,45,0.06); }

/* ---------- Category cards ---------- */
.category-card { padding: 28px 20px; text-align: center; cursor: pointer; }
.category-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.category-card .keywords { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.category-card .explore-link { color: var(--text-muted); font-size: 13px; margin-top: 14px; display: inline-block; transition: color .2s; }
.category-card:hover .explore-link { color: var(--red); }

/* ---------- Career cards ---------- */
.career-card { padding: 0; overflow: hidden; cursor: pointer; }
.career-card .thumb {
  height: 140px; width: 100%;
  background: linear-gradient(160deg, var(--surface-elevated), var(--background-deep));
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  border-bottom: 1px solid var(--border-subtle); color: var(--text-muted);
}
.career-card .body { padding: 18px; }
.career-card .cat-tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,31,45,0.1); color: var(--red); margin-bottom: 8px; letter-spacing: .4px;
}
.career-card .explored-tick { color: var(--red); font-size: 13px; font-weight: 600; }

/* ---------- Video player page ---------- */
.video-wrap {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; border: 1px solid var(--border-subtle);
  box-shadow: var(--white-glow);
}
.video-wrap iframe, .video-wrap video { width: 100%; height: 100%; border: 0; }

/* ---------- XP popup animation ---------- */
.xp-popup {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(0);
  background: var(--surface-elevated);
  border: 1px solid var(--border-active);
  color: var(--red);
  font-weight: 700; font-size: 1.2rem;
  padding: 12px 26px; border-radius: 999px;
  box-shadow: var(--red-glow-hover);
  z-index: 200; opacity: 0; pointer-events: none;
}
.xp-popup.show { animation: xpPop 1.4s ease forwards; }
@keyframes xpPop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.85); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(-10px) scale(1.05); }
  30%  { transform: translateX(-50%) translateY(-10px) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-40px) scale(0.92); }
}

/* ---------- Badge unlock modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.78);
  display: none; align-items: center; justify-content: center; z-index: 300;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--surface-elevated); border: 1px solid var(--border-active);
  border-radius: 20px; padding: 36px 30px; text-align: center; max-width: 320px;
  box-shadow: var(--red-glow-hover);
  animation: modalPop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes modalPop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box .badge-icon { font-size: 3.2rem; margin-bottom: 10px; }
.modal-box h3 { margin: 6px 0; color: var(--text-white); }
.modal-box p { color: var(--text-secondary); font-size: 14px; }

.confetti-piece {
  position: fixed; top: -10px; width: 7px; height: 13px; z-index: 299;
  opacity: 0.9; border-radius: 2px;
}

/* ---------- Assessment ---------- */
.q-scenario { font-size: 1.15rem; font-weight: 600; color: var(--text-white); margin-bottom: 24px; line-height: 1.5; }
.q-progress { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }

.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--red); height: 6px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.alloc-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.alloc-item label { flex: 1; font-size: 14px; color: var(--text-secondary); }
.alloc-item input[type="number"] {
  width: 70px; padding: 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-elevated); color: var(--text-primary); text-align: center; font-family: inherit;
}
.alloc-item input[type="number"]:focus { outline: none; border-color: var(--border-active); }
.alloc-total { text-align: right; font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 600; }
.alloc-total.ok { color: var(--red); }
.alloc-total.bad { color: var(--text-disabled); }

.branch-btn {
  display: block; width: 100%; text-align: left; margin-bottom: 12px;
  padding: 16px 18px; border-radius: 12px; background: var(--surface-elevated);
  border: 1px solid var(--border); color: var(--text-primary); cursor: pointer; font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.branch-btn:hover, .branch-btn.selected { border-color: var(--border-active); background: rgba(255,31,45,0.06); }

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-item {
  padding: 14px 16px; margin-bottom: 10px; border-radius: 10px;
  background: var(--surface-elevated); border: 1px solid var(--border);
  cursor: grab; display: flex; align-items: center; gap: 12px; user-select: none;
}
.rank-item .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--red);
  color: var(--text-white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.rank-item.dragging { opacity: 0.4; }

.sentence-block { margin-bottom: 22px; }
.sentence-block p { font-weight: 600; color: var(--text-white); margin-bottom: 10px; }
.choice-row { display: flex; flex-direction: column; gap: 8px; }
.choice-row label {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; background: var(--surface-elevated); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary); cursor: pointer; transition: border-color .15s;
}
.choice-row input { accent-color: var(--red); }
.choice-row label:has(input:checked) { border-color: var(--border-active); color: var(--text-white); }

.binary-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .binary-choice { grid-template-columns: 1fr; } }
.binary-btn {
  padding: 30px 18px; border-radius: 14px; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-primary);
  font-weight: 600; font-size: 1.02rem; font-family: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.binary-btn:hover { border-color: var(--border-active); transform: translateY(-3px); box-shadow: var(--red-glow); }

/* ---------- Profile / Career DNA ---------- */
.trait-bar-row { margin-bottom: 12px; }
.trait-bar-row .lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; color: var(--text-secondary); }
.trait-bar-track { height: 8px; border-radius: 999px; background: var(--surface-elevated); overflow: hidden; border: 1px solid var(--border-subtle); }
.trait-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red-dark), var(--red)); transition: width .6s ease; }

.rec-card { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.rec-card .fit { font-weight: 700; font-size: 1.05rem; color: var(--red); }

/* Pattern / Career DNA card */
.dna-card { border-color: var(--border-active); box-shadow: var(--red-glow); }
.dna-pattern-name {
  font-weight: 700; font-size: 1.8rem; color: var(--red); margin: 8px 0 12px; letter-spacing: .5px;
}
.dna-tags { color: var(--text-white); font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.dna-tags span:not(:last-child)::after { content: " • "; color: var(--text-muted); }

.notice-card .icon { font-size: 1.6rem; margin-bottom: 8px; }
.notice-card h4 { font-size: 14px; letter-spacing: .6px; margin-bottom: 8px; text-transform: uppercase; }

.next-unlock { border-color: var(--border-active); text-align: center; }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.center { text-align: center; }
.section { padding: 40px 0; }
h2.section-title { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-white); }

footer { padding: 34px 0; text-align: center; color: var(--text-muted); font-size: 13px; }
footer .tagline { color: var(--text-secondary); font-style: normal; margin-bottom: 10px; }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .navbar nav { display: none; }
  .xp-counter { font-size: 2.2rem; }
}

/* =================================================================
   LANDING PAGE v2 (index.php) — hero art with functional overlay
   controls only. The hero-home.jpg image already contains the
   Scopevix logo, wordmark and tagline baked into the artwork — we
   do NOT redraw that text in HTML (that caused a double-text bug).
   We only overlay the parts that need to be real and clickable:
   the EN language pill, the Sign In button, and a CTA button.
   ================================================================= */
.landing-hero { position: relative; width: 100%; line-height: 0; background: var(--background-deep); }
.landing-hero-img { width: 100%; height: auto; display: block; }
.landing-overlay { position: absolute; inset: 0; }

.landing-topbar {
  position: absolute; top: 4.6%; right: 3%; z-index: 2;
  display: flex; align-items: center; gap: clamp(14px, 1.4vw, 22px);
}
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.35); color: var(--text-white);
  padding: 0.8em 1.4em 0.8em 2.3em; border-radius: 8px; font-size: clamp(13px, 1.25vw, 17px); font-weight: 500;
  background: rgba(5,5,5,0.94);
}
.landing-topbar .btn-signin {
  border: 1px solid rgba(255,255,255,0.35); color: var(--text-white);
  padding: 0.8em 1.7em; border-radius: 8px; font-size: clamp(13px, 1.25vw, 17px); font-weight: 600;
  background: rgba(5,5,5,0.94); transition: border-color .2s, background .2s;
}
.landing-topbar .btn-signin:hover { border-color: var(--text-white); background: rgba(0,0,0,1); }

.landing-cta {
  position: absolute; left: 4.2%; top: 78%; z-index: 2;
}
.landing-cta .btn { font-size: clamp(12px, 1.3vw, 17px); padding: 0.85em 1.6em; }

@media (max-width: 640px) {
  .landing-hero-img { object-fit: cover; aspect-ratio: 4/5; object-position: 25% center; }
  .landing-cta { top: auto; bottom: 6%; }
}

/* =================================================================
   DASHBOARD HOME v2 (dashboard.php) — Netflix-style discovery hub
   ================================================================= */
.app-topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.app-topbar .brand-block .logo { font-size: 1.15rem; letter-spacing: 3px; }
.app-topbar .brand-block .tagline-mini { font-size: 11px; color: var(--text-muted); margin-top: 2px; letter-spacing: .3px; }

.app-nav-links { display: flex; align-items: center; gap: 4px; }
.app-nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.app-nav-links a:hover { color: var(--text-white); background: var(--surface-hover); }
.app-nav-links a.active { color: var(--text-white); background: var(--surface-elevated); }

.app-search { flex: 1; max-width: 640px; position: relative; }
.app-search input {
  width: 100%; background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 42px; color: var(--text-primary); font-family: inherit; font-size: 14px;
}
.app-search input::placeholder { color: var(--text-muted); }
.app-search input:focus { outline: none; border-color: var(--border-active); }
.app-search .icon-search { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }

.app-topbar .right-cluster { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.mini-stat { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.mini-stat .num { font-weight: 700; color: var(--text-white); }
.mini-stat .lbl { font-size: 11px; color: var(--text-muted); display: block; }

.notif-bell { position: relative; font-size: 18px; color: var(--text-secondary); }
.notif-bell .dot { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--background); }

.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.user-chip::-webkit-details-marker { display: none; }
.user-chip .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-elevated);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.user-chip .name { font-size: 14px; font-weight: 600; color: var(--text-white); line-height: 1.3; }
.user-chip .role { font-size: 11px; color: var(--text-muted); }

.user-chip-dropdown { position: relative; }
.user-dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 12px;
  min-width: 190px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.user-dropdown-menu a {
  display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-primary); text-decoration: none;
}
.user-dropdown-menu a:hover { background: var(--surface-hover); }
.user-dropdown-menu a.danger { color: var(--red); }

@media (max-width: 1100px) {
  .app-nav-links { display: none; }
}
@media (max-width: 900px) {
  .app-search { display: none; }
  .app-topbar { padding: 14px 18px; }
}

/* ---- Dashboard hero banner ---- */
.dash-hero-v2 {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 300px; margin: 24px 0 40px;
  background: url('assets/hero-mountain-path.jpg') center center / cover no-repeat, var(--background-deep);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center;
}
.dash-hero-v2::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 100%);
}
.dash-hero-v2 .inner { position: relative; z-index: 2; padding: 40px 44px; max-width: 560px; }
.dash-hero-v2 .eyebrow-red { color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.dash-hero-v2 h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dash-hero-v2 p.lede { color: var(--text-secondary); font-size: 15px; margin: 12px 0 26px; }
.dash-hero-v2 .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .dash-hero-v2 .inner { padding: 28px 22px; }
}

/* ---- Horizontal scroll rows ---- */
.row-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.row-header .see-all { font-size: 13px; color: var(--red); font-weight: 600; }
.scroll-row {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 40px;
  scrollbar-width: thin;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.mini-card {
  flex: 0 0 220px; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s;
}
.mini-card:hover { border-color: rgba(255,31,45,0.3); transform: translateY(-2px); }
.mini-card .thumb-wrap { position: relative; aspect-ratio: 2.75/1; }
.mini-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mini-card.thumb-wide .thumb-wrap { aspect-ratio: 3.6/1; }
.mini-card .progress-ribbon {
  position: absolute; top: 8px; left: 8px; background: var(--red); color: var(--text-white);
  font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.mini-card .play-btn {
  position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--text-white); font-size: 11px;
}
.mini-card .thumb-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.15); }
.mini-card .thumb-progress span { display: block; height: 100%; background: var(--red); }
.mini-card .thumb-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--text-muted);
  background: linear-gradient(160deg, var(--surface-elevated), var(--background-deep));
}
.mini-card .fit-badge {
  position: absolute; top: 8px; right: 8px; background: rgba(5,5,5,0.85); border: 1px solid var(--border);
  color: var(--text-white); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}

/* ---- Filter chips ---- */
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-chip {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--border-active); color: var(--text-white); }
.filter-chip.active { background: var(--red); border-color: var(--red); color: var(--text-white); }

.empty-row-note { color: var(--text-muted); font-size: 14px; padding: 20px 0 30px; }

.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-search {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; color: var(--text-primary); font-family: inherit; font-size: 14px;
  min-width: 220px; flex: 1;
}
.filter-search::placeholder { color: var(--text-muted); }
.filter-search:focus { outline: none; border-color: var(--border-active); }

/* =================================================================
   Career DNA page — Market Intelligence (Table 1) + AI Influence
   Parameters (Table 2, static/never personalized)
   ================================================================= */
.market-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.market-table th {
  text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.market-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.market-table tbody tr:last-child td { border-bottom: none; }
.market-table .stat-pill { padding: 4px 11px; font-size: 12px; font-weight: 700; border-width: 1.5px; white-space: nowrap; }

.market-row td:first-child { border-left: 3px solid transparent; }
.market-row-top td:first-child { border-left: 3px solid #FF1F2D; }
.market-row-top-match { box-shadow: inset 0 0 24px rgba(255,31,45,0.08); }
.market-row-top-match td:first-child { border-left: 3px solid #FF1F2D; }
.market-row-primary td:first-child { border-left: 3px solid #FF1F2D; }
.market-row-secondary td:first-child { border-left: 3px solid #FFB800; }
.market-row-other { opacity: 0.7; }

.top-match-badge {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
  color: #FF1F2D; background: rgba(255,31,45,0.1); border: 1px solid rgba(255,31,45,0.35);
  border-radius: 999px; padding: 2px 9px; vertical-align: middle;
}

.ai-level-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ai-level-card {
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 18px 16px; border-top: 3px solid var(--accent, var(--border));
}
.ai-level-1 { --accent: #FF4D4D; }
.ai-level-2 { --accent: #FFB800; }
.ai-level-3 { --accent: #00D4AA; }
.ai-level-4 { --accent: #4D9FFF; }
.ai-level-5 { --accent: #B892FF; }
.ai-level-num { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.ai-level-name { font-size: 16px; font-weight: 700; color: var(--text-white); margin: 4px 0 8px; }
.ai-level-meaning { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

@media (max-width: 900px) {
  .ai-level-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
.mini-card .body { padding: 12px 14px 14px; }
.mini-card .body h5 { font-size: 14px; font-weight: 600; color: var(--text-white); margin: 0 0 4px; }
.mini-card .body .meta { font-size: 12px; color: var(--text-muted); }
.mini-card .body .meta .dot-sep::before { content: " • "; }
.mini-card .body .rating { font-size: 12px; color: var(--text-secondary); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.mini-card .body .rating .stars { color: #B892FF; }

.world-mini-card { flex: 0 0 190px; }
.world-mini-card .thumb-wrap { aspect-ratio: 3/1; position: relative; }
.world-mini-card .cat-badge {
  position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(10,10,10,0.75); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.world-mini-card .body h5 { margin-bottom: 2px; }

.demo-note { font-size: 12px; color: var(--text-muted); margin: -30px 0 40px; }

/* ---- CTA banner ---- */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--border-active); border-radius: var(--radius);
  padding: 26px 32px; background: rgba(255,31,45,0.04); margin-bottom: 20px;
}
.cta-banner .left { display: flex; align-items: center; gap: 18px; }
.cta-banner .rocket-badge {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-active);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--red);
  box-shadow: var(--red-glow); flex-shrink: 0;
}
.cta-banner h4 { margin-bottom: 4px; }
.cta-banner p { font-size: 14px; margin: 0; }
