/* ==========================================================================
   CareerCraft AI - Next-Gen ATS Suite & Resume Copilot Stylesheet
   ========================================================================== */

:root {
    --bg-base: #07090e;
    --bg-surface: #0e121b;
    --bg-surface-elevated: #141b27;
    --bg-surface-glass: rgba(16, 22, 34, 0.75);
    
    --border-subtle: #1c2436;
    --border-hover: #2e3a52;
    --border-focus: #10b981;

    --text-main: #f3f6fc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-inverse: #05070a;

    --brand-green: #10b981;
    --brand-green-glow: rgba(16, 185, 129, 0.25);
    --brand-green-hover: #34d399;
    --brand-green-subtle: rgba(16, 185, 129, 0.12);

    --accent-cyan: #06b6d4;
    --accent-cyan-subtle: rgba(6, 182, 212, 0.12);
    --accent-purple: #8b5cf6;
    --accent-purple-subtle: rgba(139, 92, 246, 0.12);
    
    --status-amber: #f59e0b;
    --status-amber-subtle: rgba(245, 158, 11, 0.12);
    --status-rose: #f43f5e;
    --status-rose-subtle: rgba(244, 63, 94, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.18);
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Ambient Ambient Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    top: -200px;
    left: 20%;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    top: 400px;
    right: -100px;
    animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.12); }
}

/* Header Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.nav-container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    box-shadow: 0 4px 12px var(--brand-green-glow);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-text .highlight {
    color: var(--brand-green);
    margin-left: 2px;
}

.badge-pill {
    background: var(--brand-green-subtle);
    color: var(--brand-green);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.btn-primary-sm {
    background: var(--brand-green);
    color: var(--text-inverse);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 10px var(--brand-green-glow);
}

.btn-primary-sm:hover {
    background: var(--brand-green-hover);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 15px 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: var(--brand-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-green);
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -0.035em;
}

.text-gradient {
    background: linear-gradient(135deg, #f5f7fc 20%, #34d399 70%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(16px, 2vw, 18px);
    max-width: 680px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

/* Preset Chips Bar */
.preset-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.preset-label {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
}

.preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.preset-chip {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.preset-chip:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: var(--brand-green-subtle);
    transform: translateY(-1px);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 18px 26px;
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 780px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-green);
}

.stat-desc {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* Main Container & Grid */
.main-container {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 1240px;
    margin: 0 auto 90px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition);
}

.panel {
    padding: 24px;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.green {
    background: var(--brand-green-subtle);
    color: var(--brand-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-box.cyan {
    background: var(--accent-cyan-subtle);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Input Mode Tabs (Paste vs Upload) */
.input-mode-tabs {
    display: flex;
    background: var(--bg-surface-elevated);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.mode-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.mode-tab.active {
    background: var(--brand-green);
    color: var(--text-inverse);
    font-weight: 700;
}

/* File Dropzone */
.dropzone {
    border: 2px dashed var(--border-hover);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 16px;
    background: rgba(16, 22, 34, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--brand-green);
    background: var(--brand-green-subtle);
}

.drop-icon {
    color: var(--brand-green);
    margin-bottom: 10px;
}

.drop-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.browse-link {
    color: var(--brand-green);
    text-decoration: underline;
}

.drop-sub {
    font-size: 12px;
    color: var(--text-dim);
}

.file-input-hidden {
    display: none;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-green);
}

.btn-icon-xs {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.btn-icon-xs:hover {
    color: var(--status-rose);
}

/* Job Quick Fill Title */
.job-quick-fill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.text-dim {
    color: var(--text-dim);
}

.input-inline {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 12px;
    padding: 4px 10px;
    outline: none;
    transition: var(--transition);
}

.input-inline:focus {
    border-color: var(--accent-cyan);
}

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

textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    outline: none;
    background: #080b12;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', monospace, sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    transition: var(--transition);
}

textarea:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px var(--brand-green-subtle);
}

textarea::placeholder {
    color: #4b5563;
}

.textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 4px;
    font-size: 12px;
    color: var(--text-dim);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}

.btn-link:hover {
    color: var(--status-rose);
    text-decoration: underline;
}

/* Action Control Bar */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 35px;
    backdrop-filter: blur(12px);
}

.action-options {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--brand-green);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: var(--text-inverse);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px var(--brand-green-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.kbd-hint {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.85;
}

/* Loading State Indicator */
.loading-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--brand-green);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

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

.loading-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.loading-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Results Section & Score Banner */
.result-dashboard {
    animation: fadeIn 0.4s ease-out;
}

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

.score-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 24px;
    background: linear-gradient(145deg, #0f1523 0%, #0a0e17 100%);
    border: 1px solid #222d42;
}

/* Circular Score Gauge */
.score-circle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: #161f2e;
}

.score-ring-fill {
    fill: none;
    stroke: var(--brand-green);
    stroke-linecap: round;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

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

.score-number {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.score-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Score Details & Quick Stats */
.score-headline-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.score-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--brand-green-subtle);
    color: var(--brand-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.score-pill.amber {
    background: var(--status-amber-subtle);
    color: var(--status-amber);
    border-color: rgba(245, 158, 11, 0.3);
}

.score-pill.rose {
    background: var(--status-rose-subtle);
    color: var(--status-rose);
    border-color: rgba(244, 63, 94, 0.3);
}

.score-details h2 {
    font-size: 22px;
}

.verdict-text {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    max-width: 650px;
    line-height: 1.5;
}

.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mini-stat {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.mini-val {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.mini-lbl {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}

.text-green { color: var(--brand-green); }
.text-amber { color: var(--status-amber); }
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }

.score-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-export {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-hover);
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-export:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: var(--brand-green-subtle);
}

.btn-export-ghost {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-export-ghost:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.dash-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.dash-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.dash-tab.active {
    background: var(--bg-surface-elevated);
    color: var(--brand-green);
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tab-pane {
    display: none;
    animation: tabFadeIn 0.25s ease-out;
}

.tab-pane.active {
    display: block;
}

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

.subpanel {
    padding: 26px;
}

.pane-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pane-title h3 {
    font-size: 19px;
}

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

/* Tab 1: Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.suggestion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    background: rgba(14, 18, 27, 0.7);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    font-size: 13.5px;
}

.suggestion-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 2px;
}

.suggestion-badge.high {
    background: var(--status-rose-subtle);
    color: var(--status-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.suggestion-badge.med {
    background: var(--status-amber-subtle);
    color: var(--status-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.suggestion-badge.good {
    background: var(--brand-green-subtle);
    color: var(--brand-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ATS Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.check-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.check-pass .check-status-icon {
    background: var(--brand-green-subtle);
    color: var(--brand-green);
}

.check-warn .check-status-icon {
    background: var(--status-amber-subtle);
    color: var(--status-amber);
}

.metric-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
}

.metric-label {
    color: var(--text-dim);
}

.metric-value {
    font-weight: 700;
    color: var(--text-main);
}

/* Tab 2: Keyword Matrix */
.keyword-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.category-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--brand-green-subtle);
    color: var(--brand-green);
    border-color: var(--brand-green);
}

.search-box {
    min-width: 200px;
}

.search-input {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 7px 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--brand-green);
}

.keyword-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 24px;
}

.keyword-col {
    background: rgba(14, 18, 27, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
}

.col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.col-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.matched-dot { background: var(--brand-green); box-shadow: 0 0 8px var(--brand-green); }
.missing-dot { background: var(--status-amber); box-shadow: 0 0 8px var(--status-amber); }

.badge-count {
    background: var(--brand-green-subtle);
    color: var(--brand-green);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.badge-count.amber {
    background: var(--status-amber-subtle);
    color: var(--status-amber);
}

.col-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.keywords-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 80px;
}

.keyword-chip {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    cursor: default;
}

.keyword-chip.matched {
    color: var(--brand-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.keyword-chip.missing {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    cursor: pointer;
}

.keyword-chip.missing:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.chip-count {
    font-size: 10px;
    opacity: 0.75;
    background: rgba(0, 0, 0, 0.25);
    padding: 1px 4px;
    border-radius: 3px;
}

.keyword-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.note {
    font-size: 12.5px;
    color: var(--text-muted);
    max-width: 700px;
}

.btn-ghost-sm {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost-sm:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

/* Tab 3: AI Bullet Rewriter */
.rewriter-input-block {
    background: rgba(14, 18, 27, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.bullet-select-row {
    margin: 10px 0 14px;
}

.styled-select {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.styled-select:focus {
    border-color: var(--brand-green);
}

.bullet-textarea {
    min-height: 90px;
    margin-bottom: 16px;
    font-size: 13.5px;
}

.rewriter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.tone-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 700;
}

.radio-pill {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.radio-pill.active {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: var(--brand-green-subtle);
}

.radio-pill input {
    display: none;
}

.rewriter-results-block {
    margin-top: 24px;
}

.results-sub {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text-main);
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.variant-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    transition: var(--transition);
}

.variant-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

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

.variant-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-green);
    text-transform: uppercase;
}

.variant-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 10px;
}

.variant-metrics {
    font-size: 11.5px;
    color: var(--text-dim);
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 30px 0;
}

.summary-gen-block {
    padding-top: 6px;
}

.generated-box {
    margin-top: 18px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-green);
}

.btn-icon-copy {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-icon-copy:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

/* Tab 4: Interview Simulator */
.interview-prep-banner {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 13px;
    color: #bae6fd;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.q-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.q-badge.tech { background: var(--accent-cyan-subtle); color: var(--accent-cyan); }
.q-badge.behavioral { background: var(--accent-purple-subtle); color: var(--accent-purple); }

.accordion-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
}

.accordion-chevron {
    font-size: 18px;
    color: var(--text-dim);
    transition: transform 0.25s ease;
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 6px;
    padding-top: 16px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.accordion-item.open .accordion-body {
    display: block;
}

.strategy-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--brand-green);
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: #d1fae5;
}

/* Tab 5: Cover Letter Generator */
.cover-letter-controls {
    margin-bottom: 20px;
}

.inputs-inline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.input-field {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

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

.cover-letter-output {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
}

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

.output-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
}

.btn-group {
    display: flex;
    gap: 8px;
}

.cover-letter-textarea {
    width: 100%;
    background: #080b12;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.7;
    min-height: 320px;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 18px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 20px 24px;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

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

.form-group-modal label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.input-helper {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 6px;
}

.api-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 8px var(--brand-green);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
}

.btn-danger-ghost {
    background: transparent;
    border: none;
    color: var(--status-rose);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-right: auto;
}

.btn-danger-ghost:hover {
    text-decoration: underline;
}

/* History List inside Modal */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.history-card:hover {
    border-color: var(--border-hover);
}

.hist-left {
    display: flex;
    flex-direction: column;
}

.hist-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.hist-date {
    font-size: 11px;
    color: var(--text-dim);
}

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

.hist-score {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-green);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-hover);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.25s ease-in 2.75s forwards;
}

.toast.success { border-color: var(--brand-green); }
.toast.warn { border-color: var(--status-amber); }
.toast.error { border-color: var(--status-rose); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(-8px); }
}

/* Footer */
.footer {
    background: #040609;
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 30px;
    color: var(--text-muted);
}

.footer-container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 6px;
    max-width: 440px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-green);
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    border-top: 1px solid #101622;
    padding-top: 24px;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
    .input-grid {
        grid-template-columns: 1fr;
    }

    .score-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .score-circle-wrapper {
        margin: 0 auto;
    }

    .score-headline-row {
        justify-content: center;
    }

    .quick-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .score-actions {
        flex-direction: row;
        justify-content: center;
    }

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

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

    .inputs-inline-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 10px 30px;
    }

    .stats-strip {
        gap: 14px;
        padding: 14px 18px;
    }

    .stat-divider {
        display: none;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary {
        justify-content: center;
        width: 100%;
    }

    .quick-stats-row {
        grid-template-columns: 1fr;
    }

    .nav-actions span {
        display: none;
    }
}

/* Print Stylesheet for PDF Export */
@media print {
    body {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .navbar, .hero, .input-grid, .action-bar, .dashboard-tabs, .modal, .toast-container, .footer, .score-actions, .btn-primary, .btn-ghost-sm, .btn-icon-copy {
        display: none !important;
    }

    .ambient-glow {
        display: none !important;
    }

    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .result-dashboard {
        display: block !important;
    }

    .tab-pane {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 24px;
    }

    .card, .subpanel, .score-banner {
        background: #ffffff !important;
        border: 1px solid #d1d5db !important;
        color: #111827 !important;
        box-shadow: none !important;
    }

    .text-gradient {
        -webkit-text-fill-color: #111827 !important;
        color: #111827 !important;
    }

    .score-number, h2, h3, h4, strong {
        color: #111827 !important;
    }

    .keyword-chip.matched {
        background: #e6f4ea !important;
        color: #137333 !important;
        border-color: #ceead6 !important;
    }

    .keyword-chip.missing {
        background: #fef7e0 !important;
        color: #b06000 !important;
        border-color: #feefc3 !important;
    }
}