/* ==========================================================================
   HÙNG HERO UPLOAD SYSTEM - Bright Retro Pixel / Arcade Gaming Theme
   ========================================================================== */

:root {
    --bg-base: #f1f5f9;
    --bg-card: #ffffff;
    --bg-elevated: #f8fafc;
    --border-pixel: #0f172a;
    --purple-1: #7c3aed;
    --purple-2: #8b5cf6;
    --purple-3: #c084fc;
    --neon-green: #16a34a;
    --neon-yellow: #ca8a04;
    --neon-red: #dc2626;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --glass-border: #cbd5e1;
    --radius: 0px;
    --radius-sm: 0px;
    --font-pixel: 'Chakra Petch', monospace, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    overflow-x: hidden;
}

.bg-glow { display: none; }

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

/* ===== Typography ===== */
.brand-text,
.section-title,
.card-title,
.pixel-font,
.btn,
.badge,
.stat-value,
.pixel-stat-value,
.pixel-modal-title,
.pagination-wrap .btn,
th {
    font-family: var(--font-pixel);
    letter-spacing: 0.5px;
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 2px solid var(--border-pixel);
    box-shadow: 0 3px 0 var(--border-pixel);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}
.brand-logo {
    max-height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}
.brand-icon {
    font-size: 22px;
}
.brand-text {
    color: var(--text-main);
    font-weight: 700;
    font-size: 18px;
}
.brand-accent {
    color: var(--purple-1);
}
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-link {
    color: var(--text-secondary);
    font-family: var(--font-pixel);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color .15s;
}
.nav-link:hover { color: var(--purple-1); }
.nav-link-admin { color: #db2777; }
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 2px solid var(--border-pixel);
    box-shadow: 2px 2px 0 var(--border-pixel);
    background: #f8fafc;
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}
.nav-avatar { width: 24px; height: 24px; object-fit: cover; border: 1px solid var(--border-pixel); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }

/* ===== Layout ===== */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    min-height: 70vh;
}
.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-family: var(--font-pixel);
    font-size: 12px;
    border-top: 2px solid var(--border-pixel);
    background: #ffffff;
    box-shadow: 0 -2px 0 rgba(15, 23, 42, 0.05);
}

/* ===== Pixel Cards ===== */
.card {
    background: var(--bg-card);
    border: 2px solid var(--border-pixel);
    box-shadow: 3px 3px 0px var(--border-pixel);
    padding: 24px;
    margin-bottom: 20px;
    min-width: 0;
    width: 100%;
}
.card-glow {
    border-color: var(--purple-1);
    box-shadow: 3px 3px 0px var(--border-pixel), 0 0 12px rgba(124, 58, 237, 0.15);
}
.card h1, .card h2 { margin-top: 0; }
.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}
.card-subtitle { color: var(--text-muted); margin-bottom: 20px; font-size: 13px; }
.auth-wrap { max-width: 420px; margin: 40px auto; }

/* ===== Pixel Buttons (Arcade Style) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    height: 42px;
    min-height: 42px;
    border: 2px solid var(--border-pixel);
    border-radius: 0;
    box-shadow: 3px 3px 0px var(--border-pixel);
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 38px;
    transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--border-pixel);
}
.btn-primary {
    background: var(--purple-1);
    color: #ffffff;
}
.btn-primary:hover {
    background: #6d28d9;
}
.btn-ghost {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: var(--border-pixel);
}
.btn-ghost:hover {
    background: #e2e8f0;
}
.btn-danger {
    background: #ef4444;
    color: #ffffff;
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-success {
    background: #16a34a;
    color: #ffffff;
}
.btn-success:hover {
    background: #15803d;
}
.btn-sm {
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
    line-height: 28px;
    box-shadow: 2px 2px 0px var(--border-pixel);
}
.btn-sm:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border-pixel);
}
.btn-block { width: 100%; }

/* ===== Pixel Inputs ===== */
.form-group { margin-bottom: 18px; }
label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}
input[type=text], input[type=password], input[type=file], textarea {
    width: 100%;
    padding: 0 14px;
    height: 42px;
    min-height: 42px;
    border-radius: 0;
    border: 2px solid var(--border-pixel);
    background: #ffffff;
    color: var(--text-main);
    font-size: 14px;
    line-height: 38px;
    box-sizing: border-box;
    box-shadow: inset 1px 1px 0px rgba(0,0,0,0.1);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
textarea {
    height: auto;
    min-height: 80px;
    padding: 10px 14px;
    line-height: 1.5;
}
input:focus, textarea:focus {
    border-color: var(--purple-1);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}
.hint { font-size: 13px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }

/* ===== Pixel Tables ===== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 2px solid var(--border-pixel);
    box-shadow: 3px 3px 0px var(--border-pixel);
    background: #ffffff;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
th, td {
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #e2e8f0;
}
th {
    font-family: var(--font-pixel);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: #f8fafc;
    border-bottom: 2px solid var(--border-pixel);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
.cell-filename { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* Table inputs and actions */
.table-wrap input[type=text],
.table-wrap input[type=password] {
    height: 32px !important;
    min-height: 32px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    width: auto;
    vertical-align: middle;
    margin: 0;
}
.table-wrap .btn-sm {
    height: 32px !important;
    min-height: 32px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
    vertical-align: middle;
    margin: 0;
}
.table-wrap form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    margin: 0;
}
.btn-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}
.pass-form {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* ===== Pixel Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-family: var(--font-pixel);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-pixel);
    box-shadow: 2px 2px 0px var(--border-pixel);
    border-radius: 0;
    text-transform: uppercase;
}
.badge-admin { background: #9333ea; color: #fff; }
.badge-user { background: #2563eb; color: #fff; }
.badge-active { background: #16a34a; color: #fff; }
.badge-locked { background: #dc2626; color: #fff; }
.badge-admin-tag {
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    font-family: var(--font-pixel);
    font-weight: 700;
    border: 1px solid var(--border-pixel);
    box-shadow: 2px 2px 0px var(--border-pixel);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.row-admin-highlight {
    background: rgba(124, 58, 237, 0.05);
    box-shadow: inset 4px 0 0 var(--purple-1);
}

/* ===== Pixel Stats Banner ===== */
.pixel-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.pixel-stat-card {
    background: #ffffff;
    border: 2px solid var(--border-pixel);
    box-shadow: 3px 3px 0px var(--border-pixel);
    padding: 18px 12px;
    text-align: center;
    transition: transform .12s, box-shadow .12s;
}
.pixel-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px var(--border-pixel);
}
.pixel-stat-icon {
    font-size: 24px;
    margin-bottom: 4px;
}
.pixel-stat-value {
    font-family: var(--font-pixel);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}
.pixel-stat-value.highlight {
    color: #16a34a;
}
.pixel-stat-label {
    font-family: var(--font-pixel);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* ===== Pixel Disclaimer Hazard Banner ===== */
.pixel-disclaimer-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: #fef9c3;
    border: 2px dashed #ca8a04;
    box-shadow: 3px 3px 0px var(--border-pixel);
    margin-bottom: 24px;
}
.pixel-disclaimer-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.pixel-disclaimer-content strong {
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 700;
    color: #854d0e;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.pixel-disclaimer-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #713f12;
    margin: 0;
}

/* ===== Pixel File List (UpNhanh style) ===== */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid var(--border-pixel);
    box-shadow: 3px 3px 0px var(--border-pixel);
    transition: transform .12s, box-shadow .12s, border-color .12s;
    gap: 12px;
}
.file-list-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--border-pixel);
    border-color: var(--purple-1);
    background: #faf5ff;
}
.file-item-admin {
    border-left: 4px solid var(--purple-1);
}
.file-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.file-item-bullet {
    font-family: var(--font-pixel);
    color: var(--purple-1);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.file-item-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-item-link:hover {
    color: var(--purple-1);
    text-decoration: underline;
}
.file-item-meta {
    font-family: var(--font-pixel);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.file-meta-dot { opacity: 0.4; font-size: 10px; }

/* ===== File Detail Page (file.php) ===== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--purple-1); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text-main); }

.file-detail-card {
    text-align: center;
    padding: 36px 20px;
}
.file-detail-icon {
    font-size: 64px;
    margin-bottom: 12px;
}
.file-detail-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
    word-break: break-word;
    color: var(--text-main);
}
.file-download-box { margin-top: 14px; }
.btn-download-big {
    font-size: 15px;
    padding: 0 36px;
    height: 48px;
    min-height: 48px;
    line-height: 44px;
    box-shadow: 4px 4px 0 var(--border-pixel);
    display: inline-flex;
}
.file-pass-notice {
    background: #fef2f2;
    border: 2px solid #ef4444;
    box-shadow: 3px 3px 0 var(--border-pixel);
    padding: 24px;
    max-width: 440px;
    margin: 0 auto;
}
.file-description-box {
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-line;
    background: #f8fafc;
    padding: 16px 20px;
    border: 2px solid var(--border-pixel);
    box-shadow: 2px 2px 0 var(--border-pixel);
    font-size: 14px;
    word-break: break-word;
}
.file-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.file-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    gap: 16px;
}
.file-info-row:last-child { border-bottom: none; }
.file-info-label {
    font-family: var(--font-pixel);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}
.file-info-value {
    color: var(--text-main);
    text-align: right;
    word-break: break-all;
}
.share-box-list { display: flex; flex-direction: column; gap: 14px; }
.share-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

/* ===== Pixel Confirmation Modal ===== */
.pixel-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pixel-modal-box {
    background: #ffffff;
    border: 3px solid var(--border-pixel);
    box-shadow: 6px 6px 0px var(--border-pixel);
    max-width: 440px;
    width: 100%;
    padding: 26px;
    text-align: center;
    animation: pixelModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pixelModalPop {
    0% { transform: scale(0.75); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.pixel-modal-header { margin-bottom: 16px; }
.pixel-modal-title {
    font-family: var(--font-pixel);
    font-size: 14px;
    font-weight: 700;
    color: #b45309;
    letter-spacing: 0.5px;
}
.pixel-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.pixel-modal-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0 0 24px;
}
.pixel-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Centered Pop-up Alerts & Toasts (Căn giữa tuyệt đối) ===== */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
}
.toast {
    pointer-events: auto;
    width: max-content;
    min-width: 260px;
    max-width: min(90vw, 440px);
    padding: 14px 24px;
    font-family: var(--font-pixel);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--border-pixel);
    box-shadow: 4px 4px 0px var(--border-pixel);
    box-sizing: border-box;
    animation: toastPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.toast-static {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    width: max-content;
    min-width: 260px;
    max-width: min(90vw, 440px);
    padding: 14px 24px;
    font-family: var(--font-pixel);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--border-pixel);
    box-shadow: 4px 4px 0px var(--border-pixel);
    box-sizing: border-box;
    animation: toastPopCenter 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    margin: 0;
}
.toast-success {
    background: #dcfce7;
    color: #15803d;
    border-color: #16a34a;
}
.toast-error {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #dc2626;
}
.toast-info {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #7c3aed;
}
@keyframes toastPop {
    0% { transform: scale(0.65); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes toastPopCenter {
    0% { transform: translate(-50%, -50%) scale(0.65); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ===== Pixel Dropzone & Pending Upload List ===== */
.dropzone {
    border: 2px dashed var(--purple-1);
    box-shadow: 3px 3px 0 var(--border-pixel);
    background: #f8fafc;
    padding: 38px 20px;
    text-align: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.dropzone.dragover {
    border-color: var(--purple-2);
    background: #f3e8ff;
    box-shadow: 4px 4px 0 var(--border-pixel);
}
.dropzone-icon { font-size: 40px; margin-bottom: 10px; }
.dropzone p { color: var(--text-secondary); margin: 4px 0; }
.dropzone .browse-link { color: var(--purple-1); font-weight: 700; text-decoration: underline; }

/* Pending Files Queue */
.pending-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.pending-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border: 2px solid var(--border-pixel);
    box-shadow: 2px 2px 0 var(--border-pixel);
    gap: 12px;
}
.pending-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}
.pending-file-icon { font-size: 20px; flex-shrink: 0; }
.pending-file-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pending-file-size {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-pixel);
    flex-shrink: 0;
}
.pending-file-remove {
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--font-pixel);
    flex-shrink: 0;
    transition: background .15s;
}
.pending-file-remove:hover {
    background: #fca5a5;
}

.file-preview-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.file-preview-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border: 2px solid var(--border-pixel); box-shadow: 3px 3px 0 var(--border-pixel); background: #ffffff;
}
.file-preview-info { display: flex; align-items: center; gap: 12px; overflow: hidden; min-width: 0; flex: 1; }
.file-preview-icon { font-size: 22px; flex-shrink: 0; }
.file-preview-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-preview-size { color: var(--text-muted); font-size: 11px; font-family: var(--font-pixel); }
.progress-bar-bg { width: 100%; height: 8px; background: #e2e8f0; border: 1px solid var(--border-pixel); overflow: hidden; margin-top: 6px; }
.progress-bar-fill { height: 100%; background: var(--purple-1); width: 0%; transition: width .2s; }

/* ===== Pixel Avatar Picker ===== */
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 8px; }
.avatar-option { position: relative; cursor: pointer; border: 2px solid var(--border-pixel); box-shadow: 3px 3px 0 var(--border-pixel); }
.avatar-option img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.avatar-option.selected { border-color: var(--purple-1); box-shadow: 3px 3px 0 var(--purple-1); transform: translateY(-2px); }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }

/* ===== Pixel Pagination ===== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination-wrap .btn {
    min-width: 36px;
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 32px;
}
.pagination-wrap .btn.active {
    background: var(--purple-1);
    color: #fff;
    pointer-events: none;
}
.pagination-wrap .btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 44px; margin-bottom: 10px; opacity: 0.6; }

.section-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: var(--text-main); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* Dashboard stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    text-align: center;
    border: 2px solid var(--border-pixel);
    box-shadow: 3px 3px 0 var(--border-pixel);
    background: #ffffff;
    padding: 16px;
}
.stat-value { font-size: 26px; font-weight: 700; color: var(--text-main); }
.stat-label { font-family: var(--font-pixel); color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; margin-top: 6px; }

.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #ffffff; padding: 16px 20px; border-bottom: 2px solid var(--border-pixel);
        box-shadow: 0 4px 0 rgba(0,0,0,0.1);
        display: none; gap: 12px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .avatar-grid { grid-template-columns: repeat(4, 1fr); }
    .card { padding: 18px 14px; }
    .main-content { padding: 16px 12px 40px; }
    .two-col-grid { grid-template-columns: 1fr; width: 100%; }
    .two-col-grid > * { min-width: 0; width: 100%; }
    .two-col-grid table { min-width: 100%; }
    .home-auth-hero { display: none !important; }
    .pixel-stats-grid { grid-template-columns: 1fr; }
    .file-list-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .file-item-meta { padding-left: 18px; font-size: 11px; }
    .file-detail-title { font-size: 18px; }
    .file-detail-card { padding: 24px 14px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr; }
    .card { padding: 14px 10px; }
}
