*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --surface: rgba(7, 13, 20, 0.84);
  --surface-strong: rgba(9, 18, 28, 0.96);
  --surface-soft: rgba(9, 18, 28, 0.58);
  --line: rgba(111, 238, 255, 0.16);
  --line-strong: rgba(111, 238, 255, 0.34);
  --cyan: #66f2ff;
  --sea: #2dffb3;
  --blue: #7cc9ff;
  --text: #f8fafc;
  --text-soft: #b8c6d6;
  --muted: #78889d;
  --faint: #3d4a5b;
  --yellow: #f6d56f;
  --red: #ff7d8c;
  --sidebar-expanded: 256px;
  --sidebar-collapsed: 86px;
  --gradient-hero: linear-gradient(135deg, #62ffe5 0%, #12e4ec 36%, #38bdf8 66%, #12b8d1 84%, #80ffe8 100%);
  --font-title: "Satoshi", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --glow: 0 0 42px rgba(45, 255, 179, 0.10), 0 0 80px rgba(102, 242, 255, 0.07);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 22% 0%, rgba(45, 255, 179, 0.08), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(102, 242, 255, 0.09), transparent 36rem),
    #000;
  -webkit-font-smoothing: antialiased;
}

.app-shell.analytics-active {
  background: #000;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-expanded);
  padding: 22px 16px;
  border-right: 1px solid rgba(111, 238, 255, 0.13);
  background: linear-gradient(180deg, rgba(3, 8, 12, 0.96), rgba(0, 0, 0, 0.98));
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.34);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
  padding-inline: 14px;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  margin-inline: auto;
}

.sidebar-toggle {
  display: grid;
  gap: 4px;
  place-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 18px auto;
  border: 1px solid rgba(102, 242, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease;
}

.sidebar-toggle:hover {
  border-color: rgba(102, 242, 255, 0.34);
  background: rgba(102, 242, 255, 0.07);
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e8fbff;
  box-shadow: 0 0 12px rgba(102, 242, 255, 0.32);
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  padding: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  padding: 6px;
  background: #000;
  border: 1px solid rgba(102, 242, 255, 0.13);
  box-shadow: 0 0 28px rgba(102, 242, 255, 0.09);
}

.brand-title {
  min-width: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-shell.sidebar-collapsed .brand-title,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .sidebar-footer span:not(.status-dot) {
  width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
}

.app-shell.sidebar-collapsed .sidebar-brand-row {
  justify-content: center;
  gap: 0;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text-soft);
  background: transparent;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
  overflow: hidden;
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  border-color: rgba(102, 242, 255, 0.18);
  background: rgba(102, 242, 255, 0.07);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--cyan);
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(102, 242, 255, 0.18));
}

.sidebar-footer {
  position: absolute;
  inset: auto 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(102, 242, 255, 0.12);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.app-shell.sidebar-collapsed .sidebar-footer {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(246, 213, 111, 0.64);
}

.status-dot.live {
  background: var(--sea);
  box-shadow: 0 0 16px rgba(45, 255, 179, 0.7);
}

.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 125, 140, 0.7);
}

.app-main {
  min-height: 100vh;
  width: calc(100% - var(--sidebar-expanded));
  margin-left: var(--sidebar-expanded);
  padding: 26px clamp(22px, 3vw, 44px) 60px;
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.sidebar-collapsed .app-main {
  width: calc(100% - var(--sidebar-collapsed));
  margin-left: var(--sidebar-collapsed);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  margin-bottom: 20px;
}

.app-shell.analytics-active .topbar {
  display: none;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.08;
  font-weight: 850;
}

h2 {
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1;
  font-weight: 850;
}

h3 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.12;
  font-weight: 800;
}

p {
  color: var(--text-soft);
  line-height: 1.65;
}

.ghost-button,
.primary-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid rgba(102, 242, 255, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.primary-button {
  border: 1px solid rgba(102, 242, 255, 0.32);
  color: #00130f;
  background: linear-gradient(135deg, var(--sea), var(--cyan), var(--blue));
  box-shadow: 0 16px 46px rgba(45, 255, 179, 0.14);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.home-hero,
.analytics-hero,
.role-strip,
.graph-card,
.ai-card,
.summary-card,
.home-card,
.placeholder-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 22, 33, 0.80), rgba(3, 7, 11, 0.92)),
    rgba(0, 0, 0, 0.72);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(18px);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: center;
  min-height: 420px;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 30px;
}

.home-hero p {
  max-width: 980px;
  font-size: 18px;
}

.home-stat-grid {
  display: grid;
  gap: 14px;
}

.mini-stat {
  min-height: 100px;
  padding: 18px;
  border: 1px solid rgba(102, 242, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.mini-stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: 30px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.home-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
}

.muted-card {
  opacity: 0.72;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(102, 242, 255, 0.08);
}

.analytics-hero {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 330px;
  padding: 16px 56px 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.analytics-hero::after {
  display: none;
}

.analytics-hero > * {
  position: relative;
  z-index: 2;
}

.analytics-hero p {
  max-width: 780px;
  font-size: 18px;
}

.analytics-hero-copy {
  margin-top: -110px;
  margin-left: -40px;
}

.analytics-hero-copy .analytics-main-title {
  font-size: clamp(26px, 2.8vw, 36px);
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
}

.title-accent {
  display: inline-block;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(102, 242, 255, 0.12));
}

.rotating-subtext {
  position: relative;
  height: 38px;
  margin: 16px 0 14px;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: clamp(18px, 2.0vw, 26px);
  font-weight: 850;
  line-height: 1.1;
}

.rotating-line {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(24px);
  animation: rotateHeroText 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.rotating-line:nth-child(2) {
  animation-delay: 4s;
}

.rotating-line:nth-child(3) {
  animation-delay: 8s;
}

.rotating-line span {
  color: #fff;
}

.rotating-line strong {
  font-weight: 900;
}

.gradient-word {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.word-skills {
  background-image: linear-gradient(90deg, #FEFCE8 0%, #FEF08A 30%, #FDE047 68%, #EAB308 100%);
  filter: drop-shadow(0 0 22px rgba(253, 224, 71, 0.24));
}

.word-roles {
  background-image: linear-gradient(90deg, #fef08a, #eab308, #ca8a04);
  filter: drop-shadow(0 0 22px rgba(251, 191, 36, 0.22));
}

.word-trends {
  background-image: linear-gradient(90deg, #FDBA74, #FB923C, #F97316);
  filter: drop-shadow(0 0 22px rgba(249, 115, 22, 0.22));
}

.analytics-hero .hero-support {
  max-width: 710px;
  margin: 0;
  font-family: var(--font-body);
  color: #fff;
  opacity: 0.92;
}

@keyframes rotateHeroText {
  0%, 4% {
    opacity: 0;
    transform: translateY(22px);
  }
  5.5%, 27.9% {
    opacity: 1;
    transform: translateY(0);
  }
  33.3%, 100% {
    opacity: 0;
    transform: translateY(-22px);
  }
}

.market-pulse-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 600px;
}

.pulse-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.9));
}

.pulse-label {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-image: linear-gradient(90deg, #4ade80, #22c55e, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.5));
}

.pulse-ticker-container {
  flex-grow: 1;
}

.pulse-ticker {
  display: block;
}

.pulse-list {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-list strong {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.pulse-item {
  position: relative;
  text-align: left;
}

.pulse-item::before {
  content: "\2022";
  color: #fbbf24;
  position: absolute;
  left: -14px;
  top: -1px;
}

.analytics-visual {
  position: relative;
  overflow: visible;
  min-height: 230px;
  max-width: 440px;
  margin-top: -44px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(45, 255, 179, 0.12), transparent 34%),
    radial-gradient(circle at 22% 78%, rgba(102, 242, 255, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(4, 10, 16, 0.92), rgba(0, 0, 0, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(255, 255, 255, 0.08),
    0 0 42px rgba(102, 242, 255, 0.08);
}

@property --visual-border-angle-cw {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --visual-border-angle-ccw {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

@keyframes rotateVisualBorderCw {
  0% {
    --visual-border-angle-cw: 0deg;
  }
  100% {
    --visual-border-angle-cw: 360deg;
  }
}

@keyframes rotateVisualBorderCcw {
  0% {
    --visual-border-angle-ccw: 360deg;
  }
  100% {
    --visual-border-angle-ccw: 0deg;
  }
}

.analytics-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1.5px;
  background:
    conic-gradient(
      from var(--visual-border-angle-cw),
      rgba(45, 255, 179, 0) 0deg,
      rgba(45, 255, 179, 0) 200deg,
      #2dffb3 260deg,
      #ffffff 310deg,
      #2dffb3 340deg,
      rgba(45, 255, 179, 0) 360deg
    ),
    conic-gradient(
      from var(--visual-border-angle-cw),
      rgba(0, 191, 255, 0) 0deg,
      rgba(0, 191, 255, 0) 20deg,
      #00bfff 80deg,
      #ffffff 130deg,
      #00bfff 160deg,
      rgba(0, 191, 255, 0) 180deg,
      rgba(0, 191, 255, 0) 360deg
    );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 20px rgba(102, 242, 255, 0.5));
  opacity: 0.9;
  pointer-events: none;
  animation: rotateVisualBorderCw 6s linear infinite;
}

.analytics-visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  opacity: 0.35;
  pointer-events: none;
}

.visual-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.visual-topline span,
.panel-meta {
  color: var(--muted);
  font-size: 13px;
}

.visual-topline strong {
  display: block;
  font-family: var(--font-title);
  font-size: 18px;
  color: #fff;
}

.growth-chart {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 180px;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.growth-area {
  fill: url(#growthLineGradient);
  opacity: 0;
  animation: fadeGrowthArea 8.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.growth-line {
  fill: none;
  stroke: url(#growthLineGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  filter: url(#growthGlow);
  animation: drawGrowthLine 8.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.growth-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 12px currentColor);
}

.dot-red {
  color: #ff5f6d;
  fill: #ff5f6d;
  animation: revealRedDot 8.2s ease-in-out infinite;
}

.dot-yellow {
  color: #f8d56b;
  fill: #f8d56b;
  animation: revealYellowDot 8.2s ease-in-out infinite;
}

.dot-green {
  color: #2dffb3;
  fill: #2dffb3;
  animation: revealGreenDot 8.2s ease-in-out infinite;
}

.stick-figure {
  fill: none;
  stroke: #030507;
  stroke-width: 5.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
}

.stick-figure circle {
  fill: #030507;
  stroke: #030507;
}

.start-figure {
  opacity: 0.9;
}

.victory-figure {
  opacity: 0;
  animation: revealVictoryFigure 8.2s ease-in-out infinite;
}

.trophy {
  fill: rgba(248, 213, 107, 0.22);
  stroke: #f8d56b;
  stroke-width: 3.2;
  filter: drop-shadow(0 0 11px rgba(248, 213, 107, 0.66));
}

@keyframes drawGrowthLine {
  0% {
    stroke-dashoffset: 720;
    opacity: 0;
  }
  4% {
    stroke-dashoffset: 720;
    opacity: 0.5;
  }
  12% {
    opacity: 1;
  }
  78%, 88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  96% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  96.1%, 100% {
    stroke-dashoffset: 720;
    opacity: 0;
  }
}

@keyframes fadeGrowthArea {
  0%, 8% {
    opacity: 0;
  }
  20%, 88% {
    opacity: 0.08;
  }
  96%, 100% {
    opacity: 0;
  }
}

@keyframes revealRedDot {
  0%, 4% {
    opacity: 0;
    transform: scale(0.65);
  }
  8%, 92% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.78);
  }
}

@keyframes revealYellowDot {
  0%, 10% {
    opacity: 0;
    transform: scale(0.65);
  }
  14%, 92% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.78);
  }
}

@keyframes revealGreenDot {
  0%, 27% {
    opacity: 0;
    transform: scale(0.65);
  }
  32%, 88% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.78);
  }
}

@keyframes revealVictoryFigure {
  0%, 27% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  32%, 88% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
}

@property --visual-border-angle-cw {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --visual-border-angle-ccw {
  syntax: "<angle>";
  initial-value: 360deg;
  inherits: false;
}

@keyframes rotateVisualBorderCw {
  to {
    --visual-border-angle-cw: 360deg;
  }
}

@keyframes rotateVisualBorderCcw {
  to {
    --visual-border-angle-ccw: 0deg;
  }
}

.role-strip {
  position: relative;
  z-index: 10;
  margin: 18px 0 20px;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(102, 242, 255, 0.15);
  background:
    linear-gradient(135deg, rgba(6, 22, 38, 0.78), rgba(2, 8, 18, 0.94)),
    radial-gradient(circle at 16% 0%, rgba(45, 255, 179, 0.10), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(59, 130, 246, 0.12), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 28px rgba(102, 242, 255, 0.05),
    0 18px 48px rgba(0, 0, 0, 0.26);
}

.role-strip-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-strip-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--role-color) 44%, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--role-color) 18%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(10, 31, 52, 0.76), rgba(3, 10, 21, 0.92));
  box-shadow:
    inset 0 0 16px color-mix(in srgb, var(--role-color) 9%, transparent),
    0 0 18px color-mix(in srgb, var(--role-color) 8%, transparent);
}

.role-strip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--role-color);
  border: 1px solid color-mix(in srgb, var(--role-color) 50%, transparent);
  background: rgba(4, 13, 25, 0.74);
}

.role-strip-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-strip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

@media (max-width: 980px) {
  .role-strip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .role-strip-list {
    grid-template-columns: 1fr;
  }
}
.message-state {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 125, 140, 0.26);
  border-radius: 18px;
  background: rgba(80, 12, 22, 0.2);
  color: #ffd9de;
  line-height: 1.6;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skeleton,
.loading-card {
  border-radius: 22px;
  background: linear-gradient(100deg, rgba(10, 20, 30, 0.72) 8%, rgba(25, 47, 61, 0.88) 18%, rgba(10, 20, 30, 0.72) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton {
  min-height: 220px;
  border: 1px solid rgba(102, 242, 255, 0.08);
}

.skeleton.wide {
  grid-column: 1 / -1;
  min-height: 330px;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

.analytics-content {
  display: grid;
  gap: 18px;
}

.hero-kpi {
  position: relative;
  z-index: 6;
  overflow: visible;
  padding: 0 56px 8px;
  margin-left: -40px;
  margin-top: -76px;
}

.hero-kpi-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hero-kpi-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(102, 242, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
}

.hero-kpi-card-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.hero-kpi-card strong {
  display: block;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 850;
  color: #ffffff;
}

.hero-kpi-card strong.kpi-skills,
.hero-kpi-card strong.kpi-roles,
.hero-kpi-card strong.kpi-trends {
  /* Gradients removed, now using solid white color */
}

.hero-kpi-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

/* Analytics panel: graph + insight side by side */

.analytics-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(280px, 0.72fr);
  gap: 16px;
  align-items: stretch;
}

.analytics-panel.panel-full {
  grid-template-columns: 1fr;
}

.panel-graph {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 22px;
  border-radius: 22px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-graph > * {
  position: relative;
  z-index: 2;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderRotate {
  to {
    --angle: 360deg;
  }
}

.panel-insight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.panel-insight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* Border thickness */
  background: conic-gradient(from var(--angle), transparent 50%, rgba(6, 182, 212, 0.9) 100%);
  animation: borderRotate 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.panel-insight > * {
  position: relative;
  z-index: 2;
}

.insight-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.insight-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.9));
}

.insight-label {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-image: linear-gradient(90deg, #4ade80, #22c55e, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.5));
}

.insight-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.insight-top {
  flex: 0 0 auto;
}

.panel-insight h4 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 19px;
  color: #fff;
}

.panel-insight ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.55;
}

.panel-insight .insight-action {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 14px;
  color: #e0e0e0;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(202, 138, 4, 0.02));
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.12);
  font-size: 14px;
  line-height: 1.5;
}

.insight-action p {
  margin: 0;
}

.action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 19px;
  color: #fff;
}

.priority-chip {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.priority-high {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-medium {
  color: #fde047;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.priority-low {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ai-loading {
  min-height: 180px;
  border-radius: 18px;
}

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

.chart-area {
  min-height: 300px;
}

/* Bar lists, ranks, metrics, salary */

.bar-list,
.rank-list,
.metric-grid,
.salary-panel {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row-top,
.rank-row,
.salary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bar-name,
.rank-name {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-value,
.rank-meta,
.salary-value {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: #6b7280;
}

/* Role-based solid bar colors */
.bar-fill.bar-color-0 { background: #1e90ff; }
.bar-fill.bar-color-1 { background: #a855f7; }
.bar-fill.bar-color-2 { background: #34d399; }
.bar-fill.bar-color-3 { background: #f59e0b; }
.bar-fill.bar-color-4 { background: #f472b6; }
.bar-fill.bar-color-5 { background: #38bdf8; }
.bar-fill.bar-color-6 { background: #fb923c; }
.bar-fill.bar-color-7 { background: #a3e635; }
.bar-fill.bar-color-8 { background: #e879f9; }
.bar-fill.bar-color-9 { background: #22d3ee; }
.bar-fill.bar-color-10 { background: #fbbf24; }
.bar-fill.bar-color-11 { background: #4ade80; }

/* Y-order rank-based solid bar colors */
.bar-fill.bar-rank-0 { 
  background: #4ade80; 
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.5); 
} /* Light Green + white glow */
.bar-fill.bar-rank-1 { background: #14b8a6; } /* Sea Green */
.bar-fill.bar-rank-2 { background: #00ffff; } /* Neon */
.bar-fill.bar-rank-3 { background: #38bdf8; } /* Light Blue */
.bar-fill.bar-rank-4 { background: #2563eb; } /* Cobalt Blue */
.bar-fill.bar-rank-5 { background: #f97316; } /* Orange */
.bar-fill.bar-rank-6 { background: #c2410c; } /* Darker Orange */
.bar-fill.bar-rank-7 { background: #991b1b; } /* Deep Red */


.rank-row,
.metric-card,
.salary-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.rank-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #000;
  background: #fff;
  font-weight: 900;
}

.rank-main {
  min-width: 0;
  flex: 1;
}

.rank-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card strong {
  display: block;
  font-family: var(--font-title);
  font-size: 25px;
}

.metric-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.salary-card {
  display: grid;
  gap: 8px;
}

.salary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Skill Bundles */

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.bundle-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.bundle-card-rolewise {
  display: grid;
  gap: 14px;
}

.bundle-role {
  display: block;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bundle-stack {
  display: grid;
  gap: 14px;
}

.bundle-row {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bundle-combo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.bundle-combo:last-child {
  margin-bottom: 0;
}

.bundle-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bundle-skill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.bundle-plus {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Weekly Prep */

.prep-list {
  display: grid;
  gap: 16px;
}

.weekly-prep-panel {
  min-height: auto;
}

.weekly-prep-brief {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(102, 242, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(180deg, rgba(4, 18, 38, 0.74), rgba(1, 8, 20, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 18px rgba(102, 242, 255, 0.026),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.weekly-prep-brief.is-overall {
  border-color: rgba(253, 224, 71, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(253, 224, 71, 0.055), transparent 18rem),
    linear-gradient(180deg, rgba(4, 18, 38, 0.74), rgba(1, 8, 20, 0.88));
}

.weekly-prep-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #66f2ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekly-prep-brief h4 {
  margin: 0 0 18px;
  font-family: var(--font-title);
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.weekly-prep-list {
  display: grid;
  gap: 14px;
}

.prep-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(102, 242, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 30%),
    linear-gradient(180deg, rgba(4, 18, 38, 0.66), rgba(1, 8, 20, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026);
}

.prep-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 16px;
}

.prep-title {
  display: block;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.prep-reason {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Empty / insufficient states */

.empty-state,
.insufficient-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  padding: 24px;
}

.insufficient-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
}

/* SVG charts */

.svg-chart {
  width: 100%;
  height: 300px;
  overflow: visible;
}

.axis-label,
.tick-label {
  fill: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
}

.chart-line.alt-1 { stroke: var(--sea); }
.chart-line.alt-2 { stroke: var(--blue); }
.chart-line.alt-3 { stroke: #bffcff; }
.chart-line.alt-4 { stroke: #8ee7d0; }

.chart-line.role-ai-engineer { stroke: #1e90ff; }
.chart-line.role-machine-learning-engineer { stroke: #ffd700; }
.chart-line.role-applied-scientist { stroke: #dfa822; }
.chart-line.role-data-scientist { stroke: #a855f7; }

.chart-dot.role-ai-engineer { stroke: #1e90ff; }
.chart-dot.role-machine-learning-engineer { stroke: #ffd700; }
.chart-dot.role-applied-scientist { stroke: #dfa822; }
.chart-dot.role-data-scientist { stroke: #a855f7; }

.legend-swatch.role-ai-engineer { background: #1e90ff; }
.legend-swatch.role-machine-learning-engineer { background: #ffd700; }
.legend-swatch.role-applied-scientist { background: #dfa822; }
.legend-swatch.role-data-scientist { background: #a855f7; }

.chart-dot {
  fill: #050505;
  stroke: var(--cyan);
  stroke-width: 2;
}

.chart-bar {
  fill: #6b7280;
  rx: 8;
}

.chart-bar.role-ai-engineer { fill: #1e90ff; }
.chart-bar.role-machine-learning-engineer { fill: #ffd700; }
.chart-bar.role-applied-scientist { fill: #d97706; }
.chart-bar.role-data-scientist { fill: #a855f7; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.placeholder-card {
  display: grid;
  place-items: start;
  min-height: 420px;
  padding: 42px;
  border-radius: 30px;
}

/* Summary cards (home page) */

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

.summary-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  display: block;
  margin-top: 12px;
  font-family: var(--font-title);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 850;
}

.summary-note {
  margin: 8px 0 0;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .analytics-panel,
  .home-hero,
  .analytics-hero {
    grid-template-columns: 1fr;
  }

  .analytics-visual {
    margin-top: 0;
    max-width: none;
  }

  .summary-grid,
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(111, 238, 255, 0.13);
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: auto;
  }

  .sidebar-toggle {
    display: none;
  }

  .brand-title,
  .app-shell.sidebar-collapsed .brand-title,
  .app-shell.sidebar-collapsed .nav-label,
  .app-shell.sidebar-collapsed .sidebar-footer span:not(.status-dot) {
    width: auto;
    max-width: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.sidebar-collapsed .nav-item {
    justify-content: flex-start;
    gap: 12px;
    padding-inline: 12px;
  }

  .sidebar-footer {
    position: static;
    margin-top: 14px;
  }
  .app-main {
    margin-left: 0;
    padding: 18px 14px 40px;
  }

  .app-shell.sidebar-collapsed .app-main {
    margin-left: 0;
  }

  .topbar,
  .role-strip {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .analytics-hero {
    padding: 24px 16px;
  }

  .summary-grid,
  .home-grid,
  .metric-grid,
  .reality-grid,
  .loading-grid {
    grid-template-columns: 1fr;
  }
}


/* ============ Roadmap page ============ */
.roadmap-active .topbar {
  display: none;
}

.roadmap-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  min-height: clamp(330px, 38vw, 480px);
  margin: -26px calc(0px - clamp(22px, 3vw, 44px)) 8px;
  padding: clamp(34px, 4.6vw, 66px) clamp(24px, 5vw, 64px) clamp(42px, 5vw, 72px);
  border-radius: 0;
  background: #000;
  isolation: isolate;
}

.roadmap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.03) 46%, #000 100%);
}

.roadmap-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.62) 58%, #000 100%);
}

.roadmap-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.86;
  filter: saturate(1.08) contrast(1.05);
  pointer-events: none;
}

.roadmap-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 980px;
}

.roadmap-hero-copy h2 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-title);
  font-size: clamp(33px, 5vw, 71px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  color: #fff;
}

.roadmap-hero-copy h2 span {
  display: inline-block;
  padding-bottom: 0.12em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.roadmap-hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.86);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.58;
  font-weight: 600;
}

.roadmap-progress-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(158px, 1fr));
  gap: clamp(28px, 3.3vw, 56px);
  width: min(1080px, 100%);
  margin-top: clamp(26px, 3vw, 40px);
  isolation: isolate;
  overflow: visible;
}

.roadmap-progress-flow::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(102, 242, 255, 0.14), rgba(45, 255, 179, 0.18), rgba(102, 242, 255, 0.14), transparent);
  transform: translateY(-50%);
  z-index: 0;
}

.roadmap-step-card {
  position: relative;
  z-index: 2;
  min-height: 176px;
  padding: 18px 18px 18px;
  border: 1px solid rgba(210, 255, 255, 0.28);
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    radial-gradient(circle at 50% 35%, rgba(45, 255, 179, 0.11), transparent 38%),
    linear-gradient(180deg, rgba(4, 16, 27, 0.78), rgba(1, 7, 13, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(210, 255, 255, 0.10),
    0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-origin: center;
  animation: roadmapCardActive 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  overflow: visible;
  will-change: transform, box-shadow, border-color;
}

.roadmap-step-card:nth-child(2) { animation-delay: 1.2s; }
.roadmap-step-card:nth-child(3) { animation-delay: 2.4s; }
.roadmap-step-card:nth-child(4) { animation-delay: 3.6s; }

.roadmap-step-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(102, 242, 255, 0.22), transparent 22%, transparent 72%, rgba(45, 255, 179, 0.16)),
    linear-gradient(90deg, rgba(45, 255, 179, 0.18), transparent 28%, transparent 72%, rgba(102, 242, 255, 0.18));
  opacity: 0.2;
  filter: blur(0.2px);
  animation: roadmapCardAura 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.roadmap-step-card:nth-child(2)::before { animation-delay: 1.2s; }
.roadmap-step-card:nth-child(3)::before { animation-delay: 2.4s; }
.roadmap-step-card:nth-child(4)::before { animation-delay: 3.6s; }

.roadmap-step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  z-index: 1;
  width: calc(clamp(28px, 3.3vw, 56px) + 10px);
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 3px 50%, rgba(102, 242, 255, 0.95) 0 4px, rgba(102, 242, 255, 0.22) 5px, transparent 7px),
    radial-gradient(circle at calc(100% - 3px) 50%, rgba(45, 255, 179, 0.95) 0 4px, rgba(45, 255, 179, 0.2) 5px, transparent 7px),
    linear-gradient(90deg, transparent 0%, rgba(102, 242, 255, 0.22) 16%, rgba(45, 255, 179, 0.34) 50%, rgba(102, 242, 255, 0.22) 84%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(102, 242, 255, 0.34) 0 3px, transparent 3px 9px);
  background-size: auto, auto, 220% 2px, 16px 2px;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  box-shadow: 0 0 16px rgba(45, 255, 179, 0.16);
  opacity: 0.26;
  transform: translateY(-50%);
  animation: roadmapConnectorPulse 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.roadmap-step-card:nth-child(2)::after { animation-delay: 1.2s; }
.roadmap-step-card:nth-child(3)::after { animation-delay: 2.4s; }

.roadmap-step-index {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(45, 255, 179, 0.52);
  background: rgba(1, 18, 22, 0.74);
  color: var(--sea);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(45, 255, 179, 0.12);
}

.roadmap-step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 42px auto 18px;
  border-radius: 999px;
  color: #6effdf;
  border: 1px solid rgba(102, 242, 255, 0.38);
  background:
    radial-gradient(circle at 50% 42%, rgba(102, 242, 255, 0.22), rgba(45, 255, 179, 0.12) 56%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow:
    0 0 18px rgba(102, 242, 255, 0.18),
    inset 0 0 22px rgba(45, 255, 179, 0.12);
  animation: roadmapIconGlow 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.roadmap-step-card:nth-child(2) .roadmap-step-icon { animation-delay: 1.2s; }
.roadmap-step-card:nth-child(3) .roadmap-step-icon { animation-delay: 2.4s; }
.roadmap-step-card:nth-child(4) .roadmap-step-icon { animation-delay: 3.6s; }

.roadmap-step-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(102, 242, 255, 0.34));
}

.roadmap-step-card h3 {
  display: block;
  position: relative;
  color: #fff;
  font-family: var(--font-title);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 850;
  text-align: center;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.12);
}

.roadmap-step-card h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin: 11px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #2dffb3, #66f2ff, transparent);
  box-shadow: 0 0 10px rgba(45, 255, 179, 0.48);
}

.roadmap-step-card p {
  max-width: 188px;
  margin: 11px auto 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  line-height: 1.36;
  font-weight: 500;
  text-align: center;
}

@keyframes roadmapCardActive {
  0%, 100% {
    transform: translateY(0) scale(1);
    border-color: rgba(210, 255, 255, 0.28);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
      radial-gradient(circle at 50% 35%, rgba(45, 255, 179, 0.11), transparent 38%),
      linear-gradient(180deg, rgba(4, 16, 27, 0.78), rgba(1, 7, 13, 0.84));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -1px 0 rgba(210, 255, 255, 0.10),
      0 18px 48px rgba(0, 0, 0, 0.34);
  }
  5%, 22% {
    transform: translateY(-9px) scale(1.026);
    border-color: rgba(245, 255, 255, 0.9);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
      radial-gradient(circle at 50% 32%, rgba(45, 255, 179, 0.17), transparent 40%),
      linear-gradient(180deg, rgba(5, 30, 39, 0.84), rgba(1, 8, 14, 0.88));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.7),
      0 0 0 2px rgba(102, 242, 255, 0.42),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -1px 0 rgba(210, 255, 255, 0.24),
      0 22px 46px rgba(0, 0, 0, 0.38),
      0 0 22px rgba(255, 255, 255, 0.22),
      0 0 38px rgba(45, 255, 179, 0.34),
      0 0 72px rgba(102, 242, 255, 0.16);
  }
  31% {
    transform: translateY(0) scale(1);
    border-color: rgba(210, 255, 255, 0.28);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -1px 0 rgba(210, 255, 255, 0.10),
      0 18px 48px rgba(0, 0, 0, 0.34);
  }
}

@keyframes roadmapCardAura {
  0%, 100% {
    opacity: 0.22;
    filter: blur(0.15px);
  }
  5%, 22% {
    opacity: 0.92;
    filter: blur(0.12px) drop-shadow(0 0 10px rgba(255, 255, 255, 0.34)) drop-shadow(0 0 18px rgba(45, 255, 179, 0.35));
  }
  31% {
    opacity: 0.22;
    filter: blur(0.15px);
  }
}

@keyframes roadmapIconGlow {
  0%, 100% {
    color: #6effdf;
    border-color: rgba(102, 242, 255, 0.38);
    box-shadow:
      0 0 18px rgba(102, 242, 255, 0.18),
      inset 0 0 22px rgba(45, 255, 179, 0.12);
  }
  5%, 22% {
    color: #f6ffff;
    border-color: rgba(245, 255, 255, 0.78);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.34),
      0 0 18px rgba(255, 255, 255, 0.24),
      0 0 28px rgba(45, 255, 179, 0.34),
      0 0 48px rgba(102, 242, 255, 0.16),
      inset 0 0 22px rgba(255, 255, 255, 0.12),
      inset 0 0 22px rgba(45, 255, 179, 0.2);
  }
  31% {
    color: #6effdf;
    border-color: rgba(102, 242, 255, 0.38);
    box-shadow:
      0 0 18px rgba(102, 242, 255, 0.18),
      inset 0 0 22px rgba(45, 255, 179, 0.12);
  }
}

@keyframes roadmapConnectorPulse {
  0%, 13% {
    opacity: 0.18;
    filter: blur(0) drop-shadow(0 0 0 transparent);
    background-position: center, center, -160% center, -36px center;
  }
  16% {
    opacity: 0.65;
    filter: blur(0) drop-shadow(0 0 10px rgba(102, 242, 255, 0.72));
  }
  23% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 16px rgba(45, 255, 179, 0.76));
    background-position: center, center, 160% center, 36px center;
  }
  28%, 100% {
    opacity: 0.22;
    filter: blur(0) drop-shadow(0 0 0 transparent);
  }
}
@media (max-width: 900px) {
  .roadmap-hero {
    min-height: 420px;
    margin: -18px -14px 8px;
    padding: 44px 20px 62px;
  }

  .roadmap-bg-video {
    height: 110%;
    object-position: center top;
  }

  .roadmap-progress-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-progress-flow::before,
  .roadmap-progress-flow::after,
  .roadmap-step-card::after {
    display: none;
  }
}
.roadmap-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.roadmap-upload {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(102, 242, 255, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 14%, rgba(45, 255, 179, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(8, 24, 34, 0.74), rgba(2, 8, 14, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 34px rgba(45, 255, 179, 0.08),
    0 0 28px rgba(102, 242, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.26);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.roadmap-upload.is-dragging {
  border-color: rgba(45, 255, 179, 0.76);
  background:
    radial-gradient(circle at 16% 14%, rgba(45, 255, 179, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(9, 31, 38, 0.78), rgba(2, 10, 15, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 0 42px rgba(45, 255, 179, 0.14),
    0 0 34px rgba(45, 255, 179, 0.16),
    0 18px 46px rgba(0, 0, 0, 0.26);
}

.upload-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 180ms ease, background 180ms ease;
}

.upload-trigger:hover {
  border-color: var(--sea);
  background: rgba(102, 242, 255, 0.07);
}

.upload-icon {
  font-size: 1.1rem;
  color: var(--sea);
}

.upload-text {
  font-weight: 600;
}

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

.upload-filename {
  color: var(--cyan);
  font-size: 0.9rem;
  word-break: break-all;
}

.roadmap-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.roadmap-controls label {
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.roadmap-controls select {
  min-width: 200px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
}

.roadmap-controls .primary-button {
  margin-left: auto;
}

.roadmap-loading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

.roadmap-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(102, 242, 255, 0.18);
  border-top-color: var(--sea);
  border-radius: 50%;
  animation: roadmap-spin 0.8s linear infinite;
}

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

.roadmap-result {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 18px;
  isolation: isolate;
}

.roadmap-result::before {
  content: "";
  position: absolute;
  inset: -18px -12px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(102, 242, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 242, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 84% 8%, rgba(102, 242, 255, 0.10), transparent 26rem),
    radial-gradient(circle at 8% 38%, rgba(45, 255, 179, 0.07), transparent 22rem);
  background-size: 34px 34px, 34px 34px, auto, auto;
  opacity: 0.7;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 92%, transparent 100%);
  animation: roadmapGridDrift 18s linear infinite;
}

.roadmap-result > * {
  position: relative;
  z-index: 1;
  animation: roadmapReveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.roadmap-result > *:nth-child(1) { animation-delay: 0ms; }
.roadmap-result > *:nth-child(2) { animation-delay: 90ms; }
.roadmap-result > *:nth-child(3) { animation-delay: 170ms; }
.roadmap-result > *:nth-child(4) { animation-delay: 250ms; }
.roadmap-result > *:nth-child(5) { animation-delay: 330ms; }
.roadmap-result > *:nth-child(6) { animation-delay: 410ms; }
.roadmap-result > *:nth-child(7) { animation-delay: 490ms; }
.roadmap-result > *:nth-child(8) { animation-delay: 570ms; }
.roadmap-result > *:nth-child(9) { animation-delay: 650ms; }

.readiness-card,
.score-card,
.roadmap-panel,
.project-card,
.coach-card {
  border: 1px solid rgba(102, 242, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
    radial-gradient(circle at 86% 0%, rgba(102, 242, 255, 0.055), transparent 22rem),
    linear-gradient(180deg, rgba(5, 16, 27, 0.74), rgba(2, 7, 13, 0.90));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.038),
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 18px 48px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms ease,
    box-shadow 360ms ease,
    background 360ms ease;
}

.readiness-card:hover,
.score-card:hover,
.roadmap-panel:hover,
.project-card:hover,
.coach-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(102, 242, 255, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 24px 54px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(102, 242, 255, 0.07);
}

.roadmap-result-actions {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  margin: 0 0 -4px;
}

.roadmap-download-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(102, 242, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(45, 255, 179, 0.18), rgba(102, 242, 255, 0.10)),
    rgba(2, 10, 18, 0.84);
  color: #eaffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 24px rgba(102, 242, 255, 0.10);
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.roadmap-download-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(45, 255, 179, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 30px rgba(45, 255, 179, 0.16),
    0 0 44px rgba(102, 242, 255, 0.10);
}

.roadmap-download-button:disabled {
  cursor: wait;
  opacity: 0.68;
}
.readiness-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 24px;
}

.readiness-gauge {
  --score-a: #ff2448;
  --score-b: #c90024;
  --score-glow: rgba(255, 36, 72, 0.16);
  --score-ring: rgba(255, 36, 72, 0.58);
  position: relative;
  display: grid;
  place-content: center;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  flex: 0 0 auto;
  background:
    radial-gradient(closest-side, rgba(3, 10, 17, 0.96) 70%, transparent 71%),
    conic-gradient(from -90deg, var(--score-a) 0%, var(--score-b) calc(var(--score) * 1%), rgba(255, 255, 255, 0.07) 0);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 0 18px var(--score-glow);
  animation: roadmapGaugePulse 4.8s ease-in-out infinite;
}

.readiness-gauge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.readiness-gauge::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid var(--score-ring);
  opacity: 0.55;
  filter: blur(0.2px);
}

.readiness-gauge.tier-mid {
  --score-a: #f7ff4a;
  --score-b: #facc15;
  --score-glow: rgba(247, 255, 74, 0.14);
  --score-ring: rgba(247, 255, 74, 0.50);
}

.readiness-gauge.tier-high {
  --score-a: rgba(114, 255, 19, 0.78);
  --score-b: rgba(181, 255, 132, 0.62);
  --score-glow: rgba(114, 255, 19, 0.10);
  --score-ring: rgba(181, 255, 132, 0.34);
}

.readiness-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-title);
  font-size: 2.55rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  color: #f8ffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.readiness-max {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.readiness-copy h3 {
  font-family: var(--font-title);
  font-size: 1.65rem;
  margin: 4px 0;
}

.readiness-sub {
  color: var(--text-soft);
  margin: 0;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.score-card {
  position: relative;
  overflow: hidden;
  padding: 15px 17px;
  border-radius: 18px;
  animation: roadmapReveal 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.score-card:nth-child(1) { animation-delay: 120ms; }
.score-card:nth-child(2) { animation-delay: 180ms; }
.score-card:nth-child(3) { animation-delay: 240ms; }
.score-card:nth-child(4) { animation-delay: 300ms; }
.score-card:nth-child(5) { animation-delay: 360ms; }

.score-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 242, 255, 0.42), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.score-card:hover::after { opacity: 1; }

.score-card.tier-low {
  border-color: rgba(255, 36, 72, 0.22);
  box-shadow: inset 0 0 18px rgba(255, 36, 72, 0.028), 0 18px 48px rgba(0, 0, 0, 0.30);
}

.score-card.tier-mid {
  border-color: rgba(247, 255, 74, 0.22);
  box-shadow: inset 0 0 18px rgba(247, 255, 74, 0.028), 0 18px 48px rgba(0, 0, 0, 0.30);
}

.score-card.tier-high {
  border-color: rgba(114, 255, 19, 0.20);
  box-shadow: inset 0 0 18px rgba(114, 255, 19, 0.024), 0 18px 48px rgba(0, 0, 0, 0.30);
}

.score-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.score-label {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.score-num {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #f8ffff;
}

.score-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

.score-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 760ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px currentColor;
}

.score-fill.tier-high {
  color: rgba(114, 255, 19, 0.68);
  background: linear-gradient(90deg, rgba(114, 255, 19, 0.52), rgba(184, 255, 130, 0.76));
}
.score-fill.tier-mid {
  color: #f7ff4a;
  background: linear-gradient(90deg, #facc15, #f7ff4a);
}
.score-fill.tier-low {
  color: #ff2448;
  background: linear-gradient(90deg, #c90024, #ff2448);
}

.roadmap-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.roadmap-panel {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 22px;
}

.roadmap-panel::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  opacity: 0.35;
}

.roadmap-panel .panel-header {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.roadmap-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.12rem;
  margin: 0;
}

.panel-strength {
  border-color: rgba(114, 255, 19, 0.24);
  background:
    radial-gradient(circle at 88% 0%, rgba(114, 255, 19, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(7, 24, 18, 0.74), rgba(2, 8, 10, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.065),
    inset 0 0 38px rgba(255, 255, 255, 0.04),
    inset 0 0 42px rgba(114, 255, 19, 0.075),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.panel-strength h3::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid rgba(184, 255, 130, 0.78);
  filter: drop-shadow(0 0 10px rgba(114, 255, 19, 0.34));
}

.panel-weakness {
  border-color: rgba(255, 36, 72, 0.26);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 36, 72, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(30, 8, 16, 0.76), rgba(9, 2, 8, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(255, 36, 72, 0.10),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.panel-weakness h3::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 13px solid rgba(255, 36, 72, 0.78);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  filter: drop-shadow(0 0 10px rgba(255, 36, 72, 0.34));
}

.panel-missing {
  border-color: rgba(56, 189, 248, 0.34);
  background:
    radial-gradient(circle at 84% 0%, rgba(56, 189, 248, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(8, 20, 40, 0.78), rgba(2, 7, 16, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 42px rgba(56, 189, 248, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.panel-missing h3::before {
  content: "\1F9E9";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
  font-size: 0.86rem;
}

.panel-gap {
  border-color: rgba(247, 255, 74, 0.30);
  background:
    radial-gradient(circle at 84% 0%, rgba(247, 255, 74, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(30, 28, 8, 0.72), rgba(10, 8, 2, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(247, 255, 74, 0.095),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.panel-gap h3::before {
  content: "\1F525";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(247, 255, 74, 0.10);
  box-shadow: 0 0 18px rgba(247, 255, 74, 0.18);
  font-size: 0.86rem;
}


.panel-projects {
  border-color: rgba(167, 139, 250, 0.30);
  background:
    radial-gradient(circle at 86% 0%, rgba(167, 139, 250, 0.08), transparent 20rem),
    linear-gradient(180deg, rgba(6, 13, 26, 0.76), rgba(2, 7, 13, 0.90));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 26px rgba(167, 139, 250, 0.055),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.panel-projects .project-card {
  border-color: rgba(102, 242, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 26%),
    linear-gradient(180deg, rgba(5, 16, 27, 0.72), rgba(2, 7, 13, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 16px 36px rgba(0, 0, 0, 0.24);
}

.panel-projects .project-card:hover {
  border-color: rgba(102, 242, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.panel-timeline {
  border-color: rgba(45, 255, 179, 0.22);
  background:
    radial-gradient(circle at 85% 0%, rgba(45, 255, 179, 0.12), transparent 20rem),
    linear-gradient(180deg, rgba(4, 20, 24, 0.76), rgba(2, 7, 12, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 44px rgba(45, 255, 179, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.panel-resume {
  border-color: rgba(114, 255, 19, 0.16);
  background:
    radial-gradient(circle at 88% 0%, rgba(114, 255, 19, 0.035), transparent 16rem),
    linear-gradient(180deg, rgba(5, 16, 27, 0.74), rgba(2, 7, 13, 0.90));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 22px rgba(114, 255, 19, 0.028),
    0 18px 48px rgba(0, 0, 0, 0.30);
}
.roadmap-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.roadmap-list li {
  position: relative;
  padding-left: 23px;
  color: var(--text-soft);
  line-height: 1.5;
}

.roadmap-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66f2ff;
  box-shadow: 0 0 10px rgba(102, 242, 255, 0.55);
}

.roadmap-list.kind-strength li::before {
  background: rgba(114, 255, 19, 0.88);
  box-shadow: 0 0 12px rgba(114, 255, 19, 0.58);
}

.roadmap-list.kind-weakness li::before {
  background: #ff2448;
  box-shadow: 0 0 12px rgba(255, 36, 72, 0.68);
}

.roadmap-list.kind-gap li::before {
  background: #f7ff4a;
  box-shadow: 0 0 12px rgba(247, 255, 74, 0.58);
}

.roadmap-list.kind-resume li::before {
  background: rgba(114, 255, 19, 0.88);
  box-shadow: 0 0 12px rgba(114, 255, 19, 0.58);
}

.roadmap-list.kind-goal li::before,
.roadmap-list.kind-prep li::before {
  background: var(--sea);
  box-shadow: 0 0 12px rgba(45, 255, 179, 0.52);
}

.chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-chip {
  padding: 6px 13px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(102, 242, 255, 0.06));
  color: #dff8ff;
  font-size: 0.82rem;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.08);
}

.skill-chip.subtle {
  border-color: rgba(102, 242, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  box-shadow: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
}

.project-card h4 {
  font-family: var(--font-title);
  margin: 0;
  font-size: 1.02rem;
}

.project-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  animation: roadmapReveal 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.timeline-item:nth-child(1) { animation-delay: 120ms; }
.timeline-item:nth-child(2) { animation-delay: 220ms; }
.timeline-item:nth-child(3) { animation-delay: 320ms; }
.timeline-item:nth-child(4) { animation-delay: 420ms; }

.timeline-dot {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea), var(--cyan));
  color: #04121a;
  font-weight: 850;
  font-family: var(--font-title);
  box-shadow: 0 0 18px rgba(45, 255, 179, 0.28);
}

.timeline-body {
  flex: 1;
  padding-bottom: 4px;
  border-left: 1px solid rgba(102, 242, 255, 0.16);
  margin-left: -16px;
  padding-left: 30px;
}

.timeline:last-child .timeline-item:last-child .timeline-body {
  border-color: transparent;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-head h4 {
  font-family: var(--font-title);
  margin: 0;
  font-size: 1.05rem;
}

.timeline-duration {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(102, 242, 255, 0.1);
  color: var(--cyan);
  font-size: 0.76rem;
  border: 1px solid rgba(102, 242, 255, 0.14);
}

.timeline-focus {
  margin: 0 0 10px;
  color: var(--text-soft);
}


.panel-timeline .timeline-item {
  position: relative;
}

.panel-timeline .timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  width: 2px;
  height: calc(100% + 18px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(45, 255, 179, 0.95), rgba(102, 242, 255, 0.65), transparent);
  box-shadow: 0 0 16px rgba(45, 255, 179, 0.36);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  animation: roadmapPhaseCurrent 7.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.panel-timeline .timeline-item:nth-child(1)::after { animation-delay: 0.8s; }
.panel-timeline .timeline-item:nth-child(2)::after { animation-delay: 3.2s; }

.panel-timeline .timeline-dot {
  animation: roadmapPhaseDot 7.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.panel-timeline .timeline-item:nth-child(2) .timeline-dot { animation-delay: 2.4s; }
.panel-timeline .timeline-item:nth-child(3) .timeline-dot { animation-delay: 4.8s; }

.panel-timeline .timeline-head h4 {
  transform-origin: left center;
  animation: roadmapPhaseTitle 7.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.panel-timeline .timeline-item:nth-child(2) .timeline-head h4 { animation-delay: 2.4s; }
.panel-timeline .timeline-item:nth-child(3) .timeline-head h4 { animation-delay: 4.8s; }

.panel-prep {
  border-color: rgba(102, 242, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 24%),
    linear-gradient(180deg, rgba(5, 16, 27, 0.74), rgba(2, 7, 13, 0.90));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 24px rgba(102, 242, 255, 0.045),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.panel-timeline .timeline-item .roadmap-list.kind-goal li::before {
  animation: roadmapPhaseBullet 7.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.panel-timeline .timeline-item:nth-child(2) .roadmap-list.kind-goal li::before { animation-delay: 2.4s; }
.panel-timeline .timeline-item:nth-child(3) .roadmap-list.kind-goal li::before { animation-delay: 4.8s; }
.resource-list {
  display: grid;
  gap: 10px;
}

.resource-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(102, 242, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.resource-row.is-aceml {
  border-color: rgba(45, 255, 179, 0.26);
  background: rgba(45, 255, 179, 0.07);
}

.resource-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.resource-name {
  font-weight: 650;
}

.resource-source {
  color: var(--muted);
  font-size: 0.8rem;
}

.resource-type {
  color: var(--cyan);
  font-size: 0.8rem;
  white-space: nowrap;
}

.coach-card {
  padding: 24px 28px;
  border-color: rgba(247, 255, 74, 0.30);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 0%, rgba(247, 255, 74, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(247, 255, 74, 0.10), rgba(251, 191, 36, 0.045));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 38px rgba(247, 255, 74, 0.075),
    0 0 42px rgba(247, 255, 74, 0.10),
    0 18px 48px rgba(0, 0, 0, 0.30);
}

.coach-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #f7ff4a;
}

.coach-icon {
  display: grid;
  place-content: center;
  width: 28px;
  height: 24px;
  border-radius: 999px;
  background: rgba(247, 255, 74, 0.14);
  box-shadow: 0 0 18px rgba(247, 255, 74, 0.22);
}

.coach-card p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--text);
}

.roadmap-empty {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

@keyframes roadmapPhaseDot {
  0%, 26%, 100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(45, 255, 179, 0.28);
  }
  7%, 18% {
    transform: scale(1.13);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36), 0 0 22px rgba(45, 255, 179, 0.62), 0 0 44px rgba(102, 242, 255, 0.24);
  }
}

@keyframes roadmapPhaseTitle {
  0%, 26%, 100% {
    transform: translateY(0) scale(1);
    color: #fff;
    text-shadow: none;
  }
  7%, 18% {
    transform: translateY(-2px) scale(1.025);
    color: #f8ffff;
    text-shadow: 0 0 16px rgba(102, 242, 255, 0.26);
  }
}

@keyframes roadmapPhaseCurrent {
  0%, 12%, 100% {
    opacity: 0;
    transform: scaleY(0);
  }
  18% {
    opacity: 0.95;
    transform: scaleY(1);
  }
  28% {
    opacity: 0;
    transform: scaleY(1);
  }
}


@keyframes roadmapPhaseBullet {
  0%, 26%, 100% {
    transform: scale(1);
    background: var(--sea);
    box-shadow: 0 0 12px rgba(45, 255, 179, 0.52);
  }
  7%, 18% {
    transform: scale(1.42);
    background: #f8ffff;
    box-shadow:
      0 0 0 2px rgba(45, 255, 179, 0.25),
      0 0 14px rgba(255, 255, 255, 0.38),
      0 0 24px rgba(45, 255, 179, 0.72),
      0 0 42px rgba(102, 242, 255, 0.28);
  }
}
@keyframes roadmapReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes roadmapGridDrift {
  from { background-position: 0 0, 0 0, center, center; }
  to { background-position: 34px 34px, 34px 34px, center, center; }
}

@keyframes roadmapGaugePulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.18); }
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-bottom: 24px;
}

/* Career analytics restore: section layout and market pulse */
.analytics-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(410px, 38vw, 540px);
  margin: -26px calc(0px - clamp(22px, 3vw, 44px)) 8px;
  padding: clamp(58px, 6vw, 86px) clamp(24px, 5vw, 64px) clamp(64px, 6vw, 92px);
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  backdrop-filter: none;
  isolation: isolate;
}

.analytics-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.84;
  filter: saturate(1.06) contrast(1.05);
  pointer-events: none;
}

.analytics-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.74) 34%, rgba(0, 0, 0, 0.28) 66%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 44%, #000 100%);
}

.analytics-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: block;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.58) 56%, #000 100%);
}

.analytics-hero-copy {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  margin-top: -74px;
  margin-left: -40px;
  padding-top: 8px;
}

.analytics-hero-copy .analytics-main-title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
}

.rotating-subtext {
  height: 42px;
  margin: 18px 0 16px;
  font-size: clamp(20px, 2.15vw, 28px);
}

.market-pulse-strip {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(251, 191, 36, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.095), rgba(249, 115, 22, 0.045) 48%, rgba(0, 0, 0, 0.34));
  border: 1px solid rgba(251, 191, 36, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px rgba(251, 191, 36, 0.15),
    0 0 48px rgba(249, 115, 22, 0.09);
  backdrop-filter: blur(10px);
  width: fit-content;
  max-width: min(100%, 680px);
  min-height: 124px;
}

.pulse-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 22px;
  border-right: 1px solid rgba(251, 191, 36, 0.22);
}

.pulse-icon {
  font-size: 17px;
  color: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.82));
}

.pulse-label {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-image: linear-gradient(90deg, #fbbf24, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.42));
}

.pulse-ticker-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.pulse-list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
  font-size: 16px;
  letter-spacing: 0.01em;
  word-spacing: 0.08em;
  color: rgba(255, 237, 213, 0.78);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-list strong {
  color: #fff7ed;
  font-weight: 800;
  font-size: 17px;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.26);
}

.pulse-item::before {
  content: "\2022";
  color: #fbbf24;
  position: absolute;
  left: -16px;
  top: -1px;
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.8);
}

.analytics-content {
  display: grid;
  gap: 0;
}

.analysis-section {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
}

.analysis-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.analysis-section-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.08;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
}

.analysis-section-title span {
  background-image: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: none;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 0;
}

.analysis-section:first-of-type .analysis-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
}

.panel-graph {
  position: relative;
  overflow: hidden;
  min-height: 276px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 12%, rgba(102, 242, 255, 0.055), transparent 30%),
    #050505;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.compact-graph {
  min-height: 286px;
}
.analysis-section .panel-graph,
.weekly-prep-panel {
  isolation: isolate;
  border-color: rgba(102, 242, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    radial-gradient(circle at 86% 0%, rgba(102, 242, 255, 0.10), transparent 18rem),
    radial-gradient(circle at 10% 100%, rgba(45, 255, 179, 0.06), transparent 16rem),
    linear-gradient(180deg, rgba(3, 14, 30, 0.92), rgba(1, 6, 16, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 30px rgba(102, 242, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.analysis-section .panel-graph::before,
.weekly-prep-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), transparent 28%),
    linear-gradient(180deg, transparent 66%, rgba(102, 242, 255, 0.035));
  opacity: 0.66;
}

.analysis-section .panel-graph:hover,
.weekly-prep-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 242, 255, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 30px rgba(102, 242, 255, 0.05),
    0 24px 56px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(102, 242, 255, 0.07);
}

.analysis-section .rank-row,
.analysis-section .metric-card,
.analysis-section .salary-card,
.analysis-section .bar-row {
  border: 1px solid rgba(102, 242, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(4, 18, 38, 0.74), rgba(1, 8, 20, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.032),
    inset 0 0 18px rgba(102, 242, 255, 0.028),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.analysis-section .bar-row {
  padding: 12px 13px;
  border-radius: 14px;
}

.analysis-section .bundle-row {
  border-color: color-mix(in srgb, var(--bundle-accent, #66f2ff) 46%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 30%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--bundle-accent, #66f2ff) 22%, transparent),
      color-mix(in srgb, var(--bundle-accent-2, #2dffb3) 13%, transparent));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.20);
}

.analysis-section .bundle-skill {
  border: 1px solid color-mix(in srgb, var(--bundle-accent, #66f2ff) 48%, transparent);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--bundle-accent, #66f2ff) 28%, rgba(255,255,255,0.04)),
      color-mix(in srgb, var(--bundle-accent-2, #2dffb3) 18%, rgba(255,255,255,0.03)));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-header {
  gap: 14px;
  margin-bottom: 14px;
}

.chart-area {
  min-height: 230px;
}

.svg-chart {
  height: 230px;
}

.compact-list,
.compact-metrics {
  gap: 10px;
}

.compact-metrics.metric-grid,
.compact-metrics.reality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-insight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.085), rgba(249, 115, 22, 0.04) 52%, rgba(0, 0, 0, 0.36));
  border: 1px solid rgba(251, 191, 36, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 0 22px rgba(251, 191, 36, 0.11),
    0 0 42px rgba(249, 115, 22, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}

.panel-insight::before {
  display: none;
}

.insight-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.insight-icon {
  font-size: 15px;
  color: #fbbf24;
  filter: drop-shadow(0 0 9px rgba(251, 191, 36, 0.72));
}

.insight-label {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-image: linear-gradient(90deg, #fbbf24, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 9px rgba(251, 191, 36, 0.38));
}

.section-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
  align-items: stretch;
}

.panel-insight h4 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: 18px;
  color: #fff7ed;
}

.panel-insight ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
  color: rgba(255, 237, 213, 0.78);
  line-height: 1.48;
  font-size: 14px;
}

.panel-insight .insight-action {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 14px;
  color: #fff7ed;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.10);
  font-size: 14px;
  line-height: 1.48;
}

.section-insight .insight-action strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  color: #fff;
  font-size: 15px;
}

@media (max-width: 1180px) {
  .analysis-grid,
  .analysis-section:first-of-type .analysis-grid,
  .section-insight-grid {
    grid-template-columns: 1fr;
  }

  .analytics-hero-copy {
    margin-top: 0;
    margin-left: 0;
  }
}

@media (max-width: 840px) {
  .analytics-hero {
    min-height: 430px;
    margin: -18px -14px 8px;
    padding: 44px 20px 64px;
  }

  .analytics-bg-video {
    height: 112%;
    object-position: center top;
  }

  .analytics-hero::after {
    height: 42%;
  }

  .analytics-hero-copy {
    margin-top: 0;
    margin-left: 0;
  }

  .market-pulse-strip {
    flex-direction: column;
    min-height: 0;
  }

  .pulse-brand {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  }
}

/* Role demand horizontal bar chart */
#roleDemandChart {
  min-height: 430px;
}

.role-demand-chart-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: stretch;
}

.role-demand-svg {
  width: 100%;
  height: 390px;
  min-height: 0;
  display: block;
}

.role-demand-bar {
  shape-rendering: crispEdges;
  filter: none;
}

.role-demand-legend {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  min-width: 0;
}

.role-demand-legend-item {
  display: grid;
  grid-template-columns: 10px auto;
  gap: 10px;
  align-items: center;
}

.role-demand-swatch {
  width: 10px;
  height: 10px;
  display: block;
}

.role-demand-legend-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.role-demand-legend-main strong {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-demand-count {
  fill: rgba(255, 255, 255, 0.84);
  font-size: 28px;
  font-weight: 900;
}

/* Career analytics hero headline composition */
.analytics-live-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.18em;
  font-family: var(--font-title);
  line-height: 1.08;
}

.analytics-live-title .headline-rotator {
  display: inline-block;
  width: 7.25em;
  height: 1.32em;
  margin: 0;
  font-family: var(--font-title);
  font-size: inherit;
  line-height: 1.08;
  vertical-align: top;
}

.analytics-live-title .rotating-line {
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
  padding-right: 0.18em;
}

.title-suffix {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: #fff;
  line-height: 1.08;
  white-space: nowrap;
}

.analytics-hero-subheadline {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: clamp(23px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

/* ============ Home daily challenge card ============ */
.daily-challenge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  text-align: left;
  margin: 22px 0;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.1), rgba(102, 242, 255, 0.05));
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}
.daily-challenge-card:hover {
  transform: translateY(-2px);
  border-color: var(--sea);
}
.daily-challenge-card h3 {
  font-family: var(--font-title);
  margin: 8px 0 4px;
  font-size: 1.15rem;
}
.daily-challenge-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.dc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(102, 242, 255, 0.14);
  color: var(--cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dc-cta {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--sea);
  white-space: nowrap;
}

/* ============ Question Bank ============ */
.qbank-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(22px, 4vw, 42px);
  min-height: clamp(270px, 26vw, 340px);
  margin: -26px calc(0px - clamp(22px, 3vw, 44px)) 8px;
  padding: clamp(30px, 3.6vw, 50px) clamp(24px, 5vw, 64px) clamp(34px, 4vw, 54px);
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  isolation: isolate;
}
.qbank-bg-video {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.82;
  filter: saturate(1.05) contrast(1.04);
  pointer-events: none;
}

.app-shell.sidebar-collapsed .qbank-bg-video {
  height: 104%;
  object-position: center 58%;
}
.qbank-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.64) 34%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.62) 82%, #000 100%);
}
.qbank-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 52%, #000 100%);
}
.questions-active .topbar {
  display: none;
}
.qbank-hero-copy,
.qbank-stats {
  position: relative;
  z-index: 3;
}
.qbank-hero-copy {
  display: grid;
  gap: 12px;
}
.qbank-hero-copy h1 {
  max-width: 820px;
  font-family: var(--font-title);
  font-size: clamp(31px, 3.85vw, 59px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}
.qbank-hero-copy h1 .qline {
  display: block;
  width: fit-content;
  padding-bottom: 0.14em;
}
.qbank-hero-copy h1 .qline-accent {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.qbank-hero-copy p {
  max-width: 600px;
  margin: -6px 0 0;
  color: #aebbd0;
  font-size: 0.98rem;
}
.qbank-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  margin-top: 2px;
  padding: 6px;
  border: 1px solid rgba(102, 242, 255, 0.16);
  border-radius: 16px;
  background: rgba(2, 10, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}
.qtab {
  min-height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.qtab:hover {
  color: var(--text);
  background: rgba(102, 242, 255, 0.07);
}
.qtab.is-active {
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.96), rgba(102, 242, 255, 0.98), rgba(124, 201, 255, 0.92));
  color: #04121a;
  box-shadow: 0 0 28px rgba(102, 242, 255, 0.22);
}
.qbank-stats {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(126px, 1fr));
  gap: 0;
  min-width: min(360px, 100%);
  padding: 8px;
  border: 1px solid rgba(102, 242, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(4, 13, 24, 0.82), rgba(8, 23, 38, 0.58));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}
.xp-chip,
.streak-chip {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 9px 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
}
.xp-chip + .streak-chip {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-orb {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(102, 242, 255, 0.08);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.streak-chip .stat-orb {
  border-color: rgba(246, 213, 111, 0.28);
  background: rgba(246, 213, 111, 0.09);
  color: var(--yellow);
}
.xp-chip strong,
.streak-chip strong {
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1;
}
.xp-chip strong { color: var(--sea); }
.streak-chip strong { color: var(--yellow); }
.xp-chip small,
.streak-chip small {
  color: var(--muted);
  font-size: 0.76rem;
}

.qtab-panel { display: none; }
.qtab-panel.is-active {
  display: block;
  margin-top: -8px;
}

.qfilters {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(102, 242, 255, 0.14);
  border-radius: 18px;
  background: rgba(5, 13, 22, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}
.qfilters label {
  display: grid;
  flex: 1 1 210px;
  gap: 7px;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(102, 242, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 30, 48, 0.74), rgba(7, 17, 28, 0.82));
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.qfilters select {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}
.qfilters select option {
  background: #07111c;
  color: var(--text);
}
.qbtn {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(102, 242, 255, 0.08);
  color: var(--text);
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease;
}
.qbtn:hover { border-color: var(--sea); background: rgba(45, 255, 179, 0.1); }
.qbtn.ghost { background: transparent; }
.qfilters .qbtn {
  min-height: 48px;
  padding: 0 20px;
  border-color: rgba(102, 242, 255, 0.28);
  border-radius: 13px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.qfilters .qbtn:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 255, 179, 0.58);
  background: rgba(45, 255, 179, 0.11);
  box-shadow: 0 16px 34px rgba(45, 255, 179, 0.10);
}

.qlist {
  display: grid;
  gap: 14px;
}
.qcard {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.qcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.qcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.q-chip {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(102, 242, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.chip-company {
  color: #7cc9ff;
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.13);
}
.chip-diff-easy {
  color: #7cffc5;
  border-color: rgba(45, 255, 179, 0.34);
  background: rgba(16, 185, 129, 0.16);
}
.chip-diff-medium {
  color: #ffe082;
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.14);
}
.chip-diff-hard {
  color: #ff9aa8;
  border-color: rgba(255, 125, 140, 0.34);
  background: rgba(255, 125, 140, 0.13);
}
.solved-flag { color: var(--sea); font-size: 0.8rem; white-space: nowrap; }
.qcard-question {
  margin: 0 0 14px;
  line-height: 1.55;
}
.qcard-answer {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--sea);
  background: var(--surface-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text-soft);
  line-height: 1.55;
}
.reveal-btn,
.solve-btn,
#startChallenge {
  min-height: 42px;
  padding-inline: 22px;
  border: 1px solid rgba(45, 255, 179, 0.52);
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.95), rgba(102, 242, 255, 0.95));
  color: #001614;
  box-shadow:
    0 14px 36px rgba(45, 255, 179, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.reveal-btn:hover,
.solve-btn:hover,
#startChallenge:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(210, 255, 255, 0.86);
  background: linear-gradient(135deg, #2dffb3, #66f2ff 58%, #7cc9ff);
  color: #001614;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 18px 42px rgba(45, 255, 179, 0.24),
    0 0 34px rgba(102, 242, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  filter: saturate(1.06) brightness(1.04);
}

.reveal-btn:active,
.solve-btn:active,
#startChallenge:active {
  transform: translateY(0) scale(0.995);
}
.self-rate { margin-top: 12px; }
.self-rate-label { font-size: 0.82rem; color: var(--muted); }
.rate-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rate-btn {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.82rem;
}
.rate-btn.is-active { border-color: var(--sea); color: var(--sea); background: rgba(45, 255, 179, 0.08); }
@media (max-width: 900px) {
  .qbank-header {
    grid-template-columns: 1fr;
    min-height: 330px;
    margin: -18px -14px 8px;
    padding: 30px 20px 54px;
  }
  .qbank-bg-video {
    height: 109%;
    object-position: center top;
  }
  .qbank-header::after {
    height: 42%;
  }
  .qbank-stats {
    width: 100%;
    min-width: 0;
  }
  .qbank-tabs {
    width: 100%;
    flex-wrap: wrap;
  }
  .qtab {
    flex: 1 1 auto;
  }
}
.mastery-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.mastery-row:empty { margin: 0; }
.mastery-title { font-size: 0.8rem; color: var(--muted); }
.mastery-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--text-soft); }
.mastery-track { width: 90px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.mastery-fill { height: 100%; background: linear-gradient(90deg, var(--sea), var(--cyan)); }

/* coding workspace */
.coding-title { font-family: var(--font-title); margin: 6px 0 8px; font-size: 1.05rem; }
.coding-card-desc { margin: 0 0 12px; color: var(--text-soft); font-size: 0.88rem; line-height: 1.5; }
.coding-workspace { display: grid; gap: 14px; }
.coding-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.coding-left,
.coding-right { display: grid; gap: 14px; align-content: start; min-width: 0; }
.coding-left {
  max-height: 74vh;
  overflow-y: auto;
  padding-right: 8px;
}
@media (max-width: 900px) {
  .coding-split { grid-template-columns: 1fr; }
  .coding-left { max-height: none; }
}
.coding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.coding-head h3 { font-family: var(--font-title); margin: 0; }
.coding-prompt { margin: 0; line-height: 1.6; color: var(--text-soft); }
.coding-signature {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #05090e;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.82rem;
  overflow-x: auto;
}
.code-editor {
  width: 100%;
  min-height: 56vh;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #05090e;
  color: #d7f7ff;
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  resize: vertical;
}
.coding-actions { display: flex; align-items: center; gap: 14px; }
.coding-hint { color: var(--muted); font-size: 0.82rem; }
.test-results { display: grid; gap: 6px; }
.test-pass { color: var(--sea); font-weight: 600; margin: 0; }
.test-fail { color: var(--red); font-weight: 600; margin: 0; }
.running { color: var(--text-soft); margin: 0; }
.test-case { padding: 8px 12px; border-radius: 9px; font-size: 0.82rem; background: var(--surface-soft); }
.test-case.ok { color: var(--sea); }
.test-case.bad { color: var(--red); }
.coding-approach summary { cursor: pointer; color: var(--text-soft); font-size: 0.88rem; }
.coding-approach p { color: var(--text-soft); line-height: 1.55; }
.input-schema-label,
.input-schema { display: block; }
.input-schema-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.public-tests { display: grid; gap: 10px; }
.public-test {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 0.82rem;
}
.public-test-label { display: block; color: var(--muted); margin-bottom: 5px; }
.public-test code,
.tc-line code { color: var(--cyan); font-family: ui-monospace, monospace; }
.pt-key { color: var(--text-soft); font-family: ui-monospace, monospace; }
.tc-line { margin-top: 4px; color: var(--text-soft); }

/* daily challenge */
.challenge-card {
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  max-width: 640px;
}
.challenge-card h3 { font-family: var(--font-title); margin: 10px 0 6px; }
.challenge-card h3.challenge-intro-line { font-family: var(--font-body); }
.challenge-card p { color: var(--text-soft); margin: 0 0 16px; }
.challenge-meta { margin-bottom: 16px; }
.challenge-done { color: var(--sea); font-weight: 600; }
.challenge-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.challenge-timer {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--cyan);
}
.challenge-progress { color: var(--text-soft); font-size: 0.85rem; }
.challenge-run .qcard { margin-bottom: 14px; }
.mcq-options { display: grid; gap: 9px; }
.mcq-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 140ms ease;
}
.mcq-option:hover { border-color: var(--line-strong); }
.mcq-option input { accent-color: var(--sea); }
.mcq-key { font-weight: 700; color: var(--cyan); }
.challenge-scorecard {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid var(--sea);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.12), rgba(102, 242, 255, 0.05));
  margin-bottom: 18px;
}
.score-ring {
  display: grid;
  place-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: 0 0 auto;
  text-align: center;
  background: var(--surface-strong);
  border: 2px solid var(--sea);
}
.score-ring strong { font-family: var(--font-body); font-size: 1.8rem; line-height: 1; }
.score-ring span { font-size: 0.72rem; color: var(--muted); }
.challenge-scorecard h3 { font-family: var(--font-body); margin: 0 0 4px; font-weight: 800; }
.challenge-scorecard p { margin: 0; color: var(--text-soft); }
.challenge-review { display: grid; gap: 12px; }
.review-ok { border-left: 3px solid var(--sea); }
.review-bad { border-left: 3px solid var(--red); }
.review-line { margin: 0; color: var(--text-soft); font-size: 0.88rem; }

.skeleton-card { height: 96px; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06), rgba(255,255,255,0.03)); background-size: 200% 100%; animation: qshimmer 1.3s infinite; }
@keyframes qshimmer { to { background-position: -200% 0; } }

.q-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--sea);
  color: var(--sea);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 60;
}
.q-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Company Mock Interview ============ */
.iv-setup-head { margin-bottom: 22px; }
.iv-setup-head h2 { font-family: var(--font-title); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0; }
.iv-setup-sub { color: var(--text-soft); margin: 0; }
.iv-step { margin-bottom: 22px; }
.iv-step-label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.iv-company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.iv-company {
  display: grid; place-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 16px;
  background: #000; color: var(--text); transition: border-color 160ms ease, transform 160ms ease;
  aspect-ratio: 1 / 1;
}
.iv-company:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.iv-company.is-active { border-color: var(--sea); box-shadow: 0 0 0 2px rgba(45, 255, 179, 0.3); }
.iv-company img { max-width: 78%; max-height: 50px; width: auto; height: auto; object-fit: contain; }
.iv-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.iv-chip { padding: 10px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--text-soft); font-weight: 600; }
.iv-chip.is-active { border-color: var(--sea); color: var(--sea); background: rgba(45, 255, 179, 0.08); }
.iv-name-input { width: min(360px, 100%); padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-strong); color: var(--text); }
.iv-start-btn { margin-top: 6px; }
.iv-start-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.iv-note { color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* room */
.iv-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 16px;
}
.iv-top-company { display: flex; align-items: center; gap: 12px; }
.iv-top-company img { width: 40px; height: 40px; object-fit: contain; background: #000; border: 1px solid var(--line); border-radius: 9px; padding: 5px; }
.iv-top-company strong { display: block; }
.iv-top-company span { color: var(--text-soft); font-size: 0.82rem; }
.iv-top-round { flex: 1; max-width: 420px; text-align: center; }
.iv-top-round span { font-weight: 600; }
.iv-round-count { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
.iv-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); margin: 6px 0; overflow: hidden; }
.iv-progress-fill { height: 100%; background: linear-gradient(90deg, var(--sea), var(--cyan)); transition: width 400ms ease; }
.iv-timer { font-family: var(--font-title); font-size: 1.3rem; color: var(--cyan); }

.iv-main-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .iv-main-grid { grid-template-columns: 1fr; } }
.iv-interviewer {
  padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  display: grid; gap: 14px; text-align: center; position: sticky; top: 16px;
}
.iv-interviewer img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 2px solid transparent; }
.iv-interviewer.is-speaking img { border-color: var(--sea); animation: iv-pulse 1.4s infinite; }
.iv-interviewer.is-listening img { border-color: var(--cyan); animation: iv-pulse 1.8s infinite; }
.iv-interviewer.is-thinking img { border-color: var(--yellow); }
@keyframes iv-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(45,255,179,0.4); } 50% { box-shadow: 0 0 0 10px rgba(45,255,179,0); } }
.iv-interviewer-meta strong { display: block; font-family: var(--font-title); font-size: 1.05rem; }
.iv-interviewer-meta span { display: block; color: var(--text-soft); font-size: 0.82rem; }
.iv-status { margin-top: 8px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(102,242,255,0.1); color: var(--cyan); font-size: 0.78rem; }

.iv-side { display: grid; gap: 14px; }
.iv-question-card, .iv-answer-card { padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.iv-card-label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.iv-card-label em { color: var(--cyan); font-style: normal; }
.iv-question-card p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
/* Question stays hidden until its interviewer audio is ready. */
.iv-question-card p.is-pending { color: var(--muted); }
.iv-question-pending { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.iv-dots { display: inline-flex; gap: 4px; }
.iv-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: iv-dot 1s infinite ease-in-out;
}
.iv-dots i:nth-child(2) { animation-delay: 0.15s; }
.iv-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes iv-dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.iv-answer-card textarea, .iv-notes textarea { width: 100%; min-height: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-strong); color: var(--text); font-family: var(--font-body); line-height: 1.5; resize: vertical; }
.iv-coding-card {
  padding: 16px 18px;
  border: 1px solid rgba(102, 242, 255, 0.26);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 20, 34, 0.88), rgba(3, 9, 16, 0.94));
  box-shadow: inset 0 0 24px rgba(102, 242, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.22);
}
.iv-coding-card.hidden { display: none; }
.iv-coding-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.iv-coding-head strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.08rem;
}
.iv-coding-prompt p {
  margin: 0 0 12px;
  color: var(--text-soft);
  line-height: 1.58;
}
.iv-coding-helper {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.iv-coding-helper .coding-approach {
  padding: 10px 12px;
  border: 1px solid rgba(102, 242, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.iv-coding-target {
  margin: 0;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
}
.iv-code-editor {
  width: 100%;
  min-height: 270px;
  margin-top: 4px;
  resize: vertical;
}
.iv-coding-card .test-results {
  margin-top: 12px;
}
.iv-notes summary { cursor: pointer; color: var(--text-soft); font-size: 0.85rem; }
.iv-dialogue { display: grid; gap: 8px; max-height: 160px; overflow-y: auto; }
.iv-dialogue-line { padding: 10px 14px; border-left: 2px solid var(--cyan); background: var(--surface-soft); border-radius: 0 10px 10px 0; color: var(--text-soft); font-size: 0.9rem; }
.iv-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.iv-end { margin-left: auto; border-color: rgba(255,125,140,0.4); color: var(--red); }

/* report */
.iv-report-loading { display: grid; place-items: center; gap: 16px; padding: 60px; color: var(--text-soft); }
.iv-report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.iv-report-head h2 { font-family: var(--font-title); margin: 4px 0; }
.iv-report-top { display: flex; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); margin-bottom: 16px; }
.iv-score-ring { display: grid; place-content: center; width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--sea); text-align: center; flex: 0 0 auto; }
.iv-score-ring strong { font-family: var(--font-title); font-size: 2rem; line-height: 1; }
.iv-score-ring span { color: var(--muted); font-size: 0.8rem; }
.iv-report-signals { display: grid; gap: 10px; }
.iv-hire { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; width: fit-content; border: 1px solid; }
.sig-strong-hire { color: #2dffb3; border-color: #2dffb3; background: rgba(45,255,179,0.1); }
.sig-hire { color: #66f2ff; border-color: #66f2ff; background: rgba(102,242,255,0.1); }
.sig-lean-hire { color: #f6d56f; border-color: #f6d56f; background: rgba(246,213,111,0.1); }
.sig-lean-no-hire { color: #ffa07a; border-color: #ffa07a; background: rgba(255,160,122,0.1); }
.sig-no-hire { color: #ff7d8c; border-color: #ff7d8c; background: rgba(255,125,140,0.1); }
.iv-mini-metrics { display: flex; gap: 20px; color: var(--text-soft); font-size: 0.88rem; }
.iv-mini-metrics strong { color: var(--text); }
.iv-readiness { margin: 0; color: var(--text-soft); }
.iv-summary { line-height: 1.6; color: var(--text-soft); margin: 0 0 16px; }
.iv-panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 16px; }
.iv-panel h3 { font-family: var(--font-title); font-size: 1.1rem; margin: 0 0 14px; }
.iv-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.iv-two-col .iv-panel { margin-bottom: 0; }
.iv-round-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.88rem; }
.iv-round-bar span { flex: 0 0 180px; color: var(--text-soft); }
.iv-bar-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.iv-bar-fill { height: 100%; background: linear-gradient(90deg, var(--sea), var(--cyan)); }
.iv-plan { display: grid; gap: 8px; }
.iv-plan-row { display: flex; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.iv-plan-row span { flex: 0 0 70px; color: var(--cyan); font-weight: 600; }
.iv-plan-row p { margin: 0; color: var(--text-soft); }

/* scorecard */
.iv-scorecard { position: relative; max-width: 560px; padding: 30px; border: 1px solid var(--sea); border-radius: 22px; background: linear-gradient(135deg, #0a1220, #05080d); overflow: hidden; margin-bottom: 16px; }
.iv-sc-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0.06; pointer-events: none; }
.iv-sc-watermark img { width: 70%; }
.iv-sc-head { display: flex; align-items: center; gap: 14px; position: relative; }
.iv-sc-logo { width: 50px; height: 50px; object-fit: contain; background: #000; border: 1px solid var(--line); border-radius: 11px; padding: 5px; }
.iv-sc-title { display: flex; flex-direction: column; }
.iv-sc-title span { color: var(--text-soft); font-size: 0.82rem; }
.iv-sc-title strong { font-size: 1.15rem; }
.iv-sc-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 38px 0 26px; position: relative; }
.iv-sc-score { display: grid; place-content: center; width: 190px; height: 190px; border-radius: 50%; border: 5px solid var(--sea); text-align: center; margin-left: auto; flex: 0 0 auto; }
.iv-sc-score strong { font-family: var(--font-title); font-size: 4.4rem; line-height: 1; font-weight: 800; }
.iv-sc-score span { color: var(--muted); font-size: 1.05rem; }
.iv-sc-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.iv-sc-score.sc-red { border-color: #ff5f6d; }
.iv-sc-score.sc-red strong { color: #ff5f6d; }
.iv-sc-score.sc-yellow { border-color: #f6d56f; }
.iv-sc-score.sc-yellow strong { color: #f6d56f; }
.iv-sc-score.sc-green { border-color: #2dffb3; }
.iv-sc-score.sc-green strong { color: #2dffb3; }
.iv-sc-name { font-size: 1.95rem; font-weight: 800; line-height: 1.1; }
.iv-sc-comm { color: var(--text-soft); }
.iv-sc-foot { position: relative; color: var(--muted); font-size: 0.78rem; border-top: 1px solid var(--line); padding-top: 14px; }
.iv-share-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ Auth overlay ============ */
.auth-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 20px; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 30% 0%, rgba(45,255,179,0.08), transparent 30rem), #000;
}
.auth-overlay.hidden { display: none; }
.auth-card {
  /* Auto margins centre the card when it fits and keep it fully scrollable when it does not. */
  margin: auto;
  width: min(420px, 100%); display: grid; gap: 16px; padding: 32px;
  border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface-strong); box-shadow: var(--shadow);
}
.auth-brand { display: flex; justify-content: center; }
.auth-brand img { height: 40px; }
.auth-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.auth-tab { flex: 1; padding: 9px; border: none; border-radius: 9px; background: transparent; color: var(--text-soft); font-weight: 600; }
.auth-tab.is-active { background: linear-gradient(135deg, var(--sea), var(--cyan)); color: #04121a; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--text-soft); }
.auth-form input { padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); }
.auth-error { margin: 0; color: var(--yellow); font-size: 0.85rem; line-height: 1.5; }
.auth-error.hidden { display: none; }
.auth-notice { margin: 0; color: var(--sea); font-size: 0.85rem; line-height: 1.5; }
.auth-notice.hidden { display: none; }
.auth-links { display: grid; gap: 8px; justify-items: center; }
.auth-links .hidden { display: none; }
.auth-forgot {
  padding: 6px 4px; font-family: var(--font-body); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.auth-card .hidden { display: none; }
.auth-recover { border-top: 1px solid var(--line); padding-top: 16px; }
.auth-recover-title { margin: 0; font-family: var(--font-title); font-size: 1.05rem; color: var(--text); }
.auth-forgot:disabled { opacity: 0.6; cursor: progress; }
#authSubmit:disabled { opacity: 0.65; cursor: progress; }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px; border: 1px solid var(--line-strong); border-radius: 11px;
  background: rgba(255,255,255,0.04); color: var(--text); font-weight: 600;
}
.auth-google .g-mark { display: grid; place-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; }
.auth-forgot { background: none; border: none; color: var(--cyan); font-size: 0.85rem; }

/* ============ Account chip ============ */
.sidebar { display: flex; flex-direction: column; }
.side-nav { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.account-chip {
  margin: 14px 4px 2px; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft);
  display: grid; gap: 10px; box-sizing: border-box; overflow: hidden;
}
.app-shell.sidebar-collapsed .account-chip { display: none; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-name { flex: 1 1 auto; min-width: 0; font-size: 0.82rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-badge { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.plan-free { background: rgba(255,255,255,0.08); color: var(--text-soft); }
.plan-pro { background: rgba(102,242,255,0.14); color: var(--cyan); }
.plan-premium { background: rgba(45,255,179,0.16); color: var(--sea); }
.plan-cancelled { background: rgba(255, 112, 112, 0.12); color: #ff9a9a; }
.account-actions { display: flex; gap: 8px; }
.upgrade-btn, .logout-btn { flex: 1 1 0; min-width: 0; padding: 8px 4px; border-radius: 10px; font-size: 0.8rem; white-space: nowrap; text-align: center; }
.upgrade-btn { border: none; background: linear-gradient(135deg, var(--sea), var(--cyan)); color: #04121a; font-weight: 700; }
.logout-btn { border: 1px solid var(--line); background: transparent; color: var(--text-soft); }

/* ============ Upgrade modal ============ */
.upgrade-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,0.65); }
.upgrade-card { position: relative; width: min(720px, 100%); padding: 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface-strong); }
.upgrade-card h3 { font-family: var(--font-title); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.upgrade-lock { color: var(--sea); flex: 0 0 auto; }
.upgrade-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--text-soft); font-size: 1.5rem; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-option { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; gap: 10px; }
.plan-option.featured { border-color: var(--sea); box-shadow: var(--glow); }
.plan-option h4 { font-family: var(--font-title); margin: 0; }
.plan-price { font-family: var(--font-title); font-size: 1.6rem; margin: 0; }
.plan-price span { font-size: 0.9rem; color: var(--muted); }
.plan-option ul { margin: 0; padding-left: 18px; color: var(--text-soft); display: grid; gap: 6px; font-size: 0.88rem; }
.upgrade-note { margin: 14px 0 0; color: var(--cyan); font-size: 0.85rem; min-height: 1em; }
.plan-current {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 11px 16px; border: 1px solid rgba(45, 255, 179, 0.45); border-radius: 999px;
  background: rgba(45, 255, 179, 0.1); color: var(--sea);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 800;
}

/* ============ Home page premium refresh ============ */
#homePage {
  position: relative;
  isolation: isolate;
  padding-top: 4px;
}
#homePage::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -118px;
  left: max(-58px, calc(-1 * var(--app-page-gutter, 42px)));
  right: max(-58px, calc(-1 * var(--app-page-gutter, 42px)));
  height: clamp(390px, 42vw, 540px);
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,0.58) 22%, rgba(0,0,0,0.18) 54%, rgba(0,0,0,0.44) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.26) 60%, #000 100%),
    url('/app/assets/home_bg.png') center top / cover no-repeat;
  opacity: 0.92;
  pointer-events: none;
}
#homePage::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 220px;
  left: -48px;
  right: -48px;
  height: 220px;
  background: linear-gradient(180deg, rgba(0,0,0,0), #000 74%);
  pointer-events: none;
}
#homePage .home-hero {
  grid-template-columns: minmax(0, 0.82fr);
  align-items: end;
  min-height: clamp(260px, 34vw, 390px);
  padding: clamp(24px, 5vw, 58px) 0 clamp(26px, 4vw, 44px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#homePage .home-hero > div:first-child {
  max-width: 820px;
}
#homePage .home-hero .eyebrow {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(102,242,255,0.18);
}
#homePage .home-hero h2 {
  margin: 10px 0 12px;
  font-family: var(--font-title);
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 16px 42px rgba(0,0,0,0.42);
}
#homePage .home-hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #c8d5e3;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
}
#homePage .home-stat-grid {
  display: none;
}
#homePage .primary-button {
  box-shadow: 0 18px 50px rgba(45,255,179,0.13);
}
#homePage .daily-challenge-card {
  margin: 4px 0 18px;
  padding: 22px 24px;
  border-color: rgba(102,242,255,0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 0%, rgba(102,242,255,0.10), transparent 30rem),
    linear-gradient(135deg, rgba(6, 20, 36, 0.88), rgba(2, 8, 16, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 55px rgba(0,0,0,0.22);
}
#homePage .daily-challenge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,255,179,0.36);
  box-shadow: inset 0 0 24px rgba(102,242,255,0.05), 0 24px 62px rgba(0,0,0,0.28);
}
#homePage .home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
#homePage .home-card {
  position: relative;
  min-height: 194px;
  padding: 24px;
  border-radius: 24px;
  border-color: rgba(102,242,255,0.16);
  background:
    radial-gradient(circle at 18% 0%, rgba(45,255,179,0.08), transparent 18rem),
    linear-gradient(145deg, rgba(7, 20, 36, 0.92), rgba(2, 8, 16, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 22px rgba(102,242,255,0.035), 0 18px 44px rgba(0,0,0,0.20);
  overflow: hidden;
  opacity: 1;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
#homePage .home-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102,242,255,0.36), transparent);
}
#homePage .home-card:hover {
  transform: translateY(-6px);
  border-color: rgba(102,242,255,0.32);
  box-shadow: inset 0 0 28px rgba(102,242,255,0.06), 0 26px 60px rgba(0,0,0,0.30);
}
#homePage .home-card h3 {
  font-family: var(--font-title);
  margin: 0 0 10px;
  font-size: 1.12rem;
}
#homePage .home-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}
#homePage .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--cyan);
  border: 1px solid rgba(102,242,255,0.18);
  background: linear-gradient(135deg, rgba(45,255,179,0.12), rgba(56,189,248,0.12));
  box-shadow: 0 0 24px rgba(102,242,255,0.08);
}
#homePage .muted-card {
  opacity: 1;
}
#homePage .dashboard-widgets {
  margin-top: 20px;
}
#homePage .dash-panel,
#homePage .dash-stat {
  border-color: rgba(102,242,255,0.15);
  background: linear-gradient(145deg, rgba(5, 17, 31, 0.90), rgba(2, 8, 16, 0.98));
  box-shadow: inset 0 0 20px rgba(102,242,255,0.035);
}
#homePage .dash-upgrade {
  border-radius: 20px;
}
#homePage .readiness-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(86px, 1.4fr) minmax(52px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#homePage .readiness-item span:first-child {
  flex: initial;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-soft);
}
#homePage .readiness-item .mastery-track {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
#homePage .readiness-item strong {
  white-space: nowrap;
  color: var(--text);
}
#homePage .readiness-fill {
  background: linear-gradient(90deg, var(--ready-start, var(--sea)), var(--ready-end, var(--cyan)));
  box-shadow: 0 0 16px color-mix(in srgb, var(--ready-end, var(--cyan)) 34%, transparent);
}
#homePage .role-ready-applied-scientist { --ready-start: #d97706; --ready-end: #f59e0b; }
#homePage .role-ready-machine-learning-engineer { --ready-start: #fff200; --ready-end: #ffd700; }
#homePage .role-ready-data-scientist { --ready-start: #c084fc; --ready-end: #9333ea; }
#homePage .role-ready-ai-engineer { --ready-start: #38bdf8; --ready-end: #0284c7; }
#homePage .role-ready-default { --ready-start: var(--sea); --ready-end: var(--cyan); }
@media (max-width: 1180px) {
  #homePage .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #homePage::before { top: -84px; height: 420px; }
  #homePage .home-hero { min-height: 320px; }
  #homePage .home-grid { grid-template-columns: 1fr; }
  #homePage .daily-challenge-card { align-items: flex-start; flex-direction: column; }
  #homePage .readiness-item { grid-template-columns: 1fr; }
  #homePage .readiness-item strong { justify-self: start; }
}
/* ============ Cross-browser responsive hardening ============ */
html {
  width: 100%;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.app-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

/* Keep full-bleed header media stable while the sidebar changes width. */
.roadmap-bg-video,
.analytics-bg-video,
.qbank-bg-video {
  display: block;
  width: 100%;
  max-width: none;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

button,
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

.app-main {
  width: calc(100% - var(--sidebar-expanded));
  min-width: 0;
  container: app-content / inline-size;
}

.app-shell.sidebar-collapsed .app-main {
  width: calc(100% - var(--sidebar-collapsed));
}

.page.is-active,
.page.is-active > *,
.lb-header-copy,
.analysis-grid > *,
.home-grid > *,
.home-dashboard-grid > *,
.home-secondary-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* These headers intentionally bleed through the app-main padding. */
.page.is-active > .roadmap-hero,
.page.is-active > .analytics-hero,
.page.is-active > .qbank-header {
  max-width: none;
}

#leaderboardPage::before {
  -webkit-mask-image: linear-gradient(115deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
}

#leaderboardPage .leaderboard-art::after,
#leaderboardPage.is-full-board .lb-full-bar {
  -webkit-backdrop-filter: blur(12px);
}

/* Media-query fallback for browsers without container query support. */
@supports not (container-type: inline-size) {
  @media (max-width: 1040px) {
    .app-shell:not(.sidebar-collapsed) #leaderboardPage .lb-header {
      grid-template-columns: minmax(0, 1fr);
    }

    .app-shell:not(.sidebar-collapsed) #leaderboardPage .leaderboard-art {
      justify-self: stretch;
      width: min(100%, 820px);
      margin-inline: auto;
    }
  }

  @media (max-width: 920px) {
    #leaderboardPage .lb-header {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

@media (max-width: 840px) {
  .app-main,
  .app-shell.sidebar-collapsed .app-main {
    width: 100%;
    max-width: 100%;
  }

  .sidebar {
    max-width: 100%;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-item,
  .app-shell.sidebar-collapsed .nav-item {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .sidebar {
    padding: 12px;
  }

  .sidebar-brand-row {
    margin-bottom: 12px;
  }

  .side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-item,
  .app-shell.sidebar-collapsed .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding-inline: 11px;
  }

  .sidebar-footer {
    margin-top: 8px;
  }

  .app-main {
    padding: 14px 12px 34px;
  }

  #leaderboardPage .lb-header h2 {
    font-size: clamp(30px, 11vw, 44px);
    overflow-wrap: anywhere;
  }

  #leaderboardPage .leaderboard-art,
  #leaderboardPage .leaderboard-art img {
    min-height: 220px;
  }

  #leaderboardPage .lb-title-rule {
    min-height: 82px;
  }

  #leaderboardPage .lb-row {
    padding: 12px;
    gap: 10px;
  }

  #leaderboardPage .lb-name {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Dashboard widgets ============ */
.dashboard-widgets { display: grid; gap: 16px; margin: 22px 0; }
.dashboard-widgets:empty { margin: 0; }
.dash-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dash-stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; gap: 4px; }
.dash-stat-label { font-size: 0.78rem; color: var(--muted); }
.dash-stat strong { font-family: var(--font-title); font-size: 1.6rem; }
.dash-stat-note { font-size: 0.76rem; color: var(--text-soft); }
.dash-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--sea); border-radius: 16px; background: linear-gradient(135deg, rgba(45,255,179,0.1), rgba(102,242,255,0.05)); }
.dash-upgrade p { margin: 4px 0 0; color: var(--text-soft); font-size: 0.88rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.dash-panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.dash-panel h3 { font-family: var(--font-title); font-size: 1.05rem; margin: 0 0 14px; }
.dash-empty { color: var(--muted); font-size: 0.85rem; margin: 0; }
.dash-mastery, .dash-readiness { display: grid; gap: 10px; }
.readiness-item, .dash-mastery .mastery-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-soft); }
.readiness-item span:first-child { flex: 0 0 130px; }
.dash-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-soft); font-size: 0.88rem; }
.dash-list li strong { color: var(--text); display: block; }
.dash-list li span { font-size: 0.82rem; }
.rec-list li { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.rec-list li:last-child { border-bottom: none; }
.rec-cta {
  justify-self: start; margin-top: 4px; padding: 7px 14px; border: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--sea), var(--cyan)); color: #04121a; font-weight: 700; font-size: 0.82rem;
}
.dash-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(45,255,179,0.07); color: var(--sea); font-size: 0.8rem; }

.insight-locked { display: grid; gap: 10px; place-items: center; padding: 22px; text-align: center; color: var(--text-soft); }
.insight-locked .lock-icon { font-size: 1.6rem; }
.insight-locked p { margin: 0; }
.insight-locked .upgrade-btn { padding: 8px 16px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--sea), var(--cyan)); color: #04121a; font-weight: 700; }

.dash-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dash-section-head h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.12rem;
}
.dash-section-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}
.interview-history-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(102, 242, 255, 0.18);
  background:
    radial-gradient(circle at 14% 0%, rgba(45, 255, 179, 0.10), transparent 34rem),
    linear-gradient(135deg, rgba(4, 18, 32, 0.92), rgba(2, 8, 15, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 22px 58px rgba(0, 0, 0, 0.24);
}
.interview-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.interview-history-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(102, 242, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(6, 20, 36, 0.92), rgba(2, 8, 16, 0.98));
  box-shadow: inset 0 0 22px rgba(102, 242, 255, 0.045);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.interview-history-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 255, 179, 0.34);
  box-shadow: inset 0 0 26px rgba(102, 242, 255, 0.07), 0 18px 34px rgba(0, 0, 0, 0.22);
}
.interview-history-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.interview-date {
  display: block;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.interview-history-card h4 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--text);
}
.interview-history-card p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}
.mini-score {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 3px solid var(--sea);
  background: rgba(45, 255, 179, 0.06);
}
.mini-score strong {
  font-family: var(--font-title);
  font-size: 1.6rem;
  line-height: 1;
}
.mini-score span {
  color: var(--muted);
  font-size: 0.72rem;
}
.mini-score.sc-red { border-color: #ff5f6d; color: #ff7b86; background: rgba(255, 95, 109, 0.06); }
.mini-score.sc-yellow { border-color: #f6d56f; color: #f6d56f; background: rgba(246, 213, 111, 0.06); }
.mini-score.sc-green { border-color: var(--sea); color: var(--sea); background: rgba(45, 255, 179, 0.06); }
.interview-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interview-history-meta span,
.interview-round-mini span {
  padding: 6px 10px;
  border: 1px solid rgba(102, 242, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.78rem;
}
.interview-round-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interview-round-mini strong {
  color: var(--sea);
}
.interview-history-actions {
  display: flex;
  justify-content: flex-end;
}
.interview-history-actions .qbtn {
  border-color: rgba(45, 255, 179, 0.38);
  color: var(--sea);
}
/* ============ Premium lock overlay (page previewable behind) ============ */
.page.has-premium-lock { position: relative; }
.premium-lock-overlay {
  position: absolute; inset: 0; z-index: 30;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.5));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border-radius: 18px;
}
.premium-lock-card {
  position: sticky; top: 24px;
  width: min(440px, 100%);
  display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 30px;
  border: 1px solid var(--sea); border-radius: 22px;
  background: var(--surface-strong); box-shadow: var(--glow);
}
.premium-lock-logo { height: 34px; }
.premium-lock-badge {
  padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(45,255,179,0.14); color: var(--sea);
}
.premium-lock-card h2 { font-family: var(--font-title); font-size: 1.5rem; margin: 4px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.premium-lock-icon { color: var(--sea); flex: 0 0 auto; }
.premium-lock-card p { margin: 0; color: var(--text-soft); }
.premium-lock-card ul { margin: 4px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.premium-lock-card li { color: var(--text-soft); font-size: 0.9rem; }
.premium-lock-card li::before { content: "\2713  "; color: var(--sea); font-weight: 700; }
.premium-lock-cta { margin-top: 6px; }

/* ============ Leaderboards ============ */
.lb-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: -8px 0 24px;
  padding: 18px 0 8px;
}

.lb-header-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.lb-header h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
}

.lb-header h2 span {
  display: inline-block;
  padding-bottom: 0.08em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lb-tabs {
  display: flex;
  width: fit-content;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(102, 242, 255, 0.16);
  border-radius: 16px;
  background: rgba(2, 10, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.lb-tab {
  min-height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.lb-tab:hover {
  color: var(--text);
  background: rgba(102, 242, 255, 0.07);
}

.lb-tab.is-active {
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.96), rgba(102, 242, 255, 0.98), rgba(124, 201, 255, 0.92));
  color: #04121a;
  box-shadow: 0 0 28px rgba(102, 242, 255, 0.22);
}

.leaderboard-visual {
  justify-self: end;
  width: min(100%, 520px);
  max-width: 520px;
  margin-top: 0;
}

.leaderboard-visual .growth-area {
  fill: url(#lbGrowthLineGradient);
}

.leaderboard-visual .growth-line {
  stroke: url(#lbGrowthLineGradient);
  filter: url(#lbGrowthGlow);
}

@media (max-width: 980px) {
  .lb-header {
    grid-template-columns: 1fr;
  }

  .leaderboard-visual {
    justify-self: stretch;
    max-width: none;
  }
}
.lb-me { margin-bottom: 16px; }
.lb-me-card {
  display: flex; align-items: center; gap: 20px; padding: 16px 22px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: linear-gradient(135deg, rgba(45,255,179,0.08), rgba(102,242,255,0.04));
}
.lb-me-rank { display: grid; place-items: center; min-width: 70px; }
.lb-me-rank strong { font-family: var(--font-title); font-size: 1.8rem; line-height: 1; }
.lb-me-rank span { font-size: 0.72rem; color: var(--muted); }
.lb-me-info { display: grid; gap: 2px; }
.lb-me-label { font-size: 0.78rem; color: var(--muted); }
.lb-me-info strong { font-family: var(--font-title); font-size: 1.2rem; }
.lb-me-pct { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: rgba(45,255,179,0.14); color: var(--sea); font-weight: 700; font-size: 0.82rem; }

.lb-list { display: grid; gap: 8px; }
.lb-loading { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.lb-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.lb-row.is-top { border-color: var(--line-strong); background: var(--surface-strong); }
.lb-row.is-me { border-color: var(--sea); box-shadow: 0 0 0 1px rgba(45,255,179,0.3); }
.lb-rank { flex: 0 0 auto; min-width: 40px; font-family: var(--font-title); font-size: 1.15rem; text-align: center; color: var(--text-soft); }
.lb-row.is-top .lb-rank { font-size: 1.4rem; }
.lb-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name em { color: var(--cyan); font-style: normal; font-weight: 500; }
.lb-title { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.lb-title-ace-ml-champion { background: linear-gradient(135deg, #f6d56f, #ffae3b); color: #2a1a00; }
.lb-title-ace-ml-grandmaster { background: rgba(45,255,179,0.16); color: var(--sea); }
.lb-title-ace-ml-master { background: rgba(102,242,255,0.14); color: var(--cyan); }
.lb-xp { flex: 0 0 auto; font-family: var(--font-title); color: var(--text); }

/* ============ Admin dashboard ============ */
.admin-loading { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 4px; }
.admin-stat span { font-size: 0.76rem; color: var(--muted); }
.admin-stat strong { font-family: var(--font-title); font-size: 1.4rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.admin-panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-panel h3 { font-family: var(--font-title); font-size: 1.05rem; margin: 0 0 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-soft); }
.admin-table td:last-child, .admin-table th:last-child { text-align: right; }
.admin-empty { text-align: center; color: var(--muted); }

/* Role Intelligence premium redesign */
.role-intelligence-section {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.1vw, 30px);
  border-radius: 28px;
  border: 1px solid rgba(0, 185, 255, 0.42);
  background:
    radial-gradient(circle at 92% 6%, rgba(27, 132, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 8% 12%, rgba(0, 221, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, rgba(2, 12, 25, 0.96), rgba(0, 5, 14, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(102, 242, 255, 0.08),
    inset 0 0 42px rgba(0, 185, 255, 0.055),
    0 0 0 1px rgba(0, 185, 255, 0.10),
    0 20px 70px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(0, 185, 255, 0.10);
}

.role-intelligence-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(102, 242, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 242, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 65% 4%, rgba(102, 242, 255, 0.18), transparent 2px),
    radial-gradient(circle at 94% 22%, rgba(45, 255, 179, 0.18), transparent 1.5px),
    radial-gradient(circle at 23% 52%, rgba(102, 242, 255, 0.10), transparent 1.5px);
  background-size: 32px 32px, 32px 32px, 220px 160px, 260px 180px, 240px 190px;
  opacity: 0.9;
}

.role-intelligence-section > * {
  position: relative;
  z-index: 1;
}

.role-intelligence-header {
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
}

.role-intelligence-section .analysis-section-title {
  font-size: clamp(32px, 3.1vw, 46px);
}

.role-intelligence-orb {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(0, 213, 255, 0.38);
  background:
    radial-gradient(circle, rgba(0, 225, 255, 0.20), transparent 58%),
    linear-gradient(135deg, rgba(9, 33, 61, 0.78), rgba(2, 9, 19, 0.96));
  box-shadow:
    inset 0 0 20px rgba(102, 242, 255, 0.14),
    0 0 24px rgba(0, 185, 255, 0.18);
  position: relative;
}

.role-intelligence-orb::before,
.role-intelligence-orb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(102, 242, 255, 0.58);
}

.role-intelligence-orb::after {
  inset: 22px 9px auto;
  height: 1px;
  border: 0;
  border-top: 1px solid rgba(102, 242, 255, 0.75);
  box-shadow: 0 10px 0 rgba(102, 242, 255, 0.55), 10px 5px 0 rgba(102, 242, 255, 0.45), -10px 5px 0 rgba(102, 242, 255, 0.45);
}

.role-intelligence-section .analysis-grid {
  grid-template-columns: minmax(420px, 0.88fr) minmax(620px, 1.12fr);
  gap: 18px;
}

.role-intelligence-section .panel-graph {
  min-height: 360px;
  padding: 22px;
  border-radius: 18px;
  border-color: rgba(0, 190, 255, 0.45);
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 176, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(8, 24, 43, 0.86), rgba(2, 9, 20, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 28px rgba(102, 242, 255, 0.045),
    0 0 24px rgba(0, 190, 255, 0.10),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

.role-intelligence-section .panel-graph::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 6% 100%, rgba(45, 255, 179, 0.06), transparent 16rem);
  opacity: 0.8;
}

.role-intelligence-section .panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.role-intelligence-section .panel-header .eyebrow {
  margin: 0 0 5px;
  color: #00e5ff;
  font-size: 12px;
  font-weight: 950;
}

.role-intelligence-section .panel-header h3 {
  font-size: 22px;
  color: #fff;
}

.panel-kicker-icon,
.panel-corner-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 184, 255, 0.34);
  background: linear-gradient(135deg, rgba(0, 213, 255, 0.16), rgba(15, 56, 92, 0.24));
  box-shadow: inset 0 0 18px rgba(0, 213, 255, 0.10), 0 0 16px rgba(0, 184, 255, 0.12);
  flex: 0 0 auto;
}

.panel-kicker-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #2dffb3, #66f2ff, #3b82f6);
  mask: var(--icon-mask) center / contain no-repeat;
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(102, 242, 255, 0.50));
}

.demand-icon { --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 19h18v2H3V19Zm2-3 4-5 4 3 6-8 2 1.5-7.6 10L9.4 14 6.6 17H5v-1Zm0-9h2v7H5V7Zm5-4h2v6h-2V3Zm5 7h2v4h-2v-4Z'/%3E%3C/svg%3E"); }
.combo-icon { --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 4 6.5v9L12 20l8-4.5v-9L12 2Zm0 2.3 5.4 3L12 10.3 6.6 7.3 12 4.3ZM6 9.1l5 2.8v5.7l-5-2.8V9.1Zm12 0v5.7l-5 2.8v-5.7l5-2.8Z'/%3E%3C/svg%3E"); }

.panel-corner-glyph {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.panel-corner-glyph::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #66f2ff;
  mask: radial-gradient(circle at 50% 10%, #000 2px, transparent 3px), radial-gradient(circle at 20% 50%, #000 2px, transparent 3px), radial-gradient(circle at 80% 50%, #000 2px, transparent 3px), radial-gradient(circle at 50% 90%, #000 2px, transparent 3px);
  -webkit-mask: radial-gradient(circle at 50% 10%, #000 2px, transparent 3px), radial-gradient(circle at 20% 50%, #000 2px, transparent 3px), radial-gradient(circle at 80% 50%, #000 2px, transparent 3px), radial-gradient(circle at 50% 90%, #000 2px, transparent 3px);
  filter: drop-shadow(0 0 8px rgba(102, 242, 255, 0.8));
}

.star-glyph::before {
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 2 2.9 6 6.6.9-4.8 4.7 1.1 6.6L12 17.1l-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 2 2.9 6 6.6.9-4.8 4.7 1.1 6.6L12 17.1l-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.role-demand-chart-wrap.role-demand-premium {
  position: relative;
  min-height: 270px;
  display: grid;
  gap: 16px;
  padding: 14px 0 0;
}

.role-demand-gridlines {
  position: absolute;
  inset: 18px 0 56px 37%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(102, 242, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(102, 242, 255, 0.035) 1px, transparent 1px);
  background-size: 13.5% 100%, 100% 25%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 92%, transparent);
  opacity: 0.86;
}

.role-demand-rows {
  display: grid;
  gap: 22px;
}

.role-demand-row {
  display: grid;
  grid-template-columns: minmax(205px, 0.82fr) minmax(180px, 1.3fr) 96px;
  gap: 18px;
  align-items: center;
}


.role-demand-name {
  min-width: 0;
  color: #fff;
  font-weight: 850;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-demand-track {
  position: relative;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(90deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  box-shadow: inset 0 0 14px rgba(255,255,255,0.035);
}

.role-demand-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--role-width);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--role-color) 74%, #ffffff 8%), var(--role-color), color-mix(in srgb, var(--role-color) 72%, #ffffff 25%));
  box-shadow:
    0 0 16px color-mix(in srgb, var(--role-color) 58%, transparent),
    0 0 32px color-mix(in srgb, var(--role-color) 24%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.46);
}

.role-demand-count-html {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.role-demand-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 37%;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.role-demand-axis span:nth-child(2) { text-align: center; }
.role-demand-axis span:last-child { text-align: right; }

.role-demand-axis-label {
  margin-top: -9px;
  text-align: center;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-intelligence-section .role-demand-legend {
  justify-content: center;
  gap: 14px 24px;
  margin-top: 3px;
}

.role-intelligence-section .role-demand-swatch {
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.role-intelligence-section .role-demand-legend-main strong {
  color: rgba(255,255,255,0.88);
  font-size: 12px;
}

.skill-bundles-panel .bundle-grid {
  grid-template-columns: repeat(4, minmax(138px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.role-bundle-card {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 22px 12px 18px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bundle-accent) 68%, transparent);
  background:
    linear-gradient(180deg, rgba(3, 11, 23, 0.34), rgba(2, 7, 15, 0.88)),
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--bundle-accent) 16%, transparent), transparent 42%);
  box-shadow:
    inset 0 0 28px color-mix(in srgb, var(--bundle-accent) 10%, transparent),
    0 0 22px color-mix(in srgb, var(--bundle-accent) 16%, transparent),
    0 18px 32px rgba(0, 0, 0, 0.30);
  isolation: isolate;
}

.role-bundle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--role-card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.96;
}

.role-bundle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.24) 54%, rgba(0,0,0,0.45)),
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--bundle-accent) 16%, transparent), transparent 34%);
}

.role-bundle-card.role-applied-scientist { --role-card-bg: url('/app/assets/analytics_section/applied_scientist_card.png'); }
.role-bundle-card.role-data-scientist { --role-card-bg: url('/app/assets/analytics_section/data_scientist_card.png'); }
.role-bundle-card.role-machine-learning-engineer { --role-card-bg: url('/app/assets/analytics_section/ml_engineer_card.png'); }
.role-bundle-card.role-ai-engineer { --role-card-bg: url('/app/assets/analytics_section/ai_engineer_card.png'); }

.bundle-icon-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 5px;
  border-radius: 50%;
  color: var(--bundle-accent);
  border: 1px solid color-mix(in srgb, var(--bundle-accent) 55%, transparent);
  background: rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--bundle-accent) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--bundle-accent) 18%, transparent);
}

.bundle-icon-orb svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-bundle-card .bundle-role {
  margin: 0 0 8px;
  min-height: 34px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.035em;
}

.role-bundle-card .bundle-stack {
  gap: 12px;
}

.role-bundle-card .bundle-row {
  padding: 10px 8px;
  border-radius: 10px;
  border-color: color-mix(in srgb, var(--bundle-accent) 42%, transparent);
  background: rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 16px color-mix(in srgb, var(--bundle-accent) 8%, transparent),
    0 0 16px rgba(0, 0, 0, 0.18);
}

.role-bundle-card .bundle-combo {
  justify-content: center;
  gap: 7px;
  margin: 0;
}

.role-bundle-card .bundle-skill {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.22);
  border-color: color-mix(in srgb, var(--bundle-accent) 34%, rgba(255,255,255,0.06));
}

.role-bundle-card .bundle-plus {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  background: rgba(7, 17, 31, 0.78);
  border: 1px solid color-mix(in srgb, var(--bundle-accent) 42%, transparent);
}

.section-insight {
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(251, 191, 36, 0.58);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.70), rgba(0,0,0,0.28)),
    url('/app/assets/analytics_section/ai_insights_bg.png') center / cover no-repeat,
    linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(0,0,0,0.58));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 34px rgba(251, 191, 36, 0.08),
    0 0 34px rgba(251, 191, 36, 0.16),
    0 18px 48px rgba(0, 0, 0, 0.36);
}

.section-insight .insight-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  font-size: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.20), transparent 58%),
    rgba(10, 12, 13, 0.62);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.24), inset 0 0 16px rgba(251, 191, 36, 0.10);
}

.section-insight-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 22px;
}

.section-insight-copy {
  position: relative;
  padding: 6px 0 0;
}


.section-insight .insight-action {
  position: relative;
  overflow: hidden;
  min-height: 152px;
  padding: 24px 150px 22px 24px;
  border-radius: 16px;
  border-color: rgba(251, 191, 36, 0.62);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.68), rgba(0,0,0,0.18)),
    url('/app/assets/analytics_section/ai_insights_bg.png') center / cover no-repeat,
    rgba(0, 0, 0, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 28px rgba(251, 191, 36, 0.08),
    0 0 22px rgba(251, 191, 36, 0.12);
}

.section-insight .insight-action::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(251, 191, 36, 0.18);
  mask-image: linear-gradient(135deg, #000 0 22%, transparent 22% 78%, #000 78% 100%);
}

.section-insight .insight-action strong {
  font-size: 18px;
}

.section-insight .insight-action p {
  color: rgba(255, 247, 237, 0.90);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1320px) {
  .role-intelligence-section .analysis-grid,
  .analysis-section:first-of-type .analysis-grid {
    grid-template-columns: 1fr;
  }

  .skill-bundles-panel .bundle-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .role-intelligence-section {
    padding: 16px;
    border-radius: 22px;
  }

  .role-demand-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .role-demand-gridlines,
  .role-demand-axis,
  .role-demand-axis-label {
    display: none;
  }

  .skill-bundles-panel .bundle-grid {
    grid-template-columns: 1fr;
  }

  .section-insight-grid {
    grid-template-columns: 1fr;
  }

  .section-insight .insight-action {
    padding-right: 24px;
  }
}
/* Role Intelligence corrections: compact two-column layout, icon-only insights */
@media (min-width: 1081px) {
  .role-intelligence-section .analysis-grid,
  .analysis-section:first-of-type.role-intelligence-section .analysis-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: stretch;
  }
}

.role-intelligence-section .panel-graph {
  min-height: 330px;
}

.role-demand-chart-wrap.role-demand-premium {
  min-height: 238px;
  gap: 12px;
  padding-top: 6px;
}

.role-demand-gridlines {
  inset: 10px 0 50px 176px;
  background-size: 16.66% 100%, 100% 25%;
}

.role-demand-rows {
  gap: 18px;
}

.role-demand-row {
  grid-template-columns: minmax(132px, 176px) minmax(0, 1fr) 86px;
  gap: 14px;
}

.role-demand-name {
  padding-left: 2px;
  font-size: 13px;
}

.role-demand-track {
  height: 18px;
}

.role-demand-count-html {
  font-size: 13px;
}

.role-demand-axis {
  margin-left: 176px;
}

.role-demand-axis-label {
  margin-top: -11px;
}

.skill-bundles-panel .bundle-grid {
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 12px;
  align-items: start;
}

.role-bundle-card {
  min-height: 0;
  height: auto;
  padding: 16px 10px 13px;
  gap: 9px;
  border-radius: 16px;
}

.role-bundle-card::before {
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.role-bundle-card::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.22) 58%, rgba(0,0,0,0.40)),
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--bundle-accent) 12%, transparent), transparent 32%);
}

.bundle-icon-orb {
  width: 44px;
  height: 44px;
  margin-bottom: 1px;
}

.bundle-icon-orb svg {
  width: 23px;
  height: 23px;
}

.role-bundle-card .bundle-role {
  min-height: 28px;
  margin-bottom: 2px;
  font-size: 10.8px;
  line-height: 1.18;
  letter-spacing: 0.025em;
}

.role-bundle-card .bundle-stack {
  gap: 8px;
}

.role-bundle-card .bundle-row {
  padding: 8px 6px;
  border-radius: 9px;
}

.role-bundle-card .bundle-combo {
  gap: 5px;
  flex-wrap: nowrap;
}

.role-bundle-card .bundle-skill {
  padding: 4px 6px;
  font-size: 10.2px;
  line-height: 1.1;
}

.role-bundle-card .bundle-plus {
  width: 17px;
  height: 17px;
  font-size: 10px;
  flex: 0 0 17px;
}

.section-insight {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.70), rgba(0,0,0,0.28)),
    url('/app/assets/analytics_section/ai_insights_bg.png') center / cover no-repeat,
    linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(0,0,0,0.58));
}

.section-insight .insight-icon {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.18), transparent 62%),
    rgba(10, 12, 13, 0.62);
}

.section-insight .insight-icon::before {
  content: "";
  width: 29px;
  height: 29px;
  background: linear-gradient(135deg, #fde68a, #fbbf24, #f97316);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9.5 3a4.5 4.5 0 0 0-4.35 3.36A4.3 4.3 0 0 0 3 10.1c0 1.25.53 2.4 1.38 3.2A4.45 4.45 0 0 0 9.5 21h1.2V3H9.5Zm5 0h-1.2v18h1.2a4.45 4.45 0 0 0 5.12-7.7A4.34 4.34 0 0 0 21 10.1c0-1.58-.86-2.96-2.15-3.74A4.5 4.5 0 0 0 14.5 3ZM8 8.5h2v1.6H8V8.5Zm0 4.2h2v1.6H8v-1.6Zm6-4.2h2v1.6h-2V8.5Zm0 4.2h2v1.6h-2v-1.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9.5 3a4.5 4.5 0 0 0-4.35 3.36A4.3 4.3 0 0 0 3 10.1c0 1.25.53 2.4 1.38 3.2A4.45 4.45 0 0 0 9.5 21h1.2V3H9.5Zm5 0h-1.2v18h1.2a4.45 4.45 0 0 0 5.12-7.7A4.34 4.34 0 0 0 21 10.1c0-1.58-.86-2.96-2.15-3.74A4.5 4.5 0 0 0 14.5 3ZM8 8.5h2v1.6H8V8.5Zm0 4.2h2v1.6H8v-1.6Zm6-4.2h2v1.6h-2V8.5Zm0 4.2h2v1.6h-2v-1.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.55));
}

.section-insight .insight-action {
  padding-right: 104px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.70), rgba(0,0,0,0.26)),
    url('/app/assets/analytics_section/ai_insights_bg.png') center / cover no-repeat,
    rgba(0, 0, 0, 0.34);
}

.section-insight .insight-action::after {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #fde68a, #fbbf24, #f97316);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 11h12.2l-4.6-4.6L13 5l7 7-7 7-1.4-1.4 4.6-4.6H4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.62));
  opacity: 0.92;
}

@media (max-width: 1080px) {
  .role-intelligence-section .analysis-grid,
  .analysis-section:first-of-type.role-intelligence-section .analysis-grid {
    grid-template-columns: 1fr;
  }

  .skill-bundles-panel .bundle-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 720px) {
  .role-demand-row {
    grid-template-columns: 1fr;
  }

  .skill-bundles-panel .bundle-grid {
    grid-template-columns: 1fr;
  }

  .section-insight .insight-action {
    padding-right: 24px;
  }

  .section-insight .insight-action::after {
    display: none;
  }
}

/* Role Intelligence precision pass */
.role-demand-gridlines {
  inset: 8px 86px 50px 0;
  background-size: 16.66% 100%, 100% 25%;
}

.role-demand-row {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
}

.role-demand-name {
  display: none;
}

.role-demand-axis {
  margin-left: 0;
  margin-right: 92px;
}

.role-intelligence-section .role-demand-swatch {
  box-shadow: none;
}

.skill-bundles-panel .bundle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.role-bundle-card {
  min-height: 158px;
  padding: 16px 14px 14px;
  gap: 8px;
}

.role-bundle-card::before {
  inset: -16%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.72;
}

.role-bundle-card::after {
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.28), rgba(2, 7, 14, 0.42) 52%, rgba(2, 7, 14, 0.64)),
    radial-gradient(circle at 50% 14%, color-mix(in srgb, var(--bundle-accent) 13%, transparent), transparent 36%);
}

.bundle-icon-orb {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
}

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

.role-bundle-card .bundle-role {
  min-height: 0;
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.role-bundle-card .bundle-stack {
  gap: 8px;
}

.role-bundle-card .bundle-row {
  padding: 8px 9px;
}

.role-bundle-card .bundle-combo {
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.role-bundle-card .bundle-skill {
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}

.role-bundle-card .bundle-plus {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.section-insight .insight-brand {
  align-items: center;
  gap: 10px;
}

.section-insight .insight-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background: url('/app/assets/analytics_section/ai_insights_brain_icon.png') center / 62px 62px no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.38));
  transform: translateY(0);
}

.section-insight .insight-icon::before {
  content: none;
}

.section-insight .insight-label {
  line-height: 1;
}

.section-insight .insight-action {
  padding-right: 132px;
}

.section-insight .insight-action::after {
  right: 22px;
  width: 94px;
  height: 94px;
  background: url('/app/assets/analytics_section/action_plan_target_overlay.png') center / contain no-repeat;
  mask: none;
  -webkit-mask: none;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.34));
  opacity: 0.94;
}

@media (max-width: 1080px) {
  .skill-bundles-panel .bundle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .role-demand-row {
    grid-template-columns: minmax(0, 1fr) 84px;
  }

  .role-demand-gridlines {
    inset: 8px 84px 50px 0;
  }

  .role-demand-axis {
    margin-right: 84px;
  }

  .skill-bundles-panel .bundle-grid {
    grid-template-columns: 1fr;
  }

  .section-insight .insight-action {
    padding-right: 24px;
  }
}

/* Role Intelligence final layout: full-width demand, then 4-up bundles */
.role-intelligence-section .analysis-grid,
.analysis-section:first-of-type.role-intelligence-section .analysis-grid {
  grid-template-columns: 1fr !important;
  gap: 18px;
}

.role-intelligence-section .panel-graph {
  min-height: auto;
}

.role-demand-panel .role-demand-chart-wrap.role-demand-premium {
  min-height: 318px;
  gap: 14px;
  padding: 8px 0 0;
}

.role-demand-panel .role-demand-gridlines {
  inset: 10px 118px 50px 286px;
  background-size: 12.5% 100%, 100% 25%;
}

.role-demand-panel .role-demand-rows {
  gap: 20px;
}

.role-demand-panel .role-demand-row {
  grid-template-columns: minmax(232px, 268px) minmax(0, 1fr) 104px;
  gap: 18px;
  align-items: center;
}

.role-demand-panel .role-demand-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.role-demand-panel .role-demand-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  color: var(--role-color);
  border: 1px solid color-mix(in srgb, var(--role-color) 55%, transparent);
  background:
    radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--role-color) 24%, transparent), transparent 60%),
    rgba(4, 13, 25, 0.84);
  box-shadow:
    inset 0 0 16px color-mix(in srgb, var(--role-color) 14%, transparent),
    0 0 16px color-mix(in srgb, var(--role-color) 12%, transparent);
}

.role-demand-panel .role-demand-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-demand-panel .role-demand-name {
  display: block;
  min-width: 0;
  padding-left: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-demand-panel .role-demand-track {
  height: 24px;
}

.role-demand-panel .role-demand-count-html {
  font-size: 14px;
  text-align: right;
}

.role-demand-panel .role-demand-axis {
  margin-left: 286px;
  margin-right: 118px;
}

.role-demand-panel .role-demand-legend {
  display: none;
}

.skill-bundles-panel .bundle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.skill-bundles-panel .role-bundle-card {
  min-height: 232px;
  height: 100%;
  width: 100%;
  display: grid;
  align-content: start;
  padding: 18px 14px 16px;
  gap: 10px;
}

.skill-bundles-panel .role-bundle-card::before {
  inset: -10%;
  background-size: cover;
  background-position: center;
  opacity: 0.76;
}

.skill-bundles-panel .bundle-icon-orb {
  width: 48px;
  height: 48px;
  margin: 0 auto 2px;
}

.skill-bundles-panel .bundle-icon-orb svg {
  width: 25px;
  height: 25px;
}

.skill-bundles-panel .role-bundle-card .bundle-role {
  min-height: 30px;
  font-size: 12px;
  line-height: 1.18;
}

.skill-bundles-panel .role-bundle-card .bundle-stack {
  gap: 10px;
}

.skill-bundles-panel .role-bundle-card .bundle-row {
  min-height: 42px;
  padding: 9px 8px;
}

.skill-bundles-panel .role-bundle-card .bundle-combo {
  flex-wrap: wrap;
  gap: 6px;
}

.skill-bundles-panel .role-bundle-card .bundle-skill {
  font-size: 10.5px;
  padding: 5px 7px;
}

.section-insight .insight-action::after {
  right: 24px;
  width: 104px;
  height: 104px;
  background-position: center;
  background-size: contain;
}

@media (max-width: 1180px) {
  .skill-bundles-panel .bundle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .role-demand-panel .role-demand-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .role-demand-panel .role-demand-gridlines,
  .role-demand-panel .role-demand-axis,
  .role-demand-panel .role-demand-axis-label {
    display: none;
  }

  .skill-bundles-panel .bundle-grid {
    grid-template-columns: 1fr;
  }
}

/* Role Intelligence polish: tighter demand spacing, full-card textures, blended action target */
.role-demand-panel.panel-graph {
  padding-bottom: 16px;
}

.role-demand-panel .panel-header {
  margin-bottom: 12px;
}

.role-demand-panel .role-demand-chart-wrap.role-demand-premium {
  min-height: 0;
  gap: 8px;
  padding-top: 2px;
}

.role-demand-panel .role-demand-rows {
  gap: 14px;
}

.role-demand-panel .role-demand-row {
  grid-template-columns: minmax(226px, 260px) minmax(0, 1fr) 102px;
  gap: 16px;
}

.role-demand-panel .role-demand-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.role-demand-panel .role-demand-icon svg {
  width: 23px;
  height: 23px;
}

.role-demand-panel .role-demand-track {
  height: 22px;
}

.role-demand-panel .role-demand-gridlines {
  inset: 6px 116px 34px 278px;
}

.role-demand-panel .role-demand-axis {
  margin-left: 278px;
  margin-right: 116px;
  margin-top: -1px;
}

.role-demand-panel .role-demand-axis-label {
  margin-top: -10px;
  margin-bottom: 0;
  line-height: 1;
}

.skill-bundles-panel .bundle-grid {
  grid-auto-rows: 1fr;
}

.skill-bundles-panel .role-bundle-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--bundle-accent) 16%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(5, 14, 29, 0.96), rgba(2, 7, 16, 0.98));
}

.skill-bundles-panel .role-bundle-card::before {
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
  transform-origin: center;
  opacity: 0.82;
}

.skill-bundles-panel .role-bundle-card.role-applied-scientist::before {
  transform: scale(1.24);
  background-position: 51% 54%;
}

.skill-bundles-panel .role-bundle-card.role-machine-learning-engineer::before {
  transform: scale(1.22);
  background-position: 52% 53%;
}

.skill-bundles-panel .role-bundle-card.role-ai-engineer::before {
  transform: scale(1.22);
  background-position: 50% 54%;
}

.skill-bundles-panel .role-bundle-card.role-data-scientist::before {
  transform: scale(1.16);
  background-position: 50% 52%;
}

.section-insight .insight-action::after {
  right: 18px;
  width: 126px;
  height: 126px;
  background: url('/app/assets/analytics_section/action_plan_target_overlay.png') center / contain no-repeat;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.22));
  opacity: 0.74;
  pointer-events: none;
}

@media (max-width: 720px) {
  .role-demand-panel .role-demand-row {
    grid-template-columns: 1fr;
  }

  .section-insight .insight-action::after {
    display: none;
  }
}

/* Role Intelligence final cleanup: remove dead space and normalize card art */
.role-demand-panel #roleDemandChart,
#roleDemandChart {
  min-height: 0;
}

.role-demand-panel.compact-graph,
.role-demand-panel.panel-graph {
  min-height: 0 !important;
  padding-bottom: 12px;
}

.role-demand-panel .role-demand-chart-wrap.role-demand-premium {
  min-height: 0 !important;
  gap: 5px;
  padding-top: 0;
}

.role-demand-panel .role-demand-rows {
  gap: 11px;
}

.role-demand-panel .role-demand-row {
  grid-template-columns: minmax(220px, 252px) minmax(0, 1fr) 98px;
  gap: 14px;
}

.role-demand-panel .role-demand-track {
  height: 21px;
}

.role-demand-panel .role-demand-gridlines {
  inset: 4px 112px 26px 266px;
}

.role-demand-panel .role-demand-axis {
  margin-left: 266px;
  margin-right: 112px;
  margin-top: -3px;
}

.role-demand-panel .role-demand-axis-label {
  margin-top: -12px;
  font-size: 11px;
}

.skill-bundles-panel .role-bundle-card::before,
.skill-bundles-panel .role-bundle-card.role-data-scientist::before,
.skill-bundles-panel .role-bundle-card.role-machine-learning-engineer::before,
.skill-bundles-panel .role-bundle-card.role-applied-scientist::before,
.skill-bundles-panel .role-bundle-card.role-ai-engineer::before {
  inset: 0;
  transform: none;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.84;
}

.section-insight .insight-action::after {
  width: 132px;
  height: 116px;
  right: 16px;
  background-image: url('/app/assets/analytics_section/action_plan_target_overlay.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.82;
}

/* Role Intelligence hard trim after asset crop */
.role-demand-panel {
  align-self: start;
}

.role-demand-panel #roleDemandChart.chart-area {
  min-height: 0 !important;
  height: auto;
}

.role-demand-panel.panel-graph,
.role-demand-panel.compact-graph {
  padding-bottom: 8px;
}

.role-demand-panel .panel-header {
  margin-bottom: 8px;
}

.role-demand-panel .role-demand-chart-wrap.role-demand-premium {
  gap: 3px;
}

.role-demand-panel .role-demand-rows {
  gap: 9px;
}

.role-demand-panel .role-demand-axis-label {
  display: none;
}

.skill-bundles-panel .role-bundle-card::before,
.skill-bundles-panel .role-bundle-card.role-data-scientist::before,
.skill-bundles-panel .role-bundle-card.role-machine-learning-engineer::before,
.skill-bundles-panel .role-bundle-card.role-applied-scientist::before,
.skill-bundles-panel .role-bundle-card.role-ai-engineer::before {
  inset: 0;
  transform: none;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Skill bundle background edge-fill pass */
.skill-bundles-panel .role-bundle-card::before,
.skill-bundles-panel .role-bundle-card.role-data-scientist::before,
.skill-bundles-panel .role-bundle-card.role-machine-learning-engineer::before,
.skill-bundles-panel .role-bundle-card.role-applied-scientist::before,
.skill-bundles-panel .role-bundle-card.role-ai-engineer::before {
  inset: -7%;
  transform: scale(1.08);
  transform-origin: center;
  background-size: cover;
  background-position: center;
}

.skill-bundles-panel .role-bundle-card.role-data-scientist::before {
  inset: -10%;
  transform: scale(1.12);
}

.skill-bundles-panel .role-bundle-card.role-machine-learning-engineer::before {
  inset: -10%;
  transform: scale(1.13);
}

.skill-bundles-panel .role-bundle-card.role-applied-scientist::before,
.skill-bundles-panel .role-bundle-card.role-ai-engineer::before {
  transform: scale(1.10);
}

/* Skill Analysis premium card treatment */
.skill-analysis-section {
  position: relative;
}

.skill-analysis-section .analysis-section-title {
  letter-spacing: -0.015em;
}

.skill-analysis-section .analysis-section-title span {
  background-image: linear-gradient(90deg, #66f2ff, #27e7df, #34a8ff);
}

.skill-analysis-section .analysis-grid {
  gap: 18px;
  align-items: stretch;
}

.skill-analysis-section .skill-card-panel {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(0, 190, 255, 0.40);
  background:
    radial-gradient(circle at 88% 7%, rgba(0, 174, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 12% 92%, rgba(45, 255, 179, 0.08), transparent 15rem),
    linear-gradient(180deg, rgba(6, 20, 38, 0.94), rgba(1, 8, 19, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 34px rgba(102, 242, 255, 0.055),
    0 0 28px rgba(0, 190, 255, 0.12),
    0 20px 54px rgba(0, 0, 0, 0.34);
}

.skill-analysis-section .skill-card-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(rgba(102, 242, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 242, 255, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 94% 14%, rgba(102, 242, 255, 0.30), transparent 2px),
    radial-gradient(circle at 88% 18%, rgba(102, 242, 255, 0.22), transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(102, 242, 255, 0.18), transparent 2px);
  background-size: 34px 34px, 34px 34px, 42px 42px, 42px 42px, 42px 42px;
  mask-image: linear-gradient(180deg, #000, #000 78%, transparent);
  opacity: 0.62;
}

.skill-analysis-section .skill-card-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(102, 242, 255, 0.52) 22%, transparent 30% 100%) top left / 100% 1px no-repeat,
    radial-gradient(circle at 50% 0, rgba(102, 242, 255, 0.20), transparent 18rem);
  opacity: 0.92;
}

.skill-analysis-section .skill-card-panel > * {
  position: relative;
  z-index: 2;
}

.skill-analysis-section .panel-header {
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.skill-analysis-section .panel-header::before {
  content: "";
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  border: 1px solid rgba(0, 211, 255, 0.42);
  background:
    radial-gradient(circle at 45% 35%, rgba(45, 255, 179, 0.20), transparent 58%),
    linear-gradient(135deg, rgba(0, 201, 255, 0.18), rgba(5, 26, 50, 0.70));
  box-shadow:
    inset 0 0 18px rgba(102, 242, 255, 0.13),
    0 0 20px rgba(0, 190, 255, 0.16);
  mask: var(--skill-icon-mask) center / 58% no-repeat, linear-gradient(#000 0 0);
  -webkit-mask: var(--skill-icon-mask) center / 58% no-repeat, linear-gradient(#000 0 0);
}

.skill-analysis-section .top-skills-panel .panel-header::before {
  --skill-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 2 2.7 5.5 6.1.9-4.4 4.3 1 6.1L12 15.9 6.6 18.8l1-6.1-4.4-4.3 6.1-.9L12 2Z'/%3E%3C/svg%3E");
}

.skill-analysis-section .skill-trends-panel .panel-header::before {
  --skill-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 19V5h2v12h14v2H4Zm4-4 3.2-4.1 3.2 2.2L19 7.5 20.6 9 14.8 16l-3.2-2.2L9.5 16.5 8 15Z'/%3E%3C/svg%3E");
}

.skill-analysis-section .panel-header .eyebrow {
  margin: 0 0 5px;
  color: #00e5ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.skill-analysis-section .panel-header h3 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.skill-analysis-section .panel-meta {
  margin-left: auto;
  color: rgba(226, 232, 240, 0.70);
  font-size: 13px;
  font-weight: 800;
}

.skill-analysis-section .bar-list {
  gap: 10px;
}

.skill-analysis-section .bar-row {
  min-height: 66px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 174, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 30%),
    linear-gradient(90deg, rgba(5, 24, 45, 0.92), rgba(4, 15, 31, 0.80));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 18px rgba(102, 242, 255, 0.035),
    0 10px 28px rgba(0, 0, 0, 0.24);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.skill-analysis-section .bar-row:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 242, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 22px rgba(102, 242, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.30),
    0 0 20px rgba(102, 242, 255, 0.08);
}

.skill-analysis-section .bar-row-top {
  align-items: center;
}

.skill-analysis-section .bar-name {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 900;
}

.skill-analysis-section .bar-value {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 900;
}

.skill-analysis-section .bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.26);
}

.skill-analysis-section .bar-fill {
  border-radius: inherit;
}

.skill-analysis-section #skillTrendChart {
  position: relative;
  min-height: 306px;
  padding: 10px 10px 0;
  border-radius: 16px;
  background:
    linear-gradient(rgba(102, 242, 255, 0.040) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 242, 255, 0.030) 1px, transparent 1px),
    radial-gradient(circle at 78% 14%, rgba(102, 242, 255, 0.09), transparent 16rem),
    rgba(1, 8, 18, 0.34);
  background-size: 32px 32px, 32px 32px, auto, auto;
  border: 1px solid rgba(102, 242, 255, 0.11);
  box-shadow: inset 0 0 24px rgba(102, 242, 255, 0.035);
}

.skill-analysis-section #skillTrendChart .svg-chart {
  width: 100%;
  height: 258px;
  display: block;
}

.skill-analysis-section #skillTrendChart .chart-line-core {
  stroke-width: 3.5;
  filter: drop-shadow(0 0 8px currentColor);
}

.skill-analysis-section #skillTrendChart .chart-line-glow {
  opacity: 0.22;
}

.skill-analysis-section #skillTrendChart .chart-legend {
  margin-top: 4px;
  justify-content: center;
  gap: 10px 18px;
}

.skill-analysis-section #skillTrendChart .legend-item {
  color: rgba(226, 232, 240, 0.86);
  font-size: 12px;
  font-weight: 850;
}

.skill-analysis-section #skillTrendChart .legend-swatch {
  width: 9px;
  height: 9px;
}

@media (max-width: 1080px) {
  .skill-analysis-section .analysis-grid {
    grid-template-columns: 1fr;
  }

  .skill-analysis-section .skill-card-panel {
    min-height: 0;
  }
}

/* Skill Analysis icon-orb correction */
.skill-analysis-section .panel-header::before {
  mask: none;
  -webkit-mask: none;
  background:
    var(--skill-icon-image) center / 24px 24px no-repeat,
    radial-gradient(circle at 45% 35%, rgba(45, 255, 179, 0.20), transparent 58%),
    linear-gradient(135deg, rgba(0, 201, 255, 0.18), rgba(5, 26, 50, 0.70));
}

.skill-analysis-section .top-skills-panel .panel-header::before {
  --skill-icon-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2366f2ff' d='m12 2 2.7 5.5 6.1.9-4.4 4.3 1 6.1L12 15.9 6.6 18.8l1-6.1-4.4-4.3 6.1-.9L12 2Z'/%3E%3C/svg%3E");
}

.skill-analysis-section .skill-trends-panel .panel-header::before {
  --skill-icon-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2366f2ff' d='M4 19V5h2v12h14v2H4Zm4-4 3.2-4.1 3.2 2.2L19 7.5 20.6 9 14.8 16l-3.2-2.2L9.5 16.5 8 15Z'/%3E%3C/svg%3E");
}

/* Skill Analysis: remove dotted background overlay */
.skill-analysis-section .skill-card-panel::before {
  background:
    radial-gradient(circle at 18% 0%, rgba(102, 242, 255, 0.10), transparent 20rem),
    radial-gradient(circle at 86% 18%, rgba(45, 255, 179, 0.075), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 36%);
  opacity: 0.52;
}

/* Analytics hero vertical alignment polish */
.analytics-hero .analytics-hero-copy {
  margin-top: -112px;
}

.analytics-hero-subheadline {
  font-size: clamp(25px, 1.95vw, 30px);
}

@media (max-width: 900px) {
  .analytics-hero .analytics-hero-copy {
    margin-top: -64px;
  }

  .analytics-hero-subheadline {
    font-size: clamp(21px, 5vw, 26px);
  }
}

/* Analytics insight and Skill Analysis corrections */
.section-insight-copy::after {
  content: none !important;
  display: none !important;
}

.skill-analysis-section .panel-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.skill-analysis-section .panel-header > div {
  margin: 0;
  min-width: 0;
}

.skill-analysis-section .panel-meta,
.skill-analysis-section .skill-trends-panel .panel-meta {
  display: none !important;
}

.skill-analysis-section .top-skills-panel .bar-list {
  display: grid;
  gap: 14px;
}

.skill-analysis-section .top-skills-panel .bar-row {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) minmax(118px, 170px);
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(0, 190, 255, 0.24);
  background:
    radial-gradient(circle at 4% 50%, rgba(102, 242, 255, 0.08), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), transparent 34%),
    linear-gradient(90deg, rgba(5, 24, 45, 0.92), rgba(3, 13, 29, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 16px rgba(102, 242, 255, 0.030),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.skill-analysis-section .top-skills-panel .bar-row-top {
  display: contents;
}

.skill-analysis-section .top-skills-panel .bar-name {
  grid-column: 1;
  grid-row: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-analysis-section .top-skills-panel .bar-value {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: rgba(255, 255, 255, 0.90);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.skill-analysis-section .top-skills-panel .bar-track {
  grid-column: 2;
  grid-row: 1;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(90deg, rgba(255,255,255,0.045), rgba(255,255,255,0.024));
  box-shadow: inset 0 0 14px rgba(255,255,255,0.032);
}

.skill-analysis-section .top-skills-panel .bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.skill-analysis-section #skillTrendChart .chart-line-glow {
  display: none;
}

.skill-analysis-section #skillTrendChart .chart-line-core {
  stroke-width: 3.6px;
  opacity: 0.98;
  filter: none;
}

.skill-analysis-section #skillTrendChart .legend-swatch {
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .skill-analysis-section .top-skills-panel .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skill-analysis-section .top-skills-panel .bar-name,
  .skill-analysis-section .top-skills-panel .bar-value,
  .skill-analysis-section .top-skills-panel .bar-track {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }
}

/* Top Skills bars: keep colors, use demand-bar geometry */
.skill-analysis-section .top-skills-panel .bar-fill {
  border-radius: inherit !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    0 0 12px rgba(255,255,255,0.10) !important;
}

/* Restore full-length Top Skills bars */
.skill-analysis-section .top-skills-panel .bar-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  min-height: 78px;
  padding: 14px 18px;
}

.skill-analysis-section .top-skills-panel .bar-row-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.skill-analysis-section .top-skills-panel .bar-name,
.skill-analysis-section .top-skills-panel .bar-value,
.skill-analysis-section .top-skills-panel .bar-track {
  grid-column: auto !important;
  grid-row: auto !important;
}

.skill-analysis-section .top-skills-panel .bar-name {
  flex: 1 1 auto;
  min-width: 0;
}

.skill-analysis-section .top-skills-panel .bar-value {
  flex: 0 0 auto;
}

.skill-analysis-section .top-skills-panel .bar-track {
  width: 100%;
  justify-self: stretch;
  height: 18px;
}

.skill-analysis-section .top-skills-panel .bar-fill {
  display: block;
}

/* Market Analytics: unify dashboard cards with Role Intelligence navy surface */
#analyticsPage .analysis-section .panel-graph,
#analyticsPage .weekly-prep-panel {
  border-color: rgba(0, 190, 255, 0.45) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 176, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(8, 24, 43, 0.86), rgba(2, 9, 20, 0.95)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 28px rgba(102, 242, 255, 0.045),
    0 0 24px rgba(0, 190, 255, 0.10),
    0 18px 42px rgba(0, 0, 0, 0.34) !important;
}

#analyticsPage .analysis-section .panel-graph::before,
#analyticsPage .weekly-prep-panel::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 6% 100%, rgba(45, 255, 179, 0.06), transparent 16rem) !important;
  opacity: 0.8 !important;
}

#analyticsPage .analysis-section .panel-graph:hover,
#analyticsPage .weekly-prep-panel:hover {
  border-color: rgba(102, 242, 255, 0.52) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 30px rgba(102, 242, 255, 0.055),
    0 0 28px rgba(0, 190, 255, 0.13),
    0 24px 56px rgba(0, 0, 0, 0.38) !important;
}

/* Skill Analysis premium deep navy card pass */
#analyticsPage .skill-analysis-section .skill-card-panel {
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.72) !important;
  background:
    radial-gradient(circle at 82% 0%, rgba(0, 140, 255, 0.18), transparent 19rem),
    radial-gradient(circle at 0% 0%, rgba(45, 255, 179, 0.09), transparent 16rem),
    linear-gradient(180deg, rgba(5, 22, 42, 0.98), rgba(1, 8, 20, 0.995)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 38px rgba(0, 178, 255, 0.08),
    0 0 0 1px rgba(14, 165, 233, 0.10),
    0 0 34px rgba(0, 184, 255, 0.18),
    0 24px 58px rgba(0, 0, 0, 0.48) !important;
}

#analyticsPage .skill-analysis-section .skill-card-panel::before {
  background:
    radial-gradient(circle at 12% 6%, rgba(102, 242, 255, 0.13), transparent 14rem),
    radial-gradient(circle at 88% 10%, rgba(0, 132, 255, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%) !important;
  opacity: 0.72 !important;
  mask-image: none !important;
}

#analyticsPage .skill-analysis-section .skill-card-panel::after {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.82) 16%, rgba(0, 221, 255, 0.94) 24%, transparent 38% 100%) top left / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(0, 194, 255, 0.14), transparent 20%) !important;
  opacity: 0.82 !important;
}

#analyticsPage .skill-analysis-section .panel-header::before {
  border-color: rgba(0, 205, 255, 0.52);
  background:
    var(--skill-icon-image) center / 23px 23px no-repeat,
    radial-gradient(circle at 50% 40%, rgba(102, 242, 255, 0.26), transparent 52%),
    linear-gradient(145deg, rgba(2, 70, 105, 0.78), rgba(2, 22, 42, 0.96)) !important;
  box-shadow:
    inset 0 0 18px rgba(102, 242, 255, 0.14),
    0 0 22px rgba(0, 190, 255, 0.20);
}

#analyticsPage .skill-analysis-section .panel-header .eyebrow {
  color: #00d9ff;
  text-shadow: 0 0 14px rgba(0, 217, 255, 0.20);
}

#analyticsPage .skill-analysis-section .panel-header h3 {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.10);
}

#analyticsPage .skill-analysis-section .top-skills-panel .bar-row {
  border-color: rgba(0, 167, 255, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(15, 43, 72, 0.72), rgba(4, 18, 37, 0.92)),
    radial-gradient(circle at 0% 50%, rgba(0, 194, 255, 0.10), transparent 12rem) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 22px rgba(0, 194, 255, 0.045),
    0 14px 32px rgba(0, 0, 0, 0.30) !important;
}

#analyticsPage .skill-analysis-section .top-skills-panel .bar-row:hover {
  border-color: rgba(102, 242, 255, 0.52) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 24px rgba(102, 242, 255, 0.065),
    0 18px 38px rgba(0, 0, 0, 0.36),
    0 0 24px rgba(0, 184, 255, 0.12) !important;
}

#analyticsPage .skill-analysis-section .top-skills-panel .bar-track {
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  background: rgba(12, 29, 52, 0.90) !important;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.34) !important;
}

#analyticsPage .skill-analysis-section .top-skills-panel .bar-fill {
  border-radius: 999px !important;
}

#analyticsPage .skill-analysis-section #skillTrendChart {
  border: 1px solid rgba(0, 194, 255, 0.24) !important;
  background:
    radial-gradient(circle at 78% 8%, rgba(0, 128, 255, 0.10), transparent 17rem),
    linear-gradient(180deg, rgba(5, 20, 38, 0.78), rgba(1, 8, 18, 0.92)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.028),
    inset 0 0 26px rgba(0, 174, 255, 0.045) !important;
}

#analyticsPage .skill-analysis-section #skillTrendChart .chart-line-core {
  opacity: 1;
  filter: none !important;
}

/* Requirements Analysis reference-style cards */
#analyticsPage .requirements-analysis-section .analysis-section-header {
  position: relative;
  align-items: center;
  padding-bottom: 14px;
}

#analyticsPage .requirements-analysis-section .analysis-section-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d9ff, #3b82f6);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.35);
}

#analyticsPage .requirements-analysis-section .analysis-section-header::after {
  content: "Live";
  margin-left: auto;
  padding: 7px 18px 7px 30px;
  border-radius: 999px;
  border: 1px solid rgba(0, 205, 255, 0.34);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
  background:
    radial-gradient(circle at 18px 50%, #2dffb3 0 4px, transparent 5px),
    linear-gradient(180deg, rgba(6, 28, 50, 0.84), rgba(1, 10, 24, 0.90));
  box-shadow:
    inset 0 0 18px rgba(0, 205, 255, 0.055),
    0 0 18px rgba(0, 190, 255, 0.10);
}

#analyticsPage .requirements-analysis-section .analysis-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

#analyticsPage .requirements-analysis-section .panel-graph {
  min-height: 390px;
  padding: 26px 24px;
  border-radius: 18px;
}

#analyticsPage .requirements-analysis-section .requirement-trends-panel {
  border-color: rgba(59, 130, 246, 0.68) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(59, 130, 246, 0.32), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(0, 217, 255, 0.10), transparent 16rem),
    linear-gradient(180deg, rgba(5, 22, 54, 0.96), rgba(2, 10, 27, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 36px rgba(59, 130, 246, 0.10),
    0 0 34px rgba(37, 99, 235, 0.20),
    0 20px 52px rgba(0, 0, 0, 0.42) !important;
}

#analyticsPage .requirements-analysis-section .role-reality-panel {
  border-color: rgba(45, 255, 179, 0.48) !important;
  background:
    radial-gradient(circle at 94% 0%, rgba(45, 255, 179, 0.22), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(0, 217, 255, 0.08), transparent 16rem),
    linear-gradient(180deg, rgba(4, 31, 39, 0.94), rgba(1, 11, 24, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 36px rgba(45, 255, 179, 0.08),
    0 0 34px rgba(45, 255, 179, 0.13),
    0 20px 52px rgba(0, 0, 0, 0.42) !important;
}

#analyticsPage .requirements-analysis-section .panel-graph::before {
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.12), transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, transparent 70%, rgba(0, 217, 255, 0.04)) !important;
  opacity: 0.78 !important;
}

#analyticsPage .requirements-analysis-section .panel-graph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), rgba(0, 217, 255, 0.85), transparent) top left / 100% 2px no-repeat,
    radial-gradient(circle at 96% 4%, rgba(102, 242, 255, 0.28), transparent 10rem);
  opacity: 0.62;
}

#analyticsPage .requirements-analysis-section .panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

#analyticsPage .requirements-analysis-section .panel-header::before {
  content: "";
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 13px;
  border: 1px solid rgba(0, 205, 255, 0.42);
  background:
    var(--requirement-panel-icon) center / 25px 25px no-repeat,
    radial-gradient(circle at 50% 42%, rgba(102, 242, 255, 0.20), transparent 58%),
    linear-gradient(145deg, rgba(5, 50, 88, 0.82), rgba(4, 17, 39, 0.96));
  box-shadow:
    inset 0 0 18px rgba(102, 242, 255, 0.12),
    0 0 22px rgba(0, 190, 255, 0.16);
}

#analyticsPage .requirements-analysis-section .requirement-trends-panel .panel-header::before {
  --requirement-panel-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%2366F2FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 19V5m0 14h16M7 15l4-5 4 3 5-7'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .role-reality-panel .panel-header::before {
  --requirement-panel-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232DFFB3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 3v4m0 10v4M3 12h4m10 0h4M12 9v6m-3-3h6'/%3E%3C/g%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .panel-header .eyebrow {
  margin: 0 0 6px;
  color: #00d9ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

#analyticsPage .requirements-analysis-section .role-reality-panel .panel-header .eyebrow {
  color: #2dffb3;
}

#analyticsPage .requirements-analysis-section .panel-header h3 {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-title);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

#analyticsPage .requirements-analysis-section .metric-grid,
#analyticsPage .requirements-analysis-section .reality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

#analyticsPage .requirements-analysis-section .metric-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 96px;
  padding: 18px 16px 16px 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--metric-accent, #66f2ff) 54%, rgba(255,255,255,0.10));
  background:
    radial-gradient(circle at 88% 34%, color-mix(in srgb, var(--metric-accent, #66f2ff) 13%, transparent), transparent 5.2rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(135deg, rgba(7, 31, 56, 0.86), rgba(2, 12, 28, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 22px color-mix(in srgb, var(--metric-accent, #66f2ff) 11%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.26);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

#analyticsPage .requirements-analysis-section .metric-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--metric-accent, #66f2ff) 76%, rgba(255,255,255,0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 26px color-mix(in srgb, var(--metric-accent, #66f2ff) 15%, transparent),
    0 16px 34px rgba(0, 0, 0, 0.32),
    0 0 20px color-mix(in srgb, var(--metric-accent, #66f2ff) 18%, transparent);
}

#analyticsPage .requirements-analysis-section .metric-card strong {
  color: #f8fafc !important;
  font-family: var(--font-title);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.12) !important;
}

#analyticsPage .requirements-analysis-section .metric-card span {
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.62);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

#analyticsPage .requirements-analysis-section .metric-icon {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--metric-accent, #66f2ff) 58%, transparent);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--metric-accent, #66f2ff) 20%, transparent), transparent 58%),
    rgba(3, 19, 41, 0.72);
  box-shadow:
    inset 0 0 18px color-mix(in srgb, var(--metric-accent, #66f2ff) 14%, transparent),
    0 0 18px color-mix(in srgb, var(--metric-accent, #66f2ff) 12%, transparent);
}

#analyticsPage .requirements-analysis-section .metric-icon::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--metric-accent, #66f2ff);
  mask: var(--metric-icon-mask) center / contain no-repeat;
  -webkit-mask: var(--metric-icon-mask) center / contain no-repeat;
}

#analyticsPage .requirements-analysis-section .metric-card {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 19h16v2H4v-2Zm2-2V9h3v8H6Zm5 0V3h3v14h-3Zm5 0v-6h3v6h-3Z'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .metric-avg-years-experience-min,
#analyticsPage .requirements-analysis-section .metric-degree-required-percentage,
#analyticsPage .requirements-analysis-section .metric-entry-level-percentage {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2Zm11 8H6v10h12V10ZM6 8h12V6H6v2Z'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .metric-cloud-mlops-percentage,
#analyticsPage .requirements-analysis-section .metric-genai-percentage {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 19a5 5 0 0 1-.7-9.95A7 7 0 0 1 19 10a4.5 4.5 0 0 1-.5 9H6Zm0-2h12.5a2.5 2.5 0 0 0 .08-5H17v-1a5 5 0 0 0-9.9-1l-.2.95-.97.08A3 3 0 0 0 6 17Z'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .metric-remote-percentage {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 18.5 4.8 11.3l1.4-1.4L12 15.7l5.8-5.8 1.4 1.4L12 18.5Zm0-5-4.2-4.2 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4L12 13.5Zm0-5L10.3 6.8 12 5.1l1.7 1.7L12 8.5Z'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .metric-model-building,
#analyticsPage .requirements-analysis-section .metric-research {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2a4 4 0 0 1 3.9 5H16a4 4 0 0 1 0 8h-.1A4 4 0 0 1 8 15H8a4 4 0 0 1 0-8h.1A4 4 0 0 1 12 2Zm0 2a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V6a2 2 0 0 0-2-2ZM7 9a2 2 0 0 0 0 4h1V9H7Zm9 0v4h1a2 2 0 0 0 0-4h-1Z'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .metric-deployment {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2c3 2 5 5 5 8 0 4-3 7-5 9-2-2-5-5-5-9 0-3 2-6 5-8Zm0 4a4 4 0 0 0-3 4c0 2.1 1.4 4 3 5.8 1.6-1.8 3-3.7 3-5.8a4 4 0 0 0-3-4Zm-7 9 2 1-2 5 5-2 1 2-8 3 3-8Zm14 0-1 1 1 5-5-2-1 2 8 3-3-8Z'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .metric-data-pipelines,
#analyticsPage .requirements-analysis-section .metric-platform {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 3 6.5v11L12 22l9-4.5v-11L12 2Zm0 2.2 5.8 2.9L12 10 6.2 7.1 12 4.2ZM5 8.7l6 3v7.1l-6-3V8.7Zm8 10.1v-7.1l6-3v7.1l-6 3Z'/%3E%3C/svg%3E");
}

#analyticsPage .requirements-analysis-section .metric-product-work,
#analyticsPage .requirements-analysis-section .metric-stakeholders {
  --metric-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10 3h4v3h5v14H5V6h5V3Zm2 2v1h0V5Zm5 3H7v10h10V8Zm-8 3h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E");
}

@media (max-width: 1120px) {
  #analyticsPage .requirements-analysis-section .analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #analyticsPage .requirements-analysis-section .metric-grid,
  #analyticsPage .requirements-analysis-section .reality-grid {
    grid-template-columns: 1fr;
  }
}

/* Requirements Analysis alignment and clean metric tiles */
#analyticsPage .requirements-analysis-section .panel-header {
  justify-content: flex-start !important;
  text-align: left !important;
}

#analyticsPage .requirements-analysis-section .panel-header > div {
  margin: 0 !important;
  text-align: left !important;
}

#analyticsPage .requirements-analysis-section .metric-card {
  justify-content: flex-start !important;
}

#analyticsPage .requirements-analysis-section .metric-icon {
  display: none !important;
}

/* Company Analysis premium cards */
#analyticsPage .company-analysis-section .analysis-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

#analyticsPage .company-analysis-section .panel-graph {
  min-height: 370px;
  padding: 24px 24px 18px;
  border-radius: 18px;
  overflow: hidden;
}

#analyticsPage .company-analysis-section .company-list-panel {
  border-color: rgba(0, 132, 255, 0.68) !important;
  background:
    radial-gradient(circle at 94% 0%, rgba(0, 132, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(102, 242, 255, 0.08), transparent 16rem),
    linear-gradient(180deg, rgba(4, 20, 43, 0.98), rgba(1, 8, 20, 0.995)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 34px rgba(0, 132, 255, 0.085),
    0 0 34px rgba(0, 132, 255, 0.16),
    0 22px 54px rgba(0, 0, 0, 0.42) !important;
}

#analyticsPage .company-analysis-section .salary-trends-panel {
  border-color: rgba(45, 255, 179, 0.50) !important;
  background:
    radial-gradient(circle at 94% 0%, rgba(45, 255, 179, 0.17), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(0, 217, 255, 0.07), transparent 16rem),
    linear-gradient(180deg, rgba(3, 27, 38, 0.96), rgba(1, 9, 20, 0.995)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 34px rgba(45, 255, 179, 0.070),
    0 0 34px rgba(45, 255, 179, 0.13),
    0 22px 54px rgba(0, 0, 0, 0.42) !important;
}

#analyticsPage .company-analysis-section .panel-graph::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 94% 10%, rgba(102, 242, 255, 0.22), transparent 11rem) !important;
  opacity: 0.72 !important;
}

#analyticsPage .company-analysis-section .panel-graph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(0, 217, 255, 0.88), transparent) top left / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(0, 194, 255, 0.08), transparent 20%);
  opacity: 0.76;
}

#analyticsPage .company-analysis-section .panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  text-align: left;
}

#analyticsPage .company-analysis-section .panel-header > div {
  margin: 0;
  text-align: left;
}

#analyticsPage .company-analysis-section .panel-header::before {
  content: "";
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 13px;
  border: 1px solid rgba(0, 205, 255, 0.40);
  background:
    var(--company-panel-icon) center / 24px 24px no-repeat,
    radial-gradient(circle at 50% 42%, rgba(102, 242, 255, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(5, 50, 88, 0.78), rgba(4, 17, 39, 0.96));
  box-shadow:
    inset 0 0 18px rgba(102, 242, 255, 0.12),
    0 0 20px rgba(0, 190, 255, 0.15);
}

#analyticsPage .company-analysis-section .company-list-panel .panel-header::before {
  --company-panel-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2366F2FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 19c.8-3.2 3-5 5-5s4.2 1.8 5 5M14 18c.5-2.3 1.9-3.6 3.4-3.6s2.9 1.3 3.4 3.6'/%3E%3C/g%3E%3C/svg%3E");
}

#analyticsPage .company-analysis-section .salary-trends-panel .panel-header::before {
  --company-panel-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232DFFB3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='3'/%3E%3Cpath d='M8 10h5M17 13h.01M15 13h4v3h-4z'/%3E%3C/g%3E%3C/svg%3E");
}

#analyticsPage .company-analysis-section .panel-header .eyebrow {
  margin: 0 0 6px;
  color: #00d9ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

#analyticsPage .company-analysis-section .salary-trends-panel .panel-header .eyebrow {
  color: #2dffb3;
}

#analyticsPage .company-analysis-section .panel-header h3 {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-title);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

#analyticsPage .company-analysis-section .rank-list {
  gap: 10px;
}

#analyticsPage .company-analysis-section .company-rank-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 132, 255, 0.34) !important;
  background:
    linear-gradient(90deg, rgba(7, 35, 69, 0.86), rgba(2, 13, 30, 0.88)),
    radial-gradient(circle at 90% 50%, rgba(0, 132, 255, 0.10), transparent 10rem) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 18px rgba(0, 132, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.25) !important;
}

#analyticsPage .company-analysis-section .company-rank-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 242, 255, 0.52) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 22px rgba(0, 132, 255, 0.065),
    0 14px 30px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(0, 132, 255, 0.11) !important;
}

#analyticsPage .company-analysis-section .rank-index {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #dff8ff;
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.62), rgba(3, 24, 58, 0.98));
  border: 1px solid rgba(102, 242, 255, 0.28);
  box-shadow:
    inset 0 0 12px rgba(102, 242, 255, 0.18),
    0 0 14px rgba(0, 132, 255, 0.16);
}

#analyticsPage .company-analysis-section .rank-name {
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 950;
}

#analyticsPage .company-analysis-section .rank-sub {
  margin-top: 3px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
}

#analyticsPage .company-analysis-section .rank-meta {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(102, 242, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(5, 18, 40, 0.72);
  box-shadow: inset 0 0 14px rgba(102, 242, 255, 0.035);
}

#analyticsPage .company-analysis-section .salary-panel {
  gap: 16px;
}

#analyticsPage .company-analysis-section .salary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(45, 255, 179, 0.24) !important;
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 20%, rgba(45, 255, 179, 0.10), transparent 12rem),
    linear-gradient(180deg, rgba(7, 31, 48, 0.86), rgba(2, 12, 28, 0.94)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.032),
    inset 0 0 24px rgba(45, 255, 179, 0.045),
    0 12px 28px rgba(0, 0, 0, 0.25) !important;
}

#analyticsPage .company-analysis-section .salary-range-card {
  min-height: 162px;
  padding: 20px 22px 16px;
}

#analyticsPage .company-analysis-section .salary-skill-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(150px, 0.42fr);
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

#analyticsPage .company-analysis-section .salary-card-head,
#analyticsPage .company-analysis-section .salary-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#analyticsPage .company-analysis-section .salary-label {
  color: #2dffb3;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

#analyticsPage .company-analysis-section .salary-samples {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(45, 255, 179, 0.15);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(3, 22, 34, 0.80);
  font-size: 13px;
  font-weight: 850;
}

#analyticsPage .company-analysis-section .salary-range-value {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(30px, 3.1vw, 43px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

#analyticsPage .company-analysis-section .salary-range-plot {
  position: relative;
  height: 30px;
  margin: 22px 4px 0;
}

#analyticsPage .company-analysis-section .salary-range-line,
#analyticsPage .company-analysis-section .salary-range-active {
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
}

#analyticsPage .company-analysis-section .salary-range-active {
  left: var(--salary-left);
  right: calc(100% - var(--salary-right));
  background: linear-gradient(90deg, rgba(45, 255, 179, 0.48), rgba(0, 217, 255, 0.90));
  box-shadow: 0 0 16px rgba(45, 255, 179, 0.30);
}

#analyticsPage .company-analysis-section .salary-range-dot {
  position: absolute;
  top: 8px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 999px;
  background: #00f5ff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.42);
}

#analyticsPage .company-analysis-section .salary-range-dot-min { left: var(--salary-left); }
#analyticsPage .company-analysis-section .salary-range-dot-max { left: var(--salary-right); }

#analyticsPage .company-analysis-section .salary-axis {
  display: flex;
  justify-content: space-between;
  color: rgba(148, 163, 184, 0.72);
  font-size: 12px;
  font-weight: 850;
}

#analyticsPage .company-analysis-section .salary-skill-row {
  margin-top: 12px;
}

#analyticsPage .company-analysis-section .salary-skill-row strong {
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1;
}

#analyticsPage .company-analysis-section .salary-skill-row span {
  color: #fff;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 950;
  white-space: nowrap;
}

#analyticsPage .company-analysis-section .salary-sparkline {
  width: 100%;
  min-width: 150px;
  height: 62px;
  overflow: visible;
}

#analyticsPage .company-analysis-section .salary-sparkline-grid {
  fill: none;
  stroke: rgba(102, 242, 255, 0.11);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

#analyticsPage .company-analysis-section .salary-sparkline-line {
  fill: none;
  stroke: #00e5ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(0, 229, 255, 0.30));
}

#analyticsPage .company-analysis-section .salary-sparkline-dot {
  fill: #2dffb3;
  filter: drop-shadow(0 0 8px rgba(45, 255, 179, 0.45));
}

@media (max-width: 1120px) {
  #analyticsPage .company-analysis-section .analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  #analyticsPage .company-analysis-section .company-rank-card,
  #analyticsPage .company-analysis-section .salary-skill-card {
    grid-template-columns: 1fr;
  }

  #analyticsPage .company-analysis-section .rank-meta,
  #analyticsPage .company-analysis-section .salary-skill-row {
    justify-self: start;
  }
}

/* Weekly prep: single premium timeline card */
#analyticsPage .weekly-prep-section {
  margin-top: 22px;
}

#analyticsPage .weekly-prep-panel {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 38px;
  border-radius: 28px;
  border: 1px solid rgba(102, 242, 255, 0.55) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 255, 179, 0.11), transparent 20rem),
    radial-gradient(circle at 96% 100%, rgba(59, 130, 246, 0.15), transparent 26rem),
    linear-gradient(180deg, rgba(3, 15, 32, 0.98), rgba(1, 7, 18, 0.995)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 42px rgba(102, 242, 255, 0.07),
    0 0 0 1px rgba(0, 194, 255, 0.12),
    0 0 38px rgba(0, 214, 255, 0.16),
    0 28px 70px rgba(0, 0, 0, 0.48) !important;
}

#analyticsPage .weekly-prep-panel > .panel-header {
  display: none;
}

#analyticsPage .weekly-prep-panel::before {
  background:
    radial-gradient(circle at 78% 8%, rgba(102, 242, 255, 0.08), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 18%),
    linear-gradient(180deg, transparent 64%, rgba(45, 255, 179, 0.04)) !important;
  opacity: 0.72 !important;
}

#analyticsPage .weekly-prep-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  pointer-events: none;
  border-radius: 24px;
  background-image: radial-gradient(circle, rgba(102, 242, 255, 0.26) 0 1px, transparent 1.5px);
  background-size: 42px 42px;
  mask-image: linear-gradient(120deg, transparent 0%, black 36%, transparent 78%);
  opacity: 0.16;
}

#analyticsPage .weekly-prep-panel:hover {
  transform: translateY(-3px);
}

#analyticsPage .weekly-prep-panel .prep-list {
  position: relative;
  z-index: 2;
  display: block;
}

#analyticsPage .weekly-prep-brief {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#analyticsPage .weekly-prep-hero {
  margin-bottom: 30px;
}

#analyticsPage .weekly-prep-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 8px 15px;
  border: 1px solid rgba(45, 255, 179, 0.26);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(8, 47, 73, 0.28));
  color: #36f7ff;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 14px rgba(45, 255, 179, 0.08),
    0 0 22px rgba(45, 255, 179, 0.10);
}

#analyticsPage .weekly-prep-spark {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ffffff, #66f2ff 48%, #2dffb3);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  box-shadow: 0 0 16px rgba(102, 242, 255, 0.45);
}

#analyticsPage .weekly-prep-brief h4 {
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 12px 36px rgba(255, 255, 255, 0.08);
}

#analyticsPage .weekly-prep-accent {
  display: block;
  width: 112px;
  height: 5px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #66f2ff 0 58%, #5b7cff 58% 76%, transparent 76% 100%);
  box-shadow: 0 0 18px rgba(102, 242, 255, 0.34);
}

#analyticsPage .weekly-prep-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 76px;
}

#analyticsPage .weekly-prep-list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 38px;
  bottom: 48px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2dffb3, #66f2ff 42%, #3b82f6 70%, #c084fc 100%);
  box-shadow: 0 0 18px rgba(102, 242, 255, 0.48);
  opacity: 0.9;
}

#analyticsPage .weekly-prep-list .prep-item {
  --step-accent: #66f2ff;
  --step-accent-2: #2dffb3;
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-height: 116px;
  padding: 18px 26px 18px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#analyticsPage .weekly-prep-list .prep-item::before {
  content: "";
  position: absolute;
  left: 76px;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--step-accent) 72%, transparent);
  border-radius: 0 21px 21px 21px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--step-accent) 13%, transparent), transparent 18%),
    radial-gradient(circle at 96% 50%, color-mix(in srgb, var(--step-accent) 12%, transparent), transparent 18rem),
    linear-gradient(180deg, rgba(5, 21, 42, 0.90), rgba(2, 10, 24, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 24px color-mix(in srgb, var(--step-accent) 9%, transparent),
    0 0 20px color-mix(in srgb, var(--step-accent) 18%, transparent);
}

#analyticsPage .weekly-prep-list .prep-item::after {
  content: "";
  position: absolute;
  left: -57px;
  top: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(210, 255, 255, 0.72);
  background: var(--step-accent);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--step-accent) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--step-accent) 58%, transparent);
}

#analyticsPage .weekly-prep-list .prep-step-3 { --step-accent: #3b82f6; --step-accent-2: #66f2ff; }
#analyticsPage .weekly-prep-list .prep-step-4 { --step-accent: #fbbf24; --step-accent-2: #c084fc; }

#analyticsPage .weekly-prep-list .prep-number {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--step-accent) 88%, transparent);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--step-accent) 35%, #071426), rgba(5, 15, 34, 0.98));
  color: #fff;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--step-accent) 18%, transparent),
    0 0 24px color-mix(in srgb, var(--step-accent) 28%, transparent);
}

#analyticsPage .weekly-prep-list .prep-item > div {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 0 18px 0 22px;
}

#analyticsPage .weekly-prep-list .prep-title {
  display: block;
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(17px, 1.75vw, 24px);
  font-weight: 850;
  line-height: 1.42;
  letter-spacing: 0;
}

#analyticsPage .weekly-prep-list .prep-reason {
  margin: 8px 0 0;
  color: rgba(230, 245, 255, 0.84);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.5;
}

#analyticsPage .weekly-prep-list .prep-execution::before {
  border-color: rgba(251, 191, 36, 0.76);
  background:
    radial-gradient(circle at 86% 70%, rgba(251, 191, 36, 0.16), transparent 17rem),
    linear-gradient(90deg, rgba(251, 191, 36, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(7, 20, 36, 0.92), rgba(3, 11, 24, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 26px rgba(251, 191, 36, 0.08),
    0 0 26px rgba(251, 191, 36, 0.14);
}

#analyticsPage .weekly-prep-list .execution-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.24);
}

#analyticsPage .weekly-prep-list .execution-arrow {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.62);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.08), 0 0 18px rgba(251, 191, 36, 0.12);
}

#analyticsPage .weekly-prep-list .execution-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fbbf24;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#analyticsPage .weekly-prep-coming-soon {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(102, 242, 255, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(102, 242, 255, 0.10), transparent 18rem),
    linear-gradient(180deg, rgba(5, 21, 42, 0.82), rgba(2, 10, 22, 0.96));
  text-align: center;
  box-shadow: inset 0 0 24px rgba(102, 242, 255, 0.045);
}

#analyticsPage .weekly-prep-coming-soon .prep-title {
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
}

#analyticsPage .weekly-prep-coming-soon .prep-reason {
  margin-top: 10px;
  color: rgba(209, 228, 239, 0.76);
}

@media (max-width: 820px) {
  #analyticsPage .weekly-prep-panel {
    padding: 26px 18px 28px;
    border-radius: 24px;
  }

  #analyticsPage .weekly-prep-list {
    padding-left: 58px;
  }

  #analyticsPage .weekly-prep-list::before {
    left: 21px;
  }

  #analyticsPage .weekly-prep-list .prep-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding-right: 12px;
  }

  #analyticsPage .weekly-prep-list .prep-item::before {
    left: 58px;
  }

  #analyticsPage .weekly-prep-list .prep-item::after {
    left: -45px;
  }

  #analyticsPage .weekly-prep-list .prep-number {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}

/* Analytics final typography tune: weekly prep + AI insight cards */
#analyticsPage .weekly-prep-kicker {
  font-size: 11px;
}

#analyticsPage .weekly-prep-brief h4 {
  font-size: clamp(31px, 3.8vw, 51px);
}

#analyticsPage .weekly-prep-list .prep-number {
  font-size: 31px;
}

#analyticsPage .weekly-prep-list .prep-title {
  font-size: clamp(15px, 1.55vw, 21px);
  line-height: 1.38;
}

#analyticsPage .weekly-prep-list .prep-reason {
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.48;
}

#analyticsPage .weekly-prep-coming-soon .prep-title {
  font-size: clamp(24px, 2.7vw, 39px);
}

#analyticsPage .weekly-prep-coming-soon .prep-reason {
  font-size: 14px;
}

#analyticsPage .weekly-prep-list .execution-checklist {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.62);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.08), 0 0 18px rgba(251, 191, 36, 0.12);
}

#analyticsPage .weekly-prep-list .execution-checklist svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #fbbf24;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#analyticsPage .weekly-prep-list .execution-arrow {
  display: none;
}

#analyticsPage .section-insight .insight-label {
  font-size: 15px;
}

#analyticsPage .section-insight h4 {
  font-size: 20px;
  line-height: 1.24;
}

#analyticsPage .section-insight ul,
#analyticsPage .section-insight li {
  font-size: 16px;
  line-height: 1.55;
}

#analyticsPage .section-insight .insight-action strong {
  font-size: 20px;
}

#analyticsPage .section-insight .insight-action p {
  font-size: 15px;
  line-height: 1.55;
}

#analyticsPage .section-insight .insight-brand {
  font-size: 15px;
}

/* Weekly prep final text scale and execution checklist polish */
#analyticsPage .weekly-prep-list .prep-item:not(.prep-execution) .prep-title {
  font-size: clamp(14px, 1.36vw, 19px);
  line-height: 1.45;
  font-weight: 820;
}

#analyticsPage .weekly-prep-list .prep-item:not(.prep-execution) .prep-reason {
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.46;
}

#analyticsPage .weekly-prep-list .prep-execution .prep-reason.execution-copy {
  font-size: clamp(15px, 1.28vw, 18px);
  font-weight: 850;
  color: rgba(255, 246, 214, 0.92);
}

#analyticsPage .weekly-prep-list .execution-checklist-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

#analyticsPage .weekly-prep-list .execution-checklist-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 246, 214, 0.94);
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.38;
  font-weight: 850;
  letter-spacing: 0;
}

#analyticsPage .weekly-prep-list .execution-checklist-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #fff7cc, #fbbf24 52%, #f59e0b);
  box-shadow:
    0 0 0 4px rgba(251, 191, 36, 0.10),
    0 0 14px rgba(251, 191, 36, 0.58),
    0 0 24px rgba(245, 158, 11, 0.24);
}
/* Leaderboard premium championship redesign */
#leaderboardPage {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.8vw, 42px);
  border-radius: 28px;
  border: 1px solid rgba(102, 242, 255, 0.17);
  background:
    radial-gradient(circle at 82% 10%, rgba(45, 255, 179, 0.10), transparent 24rem),
    radial-gradient(circle at 18% 100%, rgba(59, 130, 246, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(2, 9, 22, 0.98), rgba(0, 4, 12, 0.995));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 48px rgba(102, 242, 255, 0.035),
    0 30px 90px rgba(0, 0, 0, 0.42);
}

#leaderboardPage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(102, 242, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 242, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 70% 28%, rgba(0, 229, 255, 0.12), transparent 18rem);
  background-size: 64px 64px, 64px 64px, auto;
  mask-image: linear-gradient(115deg, transparent 0%, black 28%, black 72%, transparent 100%);
  opacity: 0.42;
}

#leaderboardPage > * {
  position: relative;
  z-index: 1;
}

#leaderboardPage .lb-header {
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.86fr);
  gap: clamp(28px, 4vw, 66px);
  align-items: center;
  margin: 0 0 28px;
  padding: 8px 6px 0;
}

#leaderboardPage .lb-header-copy {
  gap: 20px;
}

#leaderboardPage .lb-header .eyebrow {
  width: fit-content;
  color: #2dfff0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(45, 255, 179, 0.20);
}

#leaderboardPage .lb-header h2 {
  max-width: 760px;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 18px 46px rgba(255, 255, 255, 0.07);
}

#leaderboardPage .lb-header h2 span {
  background: linear-gradient(90deg, #2dffb3, #36f7ff, #38bdf8, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#leaderboardPage .leaderboard-art {
  position: relative;
  justify-self: end;
  width: min(100%, 640px);
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(102, 242, 255, 0.34);
  background: rgba(2, 10, 21, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 28px rgba(102, 242, 255, 0.045),
    0 0 38px rgba(0, 229, 255, 0.10),
    0 24px 70px rgba(0, 0, 0, 0.34);
}

#leaderboardPage .leaderboard-art::after {
  content: "Keep climbing. Greatness is earned.";
  position: absolute;
  right: 22px;
  bottom: 18px;
  max-width: 230px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(102, 242, 255, 0.24);
  color: rgba(235, 252, 255, 0.88);
  background: rgba(3, 11, 24, 0.66);
  box-shadow: inset 0 0 18px rgba(102, 242, 255, 0.05);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

#leaderboardPage .leaderboard-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.05);
}

#leaderboardPage .lb-tabs {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border-color: rgba(102, 242, 255, 0.18);
  background: rgba(3, 11, 26, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 16px 42px rgba(0, 0, 0, 0.28);
}

#leaderboardPage .lb-tab {
  min-height: 48px;
  font-size: 14px;
  font-weight: 850;
}

#leaderboardPage .lb-tab.is-active {
  color: #021018;
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.96), rgba(102, 242, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(102, 242, 255, 0.48),
    0 0 28px rgba(45, 255, 179, 0.24);
}

#leaderboardPage .lb-title-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
}

#leaderboardPage .lb-title-guide article {
  min-height: 76px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(102, 242, 255, 0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(45, 255, 179, 0.10), transparent 8rem),
    linear-gradient(180deg, rgba(7, 25, 47, 0.72), rgba(2, 9, 21, 0.90));
  box-shadow: inset 0 0 18px rgba(102, 242, 255, 0.035);
}

#leaderboardPage .lb-title-guide strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 5px;
}

#leaderboardPage .lb-title-guide span {
  color: rgba(203, 224, 236, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

#leaderboardPage .lb-me {
  margin: 20px 0 16px;
}

#leaderboardPage .lb-me-card {
  min-height: 96px;
  padding: 20px 28px;
  border-radius: 18px;
  border: 1px solid rgba(102, 242, 255, 0.24);
  background:
    radial-gradient(circle at 42% 100%, rgba(45, 255, 179, 0.12), transparent 20rem),
    linear-gradient(90deg, rgba(11, 38, 69, 0.82), rgba(3, 11, 26, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 26px rgba(102, 242, 255, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.26);
}

#leaderboardPage .lb-me-rank {
  position: relative;
  min-width: 178px;
  justify-items: start;
  padding-left: 76px;
}

#leaderboardPage .lb-me-rank::before,
#leaderboardPage .lb-me-rank::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: 2px solid rgba(45, 255, 179, 0.28);
  opacity: 0.76;
}

#leaderboardPage .lb-me-rank::before {
  left: 10px;
  border-right: 0;
  border-radius: 40px 0 0 40px;
}

#leaderboardPage .lb-me-rank::after {
  left: 94px;
  border-left: 0;
  border-radius: 0 40px 40px 0;
}

#leaderboardPage .lb-me-rank strong {
  color: #fff;
  font-size: clamp(42px, 4.2vw, 64px);
  letter-spacing: -0.05em;
}

#leaderboardPage .lb-me-rank span {
  margin-top: -3px;
  color: rgba(203, 224, 236, 0.72);
  font-size: 12px;
  font-weight: 750;
}

#leaderboardPage .lb-me-info {
  padding-left: 24px;
  border-left: 1px solid rgba(203, 224, 236, 0.22);
}

#leaderboardPage .lb-me-label {
  color: rgba(203, 224, 236, 0.76);
  font-size: 13px;
}

#leaderboardPage .lb-me-info strong {
  color: #fff;
  font-size: 26px;
}

#leaderboardPage .lb-me-pct {
  margin-left: auto;
  padding: 12px 24px;
  border: 1px solid rgba(45, 255, 179, 0.58);
  color: #9fffe7;
  background: rgba(45, 255, 179, 0.10);
  box-shadow: inset 0 0 16px rgba(45, 255, 179, 0.08), 0 0 22px rgba(45, 255, 179, 0.12);
  font-size: 15px;
  font-weight: 950;
}

#leaderboardPage .lb-list {
  gap: 10px;
}

#leaderboardPage .lb-loading {
  border-radius: 16px;
  border-color: rgba(102, 242, 255, 0.24);
  background: rgba(7, 24, 46, 0.56);
}

#leaderboardPage .lb-row {
  min-height: 68px;
  padding: 14px 24px;
  gap: 20px;
  border-radius: 14px;
  border: 1px solid rgba(102, 242, 255, 0.13);
  background: linear-gradient(180deg, rgba(8, 24, 45, 0.78), rgba(3, 10, 22, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.026),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

#leaderboardPage .lb-row.is-top {
  border-color: rgba(102, 242, 255, 0.24);
  background:
    radial-gradient(circle at 0% 50%, rgba(45, 255, 179, 0.08), transparent 16rem),
    linear-gradient(180deg, rgba(9, 31, 59, 0.86), rgba(3, 10, 22, 0.94));
}

#leaderboardPage .lb-row.is-me {
  border-color: rgba(45, 255, 179, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 24px rgba(45, 255, 179, 0.06),
    0 0 0 1px rgba(45, 255, 179, 0.20),
    0 0 32px rgba(45, 255, 179, 0.16);
}

#leaderboardPage .lb-rank {
  min-width: 58px;
  color: rgba(226, 244, 255, 0.82);
  font-size: 21px;
  font-weight: 950;
}

#leaderboardPage .lb-row.is-top .lb-rank {
  font-size: 24px;
  color: #f8d56b;
}

#leaderboardPage .lb-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 900;
}

#leaderboardPage .lb-name em {
  color: #2dfff0;
  font-weight: 850;
}

#leaderboardPage .lb-title {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid currentColor;
  background: rgba(3, 13, 28, 0.72);
}

#leaderboardPage .lb-title-ace-ml-champion {
  color: #f8d56b;
  background: rgba(251, 191, 36, 0.10);
}

#leaderboardPage .lb-title-ace-ml-grandmaster {
  color: #2dffb3;
  background: rgba(45, 255, 179, 0.10);
}

#leaderboardPage .lb-title-ace-ml-master {
  color: #66f2ff;
  background: rgba(102, 242, 255, 0.10);
}

#leaderboardPage .lb-xp {
  margin-left: auto;
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

@media (max-width: 1100px) {
  #leaderboardPage .lb-header {
    grid-template-columns: 1fr;
  }

  #leaderboardPage .leaderboard-art {
    justify-self: stretch;
    width: 100%;
  }

  #leaderboardPage .lb-title-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  #leaderboardPage {
    padding: 18px 14px;
  }

  #leaderboardPage .lb-me-card,
  #leaderboardPage .lb-row {
    flex-wrap: wrap;
  }

  #leaderboardPage .lb-me-pct,
  #leaderboardPage .lb-xp {
    margin-left: 0;
  }
}
.page-title-accent {
  background: linear-gradient(90deg, #2dffb3, #66f2ff, #38bdf8, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Leaderboard polish: tighter hero, crowns, and legendary rank treatment */
#leaderboardPage {
  padding-top: clamp(14px, 1.8vw, 28px);
}

#leaderboardPage .lb-header {
  margin: -18px 0 20px;
  align-items: start;
}

#leaderboardPage .lb-header-copy {
  padding-top: 0;
  transform: translateY(-4px);
}

#leaderboardPage .leaderboard-art {
  transform: translateY(-12px);
}

#leaderboardPage .lb-header h2 {
  font-size: clamp(42px, 5.25vw, 82px);
  line-height: 1.1;
  padding-bottom: 0.08em;
}

#leaderboardPage .lb-title-guide article,
#leaderboardPage .lb-title {
  --title-color: #66f2ff;
  --title-glow: rgba(102, 242, 255, 0.18);
}

#leaderboardPage .lb-title-rule {
  position: relative;
  padding-left: 48px;
  border-color: color-mix(in srgb, var(--title-color) 42%, transparent) !important;
  background:
    radial-gradient(circle at 14% 42%, color-mix(in srgb, var(--title-color) 16%, transparent), transparent 6rem),
    linear-gradient(180deg, rgba(7, 25, 47, 0.76), rgba(2, 9, 21, 0.92)) !important;
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--title-color) 7%, transparent),
    0 0 18px color-mix(in srgb, var(--title-color) 8%, transparent) !important;
}

#leaderboardPage .lb-title-rule::before,
#leaderboardPage .lb-title::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  background: currentColor;
  vertical-align: -2px;
  clip-path: polygon(8% 82%, 92% 82%, 86% 39%, 65% 58%, 50% 24%, 35% 58%, 14% 39%);
  filter: drop-shadow(0 0 8px currentColor);
}

#leaderboardPage .lb-title-rule::before {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 22px;
  height: 22px;
  margin: 0;
  color: var(--title-color);
}

#leaderboardPage .lb-title-rule strong {
  color: var(--title-color);
  text-shadow: 0 0 14px var(--title-glow);
}

#leaderboardPage .lb-title-rule-champion,
#leaderboardPage .lb-title-ace-ml-champion {
  --title-color: #f8d56b;
  --title-glow: rgba(248, 213, 107, 0.28);
}

#leaderboardPage .lb-title-rule-grandmaster,
#leaderboardPage .lb-title-ace-ml-grandmaster {
  --title-color: #c084fc;
  --title-glow: rgba(192, 132, 252, 0.26);
}

#leaderboardPage .lb-title-rule-master,
#leaderboardPage .lb-title-ace-ml-master {
  --title-color: #38bdf8;
  --title-glow: rgba(56, 189, 248, 0.28);
}

#leaderboardPage .lb-title {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--title-color);
  border-color: color-mix(in srgb, var(--title-color) 72%, transparent);
  background:
    radial-gradient(circle at 16% 50%, color-mix(in srgb, var(--title-color) 16%, transparent), transparent 5rem),
    rgba(3, 13, 28, 0.76) !important;
  box-shadow:
    inset 0 0 12px color-mix(in srgb, var(--title-color) 8%, transparent),
    0 0 16px color-mix(in srgb, var(--title-color) 10%, transparent);
}

#leaderboardPage .lb-list .lb-row:first-child .lb-rank {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  color: #fff7cc;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, #f8d56b, #f59e0b 70%, #92400e);
  border: 1px solid rgba(255, 241, 169, 0.72);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.22),
    0 0 0 5px rgba(248, 213, 107, 0.10),
    0 0 22px rgba(248, 213, 107, 0.38);
  font-size: 19px;
}

#leaderboardPage .lb-list .lb-row:first-child .lb-rank::before,
#leaderboardPage .lb-list .lb-row:first-child .lb-rank::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 40px;
  border: 2px solid rgba(45, 255, 179, 0.52);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 10px rgba(45, 255, 179, 0.28));
}

#leaderboardPage .lb-list .lb-row:first-child .lb-rank::before {
  right: calc(100% - 4px);
  border-right: 0;
  border-radius: 26px 0 0 26px;
}

#leaderboardPage .lb-list .lb-row:first-child .lb-rank::after {
  left: calc(100% - 4px);
  border-left: 0;
  border-radius: 0 26px 26px 0;
}

#leaderboardPage .lb-me-rank::before,
#leaderboardPage .lb-me-rank::after {
  border-color: rgba(45, 255, 179, 0.52);
  filter: drop-shadow(0 0 12px rgba(45, 255, 179, 0.28));
}

@media (max-width: 1100px) {
  #leaderboardPage .leaderboard-art,
  #leaderboardPage .lb-header-copy {
    transform: none;
  }
}
/* Leaderboard asset polish: uploaded rank marks and crown-only titles */
#leaderboardPage .lb-header h2 {
  font-size: clamp(34px, 4.65vw, 74px);
}

#leaderboardPage .lb-title-rule::before,
#leaderboardPage .lb-title::before {
  content: none !important;
  display: none !important;
}

#leaderboardPage .lb-title-rule {
  padding-left: 58px;
}

#leaderboardPage .lb-title-rule-crown {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--title-glow));
}

#leaderboardPage .lb-rank.lb-rank-with-logo,
#leaderboardPage .lb-list .lb-row:first-child .lb-rank.lb-rank-with-logo {
  width: 66px;
  height: 66px;
  min-width: 66px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

#leaderboardPage .lb-list .lb-row:first-child .lb-rank.lb-rank-with-logo::before,
#leaderboardPage .lb-list .lb-row:first-child .lb-rank.lb-rank-with-logo::after {
  content: none;
  display: none;
}

#leaderboardPage .lb-rank-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(102, 242, 255, 0.22));
}

#leaderboardPage .lb-list .lb-row:first-child .lb-rank-logo {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 20px rgba(248, 213, 107, 0.36));
}

#leaderboardPage .lb-title-crown {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-left: 2px;
  border-radius: 999px;
  vertical-align: middle;
}

#leaderboardPage .lb-title-crown img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(102, 242, 255, 0.20));
}

#leaderboardPage .lb-title-crown-ace-ml-champion img {
  filter: drop-shadow(0 0 13px rgba(248, 213, 107, 0.38));
}

#leaderboardPage .lb-title-crown-ace-ml-grandmaster img {
  filter: drop-shadow(0 0 13px rgba(192, 132, 252, 0.38));
}

#leaderboardPage .lb-title-crown-ace-ml-master img {
  filter: drop-shadow(0 0 13px rgba(56, 189, 248, 0.38));
}

/* Leaderboard final layout cleanup */
#leaderboardPage .lb-header {
  margin: -38px 0 18px;
}

#leaderboardPage .lb-header-copy {
  gap: 15px;
  transform: translateY(-18px);
}

#leaderboardPage .lb-title-rule {
  min-height: 78px;
  padding: 14px 14px 14px 66px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

#leaderboardPage .lb-title-rule-crown {
  left: 17px;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  z-index: 1;
}

#leaderboardPage .lb-title-guide strong,
#leaderboardPage .lb-title-guide span {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

#leaderboardPage .lb-me-rank {
  min-width: 110px;
  padding-left: 0;
  justify-items: start;
}

#leaderboardPage .lb-me-rank::before,
#leaderboardPage .lb-me-rank::after {
  content: none !important;
  display: none !important;
}

#leaderboardPage .lb-me-rank strong {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.10);
}

/* Leaderboard clip fix: keep hero content inside the card boundary */
#leaderboardPage {
  padding-top: clamp(30px, 3.2vw, 52px);
}

#leaderboardPage .lb-header {
  margin: 0 0 22px;
  padding-top: 0;
  align-items: start;
}

#leaderboardPage .lb-header-copy {
  transform: none;
  gap: 16px;
}

#leaderboardPage .leaderboard-art {
  transform: none;
  margin-top: 0;
}

#leaderboardPage .lb-header h2 {
  margin-top: 0;
  padding-top: 0.04em;
  padding-bottom: 0.10em;
  line-height: 1.08;
}

/* Leaderboard numeric rank polish: no rings, subtle podium glows for weekly/monthly */
#leaderboardPage .lb-row.is-top:not(:has(.lb-rank-logo)) .lb-rank {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 0 16px var(--rank-glow), 0 0 30px var(--rank-glow-soft);
}

#leaderboardPage .lb-row.is-top:not(:has(.lb-rank-logo)) .lb-rank::before,
#leaderboardPage .lb-row.is-top:not(:has(.lb-rank-logo)) .lb-rank::after {
  content: none !important;
  display: none !important;
}

#leaderboardPage .lb-row.lb-rank-1:not(:has(.lb-rank-logo)) .lb-rank {
  --rank-glow: rgba(251, 191, 36, 0.78);
  --rank-glow-soft: rgba(245, 158, 11, 0.34);
}

#leaderboardPage .lb-row.lb-rank-2:not(:has(.lb-rank-logo)) .lb-rank {
  --rank-glow: rgba(226, 232, 240, 0.72);
  --rank-glow-soft: rgba(148, 163, 184, 0.32);
}

#leaderboardPage .lb-row.lb-rank-3:not(:has(.lb-rank-logo)) .lb-rank {
  --rank-glow: rgba(180, 83, 9, 0.74);
  --rank-glow-soft: rgba(146, 64, 14, 0.34);
}

/* Leaderboard title cards: responsive wrapping under expanded sidebar */
#leaderboardPage .lb-title-guide {
  width: min(100%, 760px);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: stretch;
}

#leaderboardPage .lb-title-rule {
  min-width: 0;
  min-height: 92px;
  padding: 16px 16px 16px 70px !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

#leaderboardPage .lb-title-guide strong {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.12;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#leaderboardPage .lb-title-guide span {
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.28;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#leaderboardPage .lb-title-rule-crown {
  left: 18px;
  width: 38px;
  height: 38px;
}

@media (min-width: 1180px) and (max-width: 1480px) {
  #leaderboardPage .lb-title-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #leaderboardPage .lb-title-rule {
    padding-left: 62px !important;
  }

  #leaderboardPage .lb-title-rule-crown {
    left: 14px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 1180px) {
  #leaderboardPage .lb-title-guide {
    grid-template-columns: 1fr;
  }
}

/* Dashboard monthly crown award counts */
.dash-crowns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.dash-crown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(102, 242, 255, 0.18);
  background: rgba(5, 18, 34, 0.72);
  box-shadow: inset 0 0 14px rgba(102, 242, 255, 0.045);
}

.dash-crown img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(102, 242, 255, 0.18));
}

.dash-crown strong {
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.9rem;
  line-height: 1;
}

.dash-crown-season_champion {
  border-color: rgba(248, 213, 107, 0.30);
  box-shadow: inset 0 0 14px rgba(248, 213, 107, 0.06);
}

.dash-crown-season_grandmaster {
  border-color: rgba(192, 132, 252, 0.30);
  box-shadow: inset 0 0 14px rgba(192, 132, 252, 0.06);
}

.dash-crown-season_master {
  border-color: rgba(56, 189, 248, 0.30);
  box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.06);
}

/* Leaderboard: compact preview plus FIFA-style full board */
#leaderboardPage .lb-full-bar {
  display: none;
}

#leaderboardPage .lb-me {
  position: relative;
  z-index: 3;
}

#leaderboardPage .lb-open-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
}

#leaderboardPage .lb-view-button,
#leaderboardPage .lb-back-button {
  min-height: 48px;
  border: 1px solid rgba(102, 242, 255, 0.42);
  border-radius: 999px;
  padding: 0 24px;
  color: #031018;
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.96), rgba(102, 242, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 26px rgba(45, 255, 179, 0.16),
    0 16px 40px rgba(0, 0, 0, 0.28);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#leaderboardPage .lb-back-button {
  color: rgba(232, 248, 255, 0.94);
  background: rgba(5, 19, 38, 0.82);
  border-color: rgba(102, 242, 255, 0.26);
}

#leaderboardPage .lb-view-button:hover,
#leaderboardPage .lb-back-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 34px rgba(102, 242, 255, 0.22),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

#leaderboardPage:not(.is-full-board) .lb-list {
  display: none;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

#leaderboardPage.is-full-board {
  min-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#leaderboardPage.is-full-board .lb-header,
#leaderboardPage.is-full-board .lb-open-wrap {
  display: none;
}

#leaderboardPage.is-full-board .lb-full-bar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(102, 242, 255, 0.18);
  background:
    radial-gradient(circle at 80% 50%, rgba(45, 255, 179, 0.10), transparent 18rem),
    rgba(3, 12, 27, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 24px rgba(102, 242, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

#leaderboardPage .lb-full-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#leaderboardPage .lb-full-title span {
  color: #2dfff0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#leaderboardPage .lb-full-title strong {
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.1;
}

#leaderboardPage.is-full-board .lb-full-tabs {
  width: 100%;
  justify-self: end;
}

#leaderboardPage.is-full-board .lb-me {
  position: sticky;
  top: 94px;
  z-index: 11;
  margin: 0 0 16px;
}

#leaderboardPage.is-full-board .lb-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 266px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 242, 255, 0.46) rgba(3, 10, 22, 0.40);
}

#leaderboardPage .lb-list::-webkit-scrollbar {
  width: 8px;
}

#leaderboardPage .lb-list::-webkit-scrollbar-track {
  background: rgba(3, 10, 22, 0.42);
  border-radius: 999px;
}

#leaderboardPage .lb-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(45, 255, 179, 0.58), rgba(102, 242, 255, 0.44));
}

@media (max-width: 900px) {
  #leaderboardPage.is-full-board .lb-full-bar {
    position: relative;
    grid-template-columns: 1fr;
  }

  #leaderboardPage.is-full-board .lb-me {
    top: 0;
  }

  #leaderboardPage.is-full-board .lb-list {
    max-height: none;
  }
}

/* Leaderboard final typography alignment */
#leaderboardPage .lb-header h2 {
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.08;
}

#leaderboardPage .lb-header h2 span,
.page-title-accent {
  background-image: linear-gradient(90deg, #2dffb3, #66f2ff, #38bdf8, #7dd3fc);
}
/* Interview final pass: full-page blended visual background */
.interviews-active .topbar {
  display: none;
}

.app-shell.interviews-active .app-main {
  padding-top: 0;
}

#interviewsPage {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 26px);
  padding-top: clamp(0px, 0.6vw, 10px);
  overflow: hidden;
  background: #000;
}

#interviewsPage::before {
  content: "";
  position: absolute;
  inset: -120px -110px -260px -110px;
  z-index: -2;
  background: url('/app/assets/interview_bg.png') center top / cover no-repeat;
  opacity: 0.82;
  filter: saturate(1.12) contrast(1.08) brightness(1.18);
  pointer-events: none;
}

#interviewsPage::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    radial-gradient(circle at 75% 18%, rgba(0, 184, 255, 0.18), transparent 34rem),
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.92) 31%, rgba(0, 0, 0, 0.34) 66%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.08) 18%, rgba(0, 0, 0, 0.24) 62%, #000 100%);
  pointer-events: none;
}

#interviewsPage .iv-setup {
  position: relative;
  z-index: 1;
  isolation: auto;
  overflow: visible;
  padding: clamp(4px, 1.15vw, 20px) 0 42px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#interviewsPage .iv-setup::before,
#interviewsPage .iv-setup::after {
  content: none !important;
}

#interviewsPage .iv-setup-head {
  max-width: 820px;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding-top: 0;
}

#interviewsPage .iv-setup-head h2 {
  font-family: var(--font-title);
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.02;
  font-weight: 850;
  color: #fff;
  letter-spacing: 0;
  text-wrap: balance;
}

#interviewsPage .iv-title-accent {
  display: inline-block;
  background: linear-gradient(90deg, #2dffb3, #66f2ff, #38bdf8, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#interviewsPage .iv-setup-head .eyebrow,
#interviewsPage .iv-setup-lead,
#interviewsPage .iv-setup-sub,
#interviewsPage .iv-step-label,
#interviewsPage .iv-chip,
#interviewsPage .iv-name-input {
  font-family: var(--font-body);
}

#interviewsPage .iv-setup-lead {
  margin: 20px 0 6px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(17px, 1.35vw, 24px);
  font-weight: 800;
  line-height: 1.45;
}

#interviewsPage .iv-setup-sub {
  max-width: 720px;
  color: rgba(190, 207, 226, 0.90);
  font-size: clamp(15px, 1.1vw, 20px);
  line-height: 1.55;
}

#interviewsPage .iv-step,
#interviewsPage .iv-company-grid,
#interviewsPage .iv-chip-row,
#interviewsPage .iv-name-input,
#interviewsPage .iv-start-btn {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  #interviewsPage::before {
    inset: -70px -160px -180px -160px;
    background-position: 62% top;
    opacity: 0.58;
  }

  #interviewsPage::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.76) 58%, #000 94%),
      linear-gradient(90deg, #000 0%, rgba(0,0,0,0.58) 50%, #000 100%);
  }
}

/* Interview full-viewport background fix */
.app-shell.interviews-active {
  background: #000;
}

.app-shell.interviews-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('/app/assets/interview_bg.png') center top / 100vw auto no-repeat;
  opacity: 0.82;
  filter: saturate(1.12) contrast(1.06) brightness(1.12);
  pointer-events: none;
}

.app-shell.interviews-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 75% 16%, rgba(0, 184, 255, 0.13), transparent 34rem),
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.90) 30%, rgba(0, 0, 0, 0.32) 67%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.04) 18%, rgba(0, 0, 0, 0.30) 66%, #000 100%);
  pointer-events: none;
}

.app-shell.interviews-active .app-main {
  position: relative;
  z-index: 1;
}

#interviewsPage::before,
#interviewsPage::after {
  content: none !important;
}

#interviewsPage {
  background: transparent;
}
/* Interview top-aligned content layout */
.app-shell.interviews-active .app-main {
  padding-top: 0 !important;
}

#interviewsPage {
  min-height: 100vh;
  padding-top: 0 !important;
  overflow: visible;
}

#interviewsPage .iv-setup {
  transform: none !important;
  margin: 0 !important;
  padding-top: 0 !important;
}

#interviewsPage .iv-setup-head {
  margin-top: 0 !important;
  margin-bottom: clamp(16px, 2vw, 26px);
}

#interviewsPage .iv-setup-head .eyebrow {
  margin-top: 0;
}
/* Interview layout bugfix: keep sidebar fixed */
.app-shell.interviews-active .sidebar {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  z-index: 20;
}

.app-shell.interviews-active .app-main {
  position: relative;
  z-index: 1;
}

/* Interview header breathing room after eyebrow removal */
#interviewsPage .iv-setup {
  padding-top: clamp(14px, 1.4vw, 24px) !important;
}

/* Leaderboard title card names stay white */
#leaderboardPage .lb-title-rule strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  text-shadow: none;
}

/* Leaderboard accents match shared Ace ML page gradient */
#leaderboardPage .lb-header h2 span,
#pageTitle .page-title-accent {
  background: linear-gradient(90deg, #2dffb3, #66f2ff, #38bdf8, #7dd3fc) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
/* ============ Home command center redesign ============ */
.app-shell.home-active .topbar {
  display: none;
}

#homePage {
  position: relative;
  isolation: isolate;
  padding-top: 0;
  margin-top: -6px;
}

#homePage::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -26px;
  left: max(-62px, calc(-1 * var(--app-page-gutter, 44px)));
  right: max(-62px, calc(-1 * var(--app-page-gutter, 44px)));
  height: clamp(330px, 33vw, 430px);
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 16%, rgba(0, 0, 0, 0.26) 52%, rgba(0, 0, 0, 0.16) 76%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.08) 55%, #000 100%),
    url('/app/assets/home_bg.png') center top / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

#homePage::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 230px;
  left: -48px;
  right: -48px;
  height: 190px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 78%);
  pointer-events: none;
}

#homePage .home-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  min-height: clamp(250px, 28vw, 340px);
  padding: clamp(42px, 5vw, 70px) 0 clamp(56px, 6vw, 86px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#homePage .home-hero-copy {
  max-width: 760px;
  padding-top: 4px;
}

#homePage .home-hero h2 {
  margin: 0;
  color: #f7fbff;
  font-family: var(--font-title);
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
}

#homePage .home-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #c3cfde;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
}

#homePage .home-hero p span {
  color: var(--sea);
  text-shadow: 0 0 18px rgba(45, 255, 179, 0.16);
}

#homePage .home-top-stats {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
  flex: 0 0 auto;
}

#homePage .home-chip {
  min-width: 132px;
  height: 68px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid rgba(102, 242, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 15, 30, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(14px);
}

#homePage .home-chip-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 30%, var(--chip-color, var(--cyan)), rgba(255,255,255,0.04) 68%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--chip-color, var(--cyan)) 36%, transparent);
}

#homePage .home-chip-streak { --chip-color: #fb7185; }
#homePage .home-chip-xp { --chip-color: #a78bfa; }

#homePage .home-chip strong {
  align-self: end;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.03rem;
  line-height: 1;
}

#homePage .home-chip small {
  align-self: start;
  color: #aeb9c8;
  font-size: 0.72rem;
}

#homePage .home-journey {
  margin-top: -26px;
}

#homePage .home-journey h3 {
  margin: 0 0 16px;
  color: #c7d4e2;
  font-family: var(--font-title);
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 650;
}

#homePage .home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

#homePage .home-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(120, 170, 220, 0.16);
  border-radius: 18px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--card-accent, var(--cyan)) 15%, transparent), transparent 16rem),
    linear-gradient(145deg, rgba(8, 20, 38, 0.74), rgba(3, 8, 17, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 42px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  opacity: 1;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

#homePage .home-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent, var(--cyan)) 46%, transparent);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--card-accent, var(--cyan)) 8%, transparent), 0 26px 54px rgba(0, 0, 0, 0.32);
}

#homePage .home-card-interview { --card-accent: #a855f7; }
#homePage .home-card-practice { --card-accent: #2dd4bf; }
#homePage .home-card-roadmap { --card-accent: #38bdf8; }
#homePage .home-card-analytics { --card-accent: #fbbf24; }

#homePage .home-card .card-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 4px;
  border-radius: 14px;
  color: var(--card-accent, var(--cyan));
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--cyan)) 28%, transparent);
  background: color-mix(in srgb, var(--card-accent, var(--cyan)) 14%, #03101c);
  box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent, var(--cyan)) 18%, transparent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

#homePage .home-card strong:not(.home-card-action) {
  font-family: var(--font-title);
  font-size: 1.04rem;
}

#homePage .home-card p {
  margin: 0;
  min-height: 54px;
  color: #b7c4d4;
  font-size: 0.95rem;
  line-height: 1.55;
}

#homePage .home-card-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 150px;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--card-accent, var(--cyan));
  background: color-mix(in srgb, var(--card-accent, var(--cyan)) 14%, rgba(255,255,255,0.03));
  font-weight: 800;
}

#homePage .dashboard-widgets {
  margin-top: 22px;
}

#homePage .home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 18px;
}

#homePage .dash-panel {
  border-radius: 20px;
  border-color: rgba(102, 242, 255, 0.13);
  background: linear-gradient(145deg, rgba(8, 20, 38, 0.74), rgba(3, 8, 17, 0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 18px 42px rgba(0,0,0,0.22);
}

#homePage .home-progress-panel h3,
#homePage .home-activity-panel h3,
#homePage .home-goal-panel h3 {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-size: 1.04rem;
}

#homePage .home-progress-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

#homePage .home-progress-ring {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: conic-gradient(#a855f7 0deg, #49d7ff calc(var(--progress) * 0.72), #2dd4bf var(--progress), rgba(255,255,255,0.08) var(--progress) 360deg);
  box-shadow: 0 0 28px rgba(73, 215, 255, 0.14);
}

#homePage .home-progress-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #050b15;
  box-shadow: inset 0 0 24px rgba(102, 242, 255, 0.06);
}

#homePage .home-progress-ring strong,
#homePage .home-progress-ring span {
  position: relative;
  z-index: 1;
}

#homePage .home-progress-ring strong {
  color: #fff;
  font-family: var(--font-title);
  font-size: 2.25rem;
  line-height: 1;
}

#homePage .home-progress-ring span {
  margin-top: 6px;
  color: #c0cad8;
  font-size: 0.82rem;
}

#homePage .home-topic-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#homePage .home-topic-progress {
  display: grid;
  gap: 7px;
}

#homePage .home-topic-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #f8fbff;
  font-weight: 750;
}

#homePage .home-topic-progress strong {
  color: #dce7f4;
}

#homePage .home-topic-track,
#homePage .home-goal-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
}

#homePage .home-topic-track span,
#homePage .home-goal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--topic-color, var(--cyan)), color-mix(in srgb, var(--topic-color, var(--cyan)) 60%, white));
  box-shadow: 0 0 16px color-mix(in srgb, var(--topic-color, var(--cyan)) 28%, transparent);
}

#homePage .home-progress-note {
  margin: 16px 0 0;
  color: #8fa0b4;
  font-size: 0.82rem;
}

#homePage .home-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

#homePage .home-panel-title h3 {
  margin: 0;
}

#homePage .home-panel-title button {
  border: 0;
  color: #60a5fa;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

#homePage .home-activity-list {
  display: grid;
  gap: 17px;
}

#homePage .home-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

#homePage .home-activity-item > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--activity-color, var(--cyan)) 18%, #071122);
  box-shadow: 0 0 18px color-mix(in srgb, var(--activity-color, var(--cyan)) 16%, transparent);
}

#homePage .activity-violet { --activity-color: #a855f7; }
#homePage .activity-sea { --activity-color: #2dd4bf; }

#homePage .home-activity-item strong {
  display: block;
  color: #f8fbff;
  font-size: 0.92rem;
}

#homePage .home-activity-item small,
#homePage .home-activity-item time {
  color: #a6b4c7;
  font-size: 0.78rem;
}

#homePage .home-goal-panel {
  text-align: center;
}

#homePage .home-goal-orb {
  width: 128px;
  height: 128px;
  margin: 10px auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(168, 85, 247, 0.22), transparent 35%),
    repeating-radial-gradient(circle at center, transparent 0 14px, rgba(168, 85, 247, 0.20) 15px 17px);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: inset 0 0 28px rgba(168, 85, 247, 0.14), 0 0 24px rgba(168, 85, 247, 0.10);
}

#homePage .home-goal-panel p {
  margin: 0 0 18px;
  color: #f4f8ff;
}

#homePage .home-goal-track {
  margin: 0 auto 8px;
  max-width: 220px;
}

#homePage .home-goal-track span {
  background: linear-gradient(90deg, #a855f7, #60a5fa);
}

#homePage .home-goal-panel > strong {
  display: block;
  color: #cdd8e7;
  font-size: 0.86rem;
  text-align: right;
  max-width: 220px;
  margin: 0 auto;
}

#homePage .home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

#homePage .home-secondary-grid .dash-panel {
  min-width: 0;
}

#homePage .dash-readiness,
#homePage .dash-mastery {
  min-width: 0;
}

#homePage .readiness-item {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(92px, 1.35fr) minmax(52px, auto);
  gap: 10px;
  min-width: 0;
}

#homePage .readiness-item span:first-child {
  min-width: 0;
  overflow: hidden;
  color: #b7c4d4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#homePage .readiness-item .mastery-track {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

#homePage .readiness-item strong {
  color: #f8fbff;
  white-space: nowrap;
}

#homePage .readiness-fill {
  background: linear-gradient(90deg, var(--ready-start, var(--sea)), var(--ready-end, var(--cyan)));
  box-shadow: 0 0 14px color-mix(in srgb, var(--ready-end, var(--cyan)) 26%, transparent);
}

#homePage .role-ready-applied-scientist { --ready-start: #d97706; --ready-end: #f59e0b; }
#homePage .role-ready-machine-learning-engineer { --ready-start: #fff200; --ready-end: #ffd700; }
#homePage .role-ready-data-scientist { --ready-start: #c084fc; --ready-end: #9333ea; }
#homePage .role-ready-ai-engineer { --ready-start: #38bdf8; --ready-end: #0284c7; }
#homePage .role-ready-default { --ready-start: var(--sea); --ready-end: var(--cyan); }

#homePage .home-quote-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  margin-top: 20px;
  padding: 18px 26px;
  border: 1px solid rgba(102, 242, 255, 0.10);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8, 20, 38, 0.66), rgba(3, 8, 17, 0.92));
  color: #cfd8e5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

#homePage .home-quote-strip > span {
  color: #7d8aa0;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
}

#homePage .home-quote-strip p {
  flex: 1;
  margin: 0;
}

#homePage .home-quote-strip strong {
  color: #60a5fa;
  font-weight: 700;
}

#homePage .home-quote-strip small {
  color: #60a5fa;
  font-size: 0.92rem;
}

@media (max-width: 1280px) {
  #homePage .home-grid,
  #homePage .home-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #homePage .home-dashboard-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  #homePage .home-goal-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  #homePage .home-hero {
    flex-direction: column;
    min-height: 300px;
  }
  #homePage .home-top-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  #homePage .home-grid,
  #homePage .home-dashboard-grid,
  #homePage .home-secondary-grid {
    grid-template-columns: 1fr;
  }
  #homePage .home-progress-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  #homePage .home-quote-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============ Home command center polish ============ */
#homePage .home-hero h2 span {
  background: linear-gradient(90deg, #2dffb3 0%, #25e8df 42%, #66f2ff 72%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

#homePage .home-chip-icon {
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  font-size: 1.35rem;
  line-height: 1;
}

#homePage .home-chip-streak .home-chip-icon {
  filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.34));
}

#homePage .home-chip-xp .home-chip-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 29px solid #2dffb3;
  border-radius: 4px;
  background: none;
  filter: drop-shadow(0 0 12px rgba(45, 255, 179, 0.24));
}

#homePage .home-journey {
  margin-top: -36px;
}

#homePage .home-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#homePage .home-card {
  min-height: 152px;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 16px;
}

#homePage .home-card .card-icon {
  display: none;
}

#homePage .home-card strong:not(.home-card-action) {
  font-size: 0.98rem;
  line-height: 1.25;
}

#homePage .home-card p {
  min-height: 44px;
  font-size: 0.86rem;
  line-height: 1.45;
}

#homePage .home-card-action {
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--cyan)) 30%, transparent);
  border-radius: 11px;
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--card-accent, var(--cyan)) 10%, transparent), 0 0 18px color-mix(in srgb, var(--card-accent, var(--cyan)) 12%, transparent);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

#homePage .home-card:hover .home-card-action {
  transform: translateX(3px);
  background: color-mix(in srgb, var(--card-accent, var(--cyan)) 24%, rgba(255,255,255,0.04));
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--card-accent, var(--cyan)) 16%, transparent), 0 0 24px color-mix(in srgb, var(--card-accent, var(--cyan)) 24%, transparent);
}

#homePage .home-dashboard-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.86fr) minmax(240px, 0.86fr);
  align-items: stretch;
}

#homePage .home-dashboard-grid > .dash-panel:nth-child(2) {
  padding: 18px;
}

#homePage .home-dashboard-grid > .dash-panel:nth-child(2) h3 {
  margin-bottom: 12px;
}

#homePage .home-dashboard-grid .dash-crowns {
  display: grid;
  gap: 10px;
}

#homePage .home-dashboard-grid .dash-crown {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid rgba(102, 242, 255, 0.12);
  border-radius: 14px;
  background: rgba(3, 10, 20, 0.50);
}

#homePage .dash-crown-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 32px;
}

#homePage .dash-crown-mark img {
  width: 34px;
  height: 28px;
  object-fit: contain;
}

#homePage .dash-crown-mark strong {
  position: absolute;
  right: -6px;
  bottom: -3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #f8fbff;
  font-size: 0.68rem;
  line-height: 1.3;
}

#homePage .dash-crown em {
  min-width: 0;
  color: #e8f2ff;
  font-style: normal;
  font-weight: 750;
  font-size: 0.82rem;
  line-height: 1.2;
}

#homePage .home-dashboard-grid .dash-badges {
  gap: 7px;
}

#homePage .home-dashboard-grid .badge-chip {
  padding: 6px 9px;
  font-size: 0.72rem;
}

@media (max-width: 1360px) {
  #homePage .home-card {
    padding: 16px;
  }
  #homePage .home-card p {
    font-size: 0.82rem;
  }
}
/* Keep home cards compact across desktop sidebar states. */
#homePage .home-secondary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  #homePage .home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  #homePage .home-grid,
  #homePage .home-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ============ Home dashboard requested cleanup ============ */
#homePage .home-dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr);
}

#homePage .home-secondary-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
}

#homePage .rec-list {
  padding-left: 0;
  list-style: none;
  gap: 12px;
}

#homePage .rec-list li {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0 12px 20px;
  border-bottom-color: rgba(102, 242, 255, 0.08);
}

#homePage .rec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sea);
  box-shadow: 0 0 12px rgba(45, 255, 179, 0.58), 0 0 22px rgba(102, 242, 255, 0.18);
}

#homePage .rec-list li strong {
  color: #eef7ff;
  font-family: var(--font-title);
  font-size: 0.92rem;
  line-height: 1.25;
}

#homePage .rec-list .rec-cta {
  white-space: nowrap;
  border: 1px solid rgba(45, 255, 179, 0.28);
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.14), rgba(102, 242, 255, 0.08));
  color: var(--sea);
  box-shadow: inset 0 0 16px rgba(45, 255, 179, 0.07), 0 0 18px rgba(45, 255, 179, 0.08);
}

#interviewHistoryPage {
  padding-top: 8px;
}

.interview-history-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.interview-history-page-head > div {
  order: -1;
}

.interview-history-page-head h2 {
  margin: 4px 0 8px;
  font-family: var(--font-title);
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1.05;
  color: #f8fbff;
}

.interview-history-page-head p:last-child {
  margin: 0;
  max-width: 680px;
  color: #aebed0;
  font-size: 1rem;
}

.interview-history-page-body {
  display: grid;
  gap: 18px;
}

.interview-history-full-panel {
  padding: 22px;
}

.interview-history-full-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 1100px) {
  #homePage .home-dashboard-grid,
  #homePage .home-secondary-grid {
    grid-template-columns: 1fr;
  }
  .interview-history-page-head {
    flex-direction: column;
  }
}
/* ============ Home dashboard final polish ============ */
#homePage .home-quote-strip .quote-mark {
  flex: 0 0 auto;
  color: #7d8aa0;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
}

#homePage .home-quote-strip .quote-close {
  margin-left: -6px;
}

#homePage .rec-list .rec-cta {
  transition: transform 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

#homePage .rec-list .rec-cta:hover,
#homePage .rec-list .rec-cta:focus-visible {
  transform: translateX(4px) translateY(-1px);
  border-color: rgba(102, 242, 255, 0.58);
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.24), rgba(102, 242, 255, 0.16));
  color: #9affee;
  box-shadow: inset 0 0 22px rgba(45, 255, 179, 0.14), 0 0 26px rgba(45, 255, 179, 0.20), 0 0 42px rgba(102, 242, 255, 0.10);
}

.interview-history-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 420px;
}

.interview-history-meta,
.interview-round-mini {
  align-items: flex-start;
  align-content: flex-start;
}

.interview-history-meta {
  min-height: 38px;
}

.interview-round-mini {
  min-height: 118px;
}

.interview-history-meta span,
.interview-round-mini span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  line-height: 1;
  flex: 0 0 auto;
  white-space: nowrap;
}

.interview-history-actions {
  margin-top: auto;
}
/* Keep quote marks paired tightly around the text. */
#homePage .home-quote-strip p {
  flex: 0 1 auto;
}

#homePage .home-quote-strip .quote-close {
  margin-left: -10px;
  margin-right: auto;
}

#homePage .home-quote-strip small {
  margin-left: auto;
}

.interview-history-page-head-compact {
  justify-content: flex-start;
  margin-bottom: 16px;
}
/* Interview scorecard round label/score spacing. */
.interview-round-mini strong {
  margin-left: 8px;
}

.iv-round-bar strong {
  margin-left: 12px;
}

/* Sidebar spacing polish: keep account chip breathable and pull nav upward. */
.sidebar {
  padding-top: 14px;
  padding-bottom: 18px;
}

.sidebar-toggle {
  margin-bottom: 12px;
}

.sidebar-brand-row {
  margin-bottom: 16px;
}

.side-nav {
  gap: 7px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  scrollbar-gutter: stable;
}

.account-chip {
  flex: 0 0 auto;
  margin: 16px 4px 16px;
  padding: 14px 14px 18px;
  gap: 12px;
  border-radius: 18px;
  overflow: visible;
}

.account-actions {
  margin-top: 2px;
}

.logout-btn,
.upgrade-btn {
  min-height: 38px;
  padding-block: 9px;
}

.app-shell.sidebar-collapsed .sidebar {
  padding-top: 14px;
  padding-bottom: 18px;
}
/* Recommended next layout guard: keep long recommendations inside the card. */
#homePage .rec-list li {
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
}

#homePage .rec-list li strong {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

#homePage .rec-list .rec-cta {
  justify-self: flex-start;
  max-width: 100%;
  white-space: normal;
}
/* Interview reports and scorecards use Inter throughout. */
.iv-report-head,
.iv-report-head *,
.iv-report-top,
.iv-report-top *,
.iv-summary,
.iv-panel,
.iv-panel *,
.iv-scorecard,
.iv-scorecard *,
.interview-history-panel,
.interview-history-panel *,
.interview-history-card,
.interview-history-card *,
.interview-history-page-body,
.interview-history-page-body * {
  font-family: var(--font-body) !important;
}

.iv-score-ring strong,
.iv-score-ring span,
.iv-sc-score strong,
.iv-sc-score span,
.iv-sc-name,
.iv-round-bar,
.iv-round-bar *,
.interview-round-mini,
.interview-round-mini *,
.interview-history-meta,
.interview-history-meta * {
  font-family: var(--font-body) !important;
  letter-spacing: 0;
}

.admin-grid-wide { grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr); }
.admin-panel-full { margin: 14px 0; }
.admin-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-plan-card { padding: 16px; border-radius: 16px; border: 1px solid rgba(84, 238, 255, 0.2); background: linear-gradient(145deg, rgba(4, 18, 34, 0.92), rgba(1, 9, 18, 0.96)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 42px rgba(0,0,0,0.25); }
.admin-plan-card span { display: inline-flex; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #54eeff; font-size: 0.72rem; font-weight: 800; }
.admin-plan-card strong { display: block; font-family: var(--font-title); font-size: 1.45rem; color: #f8fbff; }
.admin-plan-card p { margin: 7px 0 0; color: var(--text-soft); font-size: 0.86rem; }
.admin-plan-card small { display: block; margin-top: 10px; color: var(--muted); }
.admin-plan-premium { border-color: rgba(143, 111, 255, 0.34); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 46px rgba(68, 119, 255, 0.13); }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-paid-table th, .admin-paid-table td { white-space: nowrap; vertical-align: top; }
.admin-paid-table td:first-child strong { display: block; color: #f8fbff; }
.admin-paid-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); }
.admin-plan-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(84, 238, 255, 0.24); background: rgba(45, 255, 179, 0.08); color: #54eeff; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.admin-plan-pill.admin-plan-premium { border-color: rgba(143, 111, 255, 0.42); background: rgba(143, 111, 255, 0.12); color: #c8b7ff; }
.admin-feature-chip { display: inline-flex; align-items: center; gap: 5px; margin: 2px 4px 2px 0; padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(84, 238, 255, 0.18); background: rgba(7, 25, 43, 0.78); color: var(--text-soft); font-size: 0.76rem; }
.admin-feature-chip b { color: #2dffb3; font-weight: 800; }
.admin-muted { color: var(--muted); }
@media (max-width: 900px) {
  .admin-grid-wide, .admin-plan-grid { grid-template-columns: 1fr; }
}

/* Admin page removes the generic page header so operations metrics start higher. */
.app-main:has(#adminPage.is-active) .content-header {
  display: none;
}
.admin-page.is-active {
  padding-top: 6px;
}
.admin-content {
  margin-top: 0;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-panel-head h3 {
  margin: 0;
}

.admin-view-full {
  appearance: none;
  border: 1px solid rgba(84, 238, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 255, 179, 0.1), rgba(44, 184, 255, 0.08));
  color: #66f2ff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 13px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0, 220, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.admin-view-full:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 242, 255, 0.7);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 14px 30px rgba(0, 220, 255, 0.16);
}

.admin-detail-page {
  min-height: 70vh;
}

.admin-detail-page h2 {
  margin: 16px 0 18px;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: #f8fbff;
}

.admin-detail-page .admin-table-wrap {
  max-height: 68vh;
  overflow: auto;
}

.admin-back-button {
  border-radius: 12px;
}

/* Keep all three title cards inside the copy column without intruding on the artwork. */
#leaderboardPage .lb-title-guide {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Component-width fallbacks only engage once the usable area is genuinely narrow. */
@container app-content (max-width: 920px) {
  #leaderboardPage .lb-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  #leaderboardPage .lb-header-copy {
    width: 100%;
  }

  #leaderboardPage .leaderboard-art {
    justify-self: stretch;
    width: min(100%, 820px);
    margin-inline: auto;
  }

  #leaderboardPage .lb-title-guide {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #homePage .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container app-content (max-width: 820px) {
  #analyticsPage .analysis-grid,
  #analyticsPage .analysis-section:first-of-type .analysis-grid,
  #analyticsPage .role-intelligence-section .analysis-grid,
  #analyticsPage .skill-analysis-section .analysis-grid,
  #analyticsPage .requirements-analysis-section .analysis-grid,
  #analyticsPage .company-analysis-section .analysis-grid,
  #analyticsPage .section-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .roadmap-progress-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-progress-flow::before,
  .roadmap-step-card::after {
    display: none;
  }

  .iv-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .iv-interviewer {
    position: relative;
    top: auto;
  }
}

@container app-content (max-width: 620px) {
  #leaderboardPage {
    padding: 18px 14px;
    border-radius: 20px;
  }

  #leaderboardPage .lb-title-guide,
  #homePage .home-grid,
  .roadmap-progress-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  #leaderboardPage .lb-tabs {
    width: 100%;
  }

  #leaderboardPage .lb-me-card,
  #leaderboardPage .lb-row,
  #leaderboardPage .lb-full-bar {
    flex-wrap: wrap;
  }

  #leaderboardPage .lb-me-info {
    padding-left: 0;
    border-left: 0;
  }

  #leaderboardPage .lb-me-pct,
  #leaderboardPage .lb-xp {
    margin-left: 0;
  }

  #analyticsPage .requirements-analysis-section .metric-grid,
  #analyticsPage .requirements-analysis-section .reality-grid,
  #analyticsPage .company-analysis-section .company-rank-card,
  #analyticsPage .company-analysis-section .salary-skill-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============ Profile page ============ */
.profile-content { display: grid; gap: 20px; padding-bottom: 40px; }
.profile-loading { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; font-family: var(--font-body); }

.profile-head { margin-bottom: 4px; }
.profile-eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
.profile-title {
  font-family: var(--font-title); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; margin: 0 0 10px; color: var(--text);
}
.profile-title-accent {
  background: linear-gradient(120deg, var(--sea), var(--cyan) 55%, var(--blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.profile-subtext { font-family: var(--font-body); color: var(--text-soft); margin: 0; font-size: 1rem; line-height: 1.6; }

.profile-card {
  padding: 26px 28px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 16, 26, 0.9), rgba(3, 8, 14, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.34);
}
.profile-card-title {
  font-family: var(--font-title); font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em;
  margin: 0 0 18px; color: var(--text);
}
.profile-card-title::after {
  content: ""; display: block; width: 54px; height: 2px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sea), var(--cyan));
}
.profile-note { font-family: var(--font-body); color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; margin: 6px 0 0; }
.profile-note-wide { margin: -6px 0 20px; max-width: 760px; }
.profile-hint { font-family: var(--font-body); color: var(--cyan); font-size: 0.85rem; margin: 14px 0 0; min-height: 1em; }
.profile-empty { font-family: var(--font-body); color: var(--muted); margin: 0; font-size: 0.9rem; }

.profile-rows { display: grid; gap: 2px; }
.profile-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.profile-row:last-child { border-bottom: none; }
.profile-label { font-family: var(--font-body); font-size: 0.82rem; color: var(--muted); }
.profile-row-edit { align-items: center; }
.profile-name-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name-edit input {
  min-width: 200px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-strong); color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.profile-name-edit input:focus { outline: none; border-color: var(--sea); }
.profile-save {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(102, 242, 255, 0.08); color: var(--cyan);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.profile-save:hover { border-color: var(--sea); background: rgba(45, 255, 179, 0.1); color: var(--sea); }
.profile-save:disabled { opacity: 0.6; cursor: progress; }
.profile-value { font-family: var(--font-body); font-size: 0.98rem; color: var(--text); font-weight: 500; }
.profile-plan-pill { padding: 5px 14px; border-radius: 999px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; }
.profile-plan-pill.plan-free { background: rgba(255, 255, 255, 0.08); color: var(--text-soft); }
.profile-plan-pill.plan-pro { background: rgba(102, 242, 255, 0.14); color: var(--cyan); }
.profile-plan-pill.plan-premium { background: rgba(45, 255, 179, 0.16); color: var(--sea); }

.profile-sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.profile-sub-state {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft);
}
.profile-status { display: block; font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; margin-top: 6px; }
.profile-status.is-active { color: var(--sea); }
.profile-status.is-ending { color: var(--yellow); }
.profile-status.is-free { color: var(--text-soft); }
.profile-date { display: block; font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; margin-top: 6px; color: var(--cyan); }

.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.profile-primary, .profile-danger, .profile-logout {
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 800; padding: 12px 22px;
  border-radius: 999px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.profile-primary { border: none; background: linear-gradient(135deg, var(--sea), var(--cyan)); color: #04121a; }
.profile-primary:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(45, 255, 179, 0.24); }
.profile-danger { border: 1px solid rgba(255, 125, 140, 0.42); background: rgba(255, 125, 140, 0.06); color: var(--red); }
.profile-danger:hover { border-color: rgba(255, 125, 140, 0.7); background: rgba(255, 125, 140, 0.12); }
.profile-primary:disabled, .profile-danger:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.profile-pricing-grid { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.profile-content .pricing-card.is-current-plan { outline: 1px solid rgba(45, 255, 179, 0.45); outline-offset: 3px; }
.profile-content .pricing-cta.is-current {
  cursor: default; border-color: rgba(148, 163, 184, 0.28); color: var(--text-soft); background: rgba(255, 255, 255, 0.03);
}
.profile-content .pricing-cta.is-current::after { content: ""; }

.profile-table-wrap { overflow-x: auto; }
.profile-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.9rem; }
.profile-table th {
  text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line);
}
.profile-table td { padding: 13px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-soft); white-space: nowrap; }
.profile-table tr:last-child td { border-bottom: none; }
.profile-mono { font-family: ui-monospace, monospace; font-size: 0.82rem; color: var(--blue); }
.profile-paid {
  padding: 4px 11px; border-radius: 999px; background: rgba(45, 255, 179, 0.14); color: var(--sea);
  font-size: 0.74rem; font-weight: 800; text-transform: capitalize;
}
.profile-invoice {
  padding: 5px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(102, 242, 255, 0.06); color: var(--cyan);
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.profile-invoice:hover:not(:disabled) { border-color: var(--cyan); background: rgba(102, 242, 255, 0.12); }
.profile-invoice:disabled { opacity: 0.6; cursor: default; }
.profile-invoice-none { color: var(--faint); }

.profile-contact-link {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(102, 242, 255, 0.05);
  color: var(--cyan); font-family: var(--font-body); font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.profile-contact-link:hover { transform: translateY(-1px); border-color: var(--sea); background: rgba(45, 255, 179, 0.08); }
.profile-contact-icon { display: inline-flex; }
.profile-contact-icon svg { width: 20px; height: 20px; }

/* Update Subscription modal */
.manage-card { width: min(560px, 100%); }
.manage-card h3 { font-family: var(--font-title); margin: 0 0 10px; font-size: 1.4rem; }
.manage-plans { display: grid; gap: 12px; margin: 18px 0; }
.manage-plan, .manage-renewal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft);
}
.manage-plan.is-current { border-color: rgba(45, 255, 179, 0.4); background: rgba(45, 255, 179, 0.06); }
.manage-renewal { margin-top: 4px; }
.manage-plan-copy { display: grid; gap: 3px; min-width: 0; }
.manage-plan-copy strong { font-family: var(--font-title); font-size: 1.05rem; color: var(--text); }
.manage-plan-copy span { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-soft); }
.manage-current {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(45, 255, 179, 0.45);
  background: rgba(45, 255, 179, 0.1); color: var(--sea);
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 800; white-space: nowrap;
}
.manage-choose { white-space: nowrap; }

.profile-signout { display: flex; justify-content: flex-start; }
.profile-logout { border: 1px solid var(--line); background: transparent; color: var(--text-soft); }
.profile-logout:hover { border-color: var(--red); color: var(--red); }

.profile-btn {
  flex: 1 1 0; min-width: 0; padding: 8px 4px; border-radius: 10px; font-size: 0.8rem; white-space: nowrap;
  text-align: center; border: 1px solid var(--line-strong); background: rgba(102, 242, 255, 0.07);
  color: var(--cyan); font-weight: 700; cursor: pointer;
}
.profile-btn:hover { border-color: var(--sea); background: rgba(45, 255, 179, 0.1); color: var(--sea); }

/* Landing-page pricing cards, reused inside the app profile page. */
.profile-content .pricing-grid { display: grid; gap: 22px; align-items: stretch; }
.profile-content .pricing-card {
  position: relative; display: flex; flex-direction: column; padding: 30px;
  border: 1px solid transparent; border-radius: 24px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 14, 26, 0.94), rgba(2, 7, 14, 0.98)) padding-box,
    linear-gradient(145deg, rgba(56, 189, 248, 0.4), rgba(0, 229, 255, 0.12), rgba(37, 99, 235, 0.22)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 70px rgba(0, 0, 0, 0.42);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.profile-content .pricing-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 229, 255, 0.16), transparent 32%),
    radial-gradient(circle at 92% 94%, rgba(37, 99, 235, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%);
}
.profile-content .pricing-card > * { position: relative; z-index: 1; }
.profile-content .pricing-card[data-plan="premium"] {
  background:
    linear-gradient(180deg, rgba(7, 12, 28, 0.95), rgba(4, 5, 17, 0.98)) padding-box,
    linear-gradient(145deg, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.18), rgba(124, 58, 237, 0.35)) border-box;
}
.profile-content .pricing-card[data-plan="premium"]::before {
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 85, 247, 0.17), transparent 32%),
    radial-gradient(circle at 92% 94%, rgba(59, 130, 246, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%);
}
.profile-content .pricing-card.is-featured {
  background:
    linear-gradient(180deg, rgba(4, 20, 28, 0.96), rgba(2, 9, 16, 0.985)) padding-box,
    linear-gradient(145deg, rgba(45, 255, 179, 0.72), rgba(0, 229, 255, 0.66), rgba(59, 130, 246, 0.34)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 34px 90px rgba(0, 0, 0, 0.48), 0 0 62px rgba(0, 229, 255, 0.15);
}
.profile-content .pricing-card:hover { transform: translateY(-6px); }
.profile-content .pricing-plan-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.profile-content .pricing-plan-icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(80, 220, 255, 0.2); border-radius: 11px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(37, 99, 235, 0.16));
  color: var(--cyan); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px rgba(0, 229, 255, 0.13);
}
.profile-content .pricing-plan-icon svg { width: 24px; height: 24px; }
.profile-content .pricing-card[data-plan="premium"] .pricing-plan-icon {
  border-color: rgba(168, 85, 247, 0.34);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.26), rgba(59, 130, 246, 0.16));
  color: #c084fc; box-shadow: 0 0 24px rgba(168, 85, 247, 0.14);
}
.profile-content .pricing-badge {
  position: absolute; top: 22px; right: 20px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid rgba(0, 229, 255, 0.28); border-radius: 999px;
  background: rgba(0, 229, 255, 0.07); color: var(--cyan); font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 850; line-height: 1; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}
.profile-content .pricing-plan-name {
  color: var(--text); font-family: var(--font-title); font-size: 1.34rem; font-weight: 750;
  letter-spacing: -0.02em; margin: 0;
}
.profile-content .pricing-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.profile-content .pricing-price {
  color: var(--text); font-family: var(--font-title); font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.045em;
}
.profile-content .pricing-period { color: rgba(203, 213, 225, 0.76); font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; }
.profile-content .pricing-description {
  min-height: 70px; color: rgba(203, 213, 225, 0.78); font-family: var(--font-body);
  font-size: 0.94rem; line-height: 1.58; margin: 0 0 22px;
}
.profile-content .pricing-features {
  display: grid; gap: 13px; padding-top: 24px; margin-bottom: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.profile-content .pricing-feature {
  display: flex; align-items: flex-start; gap: 10px; color: rgba(226, 232, 240, 0.86);
  font-family: var(--font-body); font-size: 0.9rem; line-height: 1.42;
}
.profile-content .pricing-feature svg { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 16px; color: var(--cyan); }
.profile-content .pricing-card[data-plan="premium"] .pricing-feature svg { color: #c084fc; }
.profile-content .pricing-cta {
  width: 100%; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 13px 18px; border: 1px solid rgba(0, 229, 255, 0.36); border-radius: 999px;
  background: rgba(0, 229, 255, 0.02); color: var(--cyan); font-family: var(--font-body);
  font-size: 0.94rem; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}
.profile-content .pricing-cta::after { content: "\2192"; font-size: 1.02rem; line-height: 1; }
.profile-content .pricing-cta:hover:not(.is-current) {
  transform: translateY(-1px); border-color: rgba(0, 229, 255, 0.54);
  background: rgba(0, 229, 255, 0.07); box-shadow: 0 0 26px rgba(0, 229, 255, 0.12);
}
.profile-content .pricing-card.is-featured .pricing-cta:not(.is-current) {
  border-color: transparent; background: linear-gradient(135deg, var(--sea), var(--cyan)); color: #041018;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.18);
}
.profile-content .pricing-card[data-plan="premium"] .pricing-cta:not(.is-current) {
  border-color: rgba(168, 85, 247, 0.45); color: #c084fc; background: rgba(168, 85, 247, 0.035);
}
@media (max-width: 720px) {
  .profile-card { padding: 20px; }
  .profile-content .pricing-card { padding: 24px; border-radius: 22px; }
}
