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

:root {
    /* Light Theme Colors - Material 3 inspired */
    --primary-500: #6750A4;
    --primary-100: #EADDFF;
    --primary-700: #4F378B;
    --success-500: #4CAF50;
    --warning-500: #F9A825;
    --error-500: #B3261E;

    --neutral-0: #F7F2FA;
    --neutral-100: #FFFBFE;
    --neutral-200: #F3EDF7;
    --neutral-400: #E6E0EC;
    --neutral-600: #4A4458;
    --neutral-900: #1C1B1F;

    --surface-tonal: #EADDFF;
    --surface-elevated: #FFFFFF;
    --outline-color: #CAC4D0;

    /* Theme-dependent variables - default to light */
    --bg-primary: var(--neutral-100);
    --bg-secondary: var(--neutral-0);
    --bg-tertiary: #FEF7FF;
    --text-primary: var(--neutral-900);
    --text-secondary: #49454F;
    --border-color: var(--outline-color);
    --border-hover: var(--primary-500);

    /* Typography */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 64px;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --collapsed-height: 64px;
    --hero-height: 460px;
    --border-radius: 18px;
    --border-radius-sm: 10px;

    /* Shadows */
    --shadow-card: 0 10px 30px rgba(15, 15, 15, 0.08);
    --shadow-card-hover: 0 18px 40px rgba(15, 15, 15, 0.12);
    --shadow-hero: 0 25px 60px rgba(51, 51, 51, 0.2);

    /* Transitions */
    --transition-fast: all 150ms ease-in-out;
    --transition-normal: all 250ms ease-out;
    --hero-gradient: linear-gradient(135deg, #533d8b 0%, #583899 55%, #4c3082 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1C1B1F;
    --bg-secondary: #121217;
    --bg-tertiary: #1F1B24;
    --text-primary: #F5F1FF;
    --text-secondary: #CAC4D0;
    --border-color: #3A2F4A;
    --surface-elevated: #1F1B24;
    --surface-tonal: #381E72;
    --outline-color: #49454F;
    --neutral-0: #1F1B24;
    --neutral-100: #1C1B1F;
    --neutral-200: #282533;
    --neutral-400: #3A2F4A;
    --neutral-600: #D0BCFF;
    --neutral-900: #FFFFFF;
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 25px 65px rgba(0, 0, 0, 0.55);
    --shadow-hero: 0 35px 70px rgba(0, 0, 0, 0.65);
    --hero-gradient: linear-gradient(135deg, #130a24 0%, #1c1134 55%, #271744 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background: linear-gradient(180deg, rgba(103, 80, 164, 0.12) 0%, rgba(247, 242, 250, 0) 45%) fixed,
        var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: var(--transition-normal);
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

code {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.4;
}

/* Hero Header */
.hero-header {
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient);
    color: #fff;
    /* padding: var(--space-xxl) 0 var(--space-xl); */
    min-height: var(--hero-height);
    transition: var(--transition-normal);
}

.hero-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.hero-header--compact {
    padding: var(--space-xl) 0 var(--space-lg);
    min-height: 260px;
}

.hero-surface {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-top: 25px;
    padding-bottom: var(--space-xl);
}

.site-navbar {
    position: relative;
    z-index: 2000;
    padding: var(--space-md) 0 0;
    transition: var(--transition-normal);
}

.site-navbar .navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius);
    background: rgba(12, 10, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    flex-wrap: wrap;
    gap: var(--space-sm);
    color: #fff;
}

.site-navbar--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    animation: navbarDrop 0.35s ease forwards;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.site-navbar--fixed .navbar-content {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-lg);
}

.site-navbar--fixed .md-icon-button {
    border-color: var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.site-navbar--fixed .brand-label {
    color: var(--text-primary);
}

.site-navbar--fixed .brand-copy small {
    color: var(--text-secondary);
}

[data-theme="dark"] .site-navbar--fixed {
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .site-navbar--fixed .md-icon-button {
    border-color: rgba(255, 255, 255, 0.25);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.navbar-placeholder {
    height: var(--collapsed-height);
    display: none;
}

.site-navbar--fixed+.navbar-placeholder {
    display: block;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.brand-mark--small {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-logo--small {
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 12px;
}

.brand-logo--xs {
    width: 28px;
    height: 28px;
    padding: 3px;
    border-radius: 10px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-copy p,
.brand-copy small {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.brand-label--short {
    display: none;
}

@media (max-width: 640px) {
    .site-navbar .navbar-content {
        padding: var(--space-xs) var(--space-md);
    }

    .navbar-brand {
        gap: var(--space-xs);
    }

    .navbar-brand .brand-logo {
        width: 36px;
        height: 36px;
        padding: 4px;
        border-radius: 12px;
    }

    .navbar-right {
        gap: var(--space-xs);
    }

    .navbar-right .md-icon-button {
        width: 38px;
        height: 38px;
    }

    .navbar-right .md-icon-button i {
        font-size: 18px;
    }

    .navbar-brand .brand-copy {
        gap: 2px;
    }

    .navbar-brand .brand-label {
        font-size: 14px;
    }

    .navbar-brand .brand-copy small {
        font-size: 11px;
    }

    .brand-label--long {
        display: none;
    }

    .brand-label--short {
        display: inline;
    }
}

.md-icon-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.md-icon-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.hero-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    color: #fff;
}

.hero-chip-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-chip--primary {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-chip--tonal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.hero-intro h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin: 0;
}

.hero-slogan {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.92);
    max-width: 520px;
    line-height: 1.5;
}

.hero-kicker {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.hero-metrics div {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.15);
}

.hero-metrics span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-metrics strong {
    display: block;
    font-size: 24px;
    margin-top: 4px;
    color: #fff;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.integration-card {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.integration-card i {
    font-size: 20px;
}

.integration-card span {
    font-weight: 600;
    display: block;
}

.integration-card small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.md-button {
    border: none;
    border-radius: 24px;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    min-height: 44px;
    touch-action: manipulation;
}

.md-button--filled {
    background: #fff;
    color: #211049;
    box-shadow: var(--shadow-card);
}

.md-button--filled:hover {
    transform: translateY(-2px);
}

.md-button--tonal {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero-panel {
    display: grid;
    gap: var(--space-md);
}

.hero-card {
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-card);
    background: rgba(19, 15, 32, 0.75);
}

.hero-card-primary {
    background: rgba(33, 25, 67, 0.85);
}

.hero-card-tonal {
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-card-chip {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-sm);
}

.hero-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 26px;
    color: #fff;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-md);
}

.hero-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: var(--space-md);
}

.hero-card-stats--compact {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
}

.hero-card-stats span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

.hero-card-stats strong {
    display: block;
    font-size: 22px;
    color: #fff;
    margin-top: 4px;
}

.hero-card--globe {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.hero-status--soft {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    width: fit-content;
}

.hero-globe {
    position: relative;
    width: clamp(180px, 28vw, 240px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(80, 77, 196, 0.3)) #120c1f;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 35px 60px rgba(6, 3, 20, 0.55);
    overflow: hidden;
}

.hero-globe::after {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%);
    opacity: 0.5;
}

.globe-core {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.7), rgba(56, 189, 248, 0.2));
    filter: blur(6px);
    animation: globePulse 5s ease-in-out infinite;
}

.globe-overlay {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.6;
}

.overlay-lat {
    background: repeating-linear-gradient(rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.18) 2px,
            transparent 2px,
            transparent 20px);
    animation: globeRotate 18s linear infinite;
}

.overlay-lon {
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.12) 2px,
            transparent 2px,
            transparent 24px);
    animation: globeRotate 22s linear infinite reverse;
}

.globe-orbit {
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    border: 1px dashed rgba(125, 211, 252, 0.4);
    mix-blend-mode: screen;
    animation: orbitDrift 18s linear infinite;
}

.globe-orbit.orbit-two {
    inset: -6%;
    border-color: rgba(167, 139, 250, 0.45);
    animation-duration: 14s;
    transform: rotate(25deg);
}

.globe-signal {
    --orbit-radius: 80px;
    --speed: 12s;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.8);
    animation: signalOrbit var(--speed, 12s) linear infinite;
}

.globe-signal.signal-one {
    --orbit-radius: 90px;
    --speed: 16s;
}

.globe-signal.signal-two {
    --orbit-radius: 65px;
    --speed: 10s;
    animation-direction: reverse;
    background: #c084fc;
    box-shadow: 0 0 18px rgba(192, 132, 252, 0.9);
}

.globe-signal.signal-three {
    --orbit-radius: 50px;
    --speed: 8s;
    animation-delay: -3s;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

.hero-globe-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
}

.hero-globe-meta h3 {
    font-size: clamp(22px, 4vw, 30px);
    margin: 0;
    line-height: 1.3;
}

.hero-globe-meta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.hero-globe-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hero-globe-points li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-globe-points i {
    font-size: 16px;
    color: #7dd3fc;
}

@keyframes globePulse {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.4;
    }

    50% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@keyframes globeRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitDrift {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes signalOrbit {
    from {
        transform: rotate(0deg) translateX(var(--orbit-radius));
    }

    to {
        transform: rotate(360deg) translateX(var(--orbit-radius));
    }
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-500);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.9);
}

.hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 0;
    margin: 0;
}

.hero-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #fff;
    font-size: 15px;
}

.hero-list-item i {
    color: #B1A6FF;
    font-size: 18px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main {
    padding: var(--space-xl) 0;
    margin-top: calc(var(--collapsed-height) + var(--space-xl));
}

/* CDN Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

.stat-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    min-height: 180px;
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.stat-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-card-meta p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card-meta small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-card-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-500);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: var(--primary-500);
}

.stat-icon--upload {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.stat-icon--requests {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.stat-icon--deletes {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.stat-icon--used {
    background: linear-gradient(135deg, #10b981, #22c55e);
}

.stat-icon--total {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.stat-icon--files {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.metric-card {
    background: var(--surface-elevated);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.metric-card:hover {
    border-color: var(--primary-500);
}

.metric-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-size: 14px;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Section */
.controls-section {
    margin-bottom: var(--space-xl);
}

.controls-row {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-container i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--neutral-600);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-md) 0 44px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-400);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-ui);
    transition: var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.filters {
    display: flex;
    gap: var(--space-sm);
}

.filter-select {
    height: 40px;
    padding: 0 var(--space-md);
    background: var(--neutral-100);
    border: 1px solid var(--neutral-400);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-ui);
    color: var(--neutral-900);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-info {
    display: flex;
    gap: var(--space-lg);
    font-size: 14px;
    color: var(--neutral-600);
}

.sort-info {
    font-style: italic;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge--soft {
    background: rgba(103, 80, 164, 0.12);
    color: var(--primary-700);
}

/* Google Drive Storage Section */
.drive-section {
    margin-bottom: var(--space-xxl);
}

.drive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    align-items: stretch;
}

#driveGridExtras {
    display: contents;
}

.drive-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.drive-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.drive-card--primary {
    border-width: 2px;
}

.drive-card--ghost {
    border-style: dashed;
    color: var(--text-secondary);
}

.drive-placeholder-copy {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.drive-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.storage-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4285F4 0%, #1976D2 100%);
    color: white;
}

.storage-icon.sync {
    background: linear-gradient(135deg, #34A853 0%, #137333 100%);
}

.storage-icon i {
    font-size: 24px;
}

.drive-card-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.drive-card-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.drive-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-tonal);
    color: var(--primary-700);
    font-weight: 600;
    white-space: nowrap;
}

.storage-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.drive-usage {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.usage-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), #4facfe);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.usage-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.drive-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.drive-meta strong {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.drive-meta span {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sync-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.sync-metric {
    text-align: center;
}

.sync-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--success-500);
    margin-bottom: var(--space-xs);
}

.sync-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Assets Section */
.assets-section {
    margin-bottom: var(--space-xxl);
}

.controls {
    margin-bottom: var(--space-lg);
}

.search-box {
    position: relative;
    margin-bottom: var(--space-md);
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-btn {
    position: absolute;
    right: var(--space-xs);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-500);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: var(--primary-700);
}

.filter-pills {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px var(--space-md);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 36px;
    touch-action: manipulation;
}

.filter-pill:hover {
    border-color: var(--border-hover);
    color: var(--primary-500);
}

.filter-pill.active {
    background: var(--primary-100);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.filter-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-pill.pending {
    background: var(--primary-100);
    border-color: var(--primary-500);
    color: var(--primary-700);
    box-shadow: inset 0 0 0 1px rgba(103, 80, 164, 0.25);
}

.filter-pill i {
    font-size: 14px;
}

.filter-status {
    display: none;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    width: 100%;
}

.filter-status.active {
    display: inline-flex;
}

.filter-status i {
    font-size: 16px;
    color: var(--primary-500);
    animation: spin 1.2s linear infinite;
}

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.load-more-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.load-more-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 44px;
    touch-action: manipulation;
}

.load-more-btn:hover {
    border-color: var(--border-hover);
    color: var(--primary-500);
}

.load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.loading-indicator {
    font-size: 14px;
    color: var(--text-secondary);
    display: none;
}

.loading-indicator.active {
    display: block;
}

/* File Cards */
.file-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    transition: var(--transition-fast);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    height: 100%;
}

.file-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

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

.file-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.file-icon.image {
    background: #667eea;
}

.file-icon.document {
    background: #f093fb;
}

.file-icon.code {
    background: #4facfe;
}

.file-icon.data {
    background: #43e97b;
}

.file-icon.video {
    background: #ff9f7f;
}

.file-icon.audio {
    background: #8c54ff;
}

.file-info-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    word-break: break-word;
}

.file-meta {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview {
    width: 100%;
    height: 150px;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-preview.placeholder {
    color: var(--text-secondary);
    font-size: 32px;
    background: var(--bg-secondary);
}

.file-counter {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: rgba(16, 15, 26, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    z-index: 2;
}

.file-type-chip {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.file-type-chip.image {
    background: rgba(102, 126, 234, 0.2);
    color: #4f46e5;
}

.file-type-chip.document {
    background: rgba(240, 147, 251, 0.2);
    color: #b832d8;
}

.file-type-chip.code {
    background: rgba(79, 172, 254, 0.2);
    color: #2563eb;
}

.file-type-chip.data {
    background: rgba(67, 233, 123, 0.2);
    color: #059669;
}

.file-type-chip.video {
    background: rgba(255, 159, 127, 0.2);
    color: #ef4444;
}

.file-type-chip.audio {
    background: rgba(140, 84, 255, 0.2);
    color: #7c3aed;
}

.file-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: 0;
    width: 100%;
    justify-content: flex-start;
}

.file-action {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    text-decoration: none;
    min-width: 34px;
    min-height: 34px;
    touch-action: manipulation;
}

.file-action:hover {
    border-color: var(--border-hover);
    color: var(--primary-500);
}

.file-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.file-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--border-color);
    margin-top: auto;
}

.file-footer--actions {
    justify-content: flex-start;
}

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

/* URL Copy Component */
.url-copy {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.url-display {
    flex: 1;
    padding: var(--space-xs) var(--space-sm);
    background: var(--neutral-0);
    border: 1px dashed var(--neutral-400);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neutral-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    min-height: 36px;
    touch-action: manipulation;
}

.copy-btn:hover {
    background: var(--primary-700);
}

.copy-btn.copied {
    background: var(--success-500);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.modal-content {
    position: relative;
    margin: auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card-hover);
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-title {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--neutral-600);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--neutral-200);
    color: var(--neutral-900);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.app-footer {
    margin-top: var(--space-xxl);
    padding: var(--space-xl) 0;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand p {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-brand small {
    color: var(--text-secondary);
}

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

.footer-meta--slim {
    align-items: center;
}

.footer-credit {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    text-decoration: none;
}

.app-footer .footer-author {
    color: var(--text-primary);
}

.footer-author i {
    font-size: 16px;
}

.footer-note {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.footer-commit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-commit code {
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

.footer-commit-message {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.app-footer a {
    color: var(--primary-500);
    font-weight: 600;
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* Modal File Detail Styles */
.file-detail-header {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.file-detail-preview {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--neutral-400);
    background: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-detail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-icon.large {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.file-detail-info {
    flex: 1;
}

.file-detail-description {
    color: var(--neutral-600);
    margin: var(--space-xs) 0 var(--space-sm);
    font-size: 13px;
}

.file-detail-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 12px;
    color: var(--neutral-600);
}

.meta-item i {
    font-size: 14px;
}

.file-detail-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.detail-section {
    border-top: 1px solid var(--neutral-400);
    padding-top: var(--space-lg);
}

.detail-section:first-child {
    border-top: none;
    padding-top: 0;
}

.detail-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    color: var(--neutral-900);
    font-size: 14px;
}

.detail-section h4 i {
    font-size: 14px;
    color: var(--primary-500);
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
}

.performance-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.performance-label {
    font-size: 11px;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-900);
}

.performance-value.cached {
    color: var(--success-500);
}

.performance-value.not-cached {
    color: var(--error-500);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--neutral-0);
    border: 1px solid var(--neutral-400);
    border-radius: var(--border-radius);
    color: var(--neutral-900);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: var(--primary-100);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.action-btn i {
    font-size: 16px;
}

/* No Results State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--neutral-600);
}

.no-results i {
    font-size: 32px;
    color: var(--neutral-400);
    margin-bottom: var(--space-md);
}

.no-results--loading i {
    color: var(--primary-500);
    animation: spin 1.2s linear infinite;
}

.no-results h3 {
    margin-bottom: var(--space-xs);
    color: var(--neutral-900);
    font-size: 16px;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    color: var(--neutral-600);
    font-size: 14px;
}

.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--neutral-400);
    border-top: 2px solid var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: var(--space-sm);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes navbarDrop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: calc(var(--header-height) + var(--space-sm));
    right: var(--space-sm);
    background: var(--success-500);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-card-hover);
    z-index: 3000;
    animation: slideInRight 0.2s ease-out;
    font-size: 13px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* File Type Specific Icons */
.file-icon.audio {
    background: #ffecd2;
}

.file-icon.video {
    background: #a8edea;
}

.file-icon.archive {
    background: #d299c2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-header {
        min-height: auto;
        padding: var(--space-lg) 0;
    }

    .hero-header--compact {
        min-height: auto;
        padding: var(--space-md) 0;
    }

    .hero-surface {
        margin-top: var(--space-md);
        padding-bottom: var(--space-lg);
        gap: var(--space-lg);
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-intro {
        gap: var(--space-md);
    }

    .hero-intro h1 {
        font-size: clamp(28px, 6vw, 42px);
        line-height: 1.2;
    }

    .hero-slogan {
        font-size: clamp(16px, 4vw, 18px);
        max-width: 100%;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .hero-actions .md-button {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .hero-panel {
        display: none;
    }

    .hero-card--globe {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .hero-globe {
        width: min(240px, 80vw);
        max-width: 280px;
    }

    .hero-globe-meta {
        text-align: center;
        align-items: center;
    }

    .hero-globe-meta h3 {
        font-size: clamp(22px, 5vw, 28px);
    }

    .hero-globe-points {
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-card {
        min-height: auto;
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .stat-card-meta {
        gap: var(--space-sm);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-card-value {
        font-size: clamp(24px, 5vw, 28px);
    }

    .stat-card-meta p {
        font-size: 13px;
    }

    .stat-card-meta small {
        font-size: 11px;
    }

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

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

    .drive-card-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--space-sm);
    }

    .drive-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .drive-meta strong {
        font-size: 18px;
    }

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

    .search-box {
        margin-bottom: var(--space-sm);
    }

    .search-input {
        font-size: 16px;
        padding: 0 var(--space-md) 0 44px;
    }

    .filter-pills {
        gap: var(--space-xs);
        flex-wrap: wrap;
    }

    .filter-pill {
        font-size: 12px;
        padding: 6px var(--space-sm);
        flex: 1;
        min-width: calc(50% - var(--space-xs));
        justify-content: center;
    }

    .filter-pill i {
        font-size: 13px;
    }

    .file-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .file-card {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .file-preview {
        height: 120px;
    }

    .file-name {
        font-size: 13px;
    }

    .file-meta {
        font-size: 11px;
    }

    .file-actions {
        gap: var(--space-xs);
    }

    .file-action {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .section-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .section-info {
        flex-direction: column;
        gap: var(--space-xs);
        width: 100%;
    }

    .section-info span {
        font-size: 13px;
    }

    .sort-info {
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: var(--space-sm);
        max-height: 85vh;
    }

    .modal-header {
        padding: var(--space-md);
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-body {
        padding: var(--space-md);
        max-height: calc(85vh - 80px);
    }

    .file-detail-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .file-detail-preview {
        width: 100%;
        max-width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .file-detail-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .url-copy {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .url-display {
        width: 100%;
        font-size: 11px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .footer-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .main {
        padding: var(--space-lg) 0;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .hero-header {
        padding: var(--space-md) 0;
    }

    .hero-intro h1 {
        font-size: clamp(24px, 7vw, 36px);
    }

    .hero-slogan {
        font-size: clamp(14px, 4vw, 16px);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

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



    .filter-pill {
        min-width: calc(50% - var(--space-xs));
        font-size: 11px;
        padding: 5px var(--space-xs);
    }

    .file-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .file-card {
        max-width: 100%;
    }

    .file-preview {
        height: 180px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 0;
    }

    .modal-body {
        max-height: calc(90vh - 70px);
    }

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

/* Animations */
@media (prefers-reduced-motion: no-preference) {

    .metric-card,
    .worker-card,
    .file-card {
        animation: fadeInUp 0.4s ease-out;
    }

    .file-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .file-card:nth-child(2) {
        animation-delay: 0.15s;
    }

    .file-card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .file-card:nth-child(4) {
        animation-delay: 0.25s;
    }

    .file-card:nth-child(5) {
        animation-delay: 0.3s;
    }

    .file-card:nth-child(6) {
        animation-delay: 0.35s;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-0);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-600);
}







/*  */

.hero-globe {
    position: relative;
    width: clamp(200px, 28vw, 280px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(6, 3, 20, 0.6));
}

.globe-svg .latitude-lines,
.globe-svg .longitude-lines {
    opacity: 0.8;
}

.globe-svg .continents {
    opacity: 0;
    animation: continentsFadeIn 2s ease-in forwards;
    animation-delay: 0.5s;
}

.globe-svg .satellites circle {
    filter: drop-shadow(0 0 8px currentColor);
}

@keyframes continentsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
