/* ============================================================
   AI Resume Analyzer — Design System & Styles
   Premium dark theme with glassmorphism & gradient accents
   ============================================================ */

/* ── CSS Variables / Design Tokens ─────────────────────────── */
:root {
    /* Base Colors */
    --bg-primary: #06080f;
    --bg-secondary: #0c1020;
    --bg-tertiary: #111730;
    --bg-card: rgba(15, 20, 45, 0.7);
    --bg-card-hover: rgba(20, 28, 60, 0.8);

    /* Text */
    --text-primary: #eef0f6;
    --text-secondary: #8892b0;
    --text-muted: #5a6380;
    --text-inverse: #06080f;

    /* Accent Colors */
    --accent-blue: #4f8fff;
    --accent-cyan: #00d4ff;
    --accent-violet: #7c3aed;
    --accent-purple: #a855f7;
    --accent-green: #00e676;
    --accent-green-soft: #69f0ae;
    --accent-orange: #ffab40;
    --accent-red: #ff5252;
    --accent-yellow: #ffd740;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f8fff 0%, #00d4ff 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #4f8fff 50%, #00d4ff 100%);
    --gradient-success: linear-gradient(135deg, #00e676 0%, #69f0ae 100%);
    --gradient-warm: linear-gradient(135deg, #ff6e40 0%, #ffd740 100%);

    /* Glass */
    --glass-bg: rgba(15, 20, 45, 0.55);
    --glass-border: rgba(79, 143, 255, 0.12);
    --glass-border-hover: rgba(79, 143, 255, 0.25);
    --glass-blur: 20px;

    /* Theme-Adaptive Overlays (Subtle backgrounds) */
    --overlay-glass: rgba(255, 255, 255, 0.02);
    --overlay-glass-hover: rgba(255, 255, 255, 0.04);
    --overlay-light: rgba(255, 255, 255, 0.06);
    --overlay-medium: rgba(255, 255, 255, 0.1);

    /* Borders */
    --border-subtle: var(--overlay-light);
    --border-default: var(--overlay-medium);
    --border-accent: rgba(79, 143, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 30px rgba(79, 143, 255, 0.15);
    --shadow-glow-green: 0 0 30px rgba(0, 230, 118, 0.15);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

/* ── Light Theme Overrides ─────────────────────────────────── */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-inverse: #ffffff;

    --accent-green: #059669; /* Darker green for light mode */
    --accent-red: #ef4444; /* Darker red for light mode */
    --accent-blue: #2563eb;
    --accent-orange: #f59e0b;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.12);
    --glass-border-hover: rgba(0, 0, 0, 0.25);

    --overlay-glass: rgba(0, 0, 0, 0.03);
    --overlay-glass-hover: rgba(0, 0, 0, 0.05);
    --overlay-light: rgba(0, 0, 0, 0.08);
    --overlay-medium: rgba(0, 0, 0, 0.15);

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-default: rgba(0, 0, 0, 0.15);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.12);
}

body.light-mode .bg-glow-1 { background: radial-gradient(circle, rgba(79, 143, 255, 0.08) 0%, transparent 70%); }
body.light-mode .bg-glow-2 { background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%); }
body.light-mode .bg-glow-3 { background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%); }
body.light-mode .bg-grid {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}
body.light-mode .footer { color: var(--text-secondary); font-weight: 500; }

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Animated Background ──────────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 143, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 143, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 12s ease-in-out infinite;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 143, 255, 0.12) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    top: 40%;
    right: -10%;
    animation-delay: -4s;
}

.bg-glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    bottom: -5%;
    left: 30%;
    animation-delay: -8s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Header ────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--duration-normal) var(--ease-out);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.theme-toggle:hover {
    background: var(--overlay-medium);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ── Navigation Tabs ───────────────────────────────────────── */
.nav-tabs {
    display: flex;
    gap: 4px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.nav-tab {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
    font-family: var(--font-body);
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--overlay-medium);
}

.nav-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

body.light-mode .nav-tabs {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-tab {
    color: var(--text-secondary);
}

body.light-mode .nav-tab.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    box-shadow: none;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-orange);
    animation: pulse 2s ease-in-out infinite;
}

.badge-dot.active {
    background: var(--accent-green);
}

.badge-dot.inactive {
    background: var(--text-muted);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Header Action Buttons ────────────────────────────────── */
.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px rgba(79, 143, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all var(--duration-normal) var(--ease-spring);
    white-space: nowrap;
}

.btn-get-started:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(79, 143, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-get-started:active {
    transform: translateY(0) scale(0.97);
}

.btn-get-started svg {
    flex-shrink: 0;
}

.btn-header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--duration-normal) var(--ease-spring);
    white-space: nowrap;
}

.btn-header-login:hover {
    background: var(--overlay-medium);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-header-login:active {
    transform: translateY(0) scale(0.97);
}

.btn-header-login svg {
    flex-shrink: 0;
}

/* Logged-in state */
.btn-header-login.logged-in {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.06);
}

.btn-header-login.logged-in:hover {
    border-color: rgba(0, 230, 118, 0.5);
    background: rgba(0, 230, 118, 0.1);
}

.header-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-spinner {
    animation: spin 0.8s linear infinite;
}

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

/* ── Login Modal ──────────────────────────────────────────── */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    position: relative;
    width: 420px;
    max-width: 92vw;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(79, 143, 255, 0.08);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s var(--ease-spring);
    overflow: hidden;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--duration-fast);
    z-index: 2;
}

.login-modal-close:hover {
    background: var(--overlay-medium);
    color: var(--text-primary);
    transform: scale(1.1);
}

.login-modal-header {
    text-align: center;
    padding: 36px 32px 20px;
}

.login-logo-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.login-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-modal-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.login-modal-body {
    padding: 8px 32px 32px;
}

.login-social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    margin-bottom: 10px;
}

.login-google {
    background: var(--overlay-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.login-google:hover {
    background: var(--overlay-medium);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
}

.login-github-btn {
    background: var(--overlay-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.login-github-btn:hover {
    background: var(--overlay-medium);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.login-divider span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 11px 14px;
    background: var(--overlay-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    outline: none;
}

.login-field input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.15);
}

.login-field input::placeholder {
    color: var(--text-muted);
}

.login-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79, 143, 255, 0.3);
    transition: all var(--duration-normal) var(--ease-spring);
    margin-top: 4px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 143, 255, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-footer-text {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 18px;
}

.login-footer-text a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration-fast);
}

.login-footer-text a:hover {
    color: var(--accent-cyan);
}

/* ── Responsive: Header Buttons ───────────────────────────── */
@media (max-width: 640px) {
    .btn-get-started,
    .btn-header-login {
        padding: 7px 14px;
        font-size: 0.75rem;
    }
    .btn-get-started svg,
    .btn-header-login svg {
        width: 14px;
        height: 14px;
    }
    .header-badge span:not(.badge-dot) {
        display: none;
    }
}

@media (max-width: 420px) {
    .btn-get-started span,
    .btn-header-login span {
        /* Keep icon-only on very small screens */
    }
    .header-right {
        gap: 8px;
    }
}

@media (max-width: 1100px) {
    .demo-annotations {
        display: none !important;
    }
}
/* ── Main ──────────────────────────────────────────────────── */
.main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px var(--space-xl) var(--space-3xl);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
    animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 18px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.05);
    transition: all var(--duration-normal) var(--ease-spring);
    cursor: default;
}

.hero-chip:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-green);
    border-color: rgba(0, 230, 118, 0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-spring);
}

.hero-stats:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    border-color: rgba(79, 143, 255, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-default);
}

/* ═══════════════════════════════════════════════════════════ */
/*  FEATURE SHOWCASE SECTIONS                                 */
/* ═══════════════════════════════════════════════════════════ */

.showcase-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.showcase-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.showcase-reverse {
    direction: rtl;
}

.showcase-reverse > * {
    direction: ltr;
}

/* ── Showcase Text ─────────────────────────────────────────── */
.showcase-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(79, 143, 255, 0.08);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}

.showcase-chip-cyan {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
}

.showcase-chip-green {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.2);
    color: var(--accent-green);
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.showcase-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.showcase-features {
    display: grid;
    gap: var(--space-md);
}

.showcase-feat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: var(--overlay-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-fast);
}

.showcase-feat:hover {
    background: rgba(79, 143, 255, 0.04);
    border-color: rgba(79, 143, 255, 0.15);
    transform: translateX(4px);
}

.feat-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.showcase-center-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.showcase-center-header .showcase-chip {
    margin-bottom: var(--space-sm);
}

/* ── Showcase Visual (Mock UIs) ────────────────────────────── */
.showcase-visual {
    position: relative;
}

.mock-dashboard, .mock-rewrite-demo, .mock-keywords-demo {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(79, 143, 255, 0.05);
    transition: all var(--duration-normal) var(--ease-out);
}

.mock-dashboard:hover, .mock-rewrite-demo:hover, .mock-keywords-demo:hover {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 80px rgba(79, 143, 255, 0.08);
    transform: translateY(-4px);
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-subtle);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }

.mock-title {
    margin-left: 10px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mock-body {
    padding: var(--space-lg);
}

/* ── Live ATS Gauge Demo ──────────────────────────────────── */
.mock-gauge-area {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-md);
}

.mock-gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mock-score-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.mock-score-of {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mock-issues {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.mock-categories {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.mock-cat {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    align-items: center;
    gap: var(--space-sm);
}

.mock-cat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mock-cat-bar {
    height: 6px;
    background: var(--overlay-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.mock-cat-fill {
    height: 100%;
    width: 0;
    background: var(--fill-color);
    border-radius: var(--radius-full);
    transition: width 1.5s var(--ease-out);
}

.mock-cat-val {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.mock-checklist {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-md);
    display: grid;
    gap: 6px;
}

.mock-check-item {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 4px 0;
}

.check-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.check-pass { color: var(--accent-green); }
.check-fail { color: var(--accent-red); }
.check-locked { color: var(--text-muted); }

/* ── Floating Badges ──────────────────────────────────────── */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 2;
}

.float-badge-icon {
    font-size: 1rem;
}

.float-badge-top { top: -10px; right: -20px; }
.float-badge-top-right { top: 10px; right: -30px; }
.float-badge-bottom-left { bottom: -10px; left: -20px; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── How It Works Steps ───────────────────────────────────── */
.how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.how-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: var(--space-lg);
    position: relative;
}

.how-step-number {
    position: absolute;
    top: 8px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(79, 143, 255, 0.06);
    line-height: 1;
}

.how-step-visual {
    margin-bottom: var(--space-lg);
}

.how-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal);
}

.how-step:hover .how-icon-wrap {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-glow-blue);
    border-color: rgba(79, 143, 255, 0.3);
}

.how-step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.how-step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-connector {
    display: flex;
    align-items: center;
    padding-top: 60px;
    width: 60px;
    flex-shrink: 0;
    position: relative;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    opacity: 0.3;
}

.connector-dot {
    position: absolute;
    right: -3px;
    top: 58px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: pulse 2s ease-in-out infinite;
}

/* ── AI Rewrite Demo ──────────────────────────────────────── */
.rewrite-before, .rewrite-after {
    margin-bottom: var(--space-md);
}

.rewrite-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-red);
    margin-bottom: var(--space-sm);
    display: block;
}

.rewrite-label-after {
    color: var(--accent-green);
}

.rewrite-text-block {
    display: grid;
    gap: 8px;
}

.line-strike {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
    padding: 6px 10px;
    background: rgba(255, 82, 82, 0.04);
    border-radius: var(--radius-sm);
    border-left: 2px solid rgba(255, 82, 82, 0.2);
    line-height: 1.5;
}

.line-new {
    font-size: 0.82rem;
    color: var(--text-primary);
    padding: 6px 10px;
    background: rgba(0, 230, 118, 0.04);
    border-radius: var(--radius-sm);
    border-left: 2px solid rgba(0, 230, 118, 0.3);
    line-height: 1.5;
    animation: slideIn 0.5s var(--ease-out) both;
}

.line-new:nth-child(1) { animation-delay: 0.8s; }
.line-new:nth-child(2) { animation-delay: 1.2s; }
.line-new:nth-child(3) { animation-delay: 1.6s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.rewrite-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.rewrite-arrow-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Keyword Detection Demo ───────────────────────────────── */
.mock-keywords-demo .mock-body {
    position: relative;
    min-height: 280px;
    display: flex;
    justify-content: center;
    padding: var(--space-xl);
}

.mock-resume-doc {
    width: 180px;
    padding: var(--space-md);
    background: var(--overlay-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: grid;
    gap: 6px;
}

.realistic-mock {
    width: 260px; /* Wider for real text */
    text-align: left;
    display: block; /* override grid */
}

.rm-header2 {
    text-align: center;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.rm-name2 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.rm-role2 {
    font-size: 0.6rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-top: 2px;
}

.rm-section2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-title2 {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 2px;
}

.rm-job2 {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-primary);
}

.rm-job2 strong {
    color: var(--text-primary);
}

.rm-job2 span {
    color: var(--text-muted);
}

.rm-bullets2 {
    padding-left: 12px;
    margin: 0;
    font-size: 0.55rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rm-bullets2 li {
    margin-bottom: 4px;
}

.highlight-text {
    color: var(--text-primary);
    background: rgba(0, 230, 118, 0.15);
    padding: 0 3px;
    border-radius: 2px;
    font-weight: 600;
    border-bottom: 1px dotted var(--accent-green);
    transition: background 0.3s;
}

.floating-keywords {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fk-tag {
    position: absolute;
    left: var(--x);
    top: calc(var(--y) + 50px);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    animation: fkAppear 0.5s var(--ease-out) var(--delay) both, fkFloat 3s ease-in-out var(--delay) infinite;
    white-space: nowrap;
}

.fk-match {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--accent-green);
}

.fk-miss {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: var(--accent-red);
}

@keyframes fkAppear {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fkFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── Showcase Section Responsive ──────────────────────────── */
@media (max-width: 850px) {
    .showcase-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .showcase-reverse {
        direction: ltr;
    }
    .showcase-title {
        font-size: 1.7rem;
    }
    .how-steps {
        flex-direction: column;
        align-items: center;
    }
    .how-connector {
        width: 2px;
        height: 40px;
        padding-top: 0;
        flex-direction: column;
    }
    .connector-line {
        width: 2px;
        height: 100%;
    }
    .connector-dot {
        right: auto;
        top: auto;
        bottom: -3px;
        left: -3px;
    }
    .float-badge {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/*  LIVE DEMO — Sample Resume Analysis                        */
/* ═══════════════════════════════════════════════════════════ */

.live-demo-section .showcase-center-header {
    margin-bottom: var(--space-2xl);
}

.live-demo-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-xl);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* ── Mock Resume Document ─────────────────────────────────── */
.demo-resume-wrapper {
    position: relative;
}

.demo-resume {
    background: #fff;
    color: #1a1a2e;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    line-height: 1.5;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--overlay-light);
    position: relative;
    overflow: hidden;
}

.demo-scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-green), transparent);
    box-shadow: 0 0 16px var(--accent-cyan), 0 0 40px rgba(0, 212, 255, 0.3);
    z-index: 3;
    opacity: 0;
    top: 0;
    pointer-events: none;
}

.demo-scan-line.scanning {
    opacity: 1;
    animation: scanDown 3.5s linear infinite;
}

@keyframes scanDown {
    0% { top: 0; opacity: 0; }
    5% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Resume inner elements */
.dr-header {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 12px;
}

.dr-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8fff, #00d4ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.dr-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.02em;
}

.dr-title-role {
    font-size: 0.78rem;
    color: #4f8fff;
    font-weight: 600;
    margin: 2px 0 4px;
}

.dr-contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.64rem;
    color: #64748b;
}

.dr-section {
    margin-bottom: 10px;
}

.dr-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 3px;
    margin-bottom: 6px;
}

.dr-text {
    color: #334155;
    margin: 0;
}

.dr-job { margin-bottom: 10px; }

.dr-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.dr-job-header strong {
    font-size: 0.76rem;
    color: #0f172a;
}

.dr-company {
    margin-left: 6px;
    color: #4f8fff;
    font-weight: 600;
    font-size: 0.72rem;
}

.dr-dates {
    font-size: 0.64rem;
    color: #94a3b8;
    white-space: nowrap;
}

.dr-bullets {
    margin: 0;
    padding-left: 16px;
    color: #475569;
}

.dr-bullets li {
    margin-bottom: 2px;
}

.dr-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dr-skill {
    padding: 2px 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #2563eb;
}

.dr-edu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dr-edu strong {
    font-size: 0.72rem;
    color: #0f172a;
}

.dr-edu span {
    font-size: 0.64rem;
    color: #94a3b8;
}

/* ── Floating Annotation Tags ─────────────────────────────── */
.demo-annotations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.demo-tag {
    position: absolute;
    padding: 5px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.demo-tag.visible {
    opacity: 1;
    transform: scale(1);
}

.dt-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dt-green { background: #00e676; box-shadow: 0 0 6px rgba(0, 230, 118, 0.5); }
.dt-blue { background: #4f8fff; box-shadow: 0 0 6px rgba(79, 143, 255, 0.5); }
.dt-orange { background: #ffab40; box-shadow: 0 0 6px rgba(255, 171, 64, 0.5); }

/* Staggered delays */
.demo-tag-1.visible { transition-delay: 0.3s; }
.demo-tag-2.visible { transition-delay: 0.7s; }
.demo-tag-3.visible { transition-delay: 1.2s; }
.demo-tag-4.visible { transition-delay: 1.8s; }
.demo-tag-5.visible { transition-delay: 2.2s; }
.demo-tag-6.visible { transition-delay: 2.6s; }

/* ── Live Analysis Panel ──────────────────────────────────── */
.demo-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: sticky;
    top: 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dp-header {
    margin-bottom: var(--space-md);
}

.dp-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
}

.dp-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Mini gauge */
.dp-score-area {
    position: relative;
    width: 130px;
    height: 130px;
    margin: var(--space-md) auto;
}

.dp-score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dp-score-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.dp-score-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dp-grade {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transition: opacity 0.5s;
}

.dp-grade.visible {
    opacity: 1;
}

/* Bars */
.dp-bars {
    display: grid;
    gap: 8px;
    margin-bottom: var(--space-lg);
}

.dp-bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 36px;
    align-items: center;
    gap: 8px;
}

.dp-bar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dp-bar-track {
    height: 6px;
    background: var(--overlay-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dp-bar-fill {
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#dp-bar-1 { background: linear-gradient(90deg, #7c3aed, #a855f7); }
#dp-bar-2 { background: linear-gradient(90deg, #ffab40, #ffd740); }
#dp-bar-3 { background: linear-gradient(90deg, #4f8fff, #00d4ff); }
#dp-bar-4 { background: linear-gradient(90deg, #00e676, #69f0ae); }

.dp-bar-val {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

/* Skills */
.dp-skills-section {
    margin-bottom: var(--space-lg);
}

.dp-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.dp-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dp-skill-tag {
    padding: 3px 10px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-green);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s var(--ease-out);
}

.dp-skill-tag.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Verdict */
.dp-verdict {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: rgba(79, 143, 255, 0.06);
    border: 1px solid rgba(79, 143, 255, 0.15);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease-out);
}

.dp-verdict.visible {
    opacity: 1;
    transform: translateY(0);
}

.dp-verdict-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dp-verdict-text {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Live Demo Responsive ─────────────────────────────────── */
@media (max-width: 850px) {
    .live-demo-container {
        grid-template-columns: 1fr;
    }
    .demo-panel {
        position: static;
    }
    .demo-tag {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/*  END FEATURE SHOWCASE                                      */
/* ═══════════════════════════════════════════════════════════ */

/* ── Upload Section ────────────────────────────────────────── */
.upload-section {
    animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.upload-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: var(--space-xl);
}

.upload-card-center {
    max-width: 600px;
    width: 100%;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.upload-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.upload-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow-blue);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: white;
}

.card-icon-resume {
    background: linear-gradient(135deg, #4f8fff 0%, #7c3aed 100%);
}

.card-icon-jd {
    background: linear-gradient(135deg, #00d4ff 0%, #4f8fff 100%);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-blue);
    background: rgba(79, 143, 255, 0.05);
}

.dropzone.dragover {
    transform: scale(1.01);
    box-shadow: var(--shadow-glow-blue);
}

.dropzone-icon {
    margin-bottom: var(--space-md);
}

.dropzone-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.dropzone-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.dropzone-limit {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--overlay-glass);
    border-radius: var(--radius-full);
}

.dropzone-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.file-name {
    font-weight: 600;
    color: var(--accent-green);
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-remove {
    margin-top: var(--space-sm);
    padding: 6px 16px;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.btn-remove:hover {
    background: rgba(255, 82, 82, 0.2);
}

/* Textarea */
.textarea-wrapper {
    position: relative;
}

.jd-textarea {
    width: 100%;
    min-height: 220px;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
    resize: vertical;
    transition: border-color var(--duration-fast);
    outline: none;
}

.jd-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.1);
}

.jd-textarea::placeholder {
    color: var(--text-muted);
}

.textarea-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Analyze Button */
.analyze-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

.btn-analyze {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    box-shadow: 0 4px 24px rgba(79, 143, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-analyze::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn-analyze:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(79, 143, 255, 0.4);
}

.btn-analyze:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-analyze:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    transition: transform var(--duration-fast);
}

.btn-analyze:hover:not(:disabled) .btn-icon {
    transform: translateX(4px);
}

/* ── Loading Section ───────────────────────────────────────── */
.loading-section {
    padding: var(--space-3xl) 0;
    animation: fadeUp 0.5s var(--ease-out) both;
}

.loading-card {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.loading-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-xl);
}

.loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.loading-ring-2 {
    inset: 12px;
    border-top-color: var(--accent-cyan);
    animation-direction: reverse;
    animation-duration: 0.9s;
}

.loading-center-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.loading-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.loading-steps {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--duration-normal);
}

.loading-step.active {
    color: var(--text-primary);
}

.loading-step.done {
    color: var(--accent-green);
}

.step-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-default);
    flex-shrink: 0;
    position: relative;
    transition: all var(--duration-normal);
}

.loading-step.active .step-indicator {
    border-color: var(--accent-blue);
    background: rgba(79, 143, 255, 0.2);
    animation: pulse 1s ease-in-out infinite;
}

.loading-step.done .step-indicator {
    border-color: var(--accent-green);
    background: var(--accent-green);
}

.loading-step.done .step-indicator::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--bg-primary);
    font-weight: 700;
}

/* ── Results Section ───────────────────────────────────────── */
.results-section {
    padding: var(--space-xl) 0;
    animation: fadeUp 0.6s var(--ease-out) both;
}

.results-header {
    margin-bottom: var(--space-xl);
}

.score-hero {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.score-gauge-wrapper {
    position: relative;
    flex-shrink: 0;
}

.score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.score-details {
    flex: 1;
}

.score-grade {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.grade-letter {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.grade-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.score-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.score-meta {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-icon {
    font-size: 1rem;
}

.meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Results Grid ──────────────────────────────────────────── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-lg);
}

.result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
    animation: fadeUp 0.5s var(--ease-out) both;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.15s; }
.result-card:nth-child(3) { animation-delay: 0.2s; }
.result-card:nth-child(4) { animation-delay: 0.25s; }
.result-card:nth-child(5) { animation-delay: 0.3s; }
.result-card:nth-child(6) { animation-delay: 0.35s; }
.result-card:nth-child(7) { animation-delay: 0.4s; }

.result-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result-card-full {
    grid-column: 1 / -1;
}

.result-card-ai {
    grid-column: 1 / -1;
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.05);
}

.result-card-ai:hover {
    border-color: rgba(124, 58, 237, 0.35);
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.result-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* AI Badge */
.ai-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(79, 143, 255, 0.2) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Breakdown Bars ────────────────────────────────────────── */
.breakdown-bar-item {
    margin-bottom: var(--space-md);
}

.breakdown-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
}

.breakdown-bar-label {
    color: var(--text-secondary);
}

.breakdown-bar-value {
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-bar-track {
    height: 8px;
    background: var(--overlay-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.2s var(--ease-out);
    width: 0;
}

.breakdown-bar-weight {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Skills Categories ─────────────────────────────────────── */
.skill-count {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.skill-category {
    margin-bottom: var(--space-md);
}

.skill-category-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    padding: 4px 12px;
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--accent-blue);
    font-weight: 500;
    transition: all var(--duration-fast);
}

.skill-tag:hover {
    background: rgba(79, 143, 255, 0.2);
    transform: translateY(-1px);
}

.skill-tag.matched {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.25);
    color: var(--accent-green);
}

.skill-tag.missing {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.25);
    color: var(--accent-red);
}

/* ── Gap Analysis ──────────────────────────────────────────── */
.gap-overview {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.gap-stat {
    flex: 1;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.gap-stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.gap-stat-number.green { color: var(--accent-green); }
.gap-stat-number.red { color: var(--accent-red); }
.gap-stat-number.blue { color: var(--accent-blue); }

.gap-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Keywords ──────────────────────────────────────────────── */
.keywords-section {
    margin-bottom: var(--space-lg);
}

.keywords-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Sections Analysis ─────────────────────────────────────── */
.section-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.section-item:last-child {
    border-bottom: none;
}

.section-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.section-status.found {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
}

.section-status.missing {
    background: rgba(255, 171, 64, 0.15);
    color: var(--accent-orange);
}

.section-name {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.section-name.missing-text {
    color: var(--text-muted);
}

/* ── AI Insights ───────────────────────────────────────────── */
.ai-content {
    display: grid;
    gap: var(--space-lg);
}

.ai-section {
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-violet);
}

.ai-section-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: var(--space-sm);
}

.ai-section-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-list {
    list-style: none;
    padding: 0;
}

.ai-list li {
    padding: 4px 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-violet);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ── Suggestions ───────────────────────────────────────────── */
.suggestions-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.suggestion-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--border-default);
    transition: all var(--duration-fast);
}

.suggestion-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.suggestion-item.critical { border-left-color: var(--accent-red); }
.suggestion-item.warning { border-left-color: var(--accent-orange); }
.suggestion-item.info { border-left-color: var(--accent-blue); }
.suggestion-item.success { border-left-color: var(--accent-green); }

.suggestion-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.suggestion-text h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.suggestion-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── New Analysis Button ──────────────────────────────────── */
.new-analysis-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
}

.btn-new-analysis {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--accent-blue);
    border-radius: var(--radius-full);
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-new-analysis:hover {
    background: rgba(79, 143, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-heart {
    color: var(--accent-red);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .score-hero {
        flex-direction: column;
        text-align: center;
    }

    .score-meta {
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .suggestions-list {
        grid-template-columns: 1fr;
    }

    .ai-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main {
        padding: 80px var(--space-md) var(--space-2xl);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .upload-card {
        padding: var(--space-md);
    }

    .score-hero {
        padding: var(--space-lg);
    }

    .gap-overview {
        flex-direction: column;
    }

    .header-badge span:not(.badge-dot) {
        display: none;
    }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 143, 255, 0.3);
}

/* ── Selection ─────────────────────────────────────────────── */
::selection {
    background: rgba(79, 143, 255, 0.3);
    color: var(--text-primary);
}

/* ── LinkedIn Import ───────────────────────────────────────── */
.linkedin-import {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(10, 102, 194, 0.1);
    border: 1px solid rgba(10, 102, 194, 0.3);
    border-radius: var(--radius-full);
    color: #4fa0e8;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
    font-family: var(--font-body);
}

.btn-linkedin:hover {
    background: rgba(10, 102, 194, 0.2);
    transform: translateY(-1px);
}

.linkedin-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Multi-Role JD Tabs ────────────────────────────────────── */
.jd-tabs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    overflow-x: auto;
}

.jd-tab-list {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.jd-tab {
    padding: 6px 16px;
    background: var(--overlay-glass-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
    font-family: var(--font-body);
    position: relative;
}

.jd-tab:hover {
    color: var(--text-secondary);
    border-color: var(--border-default);
}

.jd-tab.active {
    background: rgba(79, 143, 255, 0.12);
    border-color: rgba(79, 143, 255, 0.3);
    color: var(--accent-blue);
}

.jd-tab .tab-close {
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.5;
    cursor: pointer;
}

.jd-tab .tab-close:hover {
    opacity: 1;
    color: var(--accent-red);
}

.btn-add-role {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 230, 118, 0.1);
    border: 1px dashed rgba(0, 230, 118, 0.3);
    border-radius: 50%;
    color: var(--accent-green);
    cursor: pointer;
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.btn-add-role:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: scale(1.1);
}

.jd-panels {
    position: relative;
}

.jd-panel {
    display: none;
}

.jd-panel.active {
    display: block;
}

.jd-title-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    outline: none;
    transition: border-color var(--duration-fast);
}

.jd-title-input:focus {
    border-color: var(--accent-blue);
}

.jd-title-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.jd-textarea {
    min-height: 160px;
}

.textarea-counter {
    text-align: right;
    margin-top: var(--space-sm);
    font-size: 0.72rem;
    color: var(--text-muted);
    position: static;
}

/* ── Semantic Similarity Banner ────────────────────────────── */
.semantic-card {
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.5s var(--ease-out) 0.1s both;
}

.semantic-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
}

.semantic-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.semantic-info {
    flex: 1;
}

.semantic-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 2px;
}

.semantic-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.semantic-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.semantic-percent {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.semantic-label-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Multi-Role Comparison Card ────────────────────────────── */
.multi-role-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.5s var(--ease-out) 0.15s both;
}

.role-ranking {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border-left: 4px solid var(--accent-blue);
    transition: all var(--duration-fast);
}

.role-ranking:hover {
    background: rgba(0, 0, 0, 0.3);
}

.role-ranking:first-child {
    border-left-color: var(--accent-green);
    background: rgba(0, 230, 118, 0.05);
}

.role-rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.role-ranking:first-child .role-rank {
    color: var(--accent-green);
}

.role-info {
    flex: 1;
}

.role-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.role-reason {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.role-skills-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.role-scores {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.role-score-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.role-ranking:first-child .role-score-main {
    color: var(--accent-green);
}

.role-score-semantic {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.multi-role-advice {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-violet);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.multi-role-advice strong {
    color: var(--accent-purple);
}

/* ── AI Rewrite Card ──────────────────────────────────────── */
.result-card-rewrite {
    grid-column: 1 / -1;
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.03);
}

.result-card-rewrite:hover {
    border-color: rgba(0, 212, 255, 0.35);
}

.rewrite-content {
    display: grid;
    gap: var(--space-lg);
}

.rewrite-block {
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-cyan);
    position: relative;
}

.rewrite-block-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rewrite-block-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.btn-copy {
    padding: 3px 10px;
    background: var(--overlay-light);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all var(--duration-fast);
    font-family: var(--font-body);
}

.btn-copy:hover {
    background: rgba(79, 143, 255, 0.1);
    color: var(--accent-blue);
}

.btn-copy.copied {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 230, 118, 0.3);
}

.rewrite-notes {
    display: grid;
    gap: var(--space-sm);
}

.rewrite-note {
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-left: 2px solid var(--accent-violet);
}

/* ── LinkedIn Optimization Card ────────────────────────────── */
.result-card-linkedin {
    grid-column: 1 / -1;
    border-color: rgba(10, 102, 194, 0.2);
    background: rgba(10, 102, 194, 0.03);
}

.result-card-linkedin:hover {
    border-color: rgba(10, 102, 194, 0.35);
}

.linkedin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.linkedin-block {
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border-left: 3px solid #0a66c2;
}

.linkedin-block-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: #4fa0e8;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.linkedin-block-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 700px) {
    .linkedin-content {
        grid-template-columns: 1fr;
    }
    .semantic-inner {
        flex-direction: column;
        text-align: center;
    }
    .role-ranking {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Candidate Profile Card ────────────────────────────────── */
.candidate-profile-card {
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.5s var(--ease-out) 0.1s both;
}

.profile-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(79, 143, 255, 0.06) 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.profile-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 3px 12px;
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.profile-badge-alt {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
}

.profile-roles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-roles-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-role-tag {
    padding: 4px 14px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-green);
}

.profile-role-tag small {
    opacity: 0.7;
    font-size: 0.68rem;
}

@media (max-width: 700px) {
    .profile-inner {
        flex-direction: column;
        text-align: center;
    }
    .profile-roles {
        justify-content: center;
    }
}

/* ── Optional JD Toggle ───────────────────────────────────── */
.jd-toggle-wrapper {
    margin-top: var(--space-md);
}

.jd-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1px dashed rgba(79, 143, 255, 0.25);
    background: rgba(79, 143, 255, 0.04);
    border-radius: var(--radius-md);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.jd-toggle-btn:hover {
    background: rgba(79, 143, 255, 0.08);
    border-color: rgba(79, 143, 255, 0.4);
}

.jd-toggle-icon {
    font-size: 1.1rem;
    font-weight: 800;
    width: 22px;
    text-align: center;
}

.jd-input-area {
    margin-top: var(--space-sm);
    animation: fadeUp 0.3s var(--ease-out);
}

.jd-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    background: var(--overlay-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.jd-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.1);
}

.jd-textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── JD Match Banner ──────────────────────────────────────── */
.jd-match-banner {
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.5s var(--ease-out);
}

.jd-match-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.06) 0%, rgba(0, 212, 255, 0.06) 100%);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.jd-match-score-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8fff, #00d4ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(79, 143, 255, 0.3);
}

.jd-match-info {
    flex: 1;
    min-width: 200px;
}

.jd-match-level {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.jd-match-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.jd-match-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jd-tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.jd-tag-match {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--accent-green);
}

.jd-tag-miss {
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.25);
    color: #ff5252;
}

/* ── Section-wise Scoring ─────────────────────────────────── */
.section-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.ss-item {
    padding: 14px 16px;
    background: var(--overlay-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.ss-item:hover {
    background: var(--overlay-glass-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(79, 143, 255, 0.3);
}

.ss-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ss-icon {
    font-size: 1.1rem;
}

.ss-label {
    flex: 1;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.ss-score {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
}

.ss-bar-track {
    height: 5px;
    background: var(--overlay-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.ss-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s var(--ease-out);
}

.ss-feedback {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ── Skill Gap & Roadmap ──────────────────────────────────── */
.rm-header {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(79, 143, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 143, 255, 0.1);
}

.rm-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.rm-badge {
    padding: 4px 14px;
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.rm-badge-alt {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
}

.rm-trajectory {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.rm-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.rm-gaps {
    margin-bottom: var(--space-xl);
}

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

.rm-gap-item {
    padding: 12px 16px;
    background: var(--overlay-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.rm-gap-item:hover {
    background: var(--overlay-glass-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(79, 143, 255, 0.3);
}

.rm-gap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.rm-gap-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.rm-gap-priority {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rm-gap-reason {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 6px;
    line-height: 1.4;
}

.rm-gap-level {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.06);
    border-radius: var(--radius-full);
    display: inline-block;
}

/* Roadmap Phases */
.rm-phases {
    margin-bottom: var(--space-xl);
}

.rm-phase {
    padding: var(--space-md);
    background: var(--overlay-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-blue);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.rm-phase:hover {
    background: var(--overlay-glass-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left-color: var(--accent-cyan);
    border-top-color: rgba(79, 143, 255, 0.3);
    border-right-color: rgba(79, 143, 255, 0.3);
    border-bottom-color: rgba(79, 143, 255, 0.3);
}

.rm-phase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rm-phase-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8fff, #00d4ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rm-phase-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.rm-phase-duration {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.rm-phase-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.rm-skill-tag {
    padding: 3px 10px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-green);
}

.rm-resources {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.rm-resource {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--overlay-glass);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.rm-resource-type {
    padding: 2px 8px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.65rem;
    color: #a855f7;
    flex-shrink: 0;
}

.rm-resource-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.rm-resource-platform {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.rm-milestone {
    padding: 8px 12px;
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--accent-green);
    font-weight: 600;
}

.rm-certs {
    margin-bottom: var(--space-md);
}

.rm-cert-list {
    display: grid;
    gap: 8px;
}

.rm-cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--overlay-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.rm-cert-item:hover {
    background: var(--overlay-glass-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(79, 143, 255, 0.3);
}

.rm-cert-name {
    flex: 1;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.rm-cert-provider {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rm-cert-rel {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(79, 143, 255, 0.1);
    color: var(--accent-blue);
}

/* ── Mock Interview ───────────────────────────────────────── */
.iv-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-md);
}

.iv-role {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.iv-level {
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: #a855f7;
}

.iv-questions {
    display: grid;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.iv-question {
    padding: var(--space-md);
    background: var(--overlay-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.iv-question:hover {
    background: var(--overlay-glass-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
}

.iv-q-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.iv-q-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.iv-q-cat {
    padding: 3px 10px;
    border: 1px solid;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
}

.iv-q-diff {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
}

.iv-q-text {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 8px;
}

.iv-q-details {
    border-top: 1px solid var(--glass-border);
    padding-top: 8px;
}

.iv-q-summary {
    font-size: 0.78rem;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    padding: 6px 0;
}

.iv-q-summary::-webkit-details-marker { display: none; }
.iv-q-summary::before { content: '▶ '; font-size: 0.6rem; }
details[open] .iv-q-summary::before { content: '▼ '; }

.iv-q-answer {
    padding: 10px 0;
    display: grid;
    gap: 8px;
}

.iv-tip, .iv-sample {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.iv-tip strong, .iv-sample strong {
    color: var(--text-primary);
}

.iv-tips, .iv-checklist {
    padding: var(--space-md);
    background: var(--overlay-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.iv-tips h4, .iv-checklist h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.iv-tips ul {
    padding-left: 16px;
    margin: 0;
}

.iv-tips li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.iv-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.iv-check-box {
    font-size: 1rem;
    flex-shrink: 0;
}
