/* ===== BrightPath Dashboard — Premium SaaS 2025 ===== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ===== DESIGN TOKENS (BrightPath Unified) ===== */
:root {
    /* Brand */
    --bp-deep-blue: #0A2540;
    --bp-soft-blue: #4F8CC9;
    --bp-lavender: #C7C9F2;
    --bp-warm-sand: #F5EDE0;
    --bp-mint: #A8E6CF;
    --bp-purple: #7B68EE;
    --bp-emerald: #10b981;

    /* Text */
    --bp-text-dark: #0A0A0A;
    --bp-text-muted: #6B7280;
    --bp-text-subtle: #9CA3AF;

    /* Surfaces */
    --bp-surface: #FFFFFF;
    --bp-surface-alt: #F7F9FC;

    /* Borders */
    --bp-border: rgba(10, 37, 64, 0.08);
    --bp-border-hover: rgba(10, 37, 64, 0.18);

    /* Gradients */
    --bp-gradient-primary: linear-gradient(135deg, #0A2540 0%, #4F8CC9 100%);
    --bp-gradient-ai: linear-gradient(135deg, #7B68EE 0%, #4F8CC9 100%);

    /* Shadows */
    --bp-shadow-xs: 0 1px 2px rgba(10, 37, 64, 0.04);
    --bp-shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --bp-shadow-md: 0 4px 20px rgba(10, 37, 64, 0.08);
    --bp-shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.10);
    --bp-shadow-xl: 0 24px 64px rgba(10, 37, 64, 0.14);

    /* Radii */
    --bp-radius-sm: 8px;
    --bp-radius-md: 12px;
    --bp-radius-lg: 16px;
    --bp-radius-xl: 24px;
    --bp-radius-full: 9999px;

    /* Motion */
    --bp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --bp-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy aliases */
    --color-primary: #0A2540;
    --color-secondary: #4F8CC9;
    --color-accent: #7B68EE;
    --color-success: #10b981;
    --color-success-light: #ecfdf5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    --color-text-primary: #0A0A0A;
    --color-text-secondary: #6B7280;
    --color-text-tertiary: #9CA3AF;
    --color-bg-light: #F7F9FC;
    --color-bg-secondary: #dbeafe;
    --card-bg: #FFFFFF;
    --card-border: rgba(10, 37, 64, 0.08);
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.10);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-2xl: 24px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-10: 40px;
    --spacing-16: 64px;
    --spacing-20: 80px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--bp-text-dark);
    background: var(--bp-surface-alt);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--bp-deep-blue);
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
}

h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
}

h3 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
}

h4 {
    font-size: 16px;
    font-weight: 700;
}

p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bp-text-muted);
}

.text-sm {
    font-size: 13px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--bp-radius-full);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all var(--bp-transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--bp-deep-blue);
    color: #FAFAFA;
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.35);
    background: #0d2f52;
}

.btn-secondary {
    background: transparent;
    color: var(--bp-deep-blue);
    border: 1.5px solid var(--bp-border-hover);
}

.btn-secondary:hover {
    background: rgba(10, 37, 64, 0.04);
    border-color: var(--bp-deep-blue);
    transform: translateY(-1px);
}

/* ===== CARD COMPONENT ===== */
.card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xl);
    padding: 32px;
    box-shadow: var(--bp-shadow-sm);
    transition: all var(--bp-transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bp-shadow-md);
    border-color: var(--bp-border-hover);
}

/* ===== ICON WRAPPER ===== */
.icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-soft-blue);
    flex-shrink: 0;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.icon-wrapper.success {
    color: var(--color-success);
}

.icon-wrapper.accent {
    color: var(--bp-purple);
}

.icon-wrapper.warning {
    color: var(--color-warning);
}

.icon-wrapper.error {
    color: var(--color-error);
}

/* ===== PAGE SCOPE (prevents app.css overrides) ===== */
.page-dashboard {
    position: relative;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    animation: sidebarFadeIn 0.25s ease;
}

@keyframes sidebarFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sidebarSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    background: var(--bp-surface);
    border-right: 1px solid var(--bp-border);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s var(--bp-ease);
    box-shadow: var(--bp-shadow-xl);
}

.sidebar--open {
    transform: translateX(0);
    animation: sidebarSlideIn 0.3s var(--bp-ease);
}

.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--bp-border);
}

.sidebar__user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(79, 140, 201, 0.15);
}

.sidebar__avatar--fallback {
    background: var(--bp-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid rgba(79, 140, 201, 0.15);
}

.sidebar__user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar__user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--bp-deep-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__user-role {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--bp-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar__close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bp-surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bp-text-muted);
    transition: all var(--bp-transition);
    flex-shrink: 0;
}

.sidebar__close-btn:hover {
    background: var(--color-error-light);
    color: var(--color-error);
}

.sidebar__nav {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar__nav-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp-text-subtle);
    padding: 8px 12px 6px;
    font-weight: 600;
}

.sidebar__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: none;
    background: none;
    text-decoration: none;
    color: var(--bp-text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--bp-radius-md);
    cursor: pointer;
    transition: all var(--bp-transition);
    width: 100%;
    text-align: left;
}

.sidebar__nav-item svg {
    flex-shrink: 0;
    stroke: var(--bp-text-subtle);
    fill: none;
    transition: stroke var(--bp-transition);
}

.sidebar__nav-item:hover {
    background: var(--bp-surface-alt);
    color: var(--bp-deep-blue);
}

.sidebar__nav-item:hover svg {
    stroke: var(--bp-soft-blue);
}

.sidebar__nav-item--active {
    background: rgba(79, 140, 201, 0.08);
    color: var(--bp-deep-blue);
    font-weight: 600;
}

.sidebar__nav-item--active svg {
    stroke: var(--bp-soft-blue);
}

.sidebar__nav-item--logout {
    color: var(--bp-text-muted);
}

.sidebar__nav-item--logout:hover {
    background: var(--color-error-light);
    color: var(--color-error);
}

.sidebar__nav-item--logout:hover svg {
    stroke: var(--color-error);
}

.sidebar__footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--bp-border);
}

/* ===== DASHBOARD NAVBAR ===== */
.page-dashboard .dash-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bp-border);
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.04);
}

.page-dashboard .dash-navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-dashboard .dash-navbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-dashboard .dash-navbar__menu-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--bp-border);
    background: var(--bp-surface);
    border-radius: var(--bp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bp-text-muted);
    transition: all var(--bp-transition);
}

.page-dashboard .dash-navbar__menu-btn:hover {
    background: var(--bp-surface-alt);
    border-color: var(--bp-border-hover);
    color: var(--bp-deep-blue);
    transform: translateY(-1px);
    box-shadow: var(--bp-shadow-xs);
}

.page-dashboard .dash-navbar__menu-btn svg {
    stroke: currentColor;
    fill: none;
}

.page-dashboard .dash-navbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.page-dashboard .dash-navbar__logo:hover {
    opacity: 0.8;
}

.page-dashboard .dash-navbar__logo-icon {
    width: 24px;
    height: 24px;
    stroke: var(--bp-soft-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.page-dashboard .dash-navbar__logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bp-deep-blue);
    letter-spacing: -0.03em;
}

.page-dashboard .dash-navbar__logo-text span {
    color: var(--bp-soft-blue);
}

.page-dashboard .dash-navbar__right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Greeting text */
.page-dashboard .dash-navbar__greeting {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--bp-text-muted);
    white-space: nowrap;
}

/* Base button */
.page-dashboard .dash-navbar__btn {
    padding: 7px 16px;
    border-radius: var(--bp-radius-full);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--bp-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
}

.page-dashboard .dash-navbar__btn svg {
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

/* Ghost (clear) */
.page-dashboard .dash-navbar__btn--ghost {
    background: transparent;
    color: var(--bp-text-subtle);
    border: 1px solid transparent;
}

.page-dashboard .dash-navbar__btn--ghost:hover {
    background: rgba(239, 68, 68, 0.06);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.12);
}

/* Outline (sign in) */
.page-dashboard .dash-navbar__btn--outline {
    background: transparent;
    color: var(--bp-deep-blue);
    border: 1.5px solid var(--bp-border-hover);
}

.page-dashboard .dash-navbar__btn--outline:hover {
    background: rgba(10, 37, 64, 0.03);
    border-color: var(--bp-deep-blue);
    transform: translateY(-1px);
    box-shadow: var(--bp-shadow-xs);
}

/* Primary (get started) */
.page-dashboard .dash-navbar__btn--primary {
    background: var(--bp-deep-blue);
    color: #FAFAFA;
    border: none;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.2);
}

.page-dashboard .dash-navbar__btn--primary:hover {
    background: #0d2f52;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.3);
}

/* Avatar button (authenticated) */
.page-dashboard .dash-navbar__avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bp-border);
    background: var(--bp-surface);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--bp-transition);
    box-shadow: var(--bp-shadow-xs);
}

.page-dashboard .dash-navbar__avatar-btn:hover {
    border-color: var(--bp-soft-blue);
    box-shadow: 0 0 0 3px rgba(79, 140, 201, 0.12);
    transform: scale(1.05);
}

.page-dashboard .dash-navbar__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-dashboard .dash-navbar__avatar-fallback {
    width: 100%;
    height: 100%;
    background: var(--bp-gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading state */
.page-dashboard .dash-navbar__loading {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.page-dashboard .dash-navbar__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bp-border);
    border-top-color: var(--bp-soft-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== HEADER SECTION ===== */
.dashboard-header {
    background: linear-gradient(135deg, #0d1a35 0%, #0f1b3d 50%, #1a1f3a 100%);
    padding: var(--spacing-12) 0 var(--spacing-10);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.dashboard-header-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-header-orb--1 {
    top: -30%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(11, 61, 145, 0.18) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.dashboard-header-orb--2 {
    bottom: -40%;
    left: -8%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(77, 184, 168, 0.12) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.header-text h1 {
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-slogan {
    font-size: 17px;
    color: #94a3b8;
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.6;
}

.header-info {
    text-align: right;
    animation: slideInLeft 0.6s ease 0.1s both;
}

.header-greeting {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgba(77, 184, 168, 0.25) 0%, rgba(11, 61, 145, 0.2) 100%);
    border: 1px solid rgba(77, 184, 168, 0.3);
    padding: 10px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.header-greeting svg {
    stroke: var(--color-secondary);
    flex-shrink: 0;
}

/* ===== CONTENT GRID ===== */
.dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    padding-top: var(--spacing-10);
}

.input-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.results-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
    width: 100%;
    padding-top: var(--spacing-8);
}

@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
    }
}

/* ===== INPUT PANEL (Resume & Job Description Side by Side) ===== */
.input-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    animation: fadeInUp 0.6s ease both;
}

/* ===== INPUT CARDS ===== */
.input-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xl);
    padding: 28px;
    box-shadow: var(--bp-shadow-sm);
    transition: all var(--bp-transition);
    animation: fadeInUp 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.input-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bp-gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--bp-ease);
}

.input-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bp-shadow-md);
    border-color: var(--bp-border-hover);
}

.input-card:hover::before {
    transform: scaleX(1);
}

.input-card:nth-child(1) { animation-delay: 0s; }
.input-card:nth-child(2) { animation-delay: 0.1s; }

.input-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bp-border);
}

.input-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--bp-deep-blue);
    letter-spacing: -0.01em;
}

.input-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--bp-radius-md);
    background: rgba(79, 140, 201, 0.08);
    flex-shrink: 0;
}

.input-card-icon svg {
    stroke: var(--bp-soft-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.textarea-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    font-family: 'IBM Plex Mono', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.65;
    resize: vertical;
    transition: all var(--bp-transition);
    background: var(--bp-surface-alt);
    color: var(--bp-text-dark);
}

.textarea-wrapper textarea::placeholder {
    color: var(--bp-text-subtle);
    font-style: italic;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--bp-soft-blue);
    box-shadow: 0 0 0 3px rgba(79, 140, 201, 0.1);
    background: var(--bp-surface);
}

.char-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--bp-text-subtle);
    margin-top: 8px;
    text-align: right;
}

.input-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--color-secondary);
    background: white;
    color: var(--color-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-btn:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 184, 168, 0.3);
}

.input-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ACTION BUTTON ===== */
.action-section {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xl);
    padding: 32px;
    text-align: center;
    box-shadow: var(--bp-shadow-sm);
    animation: fadeInUp 0.6s ease 0.2s both;
    width: 100%;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.action-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.03) 0%, rgba(79, 140, 201, 0.03) 100%);
    pointer-events: none;
}

.action-label {
    color: var(--bp-text-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    position: relative;
}

.action-label svg {
    stroke: var(--bp-purple);
    fill: none;
    flex-shrink: 0;
}

.action-btn {
    background: var(--bp-gradient-primary);
    color: #FAFAFA;
    padding: 16px 40px;
    border-radius: var(--bp-radius-full);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--bp-transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.4), rgba(79, 140, 201, 0.4));
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity var(--bp-transition);
}

.action-btn svg {
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(10, 37, 64, 0.35);
    background: linear-gradient(135deg, #0d2f52 0%, #5a9ad5 100%);
}

.action-btn:hover:not(:disabled)::after {
    opacity: 1;
}

.action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ===== PROGRESS SECTION ===== */
.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.step-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.4s ease both;
}

.step-item:nth-child(1) { animation-delay: 0s; }
.step-item:nth-child(2) { animation-delay: 0.1s; }
.step-item:nth-child(3) { animation-delay: 0.2s; }
.step-item:nth-child(4) { animation-delay: 0.3s; }

.step-item.active {
    background: white;
}

.step-number {
    font-weight: 700;
    font-size: 14px;
    color: currentColor;
}

.step-name {
    font-size: 12px;
    color: currentColor;
    opacity: 0.8;
}

/* ===== RESULTS SECTION ===== */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.result-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xl);
    padding: 28px;
    box-shadow: var(--bp-shadow-sm);
    transition: all var(--bp-transition);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bp-shadow-md);
    border-color: var(--bp-border-hover);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bp-border);
}

.result-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--bp-deep-blue);
    letter-spacing: -0.01em;
}

.result-card-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* ===== ATS SCORE CARD ===== */
.ats-score-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
}

.ats-score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 140, 201, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ats-score-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.score-display {
    position: relative;
    z-index: 2;
    margin: 24px 0;
}

.score-circle {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--bp-gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(10, 37, 64, 0.25);
    animation: float 3s ease-in-out infinite;
}

.score-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.score-max {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.score-subtitle {
    color: var(--bp-text-muted);
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
}

/* ===== TAGS & BADGES ===== */
.badge-group {
    margin-bottom: 24px;
}

.badge-group-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--bp-deep-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--bp-radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--bp-transition);
}

.badge-success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309 !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--bp-shadow-xs);
}

/* ===== GAPS SECTION ===== */
.gaps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
}

.gap-item {
    background: var(--bp-surface-alt);
    border: 1.5px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.gap-item .gap-text,
.gap-item .gap-meta {
    opacity: 1;
    visibility: visible;
}

.gap-item:not(.gap-item-hidden):not(.gap-item-flip):hover,
.gap-item.gap-item-flip:hover {
    border-color: var(--bp-soft-blue);
    box-shadow: var(--bp-shadow-md);
    transform: perspective(800px) rotateY(0deg) translateY(-4px);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gap-text {
    font-weight: 700;
    color: var(--bp-deep-blue);
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    word-break: normal;
    overflow-wrap: break-word;
    word-spacing: normal;
}

.gap-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}

.badge-category {
    background: var(--bp-deep-blue);
    color: white;
    padding: 4px 10px;
    border-radius: var(--bp-radius-full);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-placement {
    background: var(--bp-soft-blue);
    color: white;
    padding: 4px 10px;
    border-radius: var(--bp-radius-full);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== LISTS ===== */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--bp-radius-md);
    background: var(--bp-surface-alt);
    transition: all var(--bp-transition);
    border: 1px solid transparent;
}

.list-item:hover {
    background: rgba(79, 140, 201, 0.04);
    border-color: var(--bp-border);
}

.list-item-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
    color: var(--bp-soft-blue);
}

.list-item-text {
    flex: 1;
    color: var(--bp-text-muted);
    line-height: 1.65;
    font-size: 14px;
}

/* ===== GUEST MODE BANNER ===== */
.guest-banner {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-left: 4px solid var(--bp-soft-blue);
    border-radius: var(--bp-radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideInDown 0.4s ease-out;
    box-shadow: var(--bp-shadow-xs);
}

.guest-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bp-radius-md);
    background: rgba(79, 140, 201, 0.08);
}

.guest-banner-icon svg {
    stroke: var(--bp-soft-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.guest-banner-content {
    flex: 1;
}

.guest-banner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--bp-deep-blue);
    margin-bottom: 2px;
    font-size: 15px;
}

.guest-banner-text {
    color: var(--bp-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.guest-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.guest-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guest-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.guest-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.guest-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.3);
}

.guest-btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.guest-btn-secondary:hover {
    background: rgba(11, 61, 145, 0.05);
}

/* ===== DIAGNOSTICS & STATUS ===== */
.status-message {
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-4);
    animation: slideInDown 0.4s ease;
}

.status-success {
    background: var(--color-success-light);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.status-error {
    background: var(--color-error-light);
    color: var(--color-error);
    border-left: 4px solid var(--color-error);
}

.status-warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
    border-left: 4px solid var(--color-warning);
}

.diagnostics-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-md);
    padding: var(--spacing-4);
}

.diagnostics-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    background: white;
    color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .input-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-info {
        text-align: left;
    }

    .progress-steps {
        grid-template-columns: 1fr 1fr;
    }

    .badge-list {
        gap: 6px;
    }

    .dash-placeholder-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 17px; }

    .input-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .input-card, .result-card, .action-section {
        padding: 20px;
        border-radius: var(--bp-radius-lg);
    }

    .score-circle {
        width: 130px;
        height: 130px;
    }

    .score-number {
        font-size: 40px;
    }

    .progress-steps {
        grid-template-columns: 1fr;
    }

    .guest-banner {
        flex-direction: column;
        text-align: center;
    }

    .resume-panel-options {
        gap: 6px;
    }

    .resume-panel-btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .dashboard-container {
        padding: 20px 16px 48px;
    }
}

@media (max-width: 768px) {
    .page-dashboard .dash-navbar__inner {
        padding: 0 16px;
        height: 50px;
    }

    .page-dashboard .dash-navbar__btn span {
        display: none;
    }

    .page-dashboard .dash-navbar__btn {
        padding: 7px 10px;
    }

    .page-dashboard .dash-navbar__greeting {
        display: none;
    }

    .sidebar {
        width: 260px;
    }

    .dash-header__subtitle {
        display: none;
    }
}

/* ===== LEGACY AUTH UI (kept for backward compat) ===== */
.navbar-user-menu { display: none; }
.user-dropdown { display: none; }
.btn-user { display: none; }

/* Premium AI Generate Button */
.btn-generate-tailored {
    background: linear-gradient(135deg, #7B68EE 0%, #4F8CC9 100%);
    background-size: 200% 200%;
    color: white;
    padding: 16px 36px;
    border-radius: var(--bp-radius-full);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(123, 104, 238, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: goldenGlow 2.5s ease-in-out infinite;
    transition: all var(--bp-transition);
    position: relative;
    overflow: hidden;
}

.btn-generate-tailored::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.5), rgba(79, 140, 201, 0.5));
    opacity: 0;
    z-index: -1;
    filter: blur(16px);
    transition: opacity var(--bp-transition);
}

.btn-generate-tailored:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(123, 104, 238, 0.45);
    background-position: 100% center;
    animation: goldenGlowIntense 2s ease-in-out infinite;
}

.btn-generate-tailored:hover::after {
    opacity: 1;
}

.btn-generate-tailored:active {
    transform: translateY(-1px);
}

.btn-generate-tailored:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

@keyframes goldenGlow {
    0% {
        box-shadow: 0 4px 20px rgba(123, 104, 238, 0.3);
    }
    50% {
        box-shadow: 0 4px 32px rgba(123, 104, 238, 0.45), 0 0 48px rgba(123, 104, 238, 0.2);
    }
    100% {
        box-shadow: 0 4px 20px rgba(123, 104, 238, 0.3);
    }
}

@keyframes goldenGlowIntense {
    0% {
        box-shadow: 0 6px 24px rgba(123, 104, 238, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(123, 104, 238, 0.55), 0 0 64px rgba(79, 140, 201, 0.3);
    }
    100% {
        box-shadow: 0 6px 24px rgba(123, 104, 238, 0.4);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg) rotateX(0deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.resume-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.resume-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 14px 16px;
    background: var(--bp-surface-alt);
    border-radius: var(--bp-radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--bp-border);
    transition: all var(--bp-transition);
}

.resume-panel-header:hover {
    border-color: var(--bp-border-hover);
    background: rgba(79, 140, 201, 0.04);
}

.resume-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--bp-text-muted);
}

.resume-panel-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-deep-blue);
    color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.resume-panel-toggle svg {
    stroke: white;
    fill: none;
}

.resume-panel-toggle.expanded {
    transform: rotate(180deg);
}

.resume-panel-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.resume-panel-content.expanded {
    max-height: 800px;
    opacity: 1;
    margin-top: 0;
}

.resume-panel-textarea {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    font-family: 'IBM Plex Mono', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.65;
    resize: vertical;
    transition: all var(--bp-transition);
    background: var(--bp-surface-alt);
    color: var(--bp-text-dark);
}

.resume-panel-textarea::placeholder {
    color: var(--bp-text-subtle);
    font-style: italic;
}

.resume-panel-textarea:focus {
    outline: none;
    border-color: var(--bp-soft-blue);
    box-shadow: 0 0 0 3px rgba(79, 140, 201, 0.1);
    background: var(--bp-surface);
}

.resume-panel-options {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
    transition: margin-bottom 0.3s ease;
}

.resume-panel-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    border: 1.5px solid var(--bp-border);
    background: var(--bp-surface);
    color: var(--bp-text-muted);
    border-radius: var(--bp-radius-full);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    transition: all var(--bp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.resume-panel-btn svg {
    stroke: var(--bp-soft-blue);
    fill: none;
    flex-shrink: 0;
    transition: stroke var(--bp-transition);
    width: 14px;
    height: 14px;
}

.resume-panel-btn:hover {
    background: rgba(79, 140, 201, 0.06);
    border-color: var(--bp-soft-blue);
    color: var(--bp-deep-blue);
    transform: translateY(-1px);
    box-shadow: var(--bp-shadow-xs);
}

.resume-panel-btn:hover svg {
    stroke: var(--bp-deep-blue);
}

.resume-panel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== DASHBOARD HEADER ===== */
.dash-header {
    margin-bottom: 32px;
    animation: fadeInUp 0.5s ease both;
}

.dash-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dash-header__greeting {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--bp-deep-blue);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.dash-header__subtitle {
    font-size: 15px;
    color: var(--bp-text-muted);
    line-height: 1.6;
}

/* ===== SECTION TITLES ===== */
.dash-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bp-soft-blue);
    margin-bottom: 16px;
}

.dash-section-title svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ===== PLACEHOLDER SECTIONS ===== */
.dash-placeholders {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.dash-placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dash-placeholder-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xl);
    padding: 28px;
    box-shadow: var(--bp-shadow-xs);
    transition: all var(--bp-transition);
    position: relative;
    overflow: hidden;
}

.dash-placeholder-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bp-shadow-sm);
    border-color: var(--bp-border-hover);
}

.dash-placeholder-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-placeholder-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.dash-placeholder-card__icon--blue {
    background: rgba(79, 140, 201, 0.08);
}

.dash-placeholder-card__icon--purple {
    background: rgba(123, 104, 238, 0.08);
}

.dash-placeholder-card__icon--mint {
    background: rgba(168, 230, 207, 0.15);
}

.dash-placeholder-card__icon--amber {
    background: rgba(245, 158, 11, 0.08);
}

.dash-placeholder-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-deep-blue);
}

.dash-placeholder-card__content {
    color: var(--bp-text-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Strength Meter */
.strength-meter {
    margin-top: 16px;
}

.strength-meter__bar {
    height: 8px;
    background: rgba(10, 37, 64, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-meter__fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bp-mint) 0%, var(--bp-soft-blue) 100%);
    width: 0%;
    transition: width 1.5s var(--bp-ease);
}

.strength-meter__label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--bp-text-subtle);
    font-family: 'IBM Plex Mono', monospace;
}

/* Tips Section */
.dash-tips {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xl);
    padding: 28px;
    box-shadow: var(--bp-shadow-xs);
}

.dash-tips__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.dash-tips__header.expanded {
    margin-bottom: 16px;
}

.dash-tips__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-deep-blue);
}

.dash-tips__toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-surface-alt);
    border-radius: 50%;
    transition: transform 0.3s ease;
    color: var(--bp-text-subtle);
}

.dash-tips__toggle.expanded {
    transform: rotate(180deg);
}

.dash-tips__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.dash-tips__content.expanded {
    max-height: 500px;
    opacity: 1;
}

.dash-tip-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
}

.dash-tip-item:last-child {
    border-bottom: none;
}

.dash-tip-item__icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

.dash-tip-item__text {
    font-size: 14px;
    color: var(--bp-text-muted);
    line-height: 1.6;
}

.dash-tip-item__text strong {
    color: var(--bp-deep-blue);
}

/* Recent Analyses Placeholder */
.dash-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bp-border);
}

.dash-recent-item:last-child {
    border-bottom: none;
}

.dash-recent-item__score {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.dash-recent-item__score--high {
    background: rgba(168, 230, 207, 0.2);
    color: #047857;
}

.dash-recent-item__score--med {
    background: rgba(79, 140, 201, 0.1);
    color: var(--bp-soft-blue);
}

.dash-recent-item__score--low {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.dash-recent-item__info {
    flex: 1;
}

.dash-recent-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bp-deep-blue);
    margin-bottom: 2px;
}

.dash-recent-item__date {
    font-size: 12px;
    color: var(--bp-text-subtle);
    font-family: 'IBM Plex Mono', monospace;
}

/* Next Steps Panel */
.dash-next-steps {
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.04) 0%, rgba(79, 140, 201, 0.04) 100%);
    border: 1px solid rgba(123, 104, 238, 0.12);
    border-radius: var(--bp-radius-xl);
    padding: 28px;
}

.dash-next-steps__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.dash-next-steps__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--bp-radius-sm);
    background: rgba(123, 104, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dash-next-steps__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-deep-blue);
}

.dash-next-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--bp-text-muted);
}

.dash-next-step-item__num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bp-deep-blue);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Recommended Jobs Placeholder */
.dash-job-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bp-border);
}

.dash-job-item:last-child {
    border-bottom: none;
}

.dash-job-item__logo {
    width: 40px;
    height: 40px;
    border-radius: var(--bp-radius-sm);
    background: var(--bp-surface-alt);
    border: 1px solid var(--bp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-job-item__info {
    flex: 1;
}

.dash-job-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bp-deep-blue);
    margin-bottom: 2px;
}

.dash-job-item__company {
    font-size: 12px;
    color: var(--bp-text-subtle);
}

.dash-job-item__match {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--bp-radius-full);
    background: rgba(168, 230, 207, 0.15);
    color: #047857;
    flex-shrink: 0;
}

/* ===== View Full Review Button ===== */
.dash-view-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    padding: 6px 14px;
    border-radius: var(--bp-radius-full);
    cursor: pointer;
    transition: opacity var(--bp-transition), transform var(--bp-transition);
}

.dash-view-review-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== AI Review Details Modal (Dashboard) ===== */
.dash-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1001;
    padding: 40px 20px;
    overflow-y: auto;
    animation: dashReviewFadeIn 0.2s ease-out;
}

@keyframes dashReviewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dashReviewSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dash-review-dialog {
    background: var(--bp-surface);
    border-radius: var(--bp-radius-xl);
    max-width: 720px;
    width: 100%;
    box-shadow: var(--bp-shadow-xl);
    animation: dashReviewSlide 0.35s ease-out;
    overflow: hidden;
}

.dash-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dash-review-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-review-header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bp-radius-md);
    background: rgba(255,255,255,0.15);
}

.dash-review-header-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.dash-review-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
    font-weight: 700;
}

.dash-review-header p {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
}

.dash-review-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dash-review-close:hover {
    background: rgba(255,255,255,0.25);
}

.dash-review-body {
    padding: 32px;
}

.dash-review-score-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bp-surface-alt);
    border-radius: var(--bp-radius-lg);
    margin-bottom: 28px;
}

.dash-review-score-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid;
    background: var(--bp-surface);
}

.dash-score-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.dash-score-max {
    font-size: 0.75rem;
    color: var(--bp-text-muted);
    font-weight: 500;
}

.dash-review-score-info h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--bp-deep-blue);
    border: none;
    padding: 0;
}

.dash-review-score-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
}

.dash-review-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.dash-review-section-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bp-surface-alt);
    border-radius: var(--bp-radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.dash-chip-label {
    color: var(--bp-text-muted);
}

.dash-chip-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: var(--bp-radius-full);
    font-weight: 600;
}

.dash-chip-excellent { background: rgba(16,185,129,0.12); color: #065f46; }
.dash-chip-good { background: rgba(79,140,201,0.12); color: #1e40af; }
.dash-chip-fair { background: rgba(245,158,11,0.12); color: #92400e; }
.dash-chip-poor { background: rgba(239,68,68,0.12); color: #991b1b; }
.dash-chip-missing { background: rgba(107,114,128,0.1); color: #6b7280; }

.dash-review-category {
    margin-bottom: 24px;
}

.dash-review-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bp-border);
}

.dash-review-category-header svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.dash-review-category-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--bp-deep-blue);
    border: none;
    padding: 0;
}

.dash-category-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--bp-radius-full);
    background: rgba(10,37,64,0.06);
    color: var(--bp-text-muted);
}

.dash-review-card {
    padding: 16px 20px;
    border-radius: var(--bp-radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--bp-border);
    background: var(--bp-surface);
    transition: box-shadow 0.2s;
}

.dash-review-card:hover {
    box-shadow: var(--bp-shadow-sm);
}

.dash-review-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dash-review-card h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bp-deep-blue);
    flex: 1;
}

.dash-review-card p {
    margin: 4px 0;
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    line-height: 1.6;
}

.dash-severity-badge, .dash-priority-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--bp-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-severity-critical { background: rgba(239,68,68,0.12); color: #991b1b; }
.dash-severity-high { background: rgba(249,115,22,0.12); color: #9a3412; }
.dash-severity-medium { background: rgba(245,158,11,0.12); color: #92400e; }
.dash-severity-low { background: rgba(16,185,129,0.12); color: #065f46; }

.dash-priority-high { background: rgba(239,68,68,0.08); color: #991b1b; }
.dash-priority-medium { background: rgba(245,158,11,0.08); color: #92400e; }
.dash-priority-low { background: rgba(79,140,201,0.08); color: #1e40af; }

.dash-section-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--bp-radius-full);
    background: rgba(10,37,64,0.05);
    color: var(--bp-text-subtle);
}

.dash-card-fix {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(16,185,129,0.06);
    border-left: 3px solid var(--bp-success);
    border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
    font-size: 0.8125rem;
    color: #065f46;
    line-height: 1.6;
}

.dash-review-tip {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(199,201,242,0.1);
    border-radius: var(--bp-radius-md);
    margin-bottom: 8px;
    border: 1px solid rgba(199,201,242,0.2);
}

.dash-review-tip-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #667eea;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    margin-top: 1px;
}

.dash-review-tip p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--bp-text-dark);
    line-height: 1.6;
}

.dash-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--bp-border);
}

.dash-review-footer span {
    font-size: 0.75rem;
    color: var(--bp-text-muted);
    font-family: 'IBM Plex Mono', monospace;
}

.dash-review-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    padding: 8px 18px;
    border-radius: var(--bp-radius-full);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.dash-review-footer-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .dash-review-modal {
        padding: 20px 12px;
    }
    .dash-review-header {
        padding: 20px 20px;
    }
    .dash-review-body {
        padding: 20px;
    }
    .dash-review-sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-review-score-section {
        flex-direction: column;
        text-align: center;
    }
}
