/* ============================================================
   BIOKINETIC AI - ATHLETIC BIOMECHANICS DESIGN SYSTEM
   Modern Dark Sportswear / Kinetic Vision Aesthetic
   ============================================================ */

:root {
    --bg-main: #0a0d14;
    --bg-surface: #121826;
    --bg-surface-elevated: #1a2336;
    --bg-card: rgba(22, 30, 47, 0.75);
    
    --primary: #00f59b;
    --primary-hover: #00d684;
    --primary-glow: rgba(0, 245, 155, 0.35);
    --primary-dark: #065f46;
    
    --accent-cyan: #00d2ff;
    --accent-cyan-glow: rgba(0, 210, 255, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 245, 155, 0.25);
    
    --danger: #ff3366;
    --danger-glow: rgba(255, 51, 102, 0.3);
    --warning: #f59e0b;
    --success: #10b981;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-digit: 'Orbitron', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px var(--primary-glow);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 245, 155, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(0, 210, 255, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   NAVBAR & HEADER
   ============================================================ */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #00f59b 0%, #0099ff 100%);
    color: #051410;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    font-family: var(--font-digit);
}

.brand-title .highlight {
    color: var(--primary);
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    font-weight: 500;
}

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

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(0, 245, 155, 0.1);
    border: 1px solid var(--border-accent);
}

.nav-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 245, 155, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

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

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

/* ============================================================
   MAIN CONTENT & LAYOUT
   ============================================================ */
.main-content {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Flash alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
    position: relative;
    backdrop-filter: blur(8px);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.12);
    border: 1px solid rgba(255, 51, 102, 0.35);
    color: #ff99bb;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover { opacity: 1; }

/* ============================================================
   HERO / HOME PAGE
   ============================================================ */
.hero-banner {
    text-align: center;
    padding: 3rem 1rem 3.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 245, 155, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 70%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Mode Selection Cards */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 1rem;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 245, 155, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.mode-card.primary-mode:hover::before {
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.mode-card.secondary-mode:hover::before {
    background: linear-gradient(90deg, var(--accent-cyan), #818cf8);
}

.mode-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.mode-badge {
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: rgba(0, 245, 155, 0.12);
    color: var(--primary);
}

.mode-badge.desktop-badge {
    background: rgba(0, 210, 255, 0.12);
    color: var(--accent-cyan);
}

.mode-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.mode-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.mode-specs {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mode-specs li {
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mode-specs li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================================
   BUTTONS & FORM ELEMENTS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00f59b 0%, #00c77b 100%);
    color: #051410;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1affaa 0%, #00db88 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
}

/* Inputs & Form Groups */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.form-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #141c2c;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Drag and Drop Zone */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary);
    background: rgba(0, 245, 155, 0.05);
}

.dropzone-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropzone:hover .dropzone-icon {
    color: var(--primary);
    transform: translateY(-3px);
}

.file-preview-card {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================================
   MOBILE LIVE RECORDER & LATERAL SILHOUETTE GUIDE
   ============================================================ */
.recorder-container {
    max-width: 680px;
    margin: 0 auto;
}

.camera-viewport-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 720px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

#video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror camera for athlete natural view */
}

/* Lateral Profile Silhouette Guide Overlay */
.silhouette-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.silhouette-svg {
    width: 75%;
    height: 85%;
    stroke: rgba(0, 245, 155, 0.45);
    stroke-width: 2;
    fill: rgba(0, 245, 155, 0.04);
    filter: drop-shadow(0 0 10px rgba(0, 245, 155, 0.3));
    transition: var(--transition);
}

.silhouette-guideline {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-accent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 12;
}

/* Countdown Overlay */
.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.2s ease;
}

.countdown-digits {
    font-family: var(--font-digit);
    font-size: 7.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
    line-height: 1;
    margin-bottom: 0.5rem;
    animation: zoomPulse 1s infinite alternate;
}

@keyframes zoomPulse {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.countdown-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Flash Signal: Screen turns NEON GREEN on DETIK KE-0 */
.countdown-overlay.signal-green {
    background: rgba(0, 245, 155, 0.95) !important;
}

.countdown-overlay.signal-green .countdown-digits {
    color: #032115 !important;
    text-shadow: 0 0 40px #fff;
    font-size: 5rem;
}

.countdown-overlay.signal-green .countdown-label {
    color: #032115 !important;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Recording Status Indicator */
.rec-live-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 51, 102, 0.5);
    z-index: 15;
}

.rec-live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
    animation: recBlink 0.8s infinite;
}

@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.rec-live-text {
    font-family: var(--font-digit);
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

/* Processing Spinner Overlay */
.processing-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 20, 0.88);
    backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-align: center;
    padding: 2rem;
}

.kinetic-spinner {
    width: 72px;
    height: 72px;
    border: 4px solid rgba(0, 245, 155, 0.15);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

/* ============================================================
   RESULT PAGE & BIOMECHANICAL REPORT
   ============================================================ */
.result-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.student-tag {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.score-hero-card {
    background: linear-gradient(135deg, rgba(26, 35, 54, 0.85) 0%, rgba(18, 24, 38, 0.95) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.score-radial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-md);
    padding: 1.75rem 1rem;
    border: 1px solid var(--border-subtle);
}

.score-num {
    font-family: var(--font-digit);
    font-size: 4.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 25px var(--primary-glow);
}

.score-denom {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.predicate-pill {
    padding: 0.35rem 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.predicate-sangat-baik {
    background: rgba(0, 245, 155, 0.2);
    color: #00f59b;
    border: 1px solid rgba(0, 245, 155, 0.4);
}

.predicate-baik {
    background: rgba(0, 210, 255, 0.2);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.4);
}

.predicate-cukup {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.predicate-kurang {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.4);
}

/* Metric Gauges Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.metric-gauge-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-gauge-card .label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.metric-gauge-card .value {
    font-family: var(--font-digit);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.metric-gauge-card .unit {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-gauge-card .badge {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    display: inline-block;
    align-self: flex-start;
}

/* Charts & AI Analysis Row */
.analysis-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
}

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

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.ai-notes-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(90deg, rgba(0, 245, 155, 0.15), rgba(0, 210, 255, 0.15));
    border: 1px solid var(--border-accent);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.ai-content {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.7;
    overflow-y: auto;
    max-height: 380px;
    padding-right: 0.5rem;
}

.ai-content h3, .ai-content h4 {
    color: #fff;
    margin: 1rem 0 0.4rem;
    font-size: 1rem;
}

.ai-content ul, .ai-content ol {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.ai-content li {
    margin-bottom: 0.35rem;
}

/* Video Replay Card */
.video-replay-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.video-player-container {
    max-width: 640px;
    margin: 1rem auto 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.video-player-container video {
    width: 100%;
    display: block;
}

/* ============================================================
   LECTURER DASHBOARD TABLE
   ============================================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-val {
    font-family: var(--font-digit);
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.25rem;
}

.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.table-toolbar {
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table th {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: #cbd5e1;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer-wrapper {
    background: #090c12;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 0.85rem;
    max-width: 440px;
}

.footer-heading {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.86rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.spec-label {
    color: #fff;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE DESIGN (MOBILE & TABLET BREAKPOINTS)
   ============================================================ */
@media (max-width: 900px) {
    .score-hero-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 640px) {
    .navbar-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-links {
        justify-content: space-around;
        width: 100%;
        overflow-x: auto;
    }
    
    .nav-badge {
        display: none;
    }
    
    .mode-grid {
        grid-template-columns: 1fr;
    }
}
