/* ============================================
   HARDHAT SCOUT — Career Intelligence Tool
   v20 — renamed to scout, bubble explorer,
   HardhatIcons SVG system, profession-icon integration
   ============================================ */

:root {
    --bg: #F2F3F5;
    --surface: #FFFFFF;
    --surface-2: #F6F7F9;
    --surface-3: #EDF2F8;
    --text: #0F172A;
    --text-secondary: #334155;
    --dim: #8F9FB4;
    --accent: #165DFF;
    --accent-soft: rgba(22, 93, 255, 0.08);
    --accent-hover: #1147C7;
    --green: #1E9E63;
    --green-soft: rgba(30, 158, 99, 0.08);
    --green-mid: rgba(30, 158, 99, 0.15);
    --red: #D44B4B;
    --red-soft: rgba(212, 75, 75, 0.08);
    --yellow: #F1E24A;
    --border: #DDE1E8;
    --border-bright: #C7CED8;
    --border-accent: rgba(22, 93, 255, 0.25);
    --dotted: #C7CED8;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --display: 'Space Grotesk', 'Inter', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== PROFESSION ICONS (from main site icon system) ===== */
.profession-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid rgba(22, 93, 255, 0.25);
    background: radial-gradient(128% 150% at 100% 0%, rgba(250, 204, 21, 0.35) 0%, rgba(250, 204, 21, 0.12) 34%, rgba(250, 204, 21, 0) 72%), linear-gradient(var(--surface), var(--surface));
    flex-shrink: 0;
}
.profession-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--surface);
    background: currentColor;
    pointer-events: none;
}
.profession-icon-glyph {
    width: 66%;
    height: 66%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.profession-icon-xs { width: 1.18rem; height: 1.18rem; border-radius: 0.36rem; font-size: 0.46rem; }
.profession-icon-sm { width: 1.34rem; height: 1.34rem; border-radius: 0.42rem; font-size: 0.52rem; }
.profession-icon-md { width: 1.48rem; height: 1.48rem; border-radius: 0.46rem; font-size: 0.56rem; }
.profession-icon-lg { width: 2.5rem; height: 2.5rem; border-radius: 0.62rem; font-size: 0.88rem; }
.profession-icon-xl { width: 3.5rem; height: 3.5rem; border-radius: 0.8rem; font-size: 1.1rem; }

/* Category colors */
.profession-icon-cat-construction,
.profession-icon-cat-automotive,
.profession-icon-cat-manufacturing,
.profession-icon-cat-logistics,
.profession-icon-cat-agriculture,
.profession-icon-cat-culinary {
    --pi-bg: rgba(22, 93, 255, 0.12);
    border-color: rgba(22, 93, 255, 0.34);
    color: #34d399;
}
.profession-icon-cat-healthcare,
.profession-icon-cat-tech,
.profession-icon-cat-education,
.profession-icon-cat-legal,
.profession-icon-cat-government,
.profession-icon-cat-science {
    --pi-bg: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.34);
    color: #60a5fa;
}
.profession-icon-cat-finance,
.profession-icon-cat-office,
.profession-icon-cat-retail,
.profession-icon-cat-real-estate {
    --pi-bg: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.34);
    color: #fbbf24;
}
.profession-icon-cat-creative,
.profession-icon-cat-media,
.profession-icon-cat-beauty,
.profession-icon-cat-nonprofit {
    --pi-bg: rgba(244, 114, 182, 0.12);
    border-color: rgba(244, 114, 182, 0.34);
    color: #f472b6;
}
.profession-icon-cat-other {
    --pi-bg: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.34);
    color: #cbd5e1;
}

/* ===== GRADIENT TEXT (like Career Dreamer's colorful branding) ===== */
.gradient-text {
    background: linear-gradient(135deg, #165DFF 0%, #1E9E63 50%, #0CBAA6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CHAT LAYOUT — wider than before ===== */
.chat-wrap {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

/* ===== HEADER ===== */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 10;
    background: rgba(242, 243, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.chat-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #0F172A;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-logo:hover { transform: translateY(-1px); }
.chat-logo svg { flex-shrink: 0; color: #17181c; }
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}
.chat-new-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--dim);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.chat-new-btn:hover {
    color: var(--text);
    border-color: var(--border-bright);
    background: var(--surface-2);
}
.chat-explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dim);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.chat-explore-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.chat-explore-btn svg {
    display: block;
}

/* ===== PHASE STEPPER (Career Dreamer-inspired journey nav) ===== */
.phase-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 24px;
    background: transparent;
    flex-shrink: 0;
}
.phase-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--dim);
    cursor: default;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.phase-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-3);
    font-size: 12px;
    font-weight: 700;
    color: var(--dim);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.phase-step.phase-active {
    color: var(--accent);
    font-weight: 600;
}
.phase-step.phase-active .phase-num {
    background: var(--accent);
    color: #fff;
}
.phase-step.phase-done {
    color: var(--green);
}
.phase-step.phase-done .phase-num {
    background: var(--green);
    color: #fff;
}
.phase-connector {
    width: 40px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
    border-radius: 1px;
    transition: background 0.3s ease;
}
.phase-connector.done {
    background: var(--green);
}

/* ===== MESSAGES AREA ===== */
.chat-main {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
    scrollbar-width: none;
}
.chat-main::-webkit-scrollbar { display: none; }

/* ===== WELCOME STATE ===== */
.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 200px);
    padding: 40px 0;
    gap: 28px;
}
.chat-welcome-inner {
    text-align: center;
    max-width: 640px;
}
.chat-welcome-title {
    font-family: var(--display);
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: welcomeFade 0.6s 0.1s ease forwards;
}
.chat-welcome-sub {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 36px;
    opacity: 0;
    animation: welcomeFade 0.6s 0.2s ease forwards;
}
@keyframes welcomeFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome features — value proposition grid */
.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 460px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: welcomeFade 0.6s 0.3s ease forwards;
}
.wf-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
}
.wf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}
.wf-icon svg {
    width: 22px;
    height: 22px;
}
.wf-icon-data {
    background: rgba(22, 93, 255, 0.08);
    color: var(--accent);
}
.wf-icon-programs {
    background: rgba(30, 158, 99, 0.08);
    color: var(--green);
}
.wf-icon-compare {
    background: rgba(244, 114, 182, 0.08);
    color: #f472b6;
}
.wf-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.wf-desc {
    font-size: 13px;
    color: var(--dim);
    margin-top: 2px;
    line-height: 1.4;
}

/* Starter prompts */
.chat-starters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    opacity: 0;
    animation: welcomeFade 0.6s 0.35s ease forwards;
}
.starter-row {
    display: flex;
    gap: 10px;
}
.chat-starter {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all 0.25s;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}
.chat-starter.starter-featured {
    font-size: 15px;
    padding: 16px 20px;
    font-weight: 500;
}
.chat-starter:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Trust bar */
.chat-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dim);
    letter-spacing: 0.01em;
    opacity: 0;
    animation: welcomeFade 0.6s 0.5s ease forwards;
}
.chat-trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dim);
    opacity: 0.4;
}

/* ===== CHAT MESSAGES ===== */
.chat-msg {
    display: flex;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: msgIn 0.35s ease forwards;
}
@keyframes msgIn {
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg-user { justify-content: flex-end; }
.chat-msg-assistant { justify-content: flex-start; }

.chat-bubble {
    max-width: 85%;
    border-radius: var(--radius);
    font-size: 16px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.chat-bubble-user {
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-bottom-right-radius: 6px;
    font-size: 16px;
}
.chat-bubble-assistant {
    background: transparent;
    color: var(--text);
    padding: 12px 6px;
}
.chat-bubble-assistant p {
    margin-bottom: 14px;
}
.chat-bubble-assistant p:last-child {
    margin-bottom: 0;
}
.chat-bubble-assistant strong {
    font-weight: 700;
    color: var(--text);
}
.chat-bubble-assistant em {
    color: var(--text-secondary);
}

/* Error state */
.chat-msg-error .chat-bubble-assistant {
    color: var(--text-secondary);
}
.chat-msg-error .chat-bubble-assistant a {
    color: var(--accent);
    text-decoration: none;
}
.chat-msg-error .chat-bubble-assistant a:hover {
    text-decoration: underline;
}

/* ===== CAREER CARDS (rich inline data cards) ===== */
.career-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.career-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.career-card-lite {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dim);
    background: var(--surface-3);
    padding: 3px 7px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}

/* Card header: identity + big salary */
.cc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cc-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cc-icon { flex-shrink: 0; }
.cc-icon .profession-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.62rem; }
.cc-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.cc-category {
    font-size: 13px;
    color: var(--dim);
    margin-top: 2px;
}
.cc-salary-big {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

/* Salary range bar */
.cc-salary-bar { margin-bottom: 14px; }
.cc-bar-track {
    height: 8px;
    background: var(--surface-3);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}
.cc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 4px;
}
.cc-bar-marker {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 14px;
    background: var(--text);
    border-radius: 2px;
    transform: translateX(-1px);
}
.cc-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--dim);
    margin-top: 5px;
}

/* Stat pills */
.cc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.cc-pill {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--text-secondary);
    white-space: nowrap;
}
.cc-pill.pill-green {
    background: var(--green-soft);
    color: var(--green);
}
.cc-pill.pill-blue {
    background: var(--accent-soft);
    color: var(--accent);
}
.cc-pill.pill-red {
    background: var(--red-soft);
    color: var(--red);
}

/* Salary progression preview */
.cc-progression {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px dashed var(--dotted);
}
.cc-prog-step { color: var(--text-secondary); }
.cc-prog-arrow { color: var(--dim); font-size: 12px; }
.cc-prog-top { color: var(--green); font-weight: 600; }

/* Action row */
.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cc-action {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    line-height: 1.3;
    text-transform: lowercase;
}
.cc-action-primary {
    background: var(--accent);
    color: #fff;
}
.cc-action-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}
.cc-action-programs {
    background: var(--green-soft);
    color: var(--green);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(30, 158, 99, 0.2);
    line-height: 1.3;
    text-transform: lowercase;
}
.cc-action-programs:hover {
    background: var(--green-mid);
    border-color: rgba(30, 158, 99, 0.35);
    transform: translateY(-1px);
}
.cc-action-detail {
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.cc-action-detail:hover {
    color: var(--accent);
    border-color: var(--border-accent);
}

/* ===== TYPING INDICATOR ===== */
.chat-typing {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}
.typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 16px 10px;
}
.typing-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dim);
    animation: typingDot 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.25; transform: scale(0.85); }
    30% { opacity: 1; transform: scale(1); }
}

/* ===== INPUT BAR ===== */
.chat-input-wrap {
    flex-shrink: 0;
    padding: 14px 24px 20px;
    background: var(--bg);
}
.chat-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px 8px 8px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}
.chat-input-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.08);
}
#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    max-height: 140px;
    padding: 6px 0;
}
#chat-input::placeholder {
    color: var(--dim);
}
.chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.chat-send:hover {
    background: var(--accent-hover);
    transform: scale(1.04);
}
.chat-send:active {
    transform: scale(0.96);
}
.chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ===== DETAIL OVERLAY ===== */
.detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.detail-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(580px, 94vw);
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.22,.6,.36,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.10);
}
.detail-overlay.open .detail-panel {
    transform: translateX(0);
}
.detail-panel-top {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.detail-close-btn {
    background: none;
    border: none;
    color: var(--dim);
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}
.detail-close-btn:hover {
    color: var(--accent);
}
.detail-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 24px 48px;
    background: var(--surface-2);
}
.detail-panel-body::-webkit-scrollbar { width: 4px; }
.detail-panel-body::-webkit-scrollbar-track { background: transparent; }
.detail-panel-body::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.08); border-radius: 2px; }

/* ===== DETAIL CONTENT ===== */
.det-hero {
    text-align: center;
    margin-bottom: 32px;
}
.det-icon { margin-bottom: 10px; display: flex; justify-content: center; }
.det-icon .profession-icon { width: 3.5rem; height: 3.5rem; border-radius: 0.8rem; }
.det-title {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.det-tagline {
    color: var(--dim);
    font-size: 15px;
}
.det-lite-notice {
    font-size: 12px;
    color: var(--dim);
    background: var(--surface-3);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.det-section {
    margin-bottom: 28px;
}
.det-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dim);
    margin-bottom: 12px;
}

/* Stats grid */
.det-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.det-stat {
    background: var(--surface);
    padding: 14px 16px;
}
.det-stat-label {
    font-size: 11px;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.det-stat-val {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.det-stat-val.g { color: var(--green); }
.det-stat-val.b { color: var(--accent); }
.det-stat-val.y { color: #C88A1B; }

/* Salary bars */
.sal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.sal-label {
    width: 120px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.sal-label small {
    display: block;
    font-size: 11px;
    color: var(--dim);
    font-weight: 400;
}
.sal-track {
    flex: 1;
    height: 8px;
    background: var(--surface-3);
    border-radius: 4px;
    overflow: hidden;
}
.sal-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 4px;
    transition: width 0.6s ease;
}
.sal-amount {
    width: 55px;
    flex-shrink: 0;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: var(--green);
}

/* Training steps */
.train-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.train-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.train-info { flex: 1; }
.train-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}
.train-meta {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 500;
}
.train-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pros/cons lists */
.det-list {
    list-style: none;
    padding: 0;
}
.det-list li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.5;
}
.det-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}
.det-list.cons li::before {
    content: '→';
    color: var(--dim);
}

/* Overview / environment text */
.det-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    padding: 16px 18px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Metros grid */
.metro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.metro-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--surface-3);
}
.metro-city { color: var(--text-secondary); }
.metro-sal { color: var(--green); font-weight: 600; }

/* Similar career links */
.det-similar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.det-similar-card:hover {
    border-color: var(--border-accent);
    background: var(--accent-soft);
    transform: translateX(3px);
}
.det-similar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.det-similar-icon { flex-shrink: 0; }
.det-similar-icon .profession-icon { width: 1.6rem; height: 1.6rem; border-radius: 0.44rem; }
.det-similar-name { font-weight: 600; font-size: 15px; }
.det-similar-stat { font-size: 13px; color: var(--dim); }
.det-similar-arrow { color: var(--dim); font-size: 16px; }

/* CTA Section — "find programs" primary action */
.det-cta-section {
    text-align: center;
    padding-top: 12px;
    border-top: 2px dotted var(--dotted);
    margin-top: 12px;
}
.det-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 24px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.01em;
    text-transform: lowercase;
}
.det-cta:hover {
    background: #178B56;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 158, 99, 0.25);
}
.det-cta:active {
    transform: translateY(0);
}
.det-cta-secondary {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
}
.det-cta-secondary:hover {
    color: var(--accent);
}

/* ===== THINKING INDICATOR ===== */
.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
}
.thinking-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: thinkPulse 1.4s infinite ease-in-out;
}
.thinking-dot:nth-child(2) { animation-delay: 0.15s; }
.thinking-dot:nth-child(3) { animation-delay: 0.3s; }
.thinking-label {
    font-size: 13px;
    color: var(--dim);
    margin-left: 5px;
    font-style: italic;
}
@keyframes thinkPulse {
    0%, 60%, 100% { opacity: 0.25; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.1); }
}

/* ===== STREAMING CURSOR ===== */
.chat-bubble-assistant.streaming p:last-child::after {
    content: '\25A0';
    display: inline-block;
    margin-left: 3px;
    color: var(--accent);
    animation: cursorBlink 0.7s ease infinite;
    font-size: 14px;
    vertical-align: baseline;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
.stream-error-notice {
    font-size: 13px;
    color: var(--dim);
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}
.compare-row {
    display: grid;
    grid-template-columns: 110px repeat(var(--cols, 2), 1fr);
    border-bottom: 1px solid var(--surface-3);
}
.compare-table[data-cols="2"] .compare-row { grid-template-columns: 110px 1fr 1fr; }
.compare-table[data-cols="3"] .compare-row { grid-template-columns: 110px 1fr 1fr 1fr; }
.compare-row:last-child { border-bottom: none; }
.compare-header-row {
    background: var(--surface-2);
    border-bottom: 2px dotted var(--dotted);
}
.compare-label {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
}
.compare-col-header {
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.compare-col-header:hover {
    background: var(--accent-soft);
}
.compare-icon { flex-shrink: 0; }
.compare-icon .profession-icon { width: 1.5rem; height: 1.5rem; border-radius: 0.42rem; }
.compare-name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.compare-cell {
    padding: 12px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}
.compare-best {
    color: var(--green);
    font-weight: 700;
}
.compare-action-row {
    background: var(--surface-2);
    border-top: 1px dotted var(--dotted);
}
.compare-detail-btn {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(22, 93, 255, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
}
.compare-detail-btn:hover {
    background: rgba(22, 93, 255, 0.15);
    border-color: rgba(22, 93, 255, 0.3);
}

/* ===== MATCH INDICATOR CARD ===== */
.match-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.match-card:hover {
    border-color: var(--border-accent);
    border-left-color: var(--green);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.match-ring-wrap {
    flex-shrink: 0;
}
.match-ring {
    display: block;
}
.match-ring-progress {
    transition: stroke-dashoffset 1s ease;
}
.match-info {
    flex: 1;
    min-width: 0;
}
.match-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.match-icon { flex-shrink: 0; }
.match-icon .profession-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.match-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.match-salary {
    font-size: 14px;
    color: var(--dim);
    margin-top: 2px;
}
.match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.match-reason {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--green-soft);
    color: var(--green);
    white-space: nowrap;
}
.match-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.match-detail-btn {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(22, 93, 255, 0.15);
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
}
.match-detail-btn:hover {
    background: rgba(22, 93, 255, 0.15);
    border-color: rgba(22, 93, 255, 0.3);
}
.match-find-programs {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(30, 158, 99, 0.2);
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
}
.match-find-programs:hover {
    background: var(--green-mid);
    border-color: rgba(30, 158, 99, 0.35);
}

/* ===== PROGRAMS CTA (key conversion component) ===== */
.programs-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 2px solid var(--green);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(30, 158, 99, 0.08);
    transition: all 0.25s ease;
}
.programs-cta:hover {
    box-shadow: 0 8px 28px rgba(30, 158, 99, 0.14);
    transform: translateY(-2px);
}
.programs-cta-icon {
    flex-shrink: 0;
}
.programs-cta-icon .profession-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.62rem; }
.programs-cta-body {
    flex: 1;
    min-width: 0;
}
.programs-cta-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin-bottom: 3px;
    color: var(--text);
    text-transform: lowercase;
}
.programs-cta-desc {
    font-size: 14px;
    color: var(--dim);
    line-height: 1.5;
}
.programs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s;
    text-transform: lowercase;
    white-space: nowrap;
}
.programs-cta-btn:hover {
    background: #178B56;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 158, 99, 0.25);
}
.programs-cta-btn:active {
    transform: translateY(0);
}

/* ===== SESSION RESTORED NOTICE ===== */
.session-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 14px;
    color: var(--dim);
    border-top: 1px dotted var(--dotted);
    border-bottom: 1px dotted var(--dotted);
}
.session-new-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.session-new-btn:hover {
    color: var(--accent);
    border-color: var(--border-accent);
}

/* ===== GEO CHART (salary by city) ===== */
.geo-chart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}
.geo-chart-empty {
    padding: 24px 20px;
    text-align: center;
}
.geo-empty-msg {
    font-size: 14px;
    color: var(--dim);
    font-style: italic;
}
.geo-header {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--text);
}
.geo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.geo-city {
    width: 130px;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.geo-bar-wrap {
    flex: 1;
    height: 10px;
    background: var(--surface-3);
    border-radius: 5px;
    overflow: hidden;
}
.geo-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 5px;
    transition: width 0.6s ease;
}
.geo-amount {
    width: 52px;
    flex-shrink: 0;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: var(--green);
}
.geo-footer {
    font-size: 12px;
    color: var(--dim);
    text-align: right;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted var(--dotted);
}

/* ===== TIMELINE ROADMAP ===== */
.timeline-roadmap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}
.timeline-empty {
    padding: 24px 20px;
    text-align: center;
}
.tl-header {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    color: var(--text);
}
.tl-step {
    display: flex;
    gap: 14px;
    margin-bottom: 0;
}
.tl-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
}
.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px var(--accent);
    flex-shrink: 0;
    z-index: 1;
}
.tl-dot-final {
    background: var(--green);
    box-shadow: 0 0 0 2px var(--green);
}
.tl-line {
    width: 2px;
    flex: 1;
    background: rgba(22, 93, 255, 0.2);
    min-height: 18px;
}
.tl-content {
    flex: 1;
    padding-bottom: 18px;
}
.tl-step-last .tl-content {
    padding-bottom: 4px;
}
.tl-step-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 3px;
}
.tl-step-meta {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}
.tl-step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.tl-destination {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dotted var(--dotted);
    font-size: 14px;
}
.tl-dest-label {
    color: var(--dim);
}
.tl-dest-value {
    color: var(--green);
    font-weight: 600;
}

/* ===== INTAKE FLOW — Big, bold, Career Dreamer-inspired ===== */
.intake {
    position: relative;
}
.intake-step {
    display: none;
    text-align: center;
}
.intake-step.intake-active {
    display: block;
    animation: intakeFade 0.5s ease forwards;
}
@keyframes intakeFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.intake-title {
    font-family: var(--display);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.intake-desc {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.intake-progress-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}
.intake-progress {
    width: 140px;
    height: 4px;
    background: var(--surface-3);
    border-radius: 2px;
    overflow: hidden;
}
.intake-bar, .intake-bar-2 {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.intake-step-label {
    font-size: 13px;
    color: var(--dim);
    white-space: nowrap;
    font-weight: 500;
}
.intake-q {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text);
}
.intake-hint {
    font-size: 15px;
    color: var(--dim);
    margin-bottom: 20px;
}

/* Intake cards (2x2 grid) — BIGGER */
.intake-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 24px;
}
.intake-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    box-shadow: var(--shadow-sm);
}
.intake-card:hover {
    border-color: var(--border-accent);
    background: var(--accent-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.intake-card:active {
    transform: translateY(0);
}
.intake-card.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}
.ic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}
.ic-icon svg {
    width: 24px;
    height: 24px;
}
.ic-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.ic-desc {
    font-size: 13px;
    color: var(--dim);
}

/* Intake chips (multi-select) — GREEN FILLED when selected (Career Dreamer style) */
.intake-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 24px;
}
.intake-chip {
    padding: 10px 18px;
    border-radius: 24px;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}
.intake-chip:hover {
    border-color: var(--green);
    color: var(--text);
    transform: translateY(-1px);
}
.intake-chip.selected {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 158, 99, 0.2);
}
.intake-chip.maxed:not(.selected) {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Intake location */
.intake-location-wrap {
    max-width: 320px;
    margin: 0 auto 20px;
}
.intake-location {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.intake-location::placeholder {
    color: var(--dim);
}
.intake-location:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.08);
}

/* Intake buttons — BIGGER */
.intake-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    background: var(--accent);
    border: none;
    color: #fff;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
}
.intake-go:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.25);
}
.intake-go:active {
    transform: translateY(0);
}
.intake-skip {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: none;
    color: var(--dim);
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 6px 12px;
}
.intake-skip:hover {
    color: var(--accent);
}

/* ===== SUGGESTION CHIPS (follow-up buttons) ===== */
.suggestions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dotted var(--dotted);
    animation: suggestFade 0.4s ease forwards;
}
@keyframes suggestFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.suggestion-chip {
    padding: 9px 18px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
}
.suggestion-chip:hover {
    border-color: var(--border-accent);
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-1px);
}
.suggestions-wrap.used {
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* ===== EXPLORE ALL BUTTON (welcome screen) ===== */
.explore-all-wrap {
    margin-top: 28px;
    text-align: center;
}
.explore-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}
.explore-all-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.explore-all-btn:active {
    transform: translateY(0);
}
.explore-all-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.explore-all-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* ===== BUBBLE EXPLORER ===== */
.bubble-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bubble-overlay.open {
    opacity: 1;
    visibility: visible;
}
.bubble-explorer {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
.bubble-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.bubble-close-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    transition: all 0.15s;
}
.bubble-close-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Bubble filters */
.bubble-filters {
    display: flex;
    gap: 6px;
    padding: 12px 24px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bubble-filters::-webkit-scrollbar { display: none; }
.bubble-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font);
    transition: all 0.15s;
}
.bubble-filter:hover {
    border-color: var(--cat-color, var(--accent));
    color: var(--cat-color, var(--accent));
    background: var(--surface-2);
}
.bubble-filter-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.bubble-filter-active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}
.bf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bubble-filter-active .bf-dot {
    background: #fff !important;
}

/* Bubble viewport */
.bubble-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin: 0 24px 24px;
    border-radius: var(--radius);
    background: transparent;
    border: none;
    min-height: 0;
}
#bubble-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* SVG bubble nodes */
.bubble-pack {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bubble-node {
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.bubble-node.bubble-hidden {
    opacity: 0.03;
    pointer-events: none;
}
.bubble-circle {
    transition: filter 0.15s, stroke-opacity 0.15s, stroke-width 0.15s;
}
.bubble-node.bubble-hover .bubble-circle,
.bubble-node:hover .bubble-circle {
    filter: brightness(1.2) saturate(1.3);
    stroke-opacity: 0.5;
    stroke-width: 1.5;
}
.bubble-label {
    font-family: var(--display);
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    letter-spacing: -0.01em;
}
/* Labels visible at overview zoom level only for large circles */
.bubble-label.bubble-label-vis {
    opacity: 0.85;
}
/* When zoomed into a category, show ALL labels */
.bubble-zoomed .bubble-label {
    opacity: 0.9;
}
.bubble-node.bubble-hover .bubble-label,
.bubble-node:hover .bubble-label {
    opacity: 1;
}
.bubble-cat-halo {
    pointer-events: none;
    transition: opacity 0.4s;
}
.bubble-cat-bg {
    pointer-events: none;
    transition: opacity 0.3s;
}
.bubble-cat-label {
    font-family: var(--display);
    font-size: 10px;
    opacity: 0.5;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    transition: opacity 0.3s;
}
.bubble-cat-count {
    font-family: var(--font);
    font-size: 7px;
    opacity: 0.28;
    pointer-events: none;
    font-weight: 500;
    transition: opacity 0.3s;
}
/* Hide category labels + count when zoomed */
.bubble-zoomed .bubble-cat-label,
.bubble-zoomed .bubble-cat-count {
    opacity: 0 !important;
}
/* Hide halos of non-selected categories when zoomed */
.bubble-zoomed .bubble-cat-halo {
    opacity: 0;
}

/* Bubble entrance animation */
.bubble-node .bubble-circle {
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: var(--d, 0ms);
}
.bubble-entered .bubble-node .bubble-circle {
    opacity: 1;
}
.bubble-node .bubble-label {
    transition: opacity 0.3s ease;
    transition-delay: calc(var(--d, 0ms) + 150ms);
}
/* After entrance: only show labels on large circles (overview) */
.bubble-entered .bubble-node .bubble-label.bubble-label-vis {
    opacity: 0.85;
}
/* When zoomed into a category: show ALL labels */
.bubble-entered.bubble-zoomed .bubble-node .bubble-label {
    opacity: 0.9;
}
.bubble-entered .bubble-node.bubble-hover .bubble-label,
.bubble-entered .bubble-node:hover .bubble-label {
    opacity: 1;
}
.bubble-cat-halo {
    opacity: 0;
    transition: opacity 0.6s ease 0.1s;
}
.bubble-entered .bubble-cat-halo {
    opacity: 1;
}
.bubble-cat-bg {
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}
.bubble-entered .bubble-cat-bg {
    opacity: 1;
}
.bubble-cat-label {
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}
.bubble-entered .bubble-cat-label {
    opacity: 0.5;
}
.bubble-cat-count {
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
}
.bubble-entered .bubble-cat-count {
    opacity: 0.28;
}

/* Bubble tooltip */
.bubble-tooltip {
    position: absolute;
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    z-index: 10;
    min-width: 170px;
    max-width: 220px;
}
.bubble-tooltip.visible {
    display: block;
}
.btt-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}
.btt-cat {
    font-size: 12px;
    color: var(--dim);
    text-transform: capitalize;
    margin-bottom: 8px;
}
.btt-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.btt-salary {
    color: var(--green);
    font-weight: 700;
}
.btt-hint {
    font-size: 11px;
    color: var(--dim);
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
    .chat-wrap { max-width: 100%; }
    .chat-header { padding: 14px 16px; }
    .chat-main { padding: 0 16px 16px; }
    .chat-input-wrap { padding: 12px 16px 16px; }

    /* Phase stepper responsive */
    .phase-stepper { padding: 10px 12px; gap: 0; }
    .phase-step { padding: 6px 10px; font-size: 12px; }
    .phase-num { width: 22px; height: 22px; font-size: 10px; }
    .phase-label { display: none; }
    .phase-step.phase-active .phase-label { display: inline; }
    .phase-connector { width: 20px; }

    /* Typography responsive */
    .intake-title { font-size: 36px; }
    .intake-desc { font-size: 16px; }
    .intake-q { font-size: 20px; }
    .chat-welcome-title { font-size: 40px; }
    .chat-welcome-sub { font-size: 16px; }

    /* Welcome features mobile */
    .welcome-features { gap: 10px; }
    .wf-item { padding: 12px 14px; gap: 12px; }
    .wf-icon { width: 36px; height: 36px; }
    .wf-icon svg { width: 18px; height: 18px; }
    .wf-title { font-size: 14px; }
    .wf-desc { font-size: 12px; }

    /* Layout responsive */
    .chat-bubble { max-width: 92%; }
    .detail-panel { width: 100vw; }
    .metro-grid { grid-template-columns: 1fr; }

    /* Header responsive */
    .header-badge { display: none; }
    .chat-logo { font-size: 16px; }

    /* Compare table mobile */
    .compare-table[data-cols="2"] .compare-row,
    .compare-table[data-cols="3"] .compare-row {
        grid-template-columns: 90px repeat(var(--cols, 2), 1fr);
    }
    .compare-table[data-cols="2"] .compare-row { grid-template-columns: 90px 1fr 1fr; }
    .compare-table[data-cols="3"] .compare-row { grid-template-columns: 90px 1fr 1fr 1fr; }
    .compare-label { font-size: 10px; padding: 10px 8px; }
    .compare-cell { font-size: 13px; padding: 10px 8px; }
    .compare-col-header { padding: 10px 8px; gap: 6px; }
    .compare-name { font-size: 13px; }
    .compare-icon .profession-icon { width: 1.2rem; height: 1.2rem; }

    /* Match card mobile */
    .match-card { gap: 14px; padding: 16px; }
    .match-ring-wrap svg { width: 70px; height: 70px; }

    /* Starter rows mobile */
    .starter-row { flex-direction: column; }
    .chat-starter { font-size: 14px; padding: 12px 16px; }

    /* Intake mobile */
    .intake-cards { max-width: 100%; gap: 10px; }
    .intake-card { padding: 22px 14px; }
    .ic-icon { width: 38px; height: 38px; }
    .ic-icon svg { width: 20px; height: 20px; }
    .ic-label { font-size: 16px; }
    .intake-chips { max-width: 100%; }
    .intake-chip { font-size: 14px; padding: 9px 16px; }
    .intake-location-wrap { max-width: 100%; }

    /* Geo chart mobile */
    .geo-city { width: 100px; font-size: 13px; }
    .geo-amount { width: 46px; font-size: 14px; }

    /* Timeline mobile */
    .tl-step { gap: 12px; }

    /* Programs CTA mobile */
    .programs-cta { flex-direction: column; text-align: center; gap: 12px; }
    .programs-cta-btn { width: 100%; justify-content: center; }

    /* Bubble explorer mobile */
    .bubble-top { padding: 12px 16px; }
    .bubble-filters { padding: 8px 16px; gap: 5px; }
    .bubble-filter { font-size: 12px; padding: 5px 10px; }
    .bubble-viewport { margin: 0 8px 8px; border-radius: var(--radius-sm); }
    .bubble-cat-label { font-size: 9px; }
    .explore-all-btn { font-size: 14px; padding: 12px 22px; }
}

@media (max-width: 400px) {
    .intake-title { font-size: 30px; }
    .chat-welcome-title { font-size: 34px; }
    .intake-cards { grid-template-columns: 1fr; }
    .phase-label { display: none !important; }
}
