:root {
    /* InternsSpark Design Tokens */
    --navy: #1a2744;
    --navy-2: #1E293B;
    --navy-deep: #0f1a2e;
    --navy-light: #243656;
    --orange: #f58220;
    --orange-dark: #EA580C;
    --orange-hot: #ff6b00;
    --orange-glow: #ffaa4c;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --cyan: #22d3ee;
    --purple: #a855f7;
    --green: #10b981;
    --red: #f43f5e;

    --text-primary: #0d1b2a;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-inverse: #F8FAFC;

    --bg-primary: #FFFFFF;
    --bg-secondary: #f0f4f8;
    --bg-tertiary: #F1F5F9;
    --white: #ffffff;
    --off-white: #f0f4f8;
    --grey-50: #f8fafc;
    --grey-100: #e8edf3;
    --grey-200: #c4cdd9;
    --grey-400: #94a3b8;
    --grey-600: #6b7a8d;
    --grey-800: #334155;

    --spark-gradient: linear-gradient(135deg, #ff6b00 0%, #f58220 40%, #ffaa4c 100%);
    --navy-gradient: linear-gradient(135deg, #0f1a2e 0%, #1a2744 50%, #243656 100%);

    --border: #e8edf3;
    --border-strong: #CBD5E1;

    --radius: 8px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 50px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text-primary); }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; }
h4 { font-size: 15px; line-height: 1.4; }
p  { margin: 0 0 12px; color: var(--text-secondary); }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }

/* New sidebar layout */
.page-content .page-container { padding: 24px 28px; max-width: 1200px; }
.page-content .page-header { margin-bottom: 24px; }
.page-content .page-header h1 { font-size: 24px; }

.app-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; gap: 16px; color: var(--text-secondary);
}
.app-loading-spinner {
    width: 32px; height: 32px; border: 3px solid var(--border);
    border-top-color: var(--orange); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.top-nav {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 32px; background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}
.brand {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-primary); font-weight: 600; font-size: 16px;
    text-decoration: none;
}
.brand-mark {
    width: 24px; height: 24px; border-radius: 50%; background: var(--orange);
}
.nav-links { display: flex; gap: 20px; margin-left: 12px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user { font-size: 13px; color: var(--text-secondary); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; cursor: pointer;
    border: 1px solid transparent; transition: all 0.15s;
    text-decoration: none; font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--orange-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-tertiary); text-decoration: none; }
.btn-dark { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.btn-dark:hover { background: var(--navy); text-decoration: none; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 12px; color: var(--text-secondary);
    margin-bottom: 4px; font-weight: 500;
}
.form-input, .form-textarea {
    width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-primary); color: var(--text-primary);
    transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-alert {
    padding: 10px 14px; border-radius: var(--radius); font-size: 13px;
    background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; margin-bottom: 14px;
}
.auth-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.auth-mode-btn {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.auth-mode-btn.active {
    background: #FFF7ED;
    border-color: var(--orange);
    color: var(--orange-dark);
}

.card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
}

.page-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.narrow { max-width: 480px; margin: 48px auto; padding: 24px; }

.hero {
    background: var(--navy); color: var(--text-inverse); padding: 64px 32px;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
    color: var(--orange); font-size: 12px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.hero-title { font-size: 42px; line-height: 1.15; margin-bottom: 16px; color: #fff; }
.hero-title .accent { color: var(--orange); }
.hero-sub { color: #94A3B8; font-size: 16px; max-width: 500px; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 12px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat-num { color: #fff; font-size: 24px; font-weight: 600; }
.hero-stat-lbl { color: var(--text-tertiary); font-size: 12px; }

.pipeline {
    background: var(--navy-2); border-radius: var(--radius-lg);
    padding: 24px 20px; position: relative;
}
.pipeline-title {
    color: var(--text-tertiary); font-size: 11px; text-align: center;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.pipeline-stages { display: flex; flex-direction: column; gap: 10px; position: relative; }
.pipeline-stages::before {
    content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px;
    width: 2px; background: linear-gradient(to bottom, var(--blue), var(--orange), var(--green), var(--purple));
}
.pipeline-stage {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; background: rgba(255,255,255,0.04);
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08);
    position: relative; z-index: 1;
}
.pipeline-stage.active { border-color: var(--orange); }
.pipeline-dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.pipeline-dot.d1 { background: var(--blue); }
.pipeline-dot.d2 { background: var(--orange); }
.pipeline-dot.d3 { background: var(--green); }
.pipeline-dot.d4 { background: var(--purple); }
.pipeline-name { color: #fff; font-size: 13px; font-weight: 500; }
.pipeline-tag { color: #64748B; font-size: 11px; }

.section { padding: 64px 32px; }
.section.alt { background: var(--bg-primary); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
    text-align: center; color: var(--text-secondary); font-size: 12px;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.section-title { text-align: center; font-size: 28px; margin-bottom: 40px; }
.features-grid, .steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.feature, .step {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
}
.feature-title, .step-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-desc, .step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: #FFF7ED; color: var(--orange); font-weight: 600; font-size: 13px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}

.final-cta {
    background: var(--navy); color: #fff; padding: 56px 32px; text-align: center;
}
.final-cta h2 { color: #fff; margin-bottom: 8px; }
.final-cta h2 .accent { color: var(--orange); }
.final-cta p { color: var(--text-tertiary); margin-bottom: 24px; }
.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 18px 36px rgba(0, 0, 0, 0.12);
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 32px 32px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 28px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #fff;
    text-decoration: none;
}
.footer-brand:hover { text-decoration: none; }
.footer-copy {
    max-width: 420px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-socials a {
    border: 1px solid rgba(203, 213, 225, 0.18);
    background: rgba(15, 23, 42, 0.45);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
}
.footer-socials a:hover {
    border-color: rgba(249, 115, 22, 0.6);
    color: #fff;
}
.footer-link-group,
.footer-contact-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-link-group h3,
.footer-contact-group h3 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
}
.footer-link-group a,
.footer-contact-group a,
.footer-contact-group p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    text-decoration: none;
}
.footer-link-group a:hover,
.footer-contact-group a:hover {
    color: #fff;
    text-decoration: none;
}
.site-footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 20px 32px 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}
.site-footer-bottom p {
    margin: 0 0 6px;
    font-size: 12px;
    color: #7f8ea3;
}

.discover-layout {
    max-width: 900px; margin: 0 auto; padding: 24px;
    display: flex; flex-direction: column; min-height: calc(100vh - 64px);
}
.chat-panel {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); display: flex; flex-direction: column;
    min-height: 600px; flex: 1;
}
.chat-header {
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 16px;
}
.chat-header-top {
    display: flex; align-items: center; justify-content: space-between;
}
.chat-header-top h3 { font-size: 16px; font-weight: 600; margin: 0; }
.chat-progress-lbl { font-size: 12px; color: var(--text-secondary); }
.stage-stepper {
    display: flex; align-items: center; gap: 0;
}
.stepper-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex-shrink: 0;
}
.stepper-dot {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border-strong); color: var(--text-secondary);
    font-size: 11px; font-weight: 600; background: var(--bg-primary);
    transition: all 0.2s;
}
.stepper-label {
    font-size: 10px; color: var(--text-secondary); text-align: center;
    white-space: nowrap; transition: color 0.2s;
}
.stepper-line {
    flex: 1; height: 2px; background: var(--border); margin-bottom: 20px;
    transition: background 0.3s;
}
.stepper-line.done { background: var(--green); }
.stepper-item.done .stepper-dot {
    background: var(--green); border-color: var(--green); color: #fff;
}
.stepper-item.done .stepper-label { color: var(--text-primary); }
.stepper-item.current .stepper-dot {
    background: var(--orange); border-color: var(--orange); color: #fff;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
}
.stepper-item.current .stepper-label { color: var(--orange); font-weight: 600; }
.chat-progress-bar {
    width: 100%; height: 4px; background: var(--border);
    border-radius: 2px; overflow: hidden;
}
.chat-progress-bar > span {
    display: block; height: 100%; background: var(--orange);
    border-radius: 2px; transition: width 0.4s ease;
}
.chat-body {
    flex: 1; padding: 20px; overflow-y: auto; max-height: 60vh;
    display: flex; flex-direction: column; gap: 14px;
}
.chat-msg { display: flex; gap: 10px; max-width: 85%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #fff;
}
.chat-msg.bot .chat-avatar { background: var(--orange); }
.chat-msg.user .chat-avatar { background: var(--blue); }
.chat-bubble {
    padding: 10px 14px; border-radius: 12px; font-size: 14px;
    line-height: 1.5; background: var(--bg-tertiary);
}
.chat-msg.bot .chat-bubble { border-top-left-radius: 2px; }
.chat-msg.user .chat-bubble {
    border-top-right-radius: 2px; background: var(--blue); color: #fff;
}
.chat-footer {
    border-top: 1px solid var(--border); padding: 16px 20px;
    background: var(--bg-secondary); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.question-card { background: var(--bg-primary); }
.question-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.otp-input {
    letter-spacing: 0.35em; font-size: 22px; font-weight: 700;
    text-align: center; max-width: 180px;
}
.otp-success {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: var(--radius);
    background: #f0fdf4; border: 1px solid #86efac;
    animation: otp-fade-in 0.3s ease;
}
.otp-success-icon {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: #22c55e; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
}
.otp-success strong { display: block; color: #15803d; margin-bottom: 2px; }
.otp-success p { margin: 0; font-size: 13px; color: #166534; }
@keyframes otp-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.prefilled-email {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--bg-secondary);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; color: var(--text-primary);
}
.btn-link {
    background: none; border: none; padding: 0; cursor: pointer;
    font-size: 12px; color: var(--orange); font-family: inherit;
    text-decoration: underline;
}
.btn-link:hover { color: var(--orange-dark); }
.question-prompt { font-size: 14px; margin-bottom: 12px; color: var(--text-primary); }
.question-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-btn {
    text-align: left; padding: 12px 14px; font-size: 13px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: all 0.15s; font-family: inherit; color: var(--text-primary);
}
.option-btn:hover { border-color: var(--orange); background: #FFF7ED; }
.option-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.option-key { font-weight: 600; margin-right: 8px; color: var(--orange); }

.dash-header { margin-bottom: 24px; }
.dash-greeting { font-size: 22px; font-weight: 600; }
.dash-sub { color: var(--text-secondary); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
}
.stat-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 600; }
.stat-value.accent { color: var(--orange); }

.dash-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.dim-list { display: flex; flex-direction: column; gap: 8px; }
.dim-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dim-label { flex: 0 0 150px; color: var(--text-secondary); }
.dim-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.dim-bar > span { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.dim-value { flex: 0 0 30px; text-align: right; font-weight: 600; font-size: 13px; }

.empty-state { text-align: center; padding: 40px 20px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 16px; }

.radar { display: block; margin: 0 auto; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .stage-stepper { flex-wrap: wrap; gap: 4px; }
    .stepper-label { display: none; }
    .dash-row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
}

/* ────────────────────────────────────────────────
   Discover Hub (Step 13)
   ──────────────────────────────────────────────── */

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 24px;
    flex-wrap: wrap;
}

.hub-greeting {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hub-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 560px;
}

.hub-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-primary);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.hub-progress-ring {
    flex-shrink: 0;
}

.hub-progress-label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.hub-progress-label strong {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 2px;
}

/* ── Main grid: modules (left) + sidebar (right) ── */

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.hub-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Module tile ── */

.hub-tile {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.hub-tile:hover:not(.locked) {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.1);
}

.hub-tile.locked {
    cursor: not-allowed;
    opacity: 0.65;
    background: var(--bg-secondary);
}

.hub-tile.completed { border-left: 3px solid var(--green); }
.hub-tile.inprogress { border-left: 3px solid var(--orange); }

.hub-tile-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.hub-tile-body {
    flex: 1;
    min-width: 0;
}

.hub-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.hub-tile-header h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.hub-tile-body p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

/* ── Badge states ── */

.hub-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hub-badge.lock {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.hub-badge.notstarted {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.hub-badge.inprogress {
    background: #FFF7ED;
    color: var(--orange);
}

.hub-badge.completed {
    background: #DCFCE7;
    color: #166534;
}

/* ── Tile progress bar ── */

.hub-tile-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-secondary);
}

.hub-tile-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.hub-tile-progress-bar > span {
    display: block;
    height: 100%;
    background: var(--orange);
    border-radius: 2px;
    transition: width 0.3s;
}

.hub-tile-progress-label {
    flex-shrink: 0;
}

.hub-tile-unlock {
    font-size: 12px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ── Sidebar ── */

.hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-spark-card h3,
.hub-coach-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.hub-spark-composite {
    text-align: center;
    margin-bottom: 18px;
}

.hub-spark-num {
    font-size: 52px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.hub-spark-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.hub-spark-top {
    margin-bottom: 14px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.hub-spark-top-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.hub-spark-top-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.hub-spark-top-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.hub-spark-top-bar > span {
    display: block;
    height: 100%;
    background: var(--orange);
    border-radius: 3px;
}

.hub-spark-top-value {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: right;
}

.hub-spark-empty {
    text-align: center;
    padding: 12px 0;
}

.hub-spark-empty-num {
    font-size: 40px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.hub-spark-empty p {
    font-size: 12px;
    margin-bottom: 12px;
}

.hub-coach-card p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ── Small button variant ── */

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* ── Responsive: collapse to single column below 900px ── */

@media (max-width: 900px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .hub-modules {
        grid-template-columns: 1fr;
    }
    .hub-sidebar {
        order: -1;
    }
    .hub-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ────────────────────────────────────────────────
   Branch Mastery Quiz (Step 14)
   ──────────────────────────────────────────────── */

.back-link {
    display: inline-block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 6px;
}
.back-link:hover { color: var(--orange); }

/* ── Branch picker grid ── */

.bq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.bq-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
}

.bq-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.1);
}

.bq-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.bq-card-icon {
    font-size: 36px;
    line-height: 1;
}

.bq-card-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
}

.bq-card h3 {
    font-size: 17px;
    margin: 0 0 6px;
    font-weight: 600;
}

.bq-card p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 14px;
    flex: 1;
}

.bq-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
}

.bq-topic-tag {
    font-size: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.bq-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.bq-card-count {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ── Quiz question flow ── */

.bq-question-progress { margin-bottom: 20px; }

.bq-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bq-progress-bar > span {
    display: block;
    height: 100%;
    background: var(--orange);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bq-progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.bq-question-card { padding: 28px; }

.bq-question-prompt {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.bq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bq-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    transition: all 0.1s;
    width: 100%;
}

.bq-option:hover:not(:disabled) {
    border-color: var(--orange);
    background: #FFF7ED;
}

.bq-option:disabled { cursor: not-allowed; opacity: 0.6; }

.bq-option-key {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary);
}

.bq-option:hover:not(:disabled) .bq-option-key {
    background: var(--orange);
    color: #fff;
}

.bq-option-text { flex: 1; line-height: 1.5; }

.bq-submitting {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* ── Results screen ── */

.bq-result {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bq-result-header {
    text-align: center;
    margin-bottom: 8px;
}

.bq-result-branch {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 4px;
}

.bq-result-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.bq-result-score {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.bq-score-num {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: var(--orange);
}

.bq-score-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.bq-score-sub {
    font-size: 15px;
    color: var(--text-primary);
    margin-top: 12px;
    font-weight: 500;
}

.bq-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.bq-section-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

/* ── Dimension bars ── */

.bq-dims {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bq-dim-row {
    display: grid;
    grid-template-columns: 150px 1fr 40px;
    gap: 12px;
    align-items: center;
}

.bq-dim-label { font-size: 12px; color: var(--text-primary); }

.bq-dim-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.bq-dim-bar > span {
    display: block;
    height: 100%;
    background: var(--orange);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bq-dim-value {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    color: var(--orange);
}

/* ── Review list ── */

.bq-review {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bq-review-row {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 3px solid transparent;
}

.bq-review-row.correct   { border-left-color: #22C55E; }
.bq-review-row.incorrect { border-left-color: #EF4444; }

.bq-review-number {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 36px;
}

.bq-review-row.correct .bq-review-number   { color: #22C55E; }
.bq-review-row.incorrect .bq-review-number { color: #EF4444; }

.bq-review-body { flex: 1; min-width: 0; }

.bq-review-topic {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.bq-review-prompt {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bq-review-answers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bq-review-answers strong {
    color: var(--text-primary);
    margin-right: 6px;
}

.correct-answer   { color: #16A34A; font-weight: 600; }
.incorrect-answer { color: #DC2626; font-weight: 600; }

.bq-review-explanation {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 10px;
    background: var(--bg-primary);
    border-radius: 4px;
    line-height: 1.5;
    margin-top: 4px;
}

.bq-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 12px 0;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .bq-dim-row { grid-template-columns: 110px 1fr 40px; }
    .bq-question-card { padding: 18px; }
    .bq-question-prompt { font-size: 16px; }
    .bq-score-num { font-size: 56px; }
}

/* ────────────────────────────────────────────────
   Interest Explorer (Step 15)
   ──────────────────────────────────────────────── */

.int-counter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.int-counter {
    font-size: 14px;
    color: var(--text-secondary);
}

.int-counter strong {
    color: var(--orange);
    font-size: 18px;
    font-weight: 700;
    margin-right: 2px;
}

.int-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ── Cluster sections ── */

.int-cluster {
    margin-bottom: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.int-cluster-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.int-cluster-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.int-cluster-header h3 {
    font-size: 16px;
    margin: 0 0 4px;
    font-weight: 600;
}

.int-cluster-header p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Tag chips ── */

.int-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.int-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
}

.int-tag:hover:not(.selected) {
    border-color: var(--orange);
    background: #FFF7ED;
}

.int-tag.selected {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    font-weight: 500;
}

.int-tag.selected:hover {
    background: #EA580C;
    border-color: #EA580C;
}

.int-tag-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

/* ── Sticky-style save bar ── */

.int-save-bar {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}

.int-save-summary {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.int-save-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .int-counter-bar,
    .int-save-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .int-save-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-footer-inner { grid-template-columns: 1fr; padding: 40px 24px 24px; }
    .site-footer-bottom { padding: 18px 24px 24px; }
    .footer-copy { max-width: none; }
}


/* ────────────────────────────────────────────────
   Career Compass (Step 16)
   ──────────────────────────────────────────────── */

.cc-section-header {
    margin: 8px 0 16px;
}

.cc-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.cc-section-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Top match cards ── */

.cc-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.cc-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.cc-top-card {
    border-left: 4px solid var(--orange);
}

.cc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.cc-rank {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.cc-card-title {
    flex: 1;
    min-width: 0;
}

.cc-card-title h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.cc-category {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
}

.cc-fit {
    flex-shrink: 0;
    text-align: center;
    padding: 6px 12px;
    background: #FFF7ED;
    border-radius: 8px;
    border: 1px solid #FED7AA;
}

.cc-fit-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.cc-fit-label {
    font-size: 10px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.cc-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 14px;
}

.cc-rationale {
    background: var(--bg-secondary);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cc-rationale strong {
    color: var(--orange);
}

/* ── Score component breakdown ── */

.cc-breakdown {
    margin-bottom: 14px;
}

.cc-breakdown-item {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}

.cc-breakdown-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.cc-breakdown-bar {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.cc-breakdown-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.cc-fill-spark    { background: var(--orange); }
.cc-fill-interest { background: #6366F1; }

.cc-breakdown-value {
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
}

/* ── Dimension chips (strengths + gaps) ── */

.cc-dim-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cc-dim-chips-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

.cc-strengths-title { color: #16A34A; }
.cc-gaps-title      { color: #D97706; }

.cc-dim-chip {
    display: inline-block;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    font-weight: 500;
}

.cc-chip-strength {
    background: #DCFCE7;
    color: #166534;
}

.cc-chip-gap {
    background: #FEF3C7;
    color: #92400E;
}

/* ── Card footer ── */

.cc-card-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.cc-interest-badge {
    font-size: 11px;
    background: #DCFCE7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.cc-threshold-warn {
    font-size: 11px;
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* ── Explore section (compact cards) ── */

.cc-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.cc-explore-card {
    padding: 16px;
}

.cc-explore-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.cc-explore-header h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.cc-fit-mini {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
}

.cc-fit-mini small {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cc-explore-card .cc-description {
    font-size: 12px;
    margin: 0;
}

/* ── Empty state ── */

.cc-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cc-empty-icon {
    font-size: 64px;
    margin-bottom: 12px;
    line-height: 1;
}

.cc-empty h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.cc-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.cc-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footnote ── */

.cc-footnote {
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 24px;
    padding: 12px 0;
}

/* ── Responsive ── */

@media (max-width: 700px) {
    .cc-card-header {
        flex-wrap: wrap;
    }
    .cc-fit {
        order: -1;
    }
    .cc-breakdown-item {
        grid-template-columns: 100px 1fr 36px;
        font-size: 11px;
    }
}

/* ── Career Compass AI badge (Step 16b) ── */

.cc-rationale-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cc-ai-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    background: linear-gradient(135deg, #A855F7 0%, #6366F1 100%);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: help;
}


/* ========================================
   KBC QUIZ STYLES
   ======================================== */

/* --- KBC Info Banner --- */
.kbc-info-banner { background: var(--navy-gradient); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 28px; }
.kbc-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kbc-info-item { display: flex; align-items: center; gap: 12px; color: var(--white); }
.kbc-info-icon { font-size: 28px; }
.kbc-info-item strong { font-family: var(--font-display); font-size: 14px; display: block; }
.kbc-info-item span { font-size: 12px; color: rgba(255,255,255,0.6); }

/* --- Gameplay Cards Grid --- */
.gameplay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.gameplay-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 22px; transition: all var(--transition); }
.gameplay-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gameplay-card-top { display: flex; align-items: center; gap: 14px; padding-left: 16px; margin-bottom: 12px; border-radius: var(--radius-md); }
.gameplay-emoji { font-size: 36px; }
.gameplay-info h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); }
.gameplay-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.gameplay-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--grey-600); margin-bottom: 16px; }
.gameplay-actions { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--grey-100); }

.gameplay-admin-grid { display: flex; flex-direction: column; gap: 16px; }

/* --- KBC Game Layout --- */
.kbc-game-layout { display: grid; grid-template-columns: 200px 1fr 200px; gap: 20px; min-height: calc(100vh - 180px); }

/* --- Point Ladder --- */
.kbc-ladder { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 16px; height: fit-content; position: sticky; top: 80px; }
.kbc-ladder h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 12px; text-align: center; }
.ladder-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius-sm); font-size: 12px; margin-bottom: 2px; transition: all 0.2s; }
.ladder-row.current { background: rgba(245,130,32,0.12); font-weight: 700; }
.ladder-row.completed { background: rgba(16,185,129,0.06); color: var(--green); }
.ladder-row.safe-haven { border: 1px solid rgba(59,130,246,0.3); }
.ladder-level { font-family: var(--font-mono); font-weight: 700; min-width: 24px; color: var(--navy); }
.ladder-points { flex: 1; font-family: var(--font-mono); color: var(--text-secondary); }
.ladder-safe { font-size: 14px; }

/* --- Question Area --- */
.kbc-question-area { display: flex; flex-direction: column; gap: 16px; }
.kbc-level-indicator { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); }
.kbc-timer { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--blue); padding: 6px 14px; background: rgba(59,130,246,0.08); border-radius: var(--radius-full); }
.kbc-timer.urgent { color: var(--red); background: rgba(244,63,94,0.08); animation: pulse 1s ease-in-out infinite; }
.kbc-category-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--orange); background: rgba(245,130,32,0.08); padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: 12px; }
.kbc-question-box { background: var(--navy-gradient); border-radius: var(--radius-xl); padding: 28px; color: var(--white); }
.kbc-question-box p { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.5; }

/* --- Options --- */
.kbc-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kbc-option { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--white); border: 2px solid var(--grey-100); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.25s; text-align: left; }
.kbc-option:hover:not(:disabled):not(.removed) { border-color: var(--blue); background: rgba(59,130,246,0.03); }
.kbc-option.selected { border-color: var(--orange); background: rgba(245,130,32,0.06); box-shadow: 0 0 0 3px rgba(245,130,32,0.15); }
.kbc-option.removed { opacity: 0.25; pointer-events: none; text-decoration: line-through; }
.opt-letter { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--navy); min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--off-white); }
.opt-text { font-size: 15px; font-weight: 500; color: var(--text-primary); }

/* --- Feedback --- */
.kbc-feedback { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; }
.kbc-feedback.correct { background: rgba(16,185,129,0.08); color: var(--green); border: 1px solid rgba(16,185,129,0.15); }
.kbc-feedback.wrong { background: rgba(244,63,94,0.08); color: var(--red); border: 1px solid rgba(244,63,94,0.15); }
.kbc-feedback .explanation { font-weight: 400; font-size: 13px; margin-top: 6px; opacity: 0.85; }

/* --- Action Row --- */
.kbc-action-row { display: flex; gap: 12px; align-items: center; }

/* --- Lifelines Panel --- */
.kbc-lifelines { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 16px; height: fit-content; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; }
.kbc-lifelines h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 4px; }
.lifeline-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; border: 2px solid var(--grey-100); border-radius: var(--radius-lg); font-size: 11px; font-weight: 600; color: var(--navy); background: var(--white); transition: all var(--transition); cursor: pointer; }
.lifeline-btn:hover:not(:disabled):not(.used) { border-color: var(--blue); background: rgba(59,130,246,0.04); }
.lifeline-btn.used { opacity: 0.3; border-style: dashed; cursor: not-allowed; }
.lifeline-btn span:first-child { font-size: 22px; }
.kbc-current-points { text-align: center; padding: 14px; background: rgba(245,130,32,0.06); border-radius: var(--radius-md); margin-top: 8px; }
.kbc-current-points span { font-size: 12px; color: var(--text-secondary); display: block; }
.kbc-current-points strong { font-family: var(--font-display); font-size: 22px; color: var(--orange); }
.kbc-safe-points { text-align: center; padding: 10px; background: rgba(59,130,246,0.06); border-radius: var(--radius-md); }
.kbc-safe-points span { font-size: 11px; color: var(--blue); display: block; }
.kbc-safe-points strong { font-family: var(--font-mono); font-size: 14px; color: var(--blue); }

/* --- Ask Audience / Phone Friend --- */
.kbc-audience-result, .kbc-phone-result { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 16px; }
.kbc-audience-result h4, .kbc-phone-result h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.audience-bars { display: flex; flex-direction: column; gap: 6px; }
.audience-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.audience-bar .bar-fill { height: 20px; background: var(--spark-gradient); border-radius: 4px; transition: width 0.6s ease; min-width: 2px; }
.kbc-phone-result p { font-style: italic; font-size: 14px; color: var(--text-secondary); }

/* --- Game Result Screen --- */
.kbc-result-screen { display: flex; justify-content: center; padding: 20px 0; }
.kbc-result-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-2xl); padding: 40px; max-width: 600px; width: 100%; text-align: center; }
.kbc-result-emoji { font-size: 64px; margin-bottom: 12px; }
.kbc-result-card h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.kbc-result-points { padding: 20px; background: rgba(245,130,32,0.06); border-radius: var(--radius-lg); margin-bottom: 20px; }
.result-label { font-size: 14px; color: var(--text-secondary); display: block; }
.result-value { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--orange); }
.kbc-result-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; font-size: 14px; color: var(--text-secondary); }
.kbc-result-answers { text-align: left; margin-top: 20px; }
.kbc-result-answers h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.result-answer-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; font-size: 13px; }
.result-answer-row.correct { background: rgba(16,185,129,0.05); }
.result-answer-row.wrong { background: rgba(244,63,94,0.05); }
.result-level { font-family: var(--font-mono); font-weight: 700; min-width: 28px; color: var(--navy); }
.result-q { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-badge { font-size: 16px; }

/* --- Multiplayer Waiting Room --- */
.kbc-waiting-room { padding: 20px 0; }
.kbc-room-code-display { text-align: center; padding: 24px; background: var(--navy-gradient); border-radius: var(--radius-xl); color: var(--white); margin-bottom: 20px; }
.kbc-room-code-display span { font-size: 13px; color: rgba(255,255,255,0.6); display: block; }
.kbc-room-code-display strong { font-family: var(--font-mono); font-size: 42px; letter-spacing: 0.15em; display: block; margin: 8px 0; }
.kbc-room-code-display p { font-size: 13px; color: rgba(255,255,255,0.5); }
.kbc-gameplay-info { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--navy); }
.kbc-players-list { display: flex; flex-direction: column; gap: 8px; }
.kbc-player-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--off-white); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; }



/* ===== MULTIPLAYER GAME ===== */
.mp-game-layout { display: flex; flex-direction: column; gap: 0; min-height: 80vh; }
.mp-top-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: var(--bg-card); border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border); }
.mp-title { font-weight: 700; font-size: 16px; }
.mp-game-info { display: flex; align-items: center; gap: 10px; }
.mp-question-counter { font-weight: 600; font-size: 15px; color: var(--text-secondary); }
.mp-room-badge { font-size: 13px; color: var(--text-secondary); }
.mp-room-badge strong { color: var(--orange); }

.mp-main-area { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.mp-question-section { display: flex; flex-direction: column; gap: 0; }

.mp-question-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mp-diff-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.mp-diff-badge.easy { background: #dcfce7; color: #15803d; }
.mp-diff-badge.medium { background: #fef3c7; color: #b45309; }
.mp-diff-badge.hard { background: #fee2e2; color: #dc2626; }
.mp-diff-badge.expert { background: #ede9fe; color: #7c3aed; }
.mp-level-pts { font-size: 13px; color: var(--text-secondary); }

.mp-action-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.mp-waiting-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text-secondary); }
.mp-all-wrong { background: #fee2e2; color: #dc2626; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; }

.mp-lifelines-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap; }
.mp-lifeline-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.mp-lifeline-btns { display: flex; gap: 8px; }

.mp-explanation { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin: 8px 0; }

/* Round results grid */
.mp-round-results { margin: 16px 0; }
.mp-round-results h4 { font-size: 14px; margin-bottom: 8px; color: var(--text-secondary); }
.mp-round-grid { display: flex; flex-direction: column; gap: 6px; }
.mp-round-player { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); font-size: 13px; }
.mp-round-player.correct { border-left: 3px solid #22c55e; }
.mp-round-player.wrong { border-left: 3px solid #ef4444; }
.mp-round-player.me { background: #fffbeb; }
.mp-round-name { flex: 1; font-weight: 600; }
.mp-round-answer { font-weight: 500; }
.mp-round-time { color: var(--text-secondary); }
.mp-round-pts { font-weight: 700; min-width: 60px; text-align: right; }
.mp-round-lifeline { font-size: 11px; color: #b45309; }

/* Option reveal states */
.kbc-option.correct-reveal { background: #dcfce7 !important; border-color: #22c55e !important; color: #15803d !important; }
.kbc-option.wrong-reveal { background: #fee2e2 !important; border-color: #ef4444 !important; color: #dc2626 !important; }
.opt-badge { margin-left: auto; font-size: 18px; }

/* Live leaderboard panel */
.mp-leaderboard-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; height: fit-content; position: sticky; top: 20px; }
.mp-leaderboard-panel h3 { font-size: 15px; margin-bottom: 12px; text-align: center; }
.mp-lb-list { display: flex; flex-direction: column; gap: 6px; }
.mp-lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background 0.2s; }
.mp-lb-row:hover, .mp-lb-row.me { background: #fffbeb; }
.mp-lb-rank { font-size: 16px; width: 28px; text-align: center; }
.mp-lb-info { flex: 1; display: flex; flex-direction: column; }
.mp-lb-info strong { font-size: 13px; }
.mp-lb-info span { font-size: 11px; color: var(--text-secondary); }
.mp-lb-pts { font-weight: 700; color: var(--orange); font-size: 14px; min-width: 50px; text-align: right; }

.mp-scoring-info { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; }
.mp-scoring-info h4 { font-size: 12px; font-weight: 700; margin-bottom: 2px; }

/* Final leaderboard */
.mp-final-leaderboard { margin: 20px 0; }
.mp-final-leaderboard h3 { margin-bottom: 12px; }
.mp-final-leaderboard .my-row { background: #fffbeb; }

/* Btn danger */
.btn-danger { color: #dc2626 !important; border-color: #dc2626 !important; }
.btn-danger:hover { background: #fef2f2 !important; }

@media (max-width: 1024px) {
    .mp-main-area { grid-template-columns: 1fr; }
    .mp-leaderboard-panel { position: static; }
}
@media (max-width: 640px) {
    .mp-top-bar { flex-direction: column; align-items: flex-start; }
    .mp-round-player { flex-wrap: wrap; }
    .mp-lifelines-bar { flex-direction: column; align-items: flex-start; }
}


/* ── Cognira layout adaptation ── */
.page-container { max-width: 1280px; margin: 0 auto; padding: 28px 32px; }
@media (max-width: 768px) { .page-container { padding: 16px; } }

.page-header { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.page-header p { font-size: 15px; color: var(--text-secondary); margin: 0; }

/* Btn aliases for InternsSpark class names */
.btn-primary { background: var(--spark-gradient); color: #fff; border: none; border-radius: var(--radius-full); padding: 10px 22px; font-family: var(--font-display); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all var(--transition); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,130,32,0.4); text-decoration: none; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--grey-200); border-radius: var(--radius-full); padding: 10px 22px; font-family: var(--font-display); font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-outline:hover:not(:disabled) { border-color: var(--navy); background: var(--grey-50); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-sm.btn-primary { background: var(--spark-gradient); color: #fff; }
.btn-sm.btn-outline { border: 1.5px solid var(--grey-200); color: var(--text-secondary); }
.btn-sm.btn-danger { background: rgba(244,63,94,0.08); color: var(--red); border: 1px solid rgba(244,63,94,0.15); }

/* Card */
.card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-header h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); }

/* Tags */
.tag { padding: 4px 12px; background: var(--off-white); border-radius: var(--radius-full); font-size: 12px; font-weight: 500; color: var(--text-secondary); display: inline-block; }
.tag.small { font-size: 11px; padding: 3px 10px; }
.tag-accent { background: rgba(245,130,32,0.08); color: var(--orange); }

/* Spinner */
.spinner { width: 40px; height: 40px; border: 3px solid var(--grey-100); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16px; }
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; }
.loading-state p { font-size: 14px; color: var(--text-secondary); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.alert-error { background: rgba(244,63,94,0.08); color: var(--red); border: 1px solid rgba(244,63,94,0.15); }

/* Empty states */
.empty-state-large { text-align: center; padding: 60px 24px; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); }
.empty-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state-large h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-state-large p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }

/* user-avatar for multiplayer */
.user-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--spark-gradient); color: #fff; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }

/* Table */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--grey-100); }
.data-table td { padding: 14px; border-bottom: 1px solid var(--grey-100); font-size: 14px; }
.data-table tr:hover td { background: var(--grey-50); }
.my-row { background: rgba(245,130,32,0.05) !important; font-weight: 700; }

/* Filter bar */
.filter-bar { display: flex; gap: 16px; align-items: flex-end; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 24px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--grey-600); }

/* ────────────────────────────────────────────────
   Build module (Step 18)
   ──────────────────────────────────────────────── */

/* ── Shared bits ── */

.build-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.build-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.build-path-title {
    font-size: 26px;
    font-weight: 700;
    margin: 4px 0 0;
}

.build-header-actions {
    display: flex;
    gap: 8px;
}

.build-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 4px;
}

.build-section-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
}

.build-badge-done {
    display: inline-block;
    margin-left: 10px;
    font-size: 11px;
    padding: 3px 9px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 10px;
    font-weight: 600;
}

.build-roadmap-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ── Progress bar ── */

.build-progress-wrap {
    margin-top: 20px;
}

.build-progress-bar {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.build-progress-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, #F59E0B 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.build-progress-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.build-progress-label strong {
    color: var(--text-primary);
}

/* ── Stats strip ── */

.build-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0 28px;
}

.build-stat {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}

.build-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.build-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* ── Skill node cards (This Week) ── */

.build-nodes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.build-node-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.build-node-card:hover {
    border-color: var(--orange);
    transform: translateX(2px);
}

.build-node-card.is-next {
    border-left: 4px solid var(--orange);
    background: linear-gradient(90deg, #FFF7ED 0%, var(--bg-primary) 40%);
}

.build-node-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.build-node-order {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.build-node-card.is-next .build-node-order {
    background: var(--orange);
    color: #fff;
}

.build-node-body { flex: 1; min-width: 0; }

.build-node-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--orange);
    margin-bottom: 4px;
}

.build-node-body h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.build-node-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 8px;
}

.build-node-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    gap: 4px;
}

.build-node-arrow {
    font-size: 18px;
    color: var(--text-tertiary);
    align-self: center;
}

/* ── Node detail page ── */

.build-node-detail-header {
    margin-top: 16px;
}

.build-node-detail-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.build-node-detail-level {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.build-node-detail h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.build-node-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
}

.build-completed-banner {
    display: inline-block;
    background: #DCFCE7;
    color: #166534;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Resources ── */

.build-resources {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.build-resource {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.build-resource:hover {
    border-color: var(--orange);
    background: #FFF7ED;
}

.build-resource-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.build-resource-body { flex: 1; min-width: 0; }

.build-resource-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.build-resource-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    gap: 4px;
}

.build-resource-arrow {
    font-size: 16px;
    color: var(--text-tertiary);
}

.build-complete-row {
    margin-top: 28px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
}

.build-complete-prompt,
.build-already-done {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

/* ── Path picker ── */

.build-current-path-banner {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #92400E;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.build-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.build-path-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.build-path-card.is-current {
    border-color: var(--orange);
    border-width: 2px;
}

.build-path-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.build-path-icon {
    font-size: 32px;
    line-height: 1;
}

.build-path-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px;
}

.build-path-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
}

.build-path-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 10px;
}

.build-path-stats {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}

.build-path-actions {
    margin-top: 8px;
}

/* ── Full roadmap levels ── */

.build-level {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.build-level.is-complete {
    border-left: 4px solid #16A34A;
}

.build-level-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.build-level-number {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.build-level.is-complete .build-level-number { background: #16A34A; }

.build-level-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.build-level-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.build-level-nodes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 48px;
}

.build-level-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background 0.15s ease;
}

.build-level-node:hover { background: var(--bg-secondary); }

.build-level-node.is-completed { opacity: 0.65; }
.build-level-node.is-completed .build-level-node-title { text-decoration: line-through; }

.build-level-node-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.build-level-node.is-completed .build-level-node-check {
    background: #16A34A;
    color: #fff;
}

.build-level-node-body { flex: 1; min-width: 0; }

.build-level-node-title {
    font-size: 13px;
    font-weight: 500;
}

.build-level-node-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ── Empty state ── */

.build-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.build-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.build-empty h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.build-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .build-level-nodes { padding-left: 0; }
}

/* ────────────────────────────────────────────────
   Top nav disabled state + blocked banner on Hub
   ──────────────────────────────────────────────── */

.nav-disabled {
    color: var(--text-tertiary);
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 14px;
    position: relative;
}

.nav-disabled::after {
    content: "SOON";
    position: absolute;
    top: -4px;
    right: -12px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--orange);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
}

.hub-banner-blocked {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 20px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-left: 4px solid var(--orange);
    border-radius: var(--radius-md);
    animation: banner-slide-in 0.25s ease;
}

@keyframes banner-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hub-banner-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.hub-banner-text {
    flex: 1;
    font-size: 13px;
    color: #92400E;
    line-height: 1.5;
}

.hub-banner-close {
    background: none;
    border: none;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: #92400E;
    cursor: pointer;
    padding: 0 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.hub-banner-close:hover {
    background: rgba(146, 64, 14, 0.1);
}

/* ────────────────────────────────────────────────
   Hub blocked-redirect banner + top nav disabled
   ──────────────────────────────────────────────── */

.hub-banner-blocked {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #92400E;
    font-size: 13px;
    line-height: 1.5;
    animation: banner-slide-in 0.2s ease;
}

@keyframes banner-slide-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hub-banner-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.hub-banner-text {
    flex: 1;
}

.hub-banner-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #92400E;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.hub-banner-close:hover {
    opacity: 1;
}

.nav-disabled {
    color: var(--text-tertiary);
    opacity: 0.55;
    cursor: not-allowed;
    font-size: 14px;
    padding: 6px 10px;
    user-select: none;
}

/* ────────────────────────────────────────────────
   Build polish (Step 19)
   ──────────────────────────────────────────────── */

/* ── Progress bar: animate fill on mount ── */

.build-progress-bar > span {
    animation: build-progress-fill-in 0.8s ease-out;
}

@keyframes build-progress-fill-in {
    from { width: 0 !important; }
    /* `to` is whatever width the inline style sets */
}

/* ── "Start here" highlighted card: subtle attention pulse on the badge ── */

.build-node-card.is-next .build-node-badge {
    animation: build-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes build-badge-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* Left-border shimmer on the next card to reinforce visual priority */
.build-node-card.is-next {
    position: relative;
    overflow: hidden;
}

.build-node-card.is-next::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--orange);
    animation: build-next-shimmer 3s ease-in-out infinite;
}

@keyframes build-next-shimmer {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* ── Stats strip counters: fade-in cascade on load ── */

.build-stats-strip .build-stat {
    animation: build-stat-fade-in 0.4s ease-out both;
}

.build-stats-strip .build-stat:nth-child(1) { animation-delay: 0.0s; }
.build-stats-strip .build-stat:nth-child(2) { animation-delay: 0.08s; }
.build-stats-strip .build-stat:nth-child(3) { animation-delay: 0.16s; }

@keyframes build-stat-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────────
   Level tests (Step 19)
   ──────────────────────────────────────────────── */

/* ── Test-taking page ── */

.test-header {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 16px 0 20px;
}

.test-header-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 6px;
}

.test-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.test-header-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 14px;
}

.test-header-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-tertiary);
}

.test-already-passed-note {
    background: #DCFCE7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 12px;
}

.test-question-progress {
    margin-bottom: 16px;
}

.test-question-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.test-question-progress-bar > span {
    display: block;
    height: 100%;
    background: var(--orange);
    transition: width 0.3s ease;
}

.test-question-progress-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.test-question-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.test-question-stem {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 18px;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    transition: all 0.12s ease;
}

.test-option:hover {
    background: #FFF7ED;
    border-color: #FED7AA;
}

.test-option.is-selected {
    background: #FFF7ED;
    border-color: var(--orange);
}

.test-option-marker {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.test-option.is-selected .test-option-marker {
    background: var(--orange);
    color: #fff;
}

.test-option-text { flex: 1; }

.test-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.test-nav-spacer { flex: 1; }

.test-submit-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 6px;
    font-size: 12px;
}

/* ── Jump nav dots ── */

.test-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.test-jump-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: inherit;
}

.test-jump-dot:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.test-jump-dot.is-answered {
    background: #DCFCE7;
    border-color: #86EFAC;
    color: #166534;
}

.test-jump-dot.is-current {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

/* ── Cooldown state ── */

.test-cooldown {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.test-cooldown-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.test-cooldown h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.test-cooldown p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 18px;
    line-height: 1.55;
}

.test-cooldown-timer {
    font-size: 18px;
    color: var(--orange);
    font-weight: 600;
    padding: 12px 20px;
    background: #FFF7ED;
    border-radius: 8px;
    display: inline-block;
}

/* ── Result page ── */

.test-result-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    margin: 16px 0 20px;
    border: 1px solid;
}

.test-result-banner.is-passed {
    background: #DCFCE7;
    border-color: #86EFAC;
}

.test-result-banner.is-failed {
    background: #FEF3C7;
    border-color: #FCD34D;
}

.test-result-banner-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.test-result-banner-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.test-result-banner.is-passed h2 { color: #166534; }
.test-result-banner.is-failed h2 { color: #92400E; }

.test-result-banner-body p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.test-result-banner.is-passed p { color: #166534; }
.test-result-banner.is-failed p { color: #78350F; }

.test-retry-note {
    background: var(--bg-secondary);
    border-left: 3px solid var(--orange);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.test-review-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 4px;
}

.test-review-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.test-review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.test-review-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.test-review-card.is-correct { border-left-color: #16A34A; }
.test-review-card.is-wrong   { border-left-color: #DC2626; }

.test-review-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.test-review-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

.test-review-stem {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    padding-top: 2px;
}

.test-review-icon {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
}

.test-review-card.is-correct .test-review-icon { color: #16A34A; }
.test-review-card.is-wrong   .test-review-icon { color: #DC2626; }

.test-review-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.test-review-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.test-review-option.is-correct-option {
    background: #DCFCE7;
    color: #166534;
    font-weight: 500;
}

.test-review-option.is-wrong-pick {
    background: #FEE2E2;
    color: #991B1B;
}

.test-review-option-marker {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

.test-review-option-tag {
    margin-left: auto;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    opacity: 0.85;
}

.test-review-explanation {
    background: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-primary);
}

.test-review-explanation strong { color: var(--orange); }

.test-result-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}


/* ── Certificate banner ── */

.test-certificate-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
    border: 1px solid #FCD34D;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.test-certificate-banner-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.test-certificate-banner-body {
    flex: 1;
    min-width: 240px;
}

.test-certificate-banner-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #92400E;
}

.test-certificate-banner-body p {
    font-size: 13px;
    color: #78350F;
    margin: 0;
    line-height: 1.5;
}

/* ────────────────────────────────────────────────
   Validate module (Step 19 — refactor)
   ──────────────────────────────────────────────── */

/* ── Empty state ── */

.validate-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.validate-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.validate-empty h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.validate-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.55;
}

/* ── Path cards on /validate landing ── */

.validate-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.validate-path-card {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.validate-path-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.validate-path-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.validate-path-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.validate-path-title-block { flex: 1; min-width: 0; }

.validate-path-title-block h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.validate-path-cert-badge {
    font-size: 22px;
    line-height: 1;
}

.validate-path-progress-row {
    margin-bottom: 12px;
}

.validate-path-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.validate-path-progress-bar > span {
    display: block;
    height: 100%;
    background: var(--orange);
    transition: width 0.4s ease;
}

.validate-path-progress-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.validate-path-progress-label strong { color: var(--text-primary); }

.validate-path-cta {
    font-size: 13px;
    color: var(--orange);
    font-weight: 600;
    margin-top: 4px;
}

/* ── PathTests page summary strip ── */

.validate-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.validate-summary-stat {
    flex-shrink: 0;
}

.validate-summary-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.validate-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.validate-summary-bar-wrap {
    flex: 1;
    min-width: 200px;
}

.validate-summary-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.validate-summary-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, #F59E0B 100%);
    transition: width 0.5s ease;
}

.validate-summary-bar-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ── Per-test cards ── */

.validate-test-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.validate-test-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: border-color 0.15s ease;
}

.validate-test-card.is-passed {
    border-left: 4px solid #16A34A;
}

.validate-test-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.validate-test-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.validate-test-card.is-passed .validate-test-num {
    background: #16A34A;
    color: #fff;
}

.validate-test-card-body {
    flex: 1;
    min-width: 0;
}

.validate-test-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.validate-test-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.validate-test-cooldown-text {
    font-size: 12px;
    color: var(--orange);
    margin: 4px 0 0;
}

.validate-test-card-action { flex-shrink: 0; }

@media (max-width: 600px) {
    .validate-test-card-header { flex-wrap: wrap; }
    .validate-test-card-action { width: 100%; margin-top: 8px; }
}

/* ────────────────────────────────────────────────
   Certificate page (Step 19 Turn 3)
   ──────────────────────────────────────────────── */

/* ── Action bar (hidden when printing) ── */

.cert-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0 24px;
}

/* ── Not-eligible state ── */

.cert-not-eligible {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cert-not-eligible-icon {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}

.cert-not-eligible h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
}

.cert-not-eligible p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.55;
}

/* ── Certificate page wrapper ── */

.cert-page {
    background: linear-gradient(135deg, #FEF3C7 0%, #FFF7ED 50%, #FEF3C7 100%);
    padding: 32px;
    border-radius: var(--radius-lg);
}

/* ── The certificate card itself ── */

.cert-card {
    position: relative;
    background: #FFFEF9;
    border: 8px double #92400E;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #3F2E1A;
}

/* Decorative corner ornaments */
.cert-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid #92400E;
}
.cert-corner-tl { top: 16px; left: 16px;   border-right: none; border-bottom: none; }
.cert-corner-tr { top: 16px; right: 16px;  border-left:  none; border-bottom: none; }
.cert-corner-bl { bottom: 16px; left: 16px;  border-right: none; border-top: none; }
.cert-corner-br { bottom: 16px; right: 16px; border-left:  none; border-top: none; }

/* ── Header ── */

.cert-header {
    margin-bottom: 32px;
}

.cert-brand {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #92400E;
    margin-bottom: 8px;
}

.cert-divider {
    color: #D97706;
    font-size: 14px;
    letter-spacing: 6px;
    margin-bottom: 8px;
}

.cert-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #78350F;
    font-weight: 600;
}

/* ── Body ── */

.cert-body {
    margin-bottom: 40px;
}

.cert-presented-to {
    font-size: 16px;
    color: #78350F;
    font-style: italic;
    margin: 0 0 12px;
}

.cert-name {
    font-size: 44px;
    font-weight: 700;
    color: #3F2E1A;
    margin: 0 0 24px;
    border-bottom: 1px solid #D97706;
    padding-bottom: 16px;
    line-height: 1.2;
}

.cert-completion {
    font-size: 16px;
    color: #78350F;
    font-style: italic;
    margin: 0 0 8px;
}

.cert-path {
    font-size: 32px;
    font-weight: 700;
    color: #92400E;
    margin: 0 0 4px;
}

.cert-path-sub {
    font-size: 13px;
    color: #78350F;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 32px;
}

/* ── Stats row ── */

.cert-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 28px;
    padding: 20px 0;
    border-top: 1px solid #FCD34D;
    border-bottom: 1px solid #FCD34D;
}

.cert-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #92400E;
    line-height: 1;
}

.cert-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #78350F;
    margin-top: 4px;
}

/* ── Per-level breakdown ── */

.cert-level-breakdown {
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
}

.cert-level-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
}

.cert-level-check {
    color: #16A34A;
    font-weight: 700;
    width: 20px;
    flex-shrink: 0;
}

.cert-level-title {
    flex: 1;
    color: #3F2E1A;
}

.cert-level-score {
    font-weight: 700;
    color: #92400E;
}

/* ── Footer (date, seal, certificate ID) ── */

.cert-footer {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: 32px;
}

.cert-footer-block {
    flex: 1;
    text-align: center;
}

.cert-footer-line {
    height: 1px;
    background: #92400E;
    margin-bottom: 6px;
}

.cert-footer-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #78350F;
    margin-bottom: 4px;
}

.cert-footer-value {
    font-size: 13px;
    color: #3F2E1A;
    font-weight: 600;
}

/* ── Seal ── */

.cert-seal {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    border: 4px double #92400E;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.3);
}

.cert-seal-inner {
    text-align: center;
}

.cert-seal-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

.cert-seal-text {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #78350F;
    line-height: 1.3;
}

/* ── Print rules ── */

@media print {
    /* Hide the entire page chrome */
    .top-nav,
    .nav-links,
    .nav-actions,
    .back-link,
    .cert-actions {
        display: none !important;
    }

    /* Strip the page background and padding */
    body, .app-shell, .app-main, .page-container, .cert-page {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Center the certificate */
    .cert-card {
        box-shadow: none !important;
        margin: 0 auto;
        max-width: 100%;
        page-break-inside: avoid;
    }
}

@media (max-width: 700px) {
    .cert-card {
        padding: 32px 20px;
    }
    .cert-name { font-size: 28px; }
    .cert-path { font-size: 22px; }
    .cert-stats { gap: 20px; flex-wrap: wrap; }
    .cert-footer { flex-direction: column; align-items: stretch; gap: 12px; }
    .cert-seal { margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COGNIRA STUDENT-FOCUSED DESIGN ENHANCEMENT
   Energetic · Gamified · Dark sidebar + bright content
══════════════════════════════════════════════════════════════════════════ */

/* ── Page container inside new layout ─── */
.page-content .page-container {
    padding: 28px 32px;
    max-width: 1200px;
    animation: fadeSlideUp .35s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeSlideUp {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Gradient text utility ─── */
.gradient-text {
    background: linear-gradient(135deg, #ff6b00, #f58220, #ffaa4c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-blue {
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Enhanced cards ─── */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }

.card-glass {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 20px;
    padding: 22px;
}

/* Gradient border card */
.card-gradient-border {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    position: relative;
    isolation: isolate;
}
.card-gradient-border::before {
    content:'';position:absolute;inset:-1px;border-radius:17px;
    background: linear-gradient(135deg,#ff6b00,#f58220,#22d3ee,#3b82f6);
    z-index:-1;opacity:.6;
}

/* ── Stats / metric cards ─── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.1); }
.stat-card::after {
    content:''; position:absolute; bottom:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg,#ff6b00,#f58220);
}
.stat-label { font-size:12px; font-weight:600; color:var(--text-secondary); text-transform:uppercase; letter-spacing:.07em; margin-bottom:8px; }
.stat-value { font-size:30px; font-weight:800; color:var(--navy); line-height:1; }
.stat-value.accent { background:linear-gradient(135deg,#ff6b00,#f58220); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* ── Buttons ─── */
.btn { display:inline-flex;align-items:center;justify-content:center;gap:7px; padding:9px 18px;border-radius:100px; font-size:14px;font-weight:600;cursor:pointer; border:1.5px solid transparent;transition:all .18s; text-decoration:none;font-family:inherit;letter-spacing:.01em; }
.btn:disabled{opacity:.45;cursor:not-allowed;}
.btn-primary { background:linear-gradient(135deg,#ff6b00,#f58220); color:#fff;border:none; box-shadow:0 3px 12px rgba(245,130,32,.35); }
.btn-primary:hover:not(:disabled) { transform:translateY(-1px);box-shadow:0 6px 20px rgba(245,130,32,.5);text-decoration:none; }
.btn-secondary { background:#fff;color:var(--orange);border-color:var(--orange); }
.btn-secondary:hover:not(:disabled) { background:rgba(245,130,32,.06);text-decoration:none; }
.btn-ghost { background:transparent;color:var(--text-secondary);border-color:var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background:var(--bg-tertiary);color:var(--text-primary);text-decoration:none; }
.btn-dark { background:var(--navy);color:#fff;border-color:var(--navy); box-shadow:0 3px 12px rgba(15,26,46,.25); }
.btn-dark:hover:not(:disabled) { background:var(--navy-deep);transform:translateY(-1px);text-decoration:none; }
.btn-outline { background:transparent;color:var(--text-primary);border-color:var(--border-strong); }
.btn-outline:hover:not(:disabled) { border-color:var(--orange);color:var(--orange);text-decoration:none; }
.btn-sm { padding:6px 14px;font-size:12.5px; }
.btn-lg { padding:12px 28px;font-size:15px; }
.btn-xl { padding:15px 36px;font-size:16px; }
.btn-block { width:100%; }
.btn-icon { padding:8px;border-radius:10px; }

/* ── Form elements ─── */
.form-group { margin-bottom:16px; }
.form-label { display:block;font-size:12px;color:var(--text-secondary); margin-bottom:5px;font-weight:600;letter-spacing:.03em; }
.form-input,.form-textarea,.form-select {
    width:100%;padding:11px 14px;font-size:14px;font-family:inherit;
    border:1.5px solid var(--border);border-radius:12px;
    background:#fff;color:var(--text-primary);transition:all .15s;
}
.form-input:focus,.form-textarea:focus,.form-select:focus {
    outline:none;border-color:var(--orange);
    box-shadow:0 0 0 4px rgba(245,130,32,.1);
}
.form-textarea{resize:vertical;min-height:90px;}
.form-error{color:var(--red);font-size:12px;margin-top:5px;font-weight:500;}
.form-alert { padding:12px 16px;border-radius:12px;font-size:13px; background:#FEF2F2;color:#991B1B;border:1.5px solid #FCA5A5;margin-bottom:16px; }

/* ── Page headers ─── */
.page-header { margin-bottom:28px; }
.page-header h1 { font-size:26px;font-weight:800;color:var(--navy); }
.page-header p { font-size:14px;color:var(--text-secondary);margin-top:4px;margin-bottom:0; }

/* ── Card header ─── */
.card-header { display:flex;align-items:center;justify-content:space-between; margin-bottom:18px;gap:12px;flex-wrap:wrap; }
.card-header h3 { margin:0;font-size:16px;font-weight:700;color:var(--navy); }

/* ── Data table ─── */
.table-wrapper { overflow-x:auto;border-radius:12px; }
.data-table { width:100%;border-collapse:collapse;font-size:13.5px; }
.data-table th { padding:10px 14px;font-weight:700;font-size:11px;color:var(--text-secondary); text-transform:uppercase;letter-spacing:.07em;background:var(--bg-secondary);border-bottom:1.5px solid var(--border);text-align:left; }
.data-table td { padding:12px 14px;border-bottom:1px solid var(--border); }
.data-table tr:last-child td{border-bottom:none;}
.data-table tbody tr{transition:background .12s;}
.data-table tbody tr:hover{background:rgba(245,130,32,.03);}

/* ── Loading & empty states ─── */
.loading-state { display:flex;flex-direction:column;align-items:center;justify-content:center; padding:60px 20px;gap:14px;color:var(--text-secondary); }
.spinner { width:36px;height:36px;border:3px solid var(--border); border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite; }
.empty-state { display:flex;flex-direction:column;align-items:center;justify-content:center; padding:60px 20px;text-align:center;color:var(--text-secondary); }
.empty-icon { font-size:48px;margin-bottom:12px;opacity:.6; }

/* ── Alert / toast ─── */
.alert-error{background:#fee2e2;color:#991b1b;border:1.5px solid #fca5a5;border-radius:12px;padding:12px 16px;font-size:13px;font-weight:500;}
.alert-success{background:#dcfce7;color:#166534;border:1.5px solid #86efac;border-radius:12px;padding:12px 16px;font-size:13px;font-weight:500;}

/* ── Badges ─── */
.badge { display:inline-flex;align-items:center;padding:3px 10px; border-radius:100px;font-size:11px;font-weight:700; }
.badge-orange  { background:rgba(245,130,32,.12);color:#c2410c; }
.badge-blue    { background:rgba(59,130,246,.1);color:#1d4ed8; }
.badge-green   { background:rgba(16,185,129,.1);color:#065f46; }
.badge-purple  { background:rgba(168,85,247,.1);color:#7e22ce; }
.badge-grey    { background:var(--bg-secondary);color:var(--text-secondary); }

/* ── User avatar ─── */
.user-avatar { width:38px;height:38px;border-radius:50%;flex-shrink:0; background:linear-gradient(135deg,#f58220,#ff6b00); color:#fff;font-size:15px;font-weight:800; display:inline-flex;align-items:center;justify-content:center; }

/* ── Dashboard dim bars ─── */
.dim-list{display:flex;flex-direction:column;gap:10px;}
.dim-row{display:grid;grid-template-columns:140px 1fr 40px;align-items:center;gap:10px;}
.dim-label{font-size:12px;font-weight:600;color:var(--text-secondary);}
.dim-bar{height:7px;background:var(--bg-secondary);border-radius:100px;overflow:hidden;}
.dim-bar span{display:block;height:100%;background:linear-gradient(90deg,#ff6b00,#f58220);border-radius:100px;transition:width .5s;}
.dim-value{font-size:12px;font-weight:700;color:var(--text-secondary);text-align:right;}

/* ── Dashboard header ─── */
.dash-header{margin-bottom:24px;}
.dash-greeting{font-size:22px;font-weight:800;color:var(--navy);margin-bottom:4px;}
.dash-sub{font-size:14px;color:var(--text-secondary);}

/* ── Dash 2-col ─── */
.dash-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;}
@media(max-width:900px){.dash-row{grid-template-columns:1fr;}}

/* ────────────────────────────────────────────────
   Discovery Admin — Import section
   ──────────────────────────────────────────────── */

.da-import-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF9C3 100%);
    border: 1px solid #FED7AA;
    padding: 20px 22px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
}

.da-import-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.da-import-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #92400E;
}

.da-import-sub {
    font-size: 13px;
    color: #78350F;
    line-height: 1.55;
    margin: 0;
    max-width: 640px;
}

.da-import-row {
    background: #FFFEF9;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px dashed #D97706;
}

.da-import-file {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.da-file-pick {
    cursor: pointer;
    margin: 0;
}

.da-import-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

.da-import-file-picked {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.da-file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.da-file-size {
    color: var(--text-tertiary);
    font-size: 12px;
}

.da-import-result {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.da-import-result.is-success {
    background: #DCFCE7;
    border-color: #86EFAC;
    color: #166534;
}

.da-import-result.is-partial {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
}

.da-import-result-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 8px;
}

.da-result-stat strong {
    font-size: 18px;
    margin-right: 4px;
}

.da-import-ok {
    font-size: 13px;
    font-weight: 500;
}

.da-import-errors {
    margin-top: 8px;
    font-size: 13px;
}

.da-import-errors summary {
    cursor: pointer;
    font-weight: 600;
    padding: 6px 0;
}

.da-import-errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 10px 10px 10px 28px;
}

.da-import-errors li {
    margin-bottom: 4px;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════
   HIRE MODULE (Phase 1)
   Conventions match the existing Build / Validate pillars:
   - page-container for max-width
   - dash-header + build-section-title + build-stats-strip are reused
   - hire-* classes are new and only used here
   ═══════════════════════════════════════════════════════════════ */

.hire-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 12px;
}

.hire-section-link {
    font-size: 14px;
    color: var(--cg-primary, #5b5bd6);
    text-decoration: none;
    font-weight: 500;
}
.hire-section-link:hover { text-decoration: underline; }

.hire-dot { opacity: 0.5; margin: 0 6px; }

/* ── Recommended job cards (grid of larger cards) ─────────────── */
.hire-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

.hire-rec-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hire-rec-card:hover {
    border-color: #5b5bd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91,91,214,0.08);
}

.hire-rec-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.hire-rec-match {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f4f4f9;
    color: #606070;
}
.hire-rec-match.is-fit {
    background: linear-gradient(135deg, #6c63ff 0%, #5b5bd6 100%);
    color: #fff;
}
.hire-rec-match-num { font-size: 20px; font-weight: 700; line-height: 1; }
.hire-rec-match-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 2px;
}

.hire-rec-card-title { flex: 1; min-width: 0; }
.hire-rec-card-title h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px;
    color: #1a1a2e;
}
.hire-rec-card-company {
    font-size: 13px;
    color: #606070;
}

.hire-rec-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

/* ── Chips / tags / status pills ──────────────────────────────── */
.hire-chip {
    display: inline-block;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 500;
    background: #f4f4f9;
    color: #505060;
    border-radius: 999px;
    white-space: nowrap;
}
.hire-chip-comp { background: #e8f5e9; color: #2e7d32; }
.hire-chip-applied { background: #e3f2fd; color: #1565c0; }
.hire-chip-saved { background: #fff3e0; color: #e65100; }
.hire-chip-close { background: #fce4ec; color: #c2185b; }

.hire-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    background: #f0efff;
    color: #4a4ac4;
    border-radius: 6px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.hire-status {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    background: #f4f4f9;
    color: #505060;
}
.hire-status-applied     { background: #e3f2fd; color: #1565c0; }
.hire-status-shortlisted { background: #e0f7fa; color: #006064; }
.hire-status-interview   { background: #fff3e0; color: #e65100; }
.hire-status-offered     { background: #e8f5e9; color: #2e7d32; }
.hire-status-rejected    { background: #ffebee; color: #c62828; }
.hire-status-withdrawn   { background: #f5f5f5; color: #808090; }

/* ── Recent applications list ─────────────────────────────────── */
.hire-app-list { display: flex; flex-direction: column; gap: 8px; }

.hire-app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.hire-app-row:hover { border-color: #5b5bd6; }
.hire-app-row-main { flex: 1; min-width: 0; }
.hire-app-row-title { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.hire-app-row-company { font-size: 12px; color: #707080; margin-top: 1px; }
.hire-app-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.hire-app-row-date { font-size: 12px; color: #808090; }

/* ── Empty state ──────────────────────────────────────────────── */
.hire-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fafafd;
    border-radius: 12px;
    border: 1px dashed #d4d4dc;
}
.hire-empty-icon { font-size: 40px; margin-bottom: 8px; }
.hire-empty h3 { margin: 8px 0 6px; font-size: 18px; color: #1a1a2e; }
.hire-empty p { color: #606070; font-size: 14px; margin: 0; }

/* ── Filters bar (Jobs list) ──────────────────────────────────── */
.hire-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 12px;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    margin-bottom: 16px;
}

.hire-search {
    flex: 1 1 240px;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #d4d4dc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.hire-search:focus { border-color: #5b5bd6; }

.hire-select {
    padding: 8px 12px;
    border: 1px solid #d4d4dc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.hire-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #404050;
    cursor: pointer;
    user-select: none;
}
.hire-checkbox input { cursor: pointer; }

/* ── Job list cards ───────────────────────────────────────────── */
.hire-job-list { display: flex; flex-direction: column; gap: 10px; }

.hire-job-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hire-job-card:hover {
    border-color: #5b5bd6;
    box-shadow: 0 2px 8px rgba(91,91,214,0.06);
}

.hire-job-card-main { flex: 1; min-width: 0; }
.hire-job-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.hire-job-card-title-row h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
}
.hire-job-card-company { font-size: 13px; color: #606070; margin-bottom: 8px; }
.hire-job-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.hire-job-card-tags { display: flex; flex-wrap: wrap; }
.hire-job-card-arrow {
    font-size: 20px;
    color: #b0b0bc;
    flex-shrink: 0;
}
.hire-job-card:hover .hire-job-card-arrow { color: #5b5bd6; }

.hire-load-more { text-align: center; padding: 16px 0; }

/* ── Job detail header ────────────────────────────────────────── */
.hire-detail-header {
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.hire-detail-head-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hire-detail-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a2e;
}
.hire-detail-company { font-size: 14px; color: #505060; }

.hire-detail-match {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f4f4f9;
    color: #606070;
}
.hire-detail-match.is-fit {
    background: linear-gradient(135deg, #6c63ff 0%, #5b5bd6 100%);
    color: #fff;
}
.hire-detail-match-num { font-size: 26px; font-weight: 700; line-height: 1; }
.hire-detail-match-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-top: 3px;
}

.hire-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.hire-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.hire-detail-stat {
    margin-left: auto;
    font-size: 13px;
    color: #808090;
}

/* ── Match breakdown panel ────────────────────────────────────── */
.hire-match-panel {
    background: #fafafd;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.hire-match-panel.is-fit {
    background: linear-gradient(135deg, #f4f3ff 0%, #fafafd 100%);
    border-color: #c5c2f0;
}

.hire-match-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.hire-match-panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.hire-match-badge-fit {
    font-size: 12px;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 999px;
    font-weight: 500;
}
.hire-match-badge-gap {
    font-size: 12px;
    padding: 4px 10px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 999px;
    font-weight: 500;
}

.hire-match-rationale {
    margin: 0 0 12px;
    padding-left: 18px;
    color: #404050;
    font-size: 13px;
}
.hire-match-rationale li { margin-bottom: 3px; line-height: 1.5; }

.hire-match-dims {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.hire-match-dim {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e8f0;
    font-size: 12px;
}
.hire-match-dim-name { color: #505060; }
.hire-match-dim-delta { font-weight: 600; }

.hire-match-dim.is-meets .hire-match-dim-delta { color: #2e7d32; }
.hire-match-dim.is-below .hire-match-dim-delta { color: #c62828; }

/* ── Detail sections ──────────────────────────────────────────── */
.hire-detail-section {
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.hire-detail-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}
.hire-detail-description {
    margin: 0;
    color: #404050;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.hire-detail-bullets {
    margin: 0;
    padding-left: 20px;
    color: #404050;
    font-size: 14px;
    line-height: 1.6;
}
.hire-detail-bullets li { margin-bottom: 4px; }

/* ── Apply modal ──────────────────────────────────────────────── */
.hire-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26, 26, 46, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.hire-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.hire-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e4e4ec;
}
.hire-modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: #1a1a2e; }

.hire-modal-close {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #808090;
    cursor: pointer;
    padding: 0 4px;
}
.hire-modal-close:hover { color: #1a1a2e; }

.hire-modal-body { padding: 18px 22px; }
.hire-modal-sub {
    margin: 0 0 12px;
    color: #606070;
    font-size: 13px;
    line-height: 1.5;
}
.hire-modal-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4d4dc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    outline: none;
    box-sizing: border-box;
}
.hire-modal-textarea:focus { border-color: #5b5bd6; }

.hire-modal-chars {
    text-align: right;
    font-size: 11px;
    color: #808090;
    margin-top: 4px;
}

.hire-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    background: #fafafd;
    border-top: 1px solid #e4e4ec;
}

/* ── Sidebar icon color for Hire ──────────────────────────────── */
.cg-sec-icon--orange {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
}

.form-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #c8e6c9;
}

/* ── Responsive: collapse filters below narrow breakpoint ─────── */
@media (max-width: 640px) {
    .hire-filters { flex-direction: column; align-items: stretch; }
    .hire-filters > * { width: 100%; }
    .hire-detail-head-row { flex-direction: column-reverse; align-items: stretch; }
    .hire-detail-match { align-self: flex-start; }
}

/* ── My Applications: card with inline Withdraw button ────────── */
.hire-app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    transition: border-color 0.15s;
}
.hire-app-card:hover { border-color: #5b5bd6; }

.hire-app-card-main {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.hire-app-card-title { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.hire-app-card-company { font-size: 13px; color: #707080; margin-top: 2px; }
.hire-app-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #808090;
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   HIRE — Company Portal (Phase 2)
   ═══════════════════════════════════════════════════════════════ */

/* ── Form card / inputs ────────────────────────────────────────── */
.hire-form-card {
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    padding: 22px 24px;
}

.hire-form-row { margin-bottom: 16px; }
.hire-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.hire-required { color: #c62828; }
.hire-optional { color: #808090; font-weight: 400; }

.hire-form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d4d4dc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}
.hire-form-input:focus { border-color: #5b5bd6; }
textarea.hire-form-input { resize: vertical; }

.hire-form-hint {
    font-size: 12px;
    color: #808090;
    margin-top: 4px;
}

.hire-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .hire-form-grid-2 { grid-template-columns: 1fr; }
}

.hire-form-section-divider {
    margin: 24px 0 10px;
    padding-top: 18px;
    border-top: 1px solid #e4e4ec;
    font-size: 14px;
    font-weight: 600;
    color: #404050;
}

.hire-form-range { width: 100%; }

.hire-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── Spark dimension editor grid on PostJob ────────────────────── */
.hire-dim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.hire-dim-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: #fafafd;
    border: 1px solid #eaeaf2;
    border-radius: 8px;
}
.hire-dim-label {
    font-size: 12px;
    color: #505060;
    flex: 1;
}
.hire-dim-input {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid #d4d4dc;
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
}

/* ── Company head row on Dashboard ─────────────────────────────── */
.hire-company-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hire-company-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.hire-company-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c63ff 0%, #5b5bd6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.hire-company-head-actions {
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Applicant row / table ─────────────────────────────────────── */
.hire-applicant-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hire-applicant-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    transition: border-color 0.15s;
}
.hire-applicant-row:hover { border-color: #5b5bd6; }

.hire-applicant-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.hire-applicant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0efff;
    color: #5b5bd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.hire-applicant-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hire-applicant-avatar-lg { width: 72px; height: 72px; font-size: 26px; }

.hire-applicant-body { flex: 1; min-width: 0; }
.hire-applicant-name { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.hire-applicant-meta {
    font-size: 12px;
    color: #707080;
    margin-top: 2px;
}

/* ── Score pills (match + spark) ───────────────────────────────── */
.hire-applicant-scores {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.hire-score-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0 8px;
    border-radius: 10px;
    background: #f4f4f9;
    color: #606070;
}
.hire-score-pill.hire-score-match {
    background: linear-gradient(135deg, #6c63ff 0%, #5b5bd6 100%);
    color: #fff;
}
.hire-score-num { font-size: 18px; font-weight: 700; line-height: 1; }
.hire-score-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-top: 2px;
}

/* ── Applicant actions (status select) ─────────────────────────── */
.hire-applicant-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.hire-status-select {
    padding: 6px 10px;
    border: 1px solid #d4d4dc;
    border-radius: 7px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}
.hire-status-select:hover { border-color: #5b5bd6; }

@media (max-width: 720px) {
    .hire-applicant-row { flex-wrap: wrap; }
    .hire-applicant-actions { width: 100%; flex-direction: row; justify-content: flex-end; }
}

/* ── Tabs (applicants status filter) ───────────────────────────── */
.hire-tab {
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #505060;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.12s;
}
.hire-tab:hover { border-color: #5b5bd6; color: #1a1a2e; }
.hire-tab.is-active {
    background: linear-gradient(135deg, #6c63ff 0%, #5b5bd6 100%);
    color: #fff;
    border-color: transparent;
}
.hire-tab-count {
    font-size: 11px;
    background: rgba(0,0,0,0.08);
    padding: 1px 7px;
    border-radius: 999px;
}
.hire-tab.is-active .hire-tab-count { background: rgba(255,255,255,0.25); }

/* ── Link-chip (resume / LinkedIn / etc.) ──────────────────────── */
.hire-chip-link {
    background: #f0efff !important;
    color: #4a4ac4 !important;
    text-decoration: none;
}
.hire-chip-link:hover { background: #e4e2ff !important; }

/* ── Spark Score grid on applicant detail ──────────────────────── */
.hire-spark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.hire-spark-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fafafd;
    border: 1px solid #eaeaf2;
    border-radius: 8px;
    font-size: 13px;
}
.hire-spark-cell-label {
    flex: 1;
    color: #505060;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hire-spark-cell-val {
    font-weight: 600;
    color: #1a1a2e;
    min-width: 28px;
    text-align: right;
}
.hire-spark-cell-bar {
    position: relative;
    width: 60px;
    height: 6px;
    background: #e4e4ec;
    border-radius: 3px;
    overflow: hidden;
}
.hire-spark-cell-bar span {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: linear-gradient(90deg, #6c63ff, #5b5bd6);
}

/* ── Timeline on applicant detail ──────────────────────────────── */
.hire-timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 8px;
    border-left: 2px solid #e4e4ec;
}

.hire-timeline-item { position: relative; padding-left: 18px; }

.hire-timeline-dot {
    position: absolute;
    left: -7px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5b5bd6;
    box-shadow: 0 0 0 3px #fff;
}

.hire-timeline-body { font-size: 13px; color: #404050; }
.hire-timeline-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
}
.hire-timeline-actor { color: #606070; font-weight: 500; }
.hire-timeline-date { color: #808090; font-size: 12px; margin-left: auto; }
.hire-timeline-note {
    background: #fafafd;
    border-left: 2px solid #c5c2f0;
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #404050;
}

/* ── Sidebar icon for Company ──────────────────────────────────── */
.cg-sec-icon--blue {
    background: linear-gradient(135deg, #4ea5f0 0%, #2e7ed8 100%);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   HIRE — Interview Coach + Share Cards (Phase 3)
   ═══════════════════════════════════════════════════════════════ */

/* ── Coach summary (completed review) ──────────────────────────── */
.hire-coach-summary {
    display: flex;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #f4f3ff 0%, #fafafd 100%);
    border: 1px solid #c5c2f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 18px;
}

.hire-coach-overall {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6c63ff 0%, #5b5bd6 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hire-coach-overall-num { font-size: 40px; font-weight: 800; line-height: 1; }
.hire-coach-overall-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 4px;
}

.hire-coach-dims {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.hire-coach-dim {
    background: #fff;
    border: 1px solid #eaeaf2;
    border-radius: 10px;
    padding: 10px 14px;
}
.hire-coach-dim-label {
    font-size: 12px;
    color: #606070;
    margin-bottom: 3px;
}
.hire-coach-dim-num {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}
.hire-coach-dim-bar {
    margin-top: 6px;
    height: 6px;
    background: #e4e4ec;
    border-radius: 3px;
    overflow: hidden;
}
.hire-coach-dim-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6c63ff, #5b5bd6);
}

/* ── Per-question review ──────────────────────────────────────── */
.hire-coach-q-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.hire-coach-q-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    background: #f0efff;
    color: #5b5bd6;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
}

.hire-coach-answer {
    background: #fafafd;
    border-left: 3px solid #c5c2f0;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #303040;
    white-space: pre-wrap;
    margin-bottom: 12px;
}
.hire-coach-answer-empty { color: #a0a0b0; font-style: italic; }

.hire-coach-scores-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.hire-coach-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 12px;
    border: 1px solid #e4e4ec;
    background: #fafafd;
}
.hire-coach-score-label { color: #606070; }
.hire-coach-score-num { font-weight: 700; color: #1a1a2e; }

.hire-coach-score-pill.is-high { background: #e8f5e9; border-color: #c8e6c9; }
.hire-coach-score-pill.is-high .hire-coach-score-num { color: #2e7d32; }
.hire-coach-score-pill.is-mid { background: #fff8e1; border-color: #ffe082; }
.hire-coach-score-pill.is-mid .hire-coach-score-num { color: #f57f17; }
.hire-coach-score-pill.is-low { background: #ffebee; border-color: #ffcdd2; }
.hire-coach-score-pill.is-low .hire-coach-score-num { color: #c62828; }

.hire-coach-feedback {
    background: #f4f3ff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #404050;
    line-height: 1.55;
}

.hire-coach-hint {
    background: #fff8e1;
    border-left: 3px solid #ffc107;
    padding: 9px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #6d4c00;
    margin-bottom: 12px;
}

.hire-coach-textarea {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.hire-coach-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.hire-coach-timer {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: #5b5bd6;
    font-weight: 600;
    background: #f4f3ff;
    padding: 5px 10px;
    border-radius: 7px;
}
.hire-coach-wordcount {
    font-size: 12px;
    color: #808090;
}
.hire-coach-controls .btn { margin-left: auto; }

/* ── Share page (public unfurl) ───────────────────────────────── */
.share-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #302b63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.share-page-inner {
    max-width: 960px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    overflow: hidden;
}

.share-card-wrap {
    width: 100%;
    background: #1a1a2e;
    line-height: 0;
}
.share-card-wrap svg { width: 100%; height: auto; display: block; }

.share-meta {
    padding: 28px 32px;
    text-align: center;
}
.share-owner {
    font-size: 15px;
    color: #606070;
    margin-bottom: 8px;
}
.share-desc {
    font-size: 16px;
    color: #404050;
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.5;
}
.share-cta-row { display: flex; justify-content: center; }

.share-not-found {
    padding: 80px 40px;
    text-align: center;
}
.share-not-found-icon { font-size: 56px; margin-bottom: 10px; }
.share-not-found h2 { font-size: 24px; margin: 10px 0 6px; color: #1a1a2e; }
.share-not-found p { color: #606070; margin-bottom: 20px; }

/* ── My Share Cards gallery ───────────────────────────────────── */
.share-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.share-card-tile {
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.share-card-tile-preview {
    line-height: 0;
    aspect-ratio: 1200 / 630;
    background: #1a1a2e;
}
.share-card-tile-preview svg { width: 100%; height: 100%; display: block; }

.share-card-tile-body { padding: 14px 16px; }
.share-card-tile-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.share-card-tile-meta {
    font-size: 12px;
    color: #808090;
    margin-bottom: 10px;
}
.share-card-tile-url {
    display: flex;
    gap: 6px;
}
.share-card-tile-url input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d4d4dc;
    border-radius: 6px;
    font-size: 12px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    background: #fafafd;
    color: #404050;
    min-width: 0;
}

/* ── Blazor Error UI ─────────────────────────────────────────
   Hidden by default; Blazor runtime sets display:block on
   unhandled exceptions. Without this rule the banner is
   permanently visible on every page.
   ──────────────────────────────────────────────────────────── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Hackathon: force white text on dark backgrounds ─────── */
.hk-final-cta-inner h2,
.hk-final-cta-inner h3 { color: #ffffff !important; }
.hk-final-cta-inner p   { color: rgba(255,255,255,.7) !important; }
.td-hero-content h1,
.td-hero-content h2,
.td-hero-content h3      { color: #ffffff !important; }
.td-hero-content p        { color: rgba(255,255,255,.6) !important; }
