/* ==========================================================================
   CrediPulse AI - Intelligent Credit Scoring & Loan Risk Dashboard
   Design System: Modern FinTech Dark Glassmorphism
   ========================================================================== */

:root {
    --bg-base: #060b13;
    --bg-surface: #0c1424;
    --bg-card: rgba(15, 25, 45, 0.75);
    --bg-card-hover: rgba(22, 38, 68, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(16, 185, 129, 0.4);
    
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.35);
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-gold: #f59e0b;
    
    --color-good: #10b981;
    --color-good-bg: rgba(16, 185, 129, 0.12);
    --color-good-border: rgba(16, 185, 129, 0.3);
    
    --color-default: #f43f5e;
    --color-default-bg: rgba(244, 63, 94, 0.12);
    --color-default-border: rgba(244, 63, 94, 0.3);
    
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.12);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

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

    --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    --blur-glass: blur(16px);
}

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

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

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

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-hero {
    background: linear-gradient(135deg, #34d399 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 11, 19, 0.85);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

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

.logo-icon-pulse {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-badge {
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    margin-left: 0.35rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

.status-pill.pill-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
}

.status-pill.pill-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.status-pill.pill-neutral {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

.pulse-dot.pulse-amber {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

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

.btn-cloud-settings {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-cloud-settings:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-glass-focus);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
    background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 2.25rem;
}

.hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    backdrop-filter: var(--blur-glass);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glass-focus);
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.68rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glass);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

/* Sections */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.section-container {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Presets */
.preset-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass-focus);
}

/* Predictor Grid */
.predictor-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: var(--blur-glass);
    box-shadow: var(--shadow-card);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.panel-title {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.persisted-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.tag-supabase {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-memory {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.category-group.hidden {
    display: none;
}

/* Inputs & Form Controls */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.form-group label .input-val-badge {
    color: #38bdf8;
    font-family: var(--font-mono);
}

.form-input, .form-select {
    width: 100%;
    background: rgba(6, 11, 19, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--border-glass-focus);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.slider-input {
    width: 100%;
    accent-color: #10b981;
    cursor: pointer;
}

.action-bar {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Prediction Output Gauge */
.gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gauge-svg-box {
    position: relative;
    width: 180px;
    height: 180px;
}

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

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 12;
}

.gauge-fill {
    fill: none;
    stroke: #10b981;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 427;
    stroke-dashoffset: 80;
    transition: stroke-dashoffset 0.8s ease, stroke 0.4s ease;
}

.gauge-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-fico-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1;
}

.gauge-fico-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.diagnosis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-approved {
    background: var(--color-good-bg);
    border: 1px solid var(--color-good-border);
    color: #34d399;
}

.badge-rejected {
    background: var(--color-default-bg);
    border: 1px solid var(--color-default-border);
    color: #fb7185;
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.risk-level-tag {
    font-size: 0.82rem;
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.verdict-box {
    background: rgba(6, 11, 19, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.95rem;
    margin-bottom: 1.25rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    text-align: center;
}

/* Tri-Model Subcards */
.model-subcards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.model-subcard {
    background: rgba(6, 11, 19, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}

.subcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.subcard-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.subcard-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
}

.subcard-prob {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.35rem;
}

.mini-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    transition: width 0.4s ease;
}

.fill-good { background: #10b981; }
.fill-risk { background: #f43f5e; }

/* Risk Drivers */
.risk-drivers-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(6, 11, 19, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
}

.risk-item.critical { border-left: 3px solid #f43f5e; }
.risk-item.high { border-left: 3px solid #f59e0b; }
.risk-item.medium { border-left: 3px solid #38bdf8; }
.risk-item.low { border-left: 3px solid #10b981; }

.risk-icon { font-size: 1.1rem; }
.risk-title { font-weight: 600; color: var(--text-main); }
.risk-desc { color: var(--text-muted); font-size: 0.76rem; }

/* Benchmarks Grid */
.benchmarks-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

.metrics-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.data-table th {
    text-align: left;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-glass);
}

.data-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

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

/* Confusion Matrix */
.confusion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.cm-box {
    background: rgba(6, 11, 19, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}

.cm-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.cm-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.cm-cell {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.45rem;
    text-align: center;
}

.cm-cell.good { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.cm-cell.risk { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.2); }

.cm-num {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.cm-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Batch Underwriting */
.batch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dropzone-box {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(6, 11, 19, 0.4);
}

.dropzone-box:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
}

.batch-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.batch-stat-card {
    background: rgba(6, 11, 19, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}

.batch-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
}

.batch-stat-lbl {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* API Playground */
.api-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.api-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-tab.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass);
    color: #38bdf8;
}

.code-block {
    display: none;
    background: #020617;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.code-block.active {
    display: block;
}

/* Cloud Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.modal-title {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.modal-close-btn:hover { color: #ffffff; }

.test-status-box {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    line-height: 1.4;
}

.test-status-box.testing {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

.test-status-box.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.test-status-box.error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    background: var(--bg-surface);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 1024px) {
    .predictor-grid, .benchmarks-grid, .metrics-details-grid, .batch-grid {
        grid-template-columns: 1fr;
    }
    .hero-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
    .confusion-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .model-subcards-grid {
        grid-template-columns: 1fr;
    }
}
