/* ═══════════════════════════════════════════════════════════════
   CLOUD DRIVE - Luxe Compact Design
   Rich, detailed interface with dense layout and visual depth
   使用系统字体，无需外部依赖
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Typography - 使用系统字体栈 */
    --font-display: Georgia, 'Times New Roman', 'SimSun', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;

    /* Palette - Deep Luxe */
    --void: #08080c;
    --void-light: #0f1015;
    --surface-1: #14151a;
    --surface-2: #1a1b22;
    --surface-3: #22232c;
    --surface-4: #2a2b36;

    /* Accent - Antique Gold */
    --gold: #d4a853;
    --gold-soft: #e8c97a;
    --gold-deep: #b8923a;
    --gold-muted: rgba(212, 168, 83, 0.12);
    --gold-glow: rgba(212, 168, 83, 0.08);

    /* Accent - Emerald */
    --emerald: #4a9d7c;
    --emerald-soft: #6bb89a;
    --emerald-muted: rgba(74, 157, 124, 0.15);

    /* Accent - Ruby */
    --ruby: #c45c5c;
    --ruby-soft: #d87a7a;
    --ruby-muted: rgba(196, 92, 92, 0.15);

    /* Accent - Sapphire */
    --sapphire: #5c7cc4;
    --sapphire-muted: rgba(92, 124, 196, 0.12);

    /* Text */
    --text-1: #f0ece4;
    --text-2: rgba(240, 236, 228, 0.75);
    --text-3: rgba(240, 236, 228, 0.5);
    --text-4: rgba(240, 236, 228, 0.3);

    /* Borders */
    --border: rgba(240, 236, 228, 0.08);
    --border-hover: rgba(212, 168, 83, 0.25);
    --border-active: rgba(212, 168, 83, 0.5);

    /* Effects */
    --glass: rgba(20, 21, 26, 0.85);
    --glass-strong: rgba(20, 21, 26, 0.95);
    --blur: 24px;
    --blur-heavy: 48px;

    /* Spacing - Compact */
    --sp-2: 2px;
    --sp-4: 4px;
    --sp-6: 6px;
    --sp-8: 8px;
    --sp-10: 10px;
    --sp-12: 12px;
    --sp-14: 14px;
    --sp-16: 16px;
    --sp-20: 20px;
    --sp-24: 24px;
    --sp-32: 32px;
    --sp-40: 40px;
    --sp-48: 48px;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 120ms;
    --dur-normal: 200ms;
    --dur-slow: 350ms;
}

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

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-1);
    background: var(--void);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Rich Background ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.35;
    z-index: -3;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* Noise texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
        /* Gradient orbs */
        radial-gradient(ellipse 50% 40% at 15% 15%, rgba(212, 168, 83, 0.06) 0%, transparent 100%),
        radial-gradient(ellipse 40% 50% at 85% 85%, rgba(74, 157, 124, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 60% 30% at 50% 100%, rgba(92, 124, 196, 0.03) 0%, transparent 100%),
        /* Vignette */
        radial-gradient(ellipse at center, transparent 40%, rgba(8, 8, 12, 0.4) 100%);
    z-index: -2;
    pointer-events: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-1);
}

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-2); }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

a:hover { color: var(--gold-soft); }

/* ── Container ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--sp-24) var(--sp-20);
}

/* ── Decorative Line ── */
.deco-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: var(--sp-16) 0;
}

.deco-line-gold {
    width: 40px;
    height: 2px;
    background: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
    position: relative;
    padding: var(--sp-32) var(--sp-24);
    margin-bottom: var(--sp-24);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

/* Decorative corner accents */
.header::before,
.header::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold-muted);
}

.header::before {
    top: var(--sp-12);
    left: var(--sp-12);
    border-right: none;
    border-bottom: none;
}

.header::after {
    bottom: var(--sp-12);
    right: var(--sp-12);
    border-left: none;
    border-top: none;
}

/* Top accent line */
.header .accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--emerald), var(--sapphire), var(--gold));
    background-size: 200% 100%;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-content {
    position: relative;
    text-align: center;
}

.header-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--sp-8);
}

.header h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    font-style: italic;
    color: var(--text-1);
    margin-bottom: var(--sp-8);
    background: linear-gradient(135deg, var(--text-1), var(--gold-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-desc {
    font-size: 0.9rem;
    color: var(--text-3);
    max-width: 500px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   SPACE INFO
   ═══════════════════════════════════════════════════════════════ */
.space-info {
    position: fixed;
    top: var(--sp-16);
    right: var(--sp-16);
    padding: var(--sp-8) var(--sp-14);
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-2);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.space-info i {
    color: var(--emerald);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   NOTICE
   ═══════════════════════════════════════════════════════════════ */
.notice {
    padding: var(--sp-12) var(--sp-16);
    background: var(--gold-glow);
    border: 1px solid var(--gold-muted);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-16);
    display: flex;
    align-items: center;
    gap: var(--sp-10);
}

.notice i {
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notice p {
    font-size: 0.85rem;
    color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════════════════════ */
.search-section {
    margin-bottom: var(--sp-16);
}

.search-form {
    display: flex;
    gap: var(--sp-8);
    padding: var(--sp-6);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.search-input {
    flex: 1;
    padding: var(--sp-10) var(--sp-14);
    background: var(--surface-2);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-1);
    transition: all var(--dur-normal) var(--ease);
}

.search-input::placeholder {
    color: var(--text-4);
    font-style: italic;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface-3);
}

.search-btn {
    padding: var(--sp-10) var(--sp-20);
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--void);
    border: none;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.25);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES
   ═══════════════════════════════════════════════════════════════ */
.category-nav {
    margin-bottom: var(--sp-20);
}

.category-list {
    display: flex;
    gap: var(--sp-6);
    list-style: none;
    flex-wrap: wrap;
}

.category-btn {
    padding: var(--sp-6) var(--sp-14);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-3);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-6);
}

.category-btn:hover {
    color: var(--text-1);
    border-color: var(--border-hover);
    background: var(--surface-3);
}

.category-btn.active {
    background: var(--gold);
    color: var(--void);
    border-color: var(--gold);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   FILE GRID - Compact
   ═══════════════════════════════════════════════════════════════ */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-12);
    margin-bottom: var(--sp-24);
}

/* ═══════════════════════════════════════════════════════════════
   FILE CARD - Rich Compact
   ═══════════════════════════════════════════════════════════════ */
.file-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--dur-slow) var(--ease);
    position: relative;
    overflow: hidden;
}

/* Left accent */
.file-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--emerald));
    opacity: 0;
    transition: opacity var(--dur-normal) var(--ease);
}

.file-card:hover {
    background: var(--surface-2);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.file-card:hover::before {
    opacity: 1;
}

.file-card-inner {
    padding: var(--sp-14);
    display: flex;
    gap: var(--sp-12);
    align-items: flex-start;
}

.file-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: var(--r-md);
    font-size: 1.1rem;
    color: var(--void);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.2);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-info h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: var(--sp-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-8);
    font-size: 0.75rem;
    color: var(--text-3);
}

.file-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.file-meta i {
    font-size: 0.65rem;
    color: var(--gold);
}

/* Tags */
.file-tags {
    padding: 0 var(--sp-14) var(--sp-10);
    display: flex;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.file-tag {
    padding: var(--sp-2) var(--sp-8);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.file-tag.has-pwd {
    background: var(--ruby-muted);
    color: var(--ruby-soft);
}

.file-tag.no-pwd {
    background: var(--emerald-muted);
    color: var(--emerald-soft);
}

.file-tag.time {
    background: var(--surface-3);
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0;
    text-transform: none;
}

/* Actions */
.file-actions {
    padding: var(--sp-10) var(--sp-14);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--sp-6);
    background: var(--surface-2);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    padding: var(--sp-6) var(--sp-12);
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-4);
    text-decoration: none;
}

.btn i { font-size: 0.7rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--void);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.btn-secondary {
    background: var(--surface-3);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-4);
    color: var(--text-1);
    border-color: var(--border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-3);
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

.btn-danger {
    background: var(--ruby-muted);
    color: var(--ruby-soft);
}

.btn-danger:hover {
    background: var(--ruby);
    color: white;
}

.btn-success {
    background: var(--emerald-muted);
    color: var(--emerald-soft);
}

.btn-success:hover {
    background: var(--emerald);
    color: white;
}

.btn-sm {
    padding: var(--sp-4) var(--sp-8);
    font-size: 0.7rem;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
}

.page-btn {
    padding: var(--sp-6) var(--sp-10);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all var(--dur-normal) var(--ease);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.page-btn:hover {
    border-color: var(--border-hover);
    color: var(--gold);
}

.page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--void);
}

.page-btn:disabled,
.page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: var(--sp-16);
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--glass-strong);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-24);
    width: 100%;
    max-width: 440px;
    position: relative;
    animation: modalIn 0.35s var(--ease-out);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--sp-24);
    right: var(--sp-24);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-20);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.modal-title i { color: var(--gold); }

.modal-close {
    width: 28px;
    height: 28px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-3);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.modal-close:hover {
    background: var(--ruby);
    border-color: var(--ruby);
    color: white;
}

.modal-body { margin-bottom: var(--sp-20); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--sp-8);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-group {
    margin-bottom: var(--sp-14);
}

.form-group label {
    display: block;
    margin-bottom: var(--sp-6);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.form-group label i {
    color: var(--gold);
    margin-right: var(--sp-4);
}

.form-control {
    width: 100%;
    padding: var(--sp-10) var(--sp-12);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-1);
    transition: all var(--dur-normal) var(--ease);
}

.form-control::placeholder { color: var(--text-4); }

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface-3);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='rgba(240,236,228,0.4)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 36px;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════ */
.alert {
    padding: var(--sp-10) var(--sp-14);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-12);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.alert-success {
    background: var(--emerald-muted);
    color: var(--emerald-soft);
    border: 1px solid rgba(74, 157, 124, 0.2);
}

.alert-danger {
    background: var(--ruby-muted);
    color: var(--ruby-soft);
    border: 1px solid rgba(196, 92, 92, 0.2);
}

.alert-warning {
    background: var(--gold-glow);
    color: var(--gold);
    border: 1px solid var(--gold-muted);
}

.alert-info {
    background: var(--sapphire-muted);
    color: var(--sapphire);
    border: 1px solid rgba(92, 124, 196, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: var(--sp-48) var(--sp-24);
    background: var(--surface-1);
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--text-4);
    margin-bottom: var(--sp-12);
}

.empty-state p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    text-align: center;
    margin-top: var(--sp-32);
    padding: var(--sp-20) var(--sp-16);
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-4);
    margin-bottom: var(--sp-4);
}

.footer p:last-child { margin-bottom: 0; }

.footer a {
    color: var(--gold);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-4);
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    background:
        linear-gradient(180deg, rgba(20, 21, 26, 0.98), rgba(8, 8, 12, 0.98)),
        var(--glass-strong);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-right: 1px solid rgba(212, 168, 83, 0.14);
    padding: var(--sp-16) var(--sp-8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.2);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: var(--sp-10);
    padding: 0 var(--sp-8) var(--sp-16);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-12);
}

.sidebar-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 168, 83, 0.28);
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.18), rgba(74, 157, 124, 0.12));
    color: var(--gold-soft);
    flex-shrink: 0;
}

.sidebar-title h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-1);
    margin: 0;
}

.sidebar-title p {
    margin: var(--sp-2) 0 0;
    color: var(--text-4);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: var(--sp-6);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: var(--sp-10);
    padding: var(--sp-10) var(--sp-12);
    color: var(--text-3);
    text-decoration: none;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--dur-normal) var(--ease);
    position: relative;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: var(--sp-4);
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold);
    border-radius: 999px;
    transition: height var(--dur-normal) var(--ease);
}

.sidebar-menu a:hover {
    color: var(--text-1);
    background: rgba(240, 236, 228, 0.055);
}

.sidebar-menu a:hover::before {
    height: 60%;
}

.sidebar-menu a.active {
    color: var(--gold-soft);
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.16), rgba(212, 168, 83, 0.04));
    box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.16);
}

.sidebar-menu a.active::before {
    height: 60%;
}

.sidebar-menu a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-footer {
    margin: var(--sp-8) 0 0;
    padding: var(--sp-12);
    border: 1px solid rgba(212, 168, 83, 0.18);
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(92, 124, 196, 0.08));
}

.sidebar-footer span,
.sidebar-footer strong {
    display: block;
}

.sidebar-footer span {
    color: var(--text-4);
    font-size: 0.72rem;
}

.sidebar-footer strong {
    margin-top: var(--sp-4);
    color: var(--text-1);
    font-size: 0.88rem;
    font-weight: 700;
}

.logout-btn {
    margin: var(--sp-8) 0 0;
    padding: var(--sp-10);
    background: transparent;
    border: 1px solid var(--ruby-muted);
    border-radius: var(--r-md);
    color: var(--ruby-soft);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
}

.logout-btn:hover {
    background: var(--ruby);
    border-color: var(--ruby);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN MAIN
   ═══════════════════════════════════════════════════════════════ */
.main-content {
    margin-left: 220px;
    padding: var(--sp-20) var(--sp-24);
    min-height: 100vh;
}

.page-header {
    margin-bottom: var(--sp-20);
    padding-bottom: var(--sp-16);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-header-left h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: var(--sp-4);
}

.page-header-left h2 i {
    color: var(--gold);
    margin-right: var(--sp-6);
}

.page-header-left p {
    font-size: 0.85rem;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-12);
    margin-bottom: var(--sp-20);
}

.stat-card {
    padding: var(--sp-14);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all var(--dur-normal) var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--emerald));
    transform: scaleX(0);
    transition: transform var(--dur-normal) var(--ease);
}

.stat-card:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto var(--sp-8);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border-radius: var(--r-md);
    font-size: 1rem;
    color: var(--gold);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: var(--sp-2);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT CARD
   ═══════════════════════════════════════════════════════════════ */
.content-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: var(--sp-16);
}

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

.content-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.content-card-title i { color: var(--gold); }

.content-card-body {
    padding: var(--sp-16);
}

/* ═══════════════════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; }

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

.data-table th,
.data-table td {
    padding: var(--sp-10) var(--sp-12);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    background: var(--surface-2);
    white-space: nowrap;
}

.data-table th:first-child { border-radius: var(--r-md) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--r-md) 0 0; }

.data-table tbody tr {
    transition: background var(--dur-fast) var(--ease);
}

.data-table tbody tr:hover {
    background: var(--surface-2);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   UPLOAD AREA
   ═══════════════════════════════════════════════════════════════ */
.upload-area {
    padding: var(--sp-24);
    border: 2px dashed var(--border);
    border-radius: var(--r-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-glow);
    opacity: 0;
    transition: opacity var(--dur-normal) var(--ease);
}

.upload-area:hover {
    border-color: var(--gold);
}

.upload-area:hover::before { opacity: 1; }

.upload-area.dragover {
    border-color: var(--gold);
    background: var(--gold-muted);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--sp-8);
    position: relative;
    z-index: 1;
}

.upload-text {
    font-size: 0.9rem;
    color: var(--text-1);
    margin-bottom: var(--sp-4);
    position: relative;
    z-index: 1;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-4);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PREVIEW
   ═══════════════════════════════════════════════════════════════ */
.preview-container {
    width: 100%;
    max-height: 70vh;
    overflow: auto;
}

.preview-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--r-md);
}

.preview-video {
    width: 100%;
    max-height: 60vh;
    border-radius: var(--r-md);
    background: var(--void);
}

.preview-pdf {
    width: 100%;
    height: 60vh;
    border: none;
    border-radius: var(--r-md);
}

.preview-text {
    width: 100%;
    min-height: 250px;
    max-height: 60vh;
    padding: var(--sp-14);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-1);
}

/* ═══════════════════════════════════════════════════════════════
   SHARE
   ═══════════════════════════════════════════════════════════════ */
.share-link-box {
    display: flex;
    gap: var(--sp-6);
    padding: var(--sp-8);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-14);
}

.share-link-input {
    flex: 1;
    padding: var(--sp-8) var(--sp-10);
    background: var(--void);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-1);
}

.share-link-input:focus {
    outline: none;
    border-color: var(--gold);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-12);
}

.share-option {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.share-option label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════
   SHARE PAGE
   ═══════════════════════════════════════════════════════════════ */
.share-container {
    max-width: 520px;
    margin: var(--sp-48) auto;
    padding: 0 var(--sp-16);
}

.share-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-32) var(--sp-24);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--sp-24);
    right: var(--sp-24);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.share-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--sp-16);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--void);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.share-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: var(--sp-8);
    word-break: break-all;
}

.share-meta {
    color: var(--text-3);
    margin-bottom: var(--sp-16);
    font-size: 0.85rem;
}

.share-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-4);
    margin: 0 var(--sp-8);
}

.share-meta i { color: var(--gold); font-size: 0.8rem; }

.share-actions {
    display: flex;
    gap: var(--sp-8);
    justify-content: center;
    margin-top: var(--sp-16);
}

.share-actions .btn {
    padding: var(--sp-10) var(--sp-20);
}

.error-icon {
    font-size: 3rem;
    color: var(--ruby);
    margin-bottom: var(--sp-16);
}

.error-message {
    font-size: 1rem;
    color: var(--text-2);
    margin-bottom: var(--sp-16);
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════════════════════ */
.login-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: var(--sp-40) var(--sp-16);
}

.login-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-32) var(--sp-24);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--sp-24);
    right: var(--sp-24);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--sp-16);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--void);
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: var(--sp-4);
}

.login-subtitle {
    color: var(--text-3);
    margin-bottom: var(--sp-20);
    font-size: 0.85rem;
}

.login-form .form-group { text-align: left; }

.login-btn {
    width: 100%;
    padding: var(--sp-10);
    margin-top: var(--sp-8);
}

.login-footer {
    margin-top: var(--sp-16);
    padding-top: var(--sp-14);
    border-top: 1px solid var(--border);
}

.login-footer a {
    color: var(--text-3);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-4);
}

.login-footer a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: var(--sp-12);
    left: var(--sp-12);
    width: 44px;
    height: 44px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-1);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2001;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.mobile-overlay.show {
    display: block;
}

@media (max-width: 1024px) {
    .sidebar { width: 200px; }
    .main-content { margin-left: 200px; padding: var(--sp-16); }
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--dur-slow) var(--ease);
        z-index: 2000;
        width: 260px;
    }
    .sidebar.show { transform: translateX(0); }

    .main-content {
        margin-left: 0;
        padding: var(--sp-12);
        padding-top: 60px;
    }

    .header {
        padding: var(--sp-16);
        margin-bottom: var(--sp-16);
    }
    .header h1 { font-size: 1.5rem; }
    .header .subtitle { font-size: 0.85rem; }

    .space-info {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: var(--sp-12);
        justify-content: center;
    }

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

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

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

    .content-col-side {
        order: -1;
    }

    .upload-options {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-btn {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-8);
    }

    .page-header-left h2 { font-size: 1.3rem; }

    .share-options { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; }
    .search-btn { width: 100%; justify-content: center; }

    .category-nav { padding: var(--sp-10); }
    .category-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--sp-4); }
    .category-btn { padding: var(--sp-6) var(--sp-12); font-size: 0.8rem; white-space: nowrap; }

    .modal {
        width: 95%;
        padding: var(--sp-16);
        margin: var(--sp-8);
    }

    .modal-header { margin-bottom: var(--sp-16); }
    .modal-title { font-size: 1.1rem; }

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

    .quick-action-item {
        padding: var(--sp-10);
    }

    .category-list-mini {
        max-height: 200px;
        overflow-y: auto;
    }

    .footer {
        padding: var(--sp-16) var(--sp-12);
        margin-top: var(--sp-16);
    }

    .btn {
        padding: var(--sp-8) var(--sp-12);
        font-size: 0.8rem;
    }

    .form-control {
        padding: var(--sp-8) var(--sp-12);
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: var(--sp-4);
    }

    .alert {
        padding: var(--sp-10) var(--sp-12);
        font-size: 0.85rem;
    }

    .upload-area {
        padding: var(--sp-20);
    }

    .upload-icon { font-size: 2rem; }
    .upload-text { font-size: 0.9rem; }
    .upload-hint { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .container { padding: var(--sp-10); }
    .stats-grid { grid-template-columns: 1fr; }
    .modal { margin: var(--sp-8); padding: var(--sp-16); }
    .share-card, .login-card { padding: var(--sp-20) var(--sp-14); }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in { animation: fadeIn 0.5s var(--ease); }
.slide-up { animation: slideUp 0.5s var(--ease); }

/* ═══════════════════════════════════════════════════════════════
   ADMIN ENHANCED COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
}

.page-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-4);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.page-time i { color: var(--gold); }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--sp-16);
    margin-bottom: var(--sp-16);
}

.content-col-main,
.content-col-side {
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}

/* Upload Options */
.upload-options {
    display: flex;
    gap: var(--sp-12);
    align-items: flex-end;
    margin-top: var(--sp-12);
    padding-top: var(--sp-12);
    border-top: 1px solid var(--border);
}

.upload-options .form-group {
    flex: 1;
    margin-bottom: 0;
}

.upload-btn {
    height: 38px;
    padding: 0 var(--sp-16);
    flex-shrink: 0;
}

.upload-btn.is-uploading {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-6);
    padding: var(--sp-12);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--text-2);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--dur-normal) var(--ease);
}

.quick-action-item:hover {
    background: var(--surface-3);
    border-color: var(--border-hover);
    color: var(--text-1);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    font-size: 1rem;
}

/* Category List Mini */
.category-list-mini {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.category-item-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-8) var(--sp-10);
    background: var(--surface-2);
    border-radius: var(--r-sm);
    font-size: 0.8rem;
}

.category-name {
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.category-name i {
    font-size: 0.7rem;
    color: var(--gold);
}

.category-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
    background: var(--surface-3);
    padding: 2px 8px;
    border-radius: 100px;
}

.category-more {
    display: block;
    text-align: center;
    padding: var(--sp-8);
    color: var(--gold);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

.category-more:hover {
    color: var(--gold-soft);
}

/* Table Enhancements */
.file-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-4);
}

.file-name-cell {
    font-weight: 500;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gold-glow);
    color: var(--gold);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
}

.file-size {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-2);
}

.pwd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
}

.pwd-badge.has-pwd {
    background: var(--ruby-muted);
    color: var(--ruby);
}

.pwd-badge.no-pwd {
    background: var(--emerald-muted);
    color: var(--emerald);
}

.file-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
}

.action-btns {
    display: flex;
    gap: var(--sp-4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-3);
    padding: var(--sp-4) var(--sp-6);
}

.btn-ghost:hover {
    background: var(--surface-3);
    color: var(--text-1);
}

.btn-danger-text {
    color: var(--text-3);
}

.btn-danger-text:hover {
    color: var(--ruby);
    background: var(--ruby-muted);
}

/* Empty State Compact */
.empty-state {
    padding: var(--sp-32) var(--sp-16);
}

.empty-state i {
    font-size: 2rem;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Content Card Actions */
.content-card-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

/* Pagination Compact */
.pagination {
    padding: var(--sp-12) 0 0;
    margin-top: var(--sp-12);
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARD MINI
   ═══════════════════════════════════════════════════════════════ */
.stat-card-mini {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
    padding: var(--sp-12) var(--sp-14);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--dur-normal) var(--ease);
}

.stat-card-mini:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}

.stat-mini-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-mini-info {
    display: flex;
    flex-direction: column;
}

.stat-mini-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
}

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY GRID
   ═══════════════════════════════════════════════════════════════ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-10);
}

.category-card-item {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
    padding: var(--sp-12);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all var(--dur-normal) var(--ease);
}

.category-card-item:hover {
    background: var(--surface-3);
    border-color: var(--border-hover);
}

.category-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.category-card-info {
    flex: 1;
    min-width: 0;
}

.category-card-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
}

.category-card-info p {
    font-size: 0.75rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.category-card-info p i {
    font-size: 0.65rem;
}

.category-card-info .category-card-desc {
    color: var(--text-4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card-actions {
    display: flex;
    align-items: center;
}

.category-card-badge {
    font-size: 0.7rem;
    color: var(--text-4);
    padding: var(--sp-2) var(--sp-6);
    background: var(--surface-3);
    border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY STATS LIST
   ═══════════════════════════════════════════════════════════════ */
.category-stats-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-10);
}

.category-stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.category-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-stat-name {
    font-size: 0.85rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.category-stat-name i {
    font-size: 0.75rem;
}

.category-stat-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-1);
    font-weight: 600;
}

.category-stat-bar {
    height: 6px;
    background: var(--surface-3);
    border-radius: 3px;
    overflow: hidden;
}

.category-stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s var(--ease);
}

/* ═══════════════════════════════════════════════════════════════
   RECENT FILES LIST
   ═══════════════════════════════════════════════════════════════ */
.recent-files-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.recent-file-item {
    display: flex;
    align-items: center;
    gap: var(--sp-10);
    padding: var(--sp-8);
    background: var(--surface-2);
    border-radius: var(--r-sm);
    transition: background var(--dur-fast) var(--ease);
}

.recent-file-item:hover {
    background: var(--surface-3);
}

.recent-file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.recent-file-info {
    flex: 1;
    min-width: 0;
}

.recent-file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-file-meta {
    font-size: 0.7rem;
    color: var(--text-4);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE MINI
   ═══════════════════════════════════════════════════════════════ */
.empty-state-mini {
    text-align: center;
    padding: var(--sp-20);
}

.empty-state-mini p {
    font-size: 0.85rem;
    color: var(--text-4);
}

/* ═══════════════════════════════════════════════════════════════
   TIPS LIST
   ═══════════════════════════════════════════════════════════════ */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-8);
    font-size: 0.8rem;
    color: var(--text-2);
}

.tip-item i {
    margin-top: 2px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SETTINGS PREVIEW
   ═══════════════════════════════════════════════════════════════ */
.settings-preview {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-8);
    background: var(--surface-2);
    border-radius: var(--r-sm);
}

.preview-label {
    font-size: 0.8rem;
    color: var(--text-3);
}

.preview-value {
    font-size: 0.8rem;
    color: var(--text-1);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   ICO UPLOAD AREA
   ═══════════════════════════════════════════════════════════════ */
.ico-upload-area {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
}

.ico-upload-area .form-control {
    flex: 1;
}

.ico-preview {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    padding: var(--sp-6) var(--sp-10);
    background: var(--surface-2);
    border-radius: var(--r-sm);
}

.ico-preview img {
    border-radius: 4px;
}

.ico-preview span {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════
   FORM HINT
   ═══════════════════════════════════════════════════════════════ */
.form-hint {
    margin-top: var(--sp-4);
    font-size: 0.75rem;
    color: var(--text-4);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

/* ═══════════════════════════════════════════════════════════════
   FORM ACTIONS
   ═══════════════════════════════════════════════════════════════ */
.form-actions {
    padding: var(--sp-16);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex;
    justify-content: flex-end;
    gap: var(--sp-8);
}

.btn-lg {
    padding: var(--sp-10) var(--sp-20);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   SYSTEM INFO
   ═══════════════════════════════════════════════════════════════ */
.system-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-6) var(--sp-8);
    background: var(--surface-2);
    border-radius: var(--r-sm);
    font-size: 0.8rem;
}

.info-item span:first-child {
    color: var(--text-3);
}

.info-item span:last-child {
    color: var(--text-1);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   BAR CHART
   ═══════════════════════════════════════════════════════════════ */
.chart-container {
    padding: var(--sp-10) 0;
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    gap: var(--sp-6);
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-value {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-2);
    margin-bottom: var(--sp-4);
}

.bar-wrapper {
    flex: 1;
    width: 100%;
    max-width: 40px;
    background: var(--surface-2);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    border-radius: 4px;
    min-height: 4px;
    transition: height 0.5s var(--ease);
}

.bar-label {
    font-size: 0.65rem;
    color: var(--text-4);
    margin-top: var(--sp-4);
}

/* ═══════════════════════════════════════════════════════════════
   TOP DOWNLOADS LIST
   ═══════════════════════════════════════════════════════════════ */
.top-downloads-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.top-download-item {
    display: flex;
    align-items: center;
    gap: var(--sp-10);
    padding: var(--sp-6);
    background: var(--surface-2);
    border-radius: var(--r-sm);
}

.top-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--void);
    flex-shrink: 0;
}

.top-download-info {
    flex: 1;
    min-width: 0;
}

.top-download-name {
    font-size: 0.8rem;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.top-download-bar {
    height: 4px;
    background: var(--surface-3);
    border-radius: 2px;
    overflow: hidden;
}

.top-download-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep));
    border-radius: 2px;
}

.top-download-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN DATA BIG SCREEN
   ═══════════════════════════════════════════════════════════════ */
.big-screen-page {
    min-height: 100vh;
    padding: var(--sp-20);
    background-image:
        linear-gradient(135deg, rgba(8, 8, 12, 0.88) 0%, rgba(20, 21, 26, 0.9) 46%, rgba(10, 17, 22, 0.88) 100%),
        url('../../background.jpg');
    background-size: auto, cover;
    background-position: center, center;
    background-attachment: scroll, fixed;
}

.big-screen-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(240, 236, 228, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 236, 228, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
}

.big-screen-hero {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-16);
    margin-bottom: var(--sp-16);
    padding: var(--sp-20);
    border: 1px solid rgba(212, 168, 83, 0.22);
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(20, 21, 26, 0.94), rgba(34, 35, 44, 0.72));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.big-screen-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--emerald), var(--sapphire), var(--ruby));
}

.big-screen-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--sp-8);
    color: var(--gold-soft);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.big-screen-hero h2 {
    display: flex;
    align-items: center;
    gap: var(--sp-10);
    margin: 0 0 var(--sp-6);
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.big-screen-hero p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.92rem;
}

.big-screen-clock {
    min-width: 132px;
    padding: var(--sp-12) var(--sp-14);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: rgba(8, 8, 12, 0.42);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-10);
    text-align: right;
}

.big-clock-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(232, 201, 122, 0.82);
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.08);
    box-shadow: inset 0 0 0 3px rgba(8, 8, 12, 0.72), 0 0 18px rgba(212, 168, 83, 0.16);
    flex-shrink: 0;
}

.big-clock-icon::before,
.big-clock-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 2px;
    border-radius: 999px;
    background: var(--gold-soft);
    transform-origin: bottom center;
}

.big-clock-icon::before {
    height: 10px;
    transform: translateX(-50%) rotate(0deg);
}

.big-clock-icon::after {
    height: 8px;
    transform: translateX(-50%) rotate(120deg);
}

.big-clock-text span,
.big-clock-text strong {
    display: block;
    font-family: var(--font-mono);
}

.big-clock-text span {
    color: var(--text-3);
    font-size: 0.75rem;
}

.big-clock-text strong {
    color: var(--gold-soft);
    font-size: 1.45rem;
    line-height: 1.2;
}

.big-screen-hero-tools {
    display: flex;
    align-items: center;
    gap: var(--sp-10);
    flex-shrink: 0;
}

.big-screen-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
    min-height: 42px;
    padding: 0 var(--sp-12);
    border: 1px solid rgba(212, 168, 83, 0.28);
    border-radius: var(--r-md);
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.big-screen-action-btn:hover {
    border-color: rgba(212, 168, 83, 0.45);
    background: rgba(212, 168, 83, 0.18);
    color: var(--text-1);
}

.big-metric-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-12);
    margin-bottom: var(--sp-12);
}

.big-metric-card {
    position: relative;
    min-height: 118px;
    padding: var(--sp-16);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: rgba(20, 21, 26, 0.88);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.big-metric-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--gold);
}

.big-metric-card i {
    position: absolute;
    top: var(--sp-14);
    right: var(--sp-14);
    color: rgba(240, 236, 228, 0.13);
    font-size: 2.1rem;
}

.big-metric-card span {
    display: block;
    margin-bottom: var(--sp-12);
    color: var(--text-3);
    font-size: 0.8rem;
}

.big-metric-card strong {
    display: block;
    max-width: 100%;
    color: var(--text-1);
    font-family: var(--font-mono);
    font-size: 1.75rem;
    line-height: 1.15;
    word-break: break-word;
}

.big-metric-card.accent-gold::after { background: var(--gold); }
.big-metric-card.accent-blue::after { background: var(--sapphire); }
.big-metric-card.accent-green::after { background: var(--emerald); }
.big-metric-card.accent-red::after { background: var(--ruby); }

.big-screen-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--sp-12);
}

.big-panel {
    grid-column: span 4;
    min-height: 236px;
    padding: var(--sp-14);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: rgba(20, 21, 26, 0.9);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.big-panel-wide {
    grid-column: span 8;
}

.big-panel-tall {
    grid-row: span 2;
}

.big-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-10);
    margin-bottom: var(--sp-12);
    padding-bottom: var(--sp-10);
    border-bottom: 1px solid var(--border);
}

.big-panel-header h3 {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    margin: 0;
    color: var(--text-1);
    font-size: 0.95rem;
    font-weight: 700;
}

.big-panel-header h3 i {
    color: var(--gold);
}

.big-panel-header span,
.big-panel-header a {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-decoration: none;
    white-space: nowrap;
}

.big-panel-header a:hover {
    color: var(--gold);
}

.big-trend-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: var(--sp-10);
    height: 176px;
}

.big-trend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.big-trend-item span,
.big-trend-item em {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-style: normal;
}

.big-trend-bar {
    flex: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 48px;
    margin: var(--sp-6) 0;
    border-radius: 999px;
    background: rgba(240, 236, 228, 0.06);
    overflow: hidden;
}

.big-trend-bar i {
    display: block;
    width: 100%;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
    box-shadow: 0 0 18px rgba(212, 168, 83, 0.24);
}

.big-line-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-8);
    height: 136px;
    padding: var(--sp-10) var(--sp-4) 0;
    border-bottom: 1px solid var(--border);
}

.big-line-bars div {
    flex: 1;
    min-height: 8px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--sapphire), var(--emerald));
}

.big-line-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--sp-4);
    margin-top: var(--sp-8);
}

.big-line-labels span {
    color: var(--text-4);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    text-align: center;
}

.big-progress-list,
.big-rank-list,
.big-activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.big-progress-row {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.big-progress-row div,
.big-rank-row,
.big-activity-list div {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    min-width: 0;
}

.big-progress-row div {
    justify-content: space-between;
}

.big-progress-row span,
.big-rank-row span,
.big-activity-list span {
    min-width: 0;
    overflow: hidden;
    color: var(--text-2);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.big-progress-row strong,
.big-rank-row em,
.big-activity-list em {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-style: normal;
    white-space: nowrap;
}

.big-progress-row b {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: rgba(240, 236, 228, 0.06);
    overflow: hidden;
}

.big-progress-row b i {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.big-rank-row {
    justify-content: space-between;
    padding: var(--sp-8);
    border-radius: var(--r-sm);
    background: rgba(240, 236, 228, 0.035);
}

.big-rank-row b {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--void);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    flex-shrink: 0;
}

.big-rank-row span {
    flex: 1;
}

.big-type-cloud {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: var(--sp-8);
}

.big-type-cloud span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: var(--sp-6) var(--sp-10);
    border: 1px solid rgba(212, 168, 83, 0.18);
    border-radius: 999px;
    background: rgba(212, 168, 83, 0.08);
    color: var(--gold-soft);
    font-family: var(--font-mono);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.big-activity-list div {
    padding: var(--sp-8);
    border-radius: var(--r-sm);
    background: rgba(240, 236, 228, 0.035);
}

.big-activity-list i {
    color: var(--gold);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.big-activity-list span {
    flex: 1;
}

.big-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8);
}

.big-system-grid div {
    min-width: 0;
    padding: var(--sp-10);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: rgba(240, 236, 228, 0.035);
}

.big-system-grid span {
    display: block;
    margin-bottom: var(--sp-6);
    color: var(--text-3);
    font-size: 0.72rem;
}

.big-system-grid strong {
    display: block;
    color: var(--text-1);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.big-empty {
    margin: 0;
    padding: var(--sp-20) var(--sp-8);
    color: var(--text-4);
    font-size: 0.82rem;
    text-align: center;
}

.big-screen-wall-body {
    overflow-x: hidden;
    background: var(--void);
}

.big-screen-wall {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: var(--sp-16);
}

.big-screen-wall .big-screen-hero {
    min-height: 118px;
    margin-bottom: var(--sp-12);
}

.big-screen-wall .big-screen-hero h2 {
    font-size: 2rem;
}

.big-screen-wall .big-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.big-screen-wall .big-metric-card {
    min-height: 132px;
}

.big-screen-wall .big-metric-card strong {
    font-size: 2rem;
}

.big-screen-wall .big-screen-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.big-screen-wall .big-panel {
    min-height: 260px;
}

.big-screen-wall .big-panel-wide {
    grid-column: span 8;
}

.big-screen-wall .big-trend-chart {
    height: 194px;
}

@media (max-width: 1180px) {
    .big-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .big-panel,
    .big-panel-wide {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .big-screen-page {
        padding: var(--sp-12);
    }

    .big-screen-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .big-screen-clock {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .big-screen-hero-tools {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .big-screen-action-btn {
        width: 100%;
    }

    .big-metric-grid,
    .big-screen-layout {
        grid-template-columns: 1fr;
    }

    .big-metric-card strong {
        font-size: 1.45rem;
    }

    .big-panel,
    .big-panel-wide {
        grid-column: span 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   COMPACT TABLE
   ═══════════════════════════════════════════════════════════════ */
.data-table-compact th,
.data-table-compact td {
    padding: var(--sp-6) var(--sp-8);
}

.data-table-compact .file-name-cell {
    font-size: 0.8rem;
    max-width: 200px;
}

.data-table-compact .category-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
}

.data-table-compact .file-size {
    font-size: 0.75rem;
}

.data-table-compact .pwd-badge {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
}

.data-table-compact .file-time {
    font-size: 0.7rem;
}

.download-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.download-count i {
    font-size: 0.6rem;
    color: var(--sapphire);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-4); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--sp-4); }
.mb-2 { margin-bottom: var(--sp-8); }
.mb-3 { margin-bottom: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-16); }

.mt-1 { margin-top: var(--sp-4); }
.mt-2 { margin-top: var(--sp-8); }
.mt-3 { margin-top: var(--sp-12); }
.mt-4 { margin-top: var(--sp-16); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-4); }
.gap-2 { gap: var(--sp-8); }
.gap-3 { gap: var(--sp-12); }
.w-100 { width: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

::selection {
    background: rgba(212, 168, 83, 0.3);
    color: var(--text-1);
}
