/* ============================================
   RESUME SCREENING ASSISTANT - DESIGN SYSTEM
   Cyberpunk / Dark Glassmorphism High-Aesthetic Stylesheet
   ============================================ */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-color: rgba(0, 212, 255, 0.15);
    --border-glow: rgba(0, 212, 255, 0.35);

    --primary: #00d4ff;
    --primary-rgb: 0, 212, 255;
    --primary-glow: rgba(0, 212, 255, 0.4);
    --accent: #7b2fff;
    --accent-rgb: 123, 47, 255;
    --accent-glow: rgba(123, 47, 255, 0.4);

    --success: #00e676;
    --success-rgb: 0, 230, 118;
    --warning: #ff9f43;
    --danger: #ff4757;
    --gold: #ffd700;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.25);
}

/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Background canvas */
#particle-canvas, #particle-canvas-login, #particle-canvas-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* =============== TYPOGRAPHY & UTILITIES =============== */
.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2fff 50%, #00e676 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* Glass card styling */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px 0 rgba(0, 212, 255, 0.15);
}

/* =============== PREMIUM INTERACTIVE BUTTON SYSTEM =============== */

/* Animated Gradient Border Container — used on primary CTAs */
@property --btn-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes btnBorderSpin {
    to { --btn-border-angle: 360deg; }
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-main);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    outline: none;
    text-decoration: none;
    overflow: hidden;
    user-select: none;
    letter-spacing: 0.4px;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
}

/* Icon hover micro-animations */
.btn .btn-icon,
.btn > span:first-child:not(.btn-text):not(.login-spinner):not(.btn-loading-spinner) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.btn:hover .btn-icon,
.btn:hover > span:first-child:not(.btn-text):not(.login-spinner):not(.btn-loading-spinner) {
    transform: scale(1.22) rotate(6deg);
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}

/* Active / Click Scale Down + Glow Flash */
.btn:active,
.filter-btn:active,
.icon-btn:active,
.candidate-select-btn:active {
    transform: scale(0.93) !important;
    filter: brightness(1.35);
    transition-duration: 0.08s;
}

/* Accessible Focus Ring */
.btn:focus-visible,
.filter-btn:focus-visible,
.icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.55), 0 0 28px rgba(0, 212, 255, 0.7) !important;
}

/* ---- Primary CTA Button (Electric Cyan → Neon Blue) ---- */
.btn-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%);
    color: #030814;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 4px 22px rgba(0, 212, 255, 0.5),
        0 0 12px rgba(0, 212, 255, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-md) + 2px);
    background: conic-gradient(from var(--btn-border-angle, 0deg), #00f0ff, #7b2fff, #00e676, #00f0ff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
    animation: btnBorderSpin 4s linear infinite;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #33f3ff 0%, #1a85ff 100%);
    box-shadow:
        0 6px 32px rgba(0, 212, 255, 0.85),
        0 0 50px rgba(0, 212, 255, 0.65),
        0 0 80px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px) scale(1.03);
    color: #01040a;
}

/* ---- Accent CTA Button (Cosmic Purple → Electric Cyan) ---- */
.btn-accent {
    background: linear-gradient(135deg, #8a2be2 0%, #00d4ff 100%);
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 22px rgba(138, 43, 226, 0.5),
        0 0 12px rgba(0, 212, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-accent::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-md) + 2px);
    background: conic-gradient(from var(--btn-border-angle, 0deg), #8a2be2, #00d4ff, #ff9f43, #8a2be2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
    animation: btnBorderSpin 4s linear infinite;
}

.btn-accent:hover::before {
    opacity: 1;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #9b42f5 0%, #2ee0ff 100%);
    box-shadow:
        0 6px 32px rgba(138, 43, 226, 0.8),
        0 0 50px rgba(0, 212, 255, 0.55),
        0 0 80px rgba(138, 43, 226, 0.2);
    transform: translateY(-2px) scale(1.03);
}

/* ---- Success CTA Button (Neon Emerald Green) ---- */
.btn-success {
    background: linear-gradient(135deg, #00e676 0%, #00b359 100%);
    color: #020b06;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 4px 22px rgba(0, 230, 118, 0.5),
        0 0 12px rgba(0, 230, 118, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1aff87 0%, #00cc66 100%);
    box-shadow:
        0 6px 32px rgba(0, 230, 118, 0.85),
        0 0 50px rgba(0, 230, 118, 0.55);
    transform: translateY(-2px) scale(1.03);
}

/* ---- Outline / Glass Interactive Button ---- */
.btn-outline {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #e8ecf4;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.18);
    border-color: #00e5ff;
    color: #00f0ff;
    box-shadow:
        0 0 24px rgba(0, 212, 255, 0.55),
        0 0 6px rgba(0, 212, 255, 0.25),
        inset 0 0 14px rgba(0, 212, 255, 0.18);
    transform: translateY(-2px) scale(1.02);
}

/* ---- Danger / Delete / Logout Action Button ---- */
.btn-danger,
.logout-btn {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.5);
    color: #ff5e6c;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.15);
}

.btn-danger:hover,
.logout-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: #ff6b7a;
    color: #ffffff;
    box-shadow: 0 0 28px rgba(255, 71, 87, 0.65), 0 0 8px rgba(255, 71, 87, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* ---- Shimmer Sheen Animation (CTA sweep highlight) ---- */
.btn-shimmer::after,
.glow-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: rotate(25deg);
    transition: none;
    animation: btnShimmerSweep 3.2s infinite;
    pointer-events: none;
}

@keyframes btnShimmerSweep {
    0% { left: -60%; }
    28%, 100% { left: 140%; }
}

/* ---- Pulse Glow for important CTAs ---- */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 4px 22px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 38px rgba(0, 212, 255, 0.9), 0 6px 32px rgba(123, 47, 255, 0.6);
        transform: translateY(-1px);
    }
}

.glow-btn {
    animation: pulseGlow 2.8s ease-in-out infinite;
}

/* ---- Dynamic Ripple Click Effect ---- */
.btn-ripple-wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out forwards;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(0, 212, 255, 0.2) 100%);
    pointer-events: none;
    z-index: 5;
}

@keyframes rippleAnimation {
    0% {
        transform: scale(0);
        opacity: 0.9;
    }
    60% {
        opacity: 0.35;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glow flash overlay on click */
.btn-click-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(0, 240, 255, 0.55), transparent 70%);
    opacity: 0;
    animation: clickGlowFlash 0.45s ease-out forwards;
    pointer-events: none;
    z-index: 4;
}

@keyframes clickGlowFlash {
    0% { opacity: 0.9; }
    100% { opacity: 0; }
}

/* ---- Button Sizing Utilities ---- */
.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.full-width {
    width: 100%;
}

/* ---- Processing / Loading State ---- */
.btn.btn-processing {
    pointer-events: none;
    opacity: 0.92;
    background: linear-gradient(135deg, #0077ff, #7b2fff) !important;
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.65) !important;
    color: #ffffff !important;
}

.btn-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    margin-right: 2px;
}

/* ---- Success Flash State ---- */
.btn.btn-success-flash {
    background: linear-gradient(135deg, #00e676, #00b359) !important;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.9), 0 0 12px rgba(0, 230, 118, 0.5) !important;
    color: #020b06 !important;
    animation: successPop 0.35s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0.96); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* ---- Disabled State ---- */
.btn:disabled,
.btn.disabled {
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(0.4);
    cursor: not-allowed;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.badge-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.badge-accent {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.subject-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.subject-badge.dmgt { background: rgba(0, 212, 255, 0.15); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.4); }
.subject-badge.adsa { background: rgba(123, 47, 255, 0.15); color: #c084fc; border: 1px solid rgba(123, 47, 255, 0.4); }
.subject-badge.oopj { background: rgba(255, 159, 67, 0.15); color: #ff9f43; border: 1px solid rgba(255, 159, 67, 0.4); }
.subject-badge.python { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.4); }

/* Skill Tags */
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: #e2e8f0;
}

.skill-tag button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
}

.skill-tag button:hover { color: #ff4757; }

.skill-tag.tag-green { background: rgba(0, 230, 118, 0.12); border-color: rgba(0, 230, 118, 0.35); color: #00e676; }
.skill-tag.tag-red { background: rgba(255, 71, 87, 0.12); border-color: rgba(255, 71, 87, 0.35); color: #ff4757; }
.skill-tag.tag-purple { background: rgba(123, 47, 255, 0.12); border-color: rgba(123, 47, 255, 0.35); color: #c084fc; }

/* =============== CINEMATIC OPENING INTRO (9 SCENES) =============== */
.cinematic-intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    background: #020408;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    color: #f1f5f9;
    user-select: none;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
}

.cinematic-intro-container.fade-out {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(10px);
    pointer-events: none;
}

#cinematic-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Anamorphic letterbox border accents */
.cinematic-letterbox {
    position: absolute;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, rgba(2, 4, 8, 0.85) 0%, rgba(2, 4, 8, 0.2) 100%);
    pointer-events: none;
    z-index: 10;
}

.letterbox-top {
    top: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.letterbox-bottom {
    bottom: 0;
    background: linear-gradient(0deg, rgba(2, 4, 8, 0.85) 0%, rgba(2, 4, 8, 0.2) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.08);
}

/* Top Cinematic HUD Controls */
.cinematic-top-controls {
    position: absolute;
    top: 22px;
    left: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
    pointer-events: auto;
}

.cinematic-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #94a3b8;
    backdrop-filter: blur(10px);
}

.cinematic-badge-tag .live-dot {
    width: 7px;
    height: 7px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00e676;
    animation: liveDotPulse 1.8s infinite;
}

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

.cinematic-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cinematic-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.cinematic-ctrl-btn:hover {
    border-color: rgba(0, 212, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
    transform: translateY(-1px);
}

.cinematic-ctrl-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #00d4ff;
}

.cinematic-ctrl-btn.skip-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(123, 47, 255, 0.18));
    border-color: rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

.cinematic-ctrl-btn.skip-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(123, 47, 255, 0.35));
    border-color: #00d4ff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.skip-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.cinematic-ctrl-btn.skip-btn:hover .skip-arrow {
    transform: translateX(3px);
}

/* Scene Container & Layers */
.cinematic-scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.cinematic-scene-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cinematic-scene-layer.active {
    opacity: 1;
    pointer-events: auto;
}

/* Scene HUD Corners */
.scene-hud-corner {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(0, 212, 255, 0.45);
    pointer-events: none;
}

.corner-tl { top: 72px; left: 36px; }
.corner-br { bottom: 44px; right: 36px; }

/* Scene 2 Caption */
.scene-2-caption {
    position: absolute;
    bottom: 80px;
    text-align: center;
    animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scene-2-caption .caption-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.scene-2-caption h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f1f5f9;
}

/* Scene 3 Floating HUD Tags */
.hud-floating-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(14px);
    text-align: left;
    max-width: 320px;
    animation: hudTagFloat 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 10;
}

.tag-skills {
    top: 22%;
    left: 8%;
    border-left: 3px solid #00d4ff;
    animation-delay: 0.1s;
}

.tag-eligibility {
    top: 22%;
    right: 8%;
    border-right: 3px solid #00e676;
    animation-delay: 0.4s;
}

.tag-experience {
    bottom: 24%;
    left: 8%;
    border-left: 3px solid #7b2fff;
    animation-delay: 0.7s;
}

.tag-education {
    bottom: 24%;
    right: 8%;
    border-right: 3px solid #ffd700;
    animation-delay: 1.0s;
}

@keyframes hudTagFloat {
    0% { opacity: 0; transform: translateY(18px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hud-icon {
    font-size: 20px;
}

.hud-tag-body {
    display: flex;
    flex-direction: column;
}

.hud-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #00d4ff;
}

.hud-val {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    margin-top: 2px;
}

.scan-status-bar {
    position: absolute;
    bottom: 64px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #00e676;
    letter-spacing: 1px;
}

.scan-pulse-dot {
    width: 6px;
    height: 6px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00e676;
    animation: liveDotPulse 1.2s infinite;
}

/* Scene 4 Pipeline Header */
.scene-pipeline-header {
    position: absolute;
    top: 15%;
    text-align: center;
    animation: fadeInSlideUp 0.6s ease forwards;
}

.pipeline-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #00d4ff;
    margin-bottom: 8px;
}

.scene-pipeline-header h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8fafc;
    margin-bottom: 8px;
}

.pipeline-breadcrumb {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.pipeline-breadcrumb span {
    color: #00d4ff;
    font-weight: 700;
}

/* Scene 5 B-Tree Header */
.scene-btree-header {
    position: absolute;
    top: 13%;
    text-align: center;
    animation: fadeInSlideUp 0.6s ease forwards;
}

.btree-metric-pill {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(123, 47, 255, 0.18);
    border: 1px solid rgba(123, 47, 255, 0.4);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #c084fc;
    margin-bottom: 8px;
}

.btree-metric-pill .metric-accent {
    color: #00e676;
}

.scene-btree-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 6px;
}

.btree-subtitle {
    font-size: 13px;
    color: #94a3b8;
}

/* Scene 6 AI Screening Core */
.scene-core-header {
    position: absolute;
    bottom: 12%;
    text-align: center;
    animation: fadeInSlideUp 0.6s ease forwards;
}

.telemetry-tags-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.telemetry-pill {
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #38bdf8;
}

.analyzing-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    margin-bottom: 6px;
}

.analyzing-sub {
    font-size: 13px;
    color: #94a3b8;
}

/* Scene 7 Score Reveal */
.scene-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: scoreCardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scoreCardReveal {
    0% { transform: scale(0.7) translateY(20px); opacity: 0; filter: blur(12px); }
    100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

.score-demo-badge {
    padding: 5px 14px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.score-big-number {
    font-size: 88px;
    font-weight: 900;
    font-family: var(--font-mono);
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #00e676 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(0, 230, 118, 0.5);
    margin-bottom: 12px;
    animation: scoreNumberPulse 1.8s ease-in-out infinite;
}

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

.score-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: rgba(0, 230, 118, 0.18);
    border: 1px solid #00e676;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #00e676;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.35);
    margin-bottom: 14px;
}

.score-explain {
    font-size: 13px;
    color: #94a3b8;
    max-width: 440px;
}

/* Scene 8 & 9 Title & Final Hero Moment */
.scene-title-container,
.scene-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 820px;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.hero-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(123, 47, 255, 0.18);
    border: 1px solid rgba(123, 47, 255, 0.45);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #c084fc;
    margin-bottom: 18px;
    box-shadow: 0 0 20px rgba(123, 47, 255, 0.25);
    animation: fadeInSlideUp 0.6s ease forwards;
}

.hero-cinematic-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-cinematic-title .title-word {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #7b2fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    animation: titleWordReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cinematic-title .word-1 { animation-delay: 0.15s; }
.hero-cinematic-title .word-2 { animation-delay: 0.38s; }
.hero-cinematic-title .word-3 { animation-delay: 0.60s; }

.hero-cinematic-title.hero-active .title-word {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: none;
}

@keyframes titleWordReveal {
    0% { opacity: 0; transform: translateY(28px) scale(0.92); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Horizontal Light Sweep */
.hero-light-sweep {
    position: relative;
    width: 280px;
    height: 3px;
    margin: 8px auto 18px auto;
    background: linear-gradient(90deg, transparent, #00d4ff, #00e676, transparent);
    box-shadow: 0 0 16px #00d4ff, 0 0 28px rgba(0, 230, 118, 0.7);
    border-radius: 2px;
    animation: sweepBeamExpand 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sweepBeamExpand {
    0% { width: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { width: 340px; opacity: 0.85; }
}

.hero-cinematic-subtitle {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 500;
    color: #38bdf8;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
    animation: fadeInSlideUp 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-description {
    font-size: 14px;
    color: #94a3b8;
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 28px;
    animation: fadeInSlideUp 0.8s 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    animation: fadeInSlideUp 0.8s 1.0s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.explore-hero-btn {
    padding: 14px 34px !important;
    font-size: 15px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45) !important;
}

.explore-hero-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 44px rgba(0, 212, 255, 0.65) !important;
}

.workflow-hero-btn {
    padding: 14px 26px !important;
    font-size: 15px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    color: #e2e8f0 !important;
}

.workflow-hero-btn:hover {
    background: rgba(0, 212, 255, 0.12) !important;
    border-color: #00d4ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

.hero-meta-footer {
    font-size: 12px;
    font-family: var(--font-mono);
    color: #64748b;
    letter-spacing: 0.5px;
    animation: fadeInSlideUp 0.8s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInSlideUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Workflow Modal Body */
.workflow-modal-body {
    padding: 18px 0;
    max-height: 65vh;
    overflow-y: auto;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.workflow-step-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.25s ease;
}

.workflow-step-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.workflow-step-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: #00e676;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.workflow-step-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.workflow-step-card p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.login-replay-intro-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #00d4ff;
    text-decoration: none;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-replay-intro-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00d4ff;
    transform: translateY(-1px);
}

/* =============== PREMIUM LOGIN EXPERIENCE =============== */
.login-experience {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: radial-gradient(ellipse at 50% 40%, #0d1527 0%, #050811 100%);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.login-experience.exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

#particle-canvas-login {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.login-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 1;
}

/* 1. INTRO OPENING ANIMATION SCREEN */
.intro-screen {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 620px;
    padding: 24px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-screen.fade-out {
    opacity: 0;
    transform: scale(0.94);
    pointer-events: none;
}

.intro-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 26px auto;
}

.intro-resume-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.45));
    animation: iconFloat 3.5s ease-in-out infinite;
}

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

.laser-scanner {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00e676 50%, transparent);
    box-shadow: 0 0 12px #00e676, 0 0 24px rgba(0, 230, 118, 0.8);
    border-radius: 2px;
    animation: laserSweep 1.6s ease-in-out infinite alternate;
    z-index: 5;
}

@keyframes laserSweep {
    0% { top: 18px; opacity: 0.2; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 96px; opacity: 0.2; }
}

.intro-ai-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.intro-ai-ring.ring-outer {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px dashed rgba(0, 212, 255, 0.45);
    animation: spin 16s linear infinite;
}

.intro-ai-ring.ring-inner {
    top: -22px;
    left: -22px;
    right: -22px;
    bottom: -22px;
    border: 1px dotted rgba(123, 47, 255, 0.4);
    animation: spinReverse 24s linear infinite;
}

.intro-ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: corePulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.9; }
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }

.intro-text-wrapper {
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes textRevealUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

.intro-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.intro-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 22px;
}

.intro-loader-bar {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.intro-loader-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7b2fff, #00e676);
    animation: loaderFill 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    50% { width: 65%; }
    100% { width: 100%; }
}

/* 2. LOGIN CARD CONTAINER */
.login-card-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.login-card {
    max-width: 440px;
    width: 100%;
    padding: 34px 30px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 212, 255, 0.14);
    animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7b2fff, #00e676);
}

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.login-card.shake {
    animation: cardShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes cardShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

.login-card-header {
    text-align: center;
    margin-bottom: 22px;
}

.login-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.login-main-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.login-portal-subtitle {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    margin-bottom: 16px;
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
    animation: fadeIn 0.3s ease;
}

.login-alert.success {
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.4);
    color: #00e676;
}

.login-form-group {
    margin-bottom: 16px;
}

.login-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 6px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-input-field {
    width: 100%;
    padding: 11px 40px 11px 36px;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-main);
    transition: all 0.25s ease;
    outline: none;
}

.login-input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
    background: rgba(10, 14, 23, 0.95);
}

.pwd-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.pwd-toggle-btn:hover {
    color: var(--primary);
}

.login-extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin: 14px 0 18px 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-pwd-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-pwd-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.login-btn {
    position: relative;
    padding: 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

.login-btn:hover {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.65);
}

.login-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #050a14;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider span {
    padding: 0 10px;
}

.demo-login-btn {
    padding: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.demo-credentials-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px dashed rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.demo-credentials-pill:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.demo-credentials-pill code {
    font-family: var(--font-mono);
    color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 3. POST-LOGIN WELCOME MODAL */
.post-login-welcome {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    animation: fadeIn 0.4s ease forwards;
}

.welcome-card {
    max-width: 440px;
    width: 100%;
    padding: 36px 30px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 230, 118, 0.15);
    text-align: center;
}

.welcome-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px auto;
    background: rgba(0, 230, 118, 0.15);
    border: 2px solid #00e676;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.welcome-check {
    font-size: 28px;
    color: #00e676;
    font-weight: 900;
}

.welcome-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.welcome-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.welcome-checklist {
    text-align: left;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.welcome-step.done {
    color: var(--text-primary);
}

.welcome-step.done .wstep-icon {
    color: #00e676;
}

.welcome-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.welcome-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00e676);
    transition: width 0.35s ease;
}

/* User Profile in Top Navbar */
.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 212, 255, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    margin-left: 4px;
}

.user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: statusPulse 2s infinite;
}

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

.user-name-label {
    font-size: 12px;
    font-weight: 700;
    color: #e8ecf4;
}

.logout-btn {
    border-color: rgba(255, 71, 87, 0.45);
    color: #ff5e6c;
    margin-left: 4px;
    box-shadow: 0 0 6px rgba(255, 71, 87, 0.15);
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.22);
    border-color: #ff6b7a;
    color: #ffffff;
    box-shadow: 0 0 22px rgba(255, 71, 87, 0.55);
    transform: translateY(-1px);
}

/* =============== TOP NAVBAR =============== */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    margin: 10px 16px 0 16px;
    border-radius: var(--radius-lg);
    gap: 16px;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-text {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.job-role-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.switcher-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.job-select-input {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-main);
    outline: none;
    cursor: pointer;
}

.job-select-input option {
    background: #0f172a;
    color: #e2e8f0;
}

.top-nav-center {
    flex: 1;
    max-width: 380px;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 13px;
    pointer-events: none;
}

.global-search-input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: #e2e8f0;
    font-size: 12px;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.2s;
}

.global-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e2e8f0;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.icon-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.45), inset 0 0 8px rgba(0, 212, 255, 0.12);
    transform: translateY(-1px) scale(1.05);
    color: #00f0ff;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* =============== APP BODY LAYOUT =============== */
.app-body {
    display: flex;
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
    padding: 16px;
    gap: 16px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 10px 12px 4px 12px;
    margin-top: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    user-select: none;
}

.nav-item:hover {
    background: rgba(0, 212, 255, 0.12);
    color: #00f0ff;
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.15);
}

.nav-item:active {
    transform: scale(0.97) translateX(2px) !important;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.22) 0%, rgba(123, 47, 255, 0.16) 100%);
    border: 1px solid rgba(0, 212, 255, 0.55);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.3), inset 0 0 12px rgba(0, 212, 255, 0.12);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
}

.nav-item .nav-icon {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.25);
}

.sidebar-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Filter Bar & Interactive Filter Buttons */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    align-items: center;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-main);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.filter-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00e5ff;
    border-color: #00d4ff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #00e5ff 0%, #0077ff 100%);
    color: #030814;
    font-weight: 800;
    border-color: transparent;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.7);
    transform: scale(1.03);
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

.page {
    display: none;
    animation: fadeIn 0.35s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* =============== STATS GRID =============== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue { background: rgba(0, 212, 255, 0.15); border: 1px solid rgba(0, 212, 255, 0.3); }
.stat-icon.green { background: rgba(0, 230, 118, 0.15); border: 1px solid rgba(0, 230, 118, 0.3); }
.stat-icon.red { background: rgba(255, 71, 87, 0.15); border: 1px solid rgba(255, 71, 87, 0.3); }
.stat-icon.purple { background: rgba(123, 47, 255, 0.15); border: 1px solid rgba(123, 47, 255, 0.3); }
.stat-icon.gold { background: rgba(255, 215, 0, 0.15); border: 1px solid rgba(255, 215, 0, 0.3); }

.stat-value {
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
}

.stat-unit {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* =============== DATA STRUCTURE INSPECTOR (Feature #13) =============== */
.ds-inspector-card {
    padding: 18px 20px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.inspector-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.inspector-metric {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inspector-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.inspector-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

/* =============== AI RECRUITER INSIGHTS (Feature #15) =============== */
.insights-panel {
    padding: 18px 20px;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--primary);
}

.insight-icon { font-size: 20px; }

.insight-text {
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.5;
}

/* =============== BEFORE VS AFTER (Feature #16) =============== */
.before-after-card {
    padding: 18px 20px;
}

.before-after-grid {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.ba-col {
    flex: 1;
    padding: 14px 16px;
    border-radius: var(--radius-md);
}

.before-col {
    background: rgba(255, 71, 87, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.25);
}

.after-col {
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.ba-header {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ba-header.red { color: var(--danger); }
.ba-header.green { color: var(--success); }

.ba-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
}

.ba-arrow {
    font-size: 24px;
    color: var(--primary);
    font-weight: 900;
}

/* =============== SCREENING PIPELINE =============== */
.pipeline-section {
    margin: 24px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.pipeline {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.pipeline-step {
    flex: 1;
    min-width: 140px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
}

.pipeline-step:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.step-icon { font-size: 22px; margin-bottom: 6px; }
.step-label { font-size: 12px; font-weight: 800; color: #f8fafc; }
.step-desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.pipeline-arrow { color: var(--primary); font-size: 18px; font-weight: bold; }

/* =============== RECENT CANDIDATES GRID =============== */
.recent-candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.recent-card {
    padding: 14px;
    cursor: pointer;
}

.recent-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* =============== SCREEN CANDIDATES FORM =============== */
.screen-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.screen-card {
    padding: 20px;
}

.sub-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.input-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #e2e8f0;
    padding: 10px 12px;
    font-size: 12px;
    font-family: var(--font-main);
    resize: vertical;
    outline: none;
}

.input-textarea:focus { border-color: var(--primary); }

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #e2e8f0;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-main);
    outline: none;
}

.input-field:focus { border-color: var(--primary); }

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 40px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-add-row {
    display: flex;
    gap: 8px;
}

.criteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.criteria-item label, .form-group label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.candidate-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* =============== TABLES & LEADERBOARDS =============== */
.table-container {
    overflow-x: auto;
    padding: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.data-table tr:hover td {
    background: rgba(0, 212, 255, 0.04);
}

.score-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
}

.score-pill.score-high { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.4); }
.score-pill.score-medium { background: rgba(255, 159, 67, 0.15); color: #ff9f43; border: 1px solid rgba(255, 159, 67, 0.4); }
.score-pill.score-low { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.4); }

.status-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 11px;
    font-family: var(--font-main);
    outline: none;
    cursor: pointer;
}

.filter-bar {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #050a14;
    border-color: var(--primary);
    font-weight: 700;
}

/* =============== RESUME COMPARISON MATRIX (Feature #2) =============== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.comparison-col {
    position: relative;
    padding: 18px;
}

.comparison-col.winner-card {
    border-color: #00e676;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.2);
}

.winner-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(135deg, #00e676, #00b0ff);
    color: #050a14;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
}

.compare-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.compare-label { color: var(--text-secondary); }
.compare-val { font-weight: 700; color: #f1f5f9; }
.compare-val.val-winner { color: #00e676; text-shadow: 0 0 8px rgba(0, 230, 118, 0.5); }

/* =============== B-TREE PAGE =============== */
.btree-controls {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-row {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 260px;
}

.btree-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 12px 18px;
    margin-bottom: 16px;
}

.btree-stat-label { font-size: 12px; color: var(--text-secondary); }
.btree-stat-value { font-size: 14px; font-weight: 700; color: var(--primary); font-family: var(--font-mono); }

.btree-canvas-container {
    position: relative;
    padding: 16px;
    border-radius: var(--radius-lg);
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btree-search-result {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.btree-search-result.found {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.btree-search-result.not-found {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.btree-explanation ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #cbd5e1;
}

/* =============== FIT SCORE & SKILL GAP PAGE =============== */
.candidate-select-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.candidate-select-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: all 0.2s;
}

.candidate-select-btn:hover, .candidate-select-btn.selected {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.12);
}

.fitscore-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
}

.fitscore-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    max-height: 180px;
    overflow-y: auto;
}

.keyword-tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: #e2e8f0;
}

.keyword-tag.blue { background: rgba(0, 212, 255, 0.1); border-color: rgba(0, 212, 255, 0.3); color: #00d4ff; }
.keyword-tag.green { background: rgba(0, 230, 118, 0.1); border-color: rgba(0, 230, 118, 0.3); color: #00e676; }
.keyword-tag.red { background: rgba(255, 71, 87, 0.1); border-color: rgba(255, 71, 87, 0.3); color: #ff4757; }

.score-card-main {
    padding: 20px;
    text-align: center;
}

.score-ring-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 16px auto;
}

.score-ring { width: 100%; height: 100%; }

.score-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.score-value {
    font-size: 34px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
}

.score-label {
    display: block;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
    font-size: 12px;
    margin-top: 10px;
}

.breakdown-item {
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
}

.breakdown-item span:last-child {
    font-weight: 700;
    color: var(--primary);
}

/* =============== ARCHITECTURE FLOWCHART (Feature #17) =============== */
.arch-flow-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 8px;
}

.arch-node {
    flex: 1;
    min-width: 130px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    padding: 14px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.arch-node:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.arch-node-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.arch-node-title {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 4px;
}

.arch-node-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.arch-node.dmgt-node { border-top: 3px solid #00d4ff; }
.arch-node.adsa-node { border-top: 3px solid #7b2fff; }
.arch-node.oopj-node { border-top: 3px solid #ff9f43; }
.arch-node.py-node { border-top: 3px solid #00e676; }

.arch-arrow { font-size: 16px; color: var(--primary); font-weight: bold; }

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.faculty-card {
    padding: 16px;
}

.faculty-card h4 {
    margin: 8px 0 6px 0;
    font-size: 14px;
    color: #ffffff;
}

.faculty-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============== WORKFLOW & TECH CARDS =============== */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
}

.step-number {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--primary);
    width: 50px;
}

.step-content h3 { font-size: 16px; margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.step-visual { font-size: 32px; margin-left: auto; }

.workflow-connector {
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    margin-left: 48px;
}

.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.tech-card {
    padding: 20px;
}

.tech-badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-mono);
}

.tech-detail code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--primary);
    margin-top: 10px;
    font-family: var(--font-mono);
    overflow-x: auto;
}

.oop-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.oop-class {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.class-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
}

.oop-class pre {
    padding: 10px;
    margin: 0;
    font-size: 11px;
    font-family: var(--font-mono);
    color: #e2e8f0;
    overflow-x: auto;
}

/* =============== DECISION TRACE TIMELINE (Feature #11) =============== */
.trace-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 20px;
    border-left: 2px dashed rgba(0, 212, 255, 0.3);
    margin: 16px 0 16px 14px;
}

.trace-step-item {
    position: relative;
}

.trace-step-marker {
    position: absolute;
    left: -29px;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trace-step-marker.success { border-color: #00e676; background: rgba(0, 230, 118, 0.2); }
.trace-step-marker.failed { border-color: #ff4757; background: rgba(255, 71, 87, 0.2); }

.trace-step-body {
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

/* =============== DEVELOPER TERMINAL DRAWER (Feature #14) =============== */
.terminal-drawer {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 480px;
    height: 320px;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 90;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
    flex: 1;
    padding: 10px 14px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    color: #00e676;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-time { color: #64748b; margin-right: 6px; }
.terminal-msg { color: #e2e8f0; }

/* =============== NOTIFICATION DRAWER (Feature #10) =============== */
.notification-drawer {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 360px;
    max-height: 480px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    z-index: 90;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.25s ease;
}

.notif-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.notif-item.success { border-left-color: #00e676; }
.notif-item.warning { border-left-color: #ff9f43; }
.notif-item.danger { border-left-color: #ff4757; }

/* =============== MODALS =============== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

.modal.modal-lg {
    max-width: 820px;
}

/* Presentation Mode */
.presentation-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #060911 100%);
    z-index: 110;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.pres-close {
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
}

.pres-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pres-slide-content {
    max-width: 800px;
    width: 100%;
}

.pres-slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.pres-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.pres-card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 8px;
}

.pres-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.pres-counter {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    font-size: 12px;
    color: #f8fafc;
    animation: toastSlideIn 0.3s ease;
}

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

.toast.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s;
}

.toast-success { border-left: 4px solid #00e676; }
.toast-error { border-left: 4px solid #ff4757; }
.toast-info { border-left: 4px solid #00d4ff; }

/* Processing Overlay (2-Minute Quick Demo) */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 105;
}

.processing-content {
    text-align: center;
    padding: 30px 40px;
    max-width: 480px;
    width: 90%;
}

.processing-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

.processing-text {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
}

/* Report Styles */
.report-page {
    color: #e2e8f0;
}

.report-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
}

.report-label { color: var(--text-secondary); }
.report-value { font-weight: 600; }

.report-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.report-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-section h3 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
}

/* =============== RESPONSIVE STYLING =============== */
@media (max-width: 1024px) {
    .app-body { flex-direction: column; }
    .sidebar { width: 100%; }
    .screen-layout { grid-template-columns: 1fr; }
    .fitscore-layout { grid-template-columns: 1fr; }
    .terminal-drawer { width: calc(100% - 32px); }
}

@media print {
    body * { visibility: hidden; }
    #report-modal, #report-modal * { visibility: visible; }
    #report-modal { position: absolute; left: 0; top: 0; width: 100%; background: #ffffff !important; color: #000000 !important; }
    .btn, .sidebar, .top-navbar, .terminal-drawer { display: none !important; }
}
