/* ==========================================================================
   MilicCode Studio - macOS 2026 Glassmorphism Dark Mode Design System
   ========================================================================== */

:root {
  --bg-main: #07090e;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.08) 0%, rgba(127, 0, 255, 0.04) 40%, rgba(7, 9, 14, 1) 90%);
  --window-bg: rgba(18, 22, 33, 0.72);
  --window-border: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(26, 32, 48, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(35, 43, 65, 0.75);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f00ff 100%);
  --accent-glow: 0 0 25px rgba(0, 242, 254, 0.35);
  
  --btn-green: #22c55e;
  --btn-red: #ef4444;
  --btn-yellow: #eab308;

  --traffic-red: #ff5f56;
  --traffic-yellow: #ffbd2e;
  --traffic-green: #27c93f;

  --radius-window: 22px;
  --radius-card: 16px;
  --radius-btn: 12px;
  
  --blur: 28px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Apple macOS 2026 Light Mode Design System Overhaul
   ========================================================================== */
[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.14) 0%, rgba(99, 102, 241, 0.08) 45%, rgba(241, 245, 249, 1) 90%);
  --window-bg: rgba(255, 255, 255, 0.94);
  --window-border: rgba(0, 0, 0, 0.12);
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.09);
  --card-hover: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  --accent-glow: 0 0 20px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] body {
  color: #0f172a;
}

[data-theme="light"] .macos-window {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .brand-text h1 {
  background: linear-gradient(135deg, #0f172a 30%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .upload-zone {
  background: rgba(255, 255, 255, 0.85);
  border: 2px dashed rgba(2, 132, 199, 0.3);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .upload-zone:hover,
[data-theme="light"] .upload-zone.dragover {
  background: rgba(2, 132, 199, 0.05);
  border-color: #0284c7;
  box-shadow: 0 0 30px rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .upload-zone h2 {
  color: #0f172a;
}

[data-theme="light"] .upload-zone p {
  color: #475569;
}

[data-theme="light"] .unlimited-badge {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0369a1;
}

[data-theme="light"] .btn-upload {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .btn-upload.folder-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-upload.folder-btn:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .window-titlebar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .window-title {
  color: #1e293b;
}

[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .site-copy-btn,
[data-theme="light"] .site-qr-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-toggle-btn:hover,
[data-theme="light"] .site-copy-btn:hover,
[data-theme="light"] .site-qr-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .lang-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
}

[data-theme="light"] .lang-select:hover {
  background-color: #f8fafc !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .user-session-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-user-auth {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

[data-theme="light"] .btn-user-auth:hover {
  background: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .badge-network {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .stat-chip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-chip .stat-value {
  color: #0284c7;
}

[data-theme="light"] .stat-chip .stat-label {
  color: #64748b;
}

[data-theme="light"] .retention-select-wrap {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .retention-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 5px 28px 5px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
}

[data-theme="light"] .retention-select:hover {
  background-color: #f8fafc !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .autozip-toggle-wrap {
  background: #ffffff !important;
  border: 1.5px solid #94a3b8 !important;
  border-radius: 30px;
  padding: 7px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .autozip-toggle-wrap:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.16) !important;
}

[data-theme="light"] .autozip-text,
[data-theme="light"] .autozip-text strong,
[data-theme="light"] .autozip-label,
[data-theme="light"] .autozip-label span,
[data-theme="light"] strong[data-i18n="autoZipLabel"] {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

[data-theme="light"] .autozip-custom-box {
  background: #f8fafc !important;
  border: 2px solid #64748b !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .autozip-checkbox:checked + .autozip-custom-box {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .autozip-checkbox:checked + .autozip-custom-box::after {
  content: '✓' !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

[data-theme="light"] .upload-settings-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .retention-label,
[data-theme="light"] .retention-label span,
[data-theme="light"] .retention-label svg {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .retention-select {
  background-color: #ffffff !important;
  border: 1.5px solid #94a3b8 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .retention-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .crumb-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
}

[data-theme="light"] .crumb-btn.active {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .btn-folder-action {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .folder-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .folder-card:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .folder-card-name {
  color: #0f172a;
}

[data-theme="light"] .folder-card-count {
  color: #64748b;
}

[data-theme="light"] .file-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .file-item:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.16);
}

[data-theme="light"] .file-icon {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
}

[data-theme="light"] .file-name {
  color: #090d16;
  font-weight: 600;
}

[data-theme="light"] .file-submeta {
  color: #334155;
  font-weight: 500;
}

[data-theme="light"] .file-size-tag {
  color: #0369a1;
  font-weight: 700;
  background: #e0f2fe;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

/* Light Theme - High-Contrast Action Buttons */
[data-theme="light"] .btn-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-action:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .btn-action.download-main {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border: 1px solid #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-action.download-main:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
}

[data-theme="light"] .btn-action.copy {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme="light"] .btn-action.copy:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .btn-action.qr {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

[data-theme="light"] .btn-action.qr:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
}

[data-theme="light"] .btn-action.edit-expiry {
  background: #fef3c7 !important;
  border: 1px solid #fcd34d !important;
  color: #92400e !important;
  font-weight: 600 !important;
}

[data-theme="light"] .btn-action.edit-expiry:hover {
  background: #fde68a !important;
  border-color: #f59e0b !important;
  color: #78350f !important;
}

[data-theme="light"] .btn-action.delete {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
  font-weight: 600;
}

[data-theme="light"] .btn-action.delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

[data-theme="light"] .btn-action.zip-btn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
  font-weight: 600;
}

[data-theme="light"] .btn-action.zip-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

/* Light Theme - Badges and Live Countdowns */
[data-theme="light"] .click-to-dl-badge {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-weight: 600;
}

[data-theme="light"] .live-countdown {
  background: #fef3c7 !important;
  border: 1px solid #fcd34d !important;
  color: #92400e !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.08);
}

[data-theme="light"] .live-countdown.permanent {
  background: #d1fae5 !important;
  border: 1px solid #6ee7b7 !important;
  color: #065f46 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .live-countdown.expired {
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
  color: #991b1b !important;
  font-weight: 700 !important;
}

[data-theme="light"] .expiry-modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

[data-theme="light"] .expiry-modal-card h3 {
  color: #090d16;
}

[data-theme="light"] .expiry-modal-card p {
  color: #475569;
}

[data-theme="light"] .expiry-modal-select {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-expiry-cancel {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

[data-theme="light"] .btn-expiry-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}


[data-theme="light"] .badge-count {
  background: rgba(0, 0, 0, 0.06);
  color: #475569;
}

[data-theme="light"] .upload-progress-container {
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .progress-filename {
  color: #0f172a;
}

[data-theme="light"] .progress-bar-bg {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-progress-ctrl {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-progress-ctrl:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

[data-theme="light"] .resumable-pill {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

[data-theme="light"] .folder-empty-state {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #475569;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .folder-empty-state strong {
  color: #0f172a;
}

[data-theme="light"] .crumb-separator {
  color: #94a3b8;
}

[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(2, 132, 199, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

[data-theme="light"] .empty-state {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .empty-title {
  color: #1e293b;
}

[data-theme="light"] .empty-desc {
  color: #64748b;
}

[data-theme="light"] .window-footer {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-author {
  color: #475569;
}

[data-theme="light"] .footer-author strong {
  color: #0f172a;
}

[data-theme="light"] .btn-contact-footer {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-contact-footer svg {
  color: #0284c7;
}

[data-theme="light"] .btn-contact-footer:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

/* Light Mode Modals & Form Controls */
[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .modal-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .admin-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

[data-theme="light"] .modal-card h3,
[data-theme="light"] .auth-card h3,
[data-theme="light"] .admin-modal-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-close-btn {
  color: #64748b;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

[data-theme="light"] .modal-input,
[data-theme="light"] .modal-textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-input:focus,
[data-theme="light"] .modal-textarea:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}

[data-theme="light"] .form-group label,
[data-theme="light"] .modal-input-group label {
  color: #334155;
}

[data-theme="light"] .btn-primary-modal {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .auth-tabs {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-tab-btn {
  color: #64748b;
}

[data-theme="light"] .auth-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .auth-guest-note {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
}

[data-theme="light"] .auth-divider {
  color: #64748b;
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-oauth.apple {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

[data-theme="light"] .btn-oauth.google {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-oauth.google:hover {
  background: #f8fafc;
}

/* Light Mode Admin Tables & Cards */
[data-theme="light"] .admin-table-wrapper {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .admin-table th {
  background: #f8fafc;
  color: #334155;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .admin-table td {
  color: #0f172a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .admin-msg-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .admin-msg-body {
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .admin-msg-subj {
  color: #0284c7;
}

[data-theme="light"] .btn-admin-purge {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

[data-theme="light"] .btn-admin-purge:hover {
  background: #ef4444;
  color: #ffffff;
}

[data-theme="light"] #adminCleanChunksBtn {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0284c7 !important;
}

[data-theme="light"] #adminCleanChunksBtn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="light"] #adminBackupBtn {
  background: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
  color: #16a34a !important;
}

[data-theme="light"] #adminBackupBtn:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

[data-theme="light"] .badge-lock {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

[data-theme="light"] #adminSecurityView {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a;
}

[data-theme="light"] .btn-secondary-modal {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-secondary-modal:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.25);
  color: #0f172a;
}

[data-theme="light"] .btn-input-eye {
  color: #64748b;
}

[data-theme="light"] .btn-input-eye:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-chip.admin,
[data-theme="light"] .admin-stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .admin-tab-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .admin-tab-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
}

[data-theme="light"] .link-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .link-input {
  color: #0f172a;
}

[data-theme="light"] .social-share-section {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .social-share-title {
  color: #64748b;
}

[data-theme="light"] .btn-qr-download {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-qr-download:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .btn-native-share {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-native-share:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .download-share-panel {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .download-share-label {
  color: #64748b;
}

[data-theme="light"] .download-glass-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .download-title-sr {
  color: #0f172a;
}

[data-theme="light"] .download-file-card {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .download-file-name {
  color: #0f172a;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

select::-ms-expand {
  display: none;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
  transform: scale(0.98);
}

.visually-hidden {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   Universal High-End Custom Scrollbar Design System
   Compatible across Chrome, Safari, Firefox, Edge, iOS, Android, Windows & macOS
   ========================================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Firefox standard scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
  -webkit-tap-highlight-color: transparent;
}

/* WebKit scrollbars (Chrome, Safari, Edge, Opera, iOS, Android) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6366f1, #3b82f6);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Dedicated Admin Panel & Modal Custom Scrollbars (NovaDrop Cyber Blue Glow) */
.admin-dashboard-box,
.admin-table-wrapper,
.admin-msgs-list,
.files-list,
.upload-queue-list,
.modal-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.5) rgba(15, 23, 42, 0.5);
  -webkit-overflow-scrolling: touch;
}

.admin-dashboard-box::-webkit-scrollbar,
.admin-table-wrapper::-webkit-scrollbar,
.admin-msgs-list::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.admin-dashboard-box::-webkit-scrollbar-track,
.admin-table-wrapper::-webkit-scrollbar-track,
.admin-msgs-list::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 9999px;
  margin: 3px;
}

.admin-dashboard-box::-webkit-scrollbar-thumb,
.admin-table-wrapper::-webkit-scrollbar-thumb,
.admin-msgs-list::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.45), rgba(79, 172, 254, 0.6));
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
  transition: all 0.25s ease;
}

.admin-dashboard-box::-webkit-scrollbar-thumb:hover,
.admin-table-wrapper::-webkit-scrollbar-thumb:hover,
.admin-msgs-list::-webkit-scrollbar-thumb:hover,
.modal-card::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00f2fe, #4facfe);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.7);
}

.admin-dashboard-box::-webkit-scrollbar-thumb:active,
.admin-table-wrapper::-webkit-scrollbar-thumb:active,
.admin-msgs-list::-webkit-scrollbar-thumb:active,
.modal-card::-webkit-scrollbar-thumb:active {
  background: #00f2fe;
}

/* Light Theme Scrollbars */
[data-theme="light"] * {
  scrollbar-color: rgba(2, 132, 199, 0.4) transparent;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0284c7, #2563eb);
}

[data-theme="light"] .admin-dashboard-box,
[data-theme="light"] .admin-table-wrapper,
[data-theme="light"] .admin-msgs-list {
  scrollbar-color: rgba(2, 132, 199, 0.5) rgba(241, 245, 249, 0.8);
}

[data-theme="light"] .admin-dashboard-box::-webkit-scrollbar-track,
[data-theme="light"] .admin-table-wrapper::-webkit-scrollbar-track,
[data-theme="light"] .admin-msgs-list::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}

[data-theme="light"] .admin-dashboard-box::-webkit-scrollbar-thumb,
[data-theme="light"] .admin-table-wrapper::-webkit-scrollbar-thumb,
[data-theme="light"] .admin-msgs-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0284c7, #2563eb);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

/* Background Ambient Glows with Silky Floating Micro-Animation */
.ambient-glow-1 {
  position: fixed;
  top: -120px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.14) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: ambientFloat1 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -150px;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(127, 0, 255, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: ambientFloat2 24s ease-in-out infinite alternate;
}

@keyframes ambientFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 60px, 0) scale(0.96); }
}

@keyframes ambientFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, -40px, 0) scale(1.1); }
  100% { transform: translate3d(30px, -20px, 0) scale(0.94); }
}

/* macOS Window Container */
.macos-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1080px;
  background: var(--window-bg);
  backdrop-filter: blur(var(--blur)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(190%);
  border: 1px solid var(--window-border);
  border-radius: var(--radius-window);
  box-shadow: 
    0 35px 90px -15px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 45px -10px rgba(0, 242, 254, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: windowAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes windowAppear {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* macOS Window Titlebar */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  position: relative;
}

.traffic-light.close {
  background: var(--traffic-red);
  box-shadow: 0 0 8px rgba(255, 95, 86, 0.4);
}

.traffic-light.minimize {
  background: var(--traffic-yellow);
  box-shadow: 0 0 8px rgba(255, 189, 46, 0.4);
}

.traffic-light.maximize {
  background: var(--traffic-green);
  box-shadow: 0 0 8px rgba(39, 201, 63, 0.4);
}

.traffic-light:hover {
  transform: scale(1.1);
}

.window-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.window-app-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.window-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 5px 28px 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
}

.lang-select::-ms-expand {
  display: none;
}

.lang-select option {
  background: #181d2a;
  color: #fff;
}

[data-theme="light"] .lang-select option {
  background: #ffffff;
  color: #0f172a;
}

.badge-network {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #4ade80;
}

.network-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Window Content Body */
.window-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* App Header & Branding */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 20px rgba(0, 242, 254, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
  transform: rotate(5deg) scale(1.05);
}

.brand-text h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.header-stats {
  display: flex;
  gap: 16px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 10px 16px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}

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

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Dropzone: Unlimited Drag & Drop Upload */
.upload-zone {
  position: relative;
  background: rgba(14, 19, 29, 0.45);
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.upload-zone:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.04);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
}

.upload-zone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.45);
  transform: translateY(-3px) scale(1.01);
  animation: dragoverPulse 1.2s ease-in-out infinite alternate;
}

@keyframes dragoverPulse {
  0% { box-shadow: 0 0 25px rgba(0, 242, 254, 0.35); }
  100% { box-shadow: 0 0 45px rgba(127, 0, 255, 0.55); border-color: var(--accent-purple); }
}

.upload-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(127, 0, 255, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: floatIcon 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.upload-zone:hover .upload-icon-wrap {
  animation: none;
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}

.upload-zone h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.unlimited-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 18px;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #040914;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.45);
}

/* Active Upload Progress Card */
.upload-progress-container {
  display: none;
  background: rgba(22, 28, 42, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-filename {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.progress-stats {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.progress-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Files Section */
.files-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* File Cards Grid / List */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  animation: fileItemIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

@keyframes fileItemIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.file-item:hover {
  background: var(--card-hover);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 242, 254, 0.12);
  transform: translateY(-2px);
}

.file-item:hover .file-icon {
  transform: scale(1.1) rotate(-4deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-item:active {
  transform: translateY(0) scale(0.985);
}

.file-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.file-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-icon-emoji {
  line-height: 1;
  font-size: 21px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.file-icon-tag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 4px;
  border-radius: 4px;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 1.1;
}

/* Category Specific Themes & Gradients */
.file-type-zip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.1));
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.12), 0 4px 12px rgba(245, 158, 11, 0.15);
}
.file-type-zip .file-icon-tag { background: linear-gradient(135deg, #f59e0b, #d97706); }

.file-type-pdf {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(185, 28, 28, 0.1));
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.12), 0 4px 12px rgba(239, 68, 68, 0.15);
}
.file-type-pdf .file-icon-tag { background: linear-gradient(135deg, #ef4444, #dc2626); }

.file-type-image {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(14, 116, 144, 0.1));
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: inset 0 0 12px rgba(6, 182, 212, 0.12), 0 4px 12px rgba(6, 182, 212, 0.15);
}
.file-type-image .file-icon-tag { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.file-type-video {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(126, 34, 206, 0.1));
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.12), 0 4px 12px rgba(168, 85, 247, 0.15);
}
.file-type-video .file-icon-tag { background: linear-gradient(135deg, #a855f7, #9333ea); }

.file-type-audio {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.1));
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(16, 185, 129, 0.15);
}
.file-type-audio .file-icon-tag { background: linear-gradient(135deg, #10b981, #059669); }

.file-type-doc {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(29, 78, 216, 0.1));
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.12), 0 4px 12px rgba(59, 130, 246, 0.15);
}
.file-type-doc .file-icon-tag { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.file-type-sheet {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(21, 128, 61, 0.1));
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: inset 0 0 12px rgba(34, 197, 94, 0.12), 0 4px 12px rgba(34, 197, 94, 0.15);
}
.file-type-sheet .file-icon-tag { background: linear-gradient(135deg, #22c55e, #16a34a); }

.file-type-presentation {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(194, 65, 12, 0.1));
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: inset 0 0 12px rgba(249, 115, 22, 0.12), 0 4px 12px rgba(249, 115, 22, 0.15);
}
.file-type-presentation .file-icon-tag { background: linear-gradient(135deg, #f97316, #ea580c); }

.file-type-app {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(67, 56, 202, 0.1));
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(99, 102, 241, 0.15);
}
.file-type-app .file-icon-tag { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.file-type-code {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(161, 98, 7, 0.1));
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: inset 0 0 12px rgba(234, 179, 8, 0.12), 0 4px 12px rgba(234, 179, 8, 0.15);
}
.file-type-code .file-icon-tag { background: linear-gradient(135deg, #eab308, #ca8a04); }

.file-type-generic {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(71, 85, 105, 0.08));
  border-color: rgba(148, 163, 184, 0.35);
}
.file-type-generic .file-icon-tag { background: linear-gradient(135deg, #64748b, #475569); }

.file-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.file-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-submeta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-wrap: nowrap;
  line-height: 1.4;
}

.file-folder-badge {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.submeta-sep {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
  flex-shrink: 0;
}

.file-size-tag {
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.file-date-tag,
.file-dl-tag {
  white-space: nowrap;
  flex-shrink: 0;
}

.live-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.btn-action {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  user-select: none;
  height: 31px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.btn-action svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.btn-action.btn-action-delete {
  padding: 0;
  width: 31px;
  height: 31px;
  justify-content: center;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}

.btn-action.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-action.download-main {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.25) 100%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.15);
  padding: 6px 13px;
}

.btn-action.download-main:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}

.btn-action.copy {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
}

.btn-action.copy:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.4);
}

.btn-action.zip-btn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}

.btn-action.zip-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
}

.btn-action.move-folder {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
}

.btn-action.move-folder:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.45);
}

.btn-action.edit-expiry {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.25);
  color: #facc15;
}

.btn-action.edit-expiry:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.45);
}

.btn-action.qr {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.btn-action.qr:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
}

.btn-action.delete {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-action.delete:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

.titlebar-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.upload-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-action.delete {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-action.delete:hover {
  background: rgba(239, 68, 68, 0.18);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Executive Window Footer */
.window-footer {
  padding: 12px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 14, 23, 0.85) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-top: 1px solid rgba(0, 242, 254, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 -8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
}

.footer-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.footer-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(79, 172, 254, 0.06) 100%);
  border: 1px solid rgba(0, 242, 254, 0.28);
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.14);
  transition: all 0.22s ease;
  user-select: none;
  flex-shrink: 0;
}

.footer-brand-badge:hover {
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  transform: translateY(-1px);
}

.footer-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.footer-brand-title {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  font-size: 12px;
}

.footer-version-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer-v-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
  flex-shrink: 0;
}

.footer-author {
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 11.5px;
  flex-shrink: 0;
}

.footer-author strong {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.footer-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  user-select: none;
}

.footer-verified-badge:hover {
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.footer-center-group {
  display: none !important;
}

.footer-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Light Theme Overrides for Executive Footer */
[data-theme="light"] .window-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.92) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 -4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .footer-brand-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(2, 132, 199, 0.05) 100%);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .footer-brand-title {
  color: #0f172a;
}

[data-theme="light"] .footer-v-divider {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .footer-author strong {
  color: #0f172a;
}

[data-theme="light"] .footer-status-chip {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

/* Desktop-Only Visibility Helpers: Hidden on mobile/tablet, visible on desktop (900px+) */
@media (max-width: 899px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 900px) {
  .desktop-only {
    display: inline-flex !important;
  }
}

/* Action Button: Copy Raw URL */
.btn-action.copy-raw {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.btn-action.copy-raw:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.6);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-action.copy-raw {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.24);
  color: #7e22ce;
}

[data-theme="light"] .btn-action.copy-raw:hover {
  background: rgba(147, 51, 234, 0.16);
  border-color: rgba(147, 51, 234, 0.45);
  color: #581c87;
}

/* Modal Popup for QR Code & Sharing */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdropFade 0.22s ease forwards;
}

#oauthModal {
  z-index: 2000;
}

@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: rgba(20, 25, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  text-align: center;
  position: relative;
  animation: modalSpring 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}

@keyframes modalSpring {
  0% { transform: scale(0.88) translateY(20px); opacity: 0; }
  65% { transform: scale(1.02) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.qr-preview-img {
  width: 220px;
  height: 220px;
  margin: 18px auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.link-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.link-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  outline: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   Public Recipient Download Page Styles (Minimalist macOS Glass Card)
   ========================================================================== */
.download-page-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.download-glass-card {
  width: 100%;
  max-width: 520px;
  background: rgba(18, 22, 33, 0.78);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 44px 36px;
  box-shadow: 
    0 40px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: downloadCardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes downloadCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.95);
  }
  60% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.download-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.6), transparent);
}

.download-brand-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 10px 25px rgba(0, 242, 254, 0.35));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.download-title-sr {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.download-title-en {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 24px;
}

.download-file-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: all 0.25s ease;
}

.download-file-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.download-file-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.download-file-card:hover .download-file-icon {
  transform: scale(1.08) rotate(-3deg);
}

.download-file-icon .file-icon-emoji {
  font-size: 28px;
}

.download-file-icon .file-icon-tag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 5px;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  line-height: 1.1;
}

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

.download-file-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.download-file-details {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.btn-download-massive {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 16px;
  color: #040812;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: btnPulseSubtle 3.2s infinite ease-in-out;
}

.btn-download-massive::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShimmerSweep 4.5s infinite;
}

@keyframes btnPulseSubtle {
  0%, 100% {
    box-shadow: 0 12px 35px rgba(0, 242, 254, 0.4);
  }
  50% {
    box-shadow: 0 16px 45px rgba(0, 242, 254, 0.65), 0 0 25px rgba(127, 0, 255, 0.3);
  }
}

@keyframes btnShimmerSweep {
  0% { left: -100%; }
  22%, 100% { left: 160%; }
}

.btn-download-massive:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 50px rgba(0, 242, 254, 0.65), 0 0 30px rgba(127, 0, 255, 0.4);
}

.btn-download-massive:active {
  transform: translateY(0) scale(0.99);
}

.download-security-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.download-author-badge {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  box-sizing: border-box;
}

.download-author-badge strong {
  color: #ffffff;
  font-weight: 700;
}

[data-theme="light"] .download-author-badge {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

[data-theme="light"] .download-author-badge strong {
  color: #0f172a;
}

/* Auto-ZIP Options Toggle */
.upload-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.autozip-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.autozip-toggle-wrap:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
}

.autozip-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  color: var(--text-secondary);
}

.autozip-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.autozip-custom-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.autozip-checkbox:checked + .autozip-custom-box {
  background: var(--accent-gradient);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.autozip-checkbox:checked + .autozip-custom-box::after {
  content: '✓';
  color: #000;
  font-size: 12px;
  font-weight: 900;
}

.autozip-text strong {
  color: var(--text-primary, #ffffff);
}

/* Zip Action Button on File Cards */
.btn-action.zip-btn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.btn-action.zip-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

/* Multi-Channel Social Sharing & QR Suite */
.qr-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
}

.btn-qr-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-qr-download:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.share-lang-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 14px 0;
  text-align: left;
}

.share-lang-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-lang-pills {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-share-lang {
  flex: 1;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-share-lang:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-share-lang.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(79, 172, 254, 0.22));
  border-color: #00F2FE;
  color: #00F2FE;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.28);
}

.social-share-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  text-align: left;
}

.social-share-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.social-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.social-share-grid.mini {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.social-btn.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25D366;
}

.social-btn.whatsapp:hover {
  background: #25D366;
  color: #000;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.social-btn.viber {
  background: rgba(115, 96, 242, 0.15);
  border-color: rgba(115, 96, 242, 0.35);
  color: #a78bfa;
}

.social-btn.viber:hover {
  background: #7360F2;
  color: #fff;
  box-shadow: 0 4px 15px rgba(115, 96, 242, 0.4);
}

.social-btn.email {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.35);
  color: #38bdf8;
}

.social-btn.email:hover {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.social-btn.telegram {
  background: rgba(0, 136, 204, 0.15);
  border-color: rgba(0, 136, 204, 0.35);
  color: #0088cc;
}

.social-btn.telegram:hover {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.social-btn.mobile-native {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-native-share {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-native-share:hover {
  background: rgba(255, 255, 255, 0.12);
}

.download-share-panel {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.download-share-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  text-align: center;
}

/* ==========================================================================
/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness (iPhone / Android / iPad)
   ========================================================================== */
/* Tablet Responsiveness (iPad / Android Tablets: 769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    padding: 20px 16px;
  }

  .macos-window {
    max-width: 100%;
    border-radius: 22px;
  }

  .window-content {
    padding: 22px 24px;
    gap: 22px;
  }

  .folders-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .file-item {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 14px;
  }

  .file-info-group {
    width: 100%;
    min-width: 0;
  }

  .file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    margin-left: 0;
    width: 100%;
  }

  .btn-action {
    padding: 7px 12px;
    font-size: 12px;
    min-height: 36px;
    border-radius: 9px;
    touch-action: manipulation;
  }

  .btn-action:active {
    transform: scale(0.97);
  }

  .queue-item {
    padding: 12px 16px;
  }

  /* Tablet Footer (iPad / Android Tablets: 769px - 1024px) */
  .window-footer {
    padding: 12px 20px;
    gap: 12px;
  }

  .footer-left-group {
    gap: 8px;
  }

  .footer-v-divider {
    display: none;
  }

  .footer-status-chip {
    padding: 4px 10px;
    font-size: 10.5px;
  }

  .btn-contact-footer {
    padding: 6px 12px;
    font-size: 11.5px;
    min-height: 36px;
  }
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness (Smartphones: <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 8px 8px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .macos-window {
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .window-titlebar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .traffic-lights {
    justify-content: flex-start;
  }

  .window-title-group {
    justify-content: center;
  }

  .window-title {
    font-size: 12.5px;
    font-weight: 600;
  }

  .window-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .window-actions::-webkit-scrollbar {
    display: none;
  }

  .theme-toggle-btn,
  .lang-select {
    flex-shrink: 0;
    min-height: 38px;
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 12px;
    touch-action: manipulation;
  }

  .user-session-pill {
    max-width: 100%;
    flex-shrink: 0;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 12px;
  }

  .user-name-text {
    max-width: 110px;
  }

  .window-content {
    padding: 16px 12px;
    gap: 18px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text h1 {
    font-size: 21px;
    letter-spacing: -0.3px;
  }

  .header-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-chip {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .stat-value {
    font-size: 16px;
  }

  .upload-zone {
    padding: 22px 14px;
    border-radius: 20px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .upload-zone:active {
    transform: scale(0.99);
  }

  .upload-icon-wrap {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
  }

  .upload-zone h2 {
    font-size: 16.5px;
  }

  .upload-buttons-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-upload {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 700;
    min-height: 50px;
    border-radius: 14px;
    touch-action: manipulation;
  }

  .btn-upload.folder-btn {
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 16px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.08);
  }

  .btn-upload:active {
    transform: scale(0.98);
  }

  .upload-settings-external-panel {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .upload-options-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-top: 12px;
  }

  .autozip-toggle-wrap,
  .retention-select-wrap {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
  }

  .section-titlebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .folder-actions-bar {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .btn-folder-action {
    flex: 1;
    justify-content: center;
    min-height: 42px;
    font-size: 13px;
    border-radius: 12px;
    touch-action: manipulation;
  }

  /* Ergonomic 2-Column Grid on Mobile for Modern App Feel */
  .folders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .folder-card {
    padding: 12px 12px;
    border-radius: 14px;
    min-height: 70px;
    touch-action: manipulation;
  }

  .folder-card:active {
    transform: scale(0.97);
  }

  .folder-card-icon {
    font-size: 20px;
  }

  .folder-card-name {
    font-size: 13px;
    font-weight: 600;
  }

  .folder-card-count {
    font-size: 10.5px;
  }

  .btn-card-mini {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .file-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .file-info-group {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

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

  .file-name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
  }

  .file-submeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.5;
  }

  /* File actions on mobile: 2-column balanced grid with massive 1-click Download */
  .file-actions {
    margin-left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .btn-action {
    justify-content: center;
    padding: 10px 8px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 44px;
    border-radius: 12px;
    touch-action: manipulation;
  }

  .btn-action:active {
    transform: scale(0.97);
  }

  .btn-action.download-main {
    grid-column: 1 / -1;
    min-height: 48px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 13px;
  }

  .btn-action.download-main svg {
    width: 17px;
    height: 17px;
  }

  .btn-action.delete:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Responsive Mobile Upload Queue Cards */
  .queue-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 16px;
    touch-action: manipulation;
  }

  .queue-item-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .queue-item-name {
    max-width: 68%;
    font-size: 13.5px;
    font-weight: 600;
  }

  .queue-item-progress-track {
    height: 8px;
    margin: 4px 0;
  }

  .queue-item-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.5px;
  }

  .queue-item-actions {
    margin-top: 6px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .btn-queue-priority,
  .btn-queue-cancel {
    min-height: 38px;
    padding: 7px 16px;
    font-size: 12.5px;
    border-radius: 10px;
    touch-action: manipulation;
  }

  .btn-queue-priority:active,
  .btn-queue-cancel:active {
    transform: scale(0.97);
  }

  /* Expiry Modal on Mobile */
  .expiry-modal-overlay {
    padding: 12px;
  }

  .expiry-modal-card {
    padding: 22px 18px;
    border-radius: 20px;
    max-width: 100%;
  }

  /* Executive Window Footer Responsive Tray (Mobile: <= 768px) */
  .window-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 16px 14px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .footer-left-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-v-divider {
    display: none !important;
  }

  .footer-brand-badge {
    padding: 4px 12px;
    font-size: 11.5px;
    gap: 6px;
  }

  .footer-author {
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.45;
    width: 100%;
    color: var(--text-muted);
  }

  .footer-author strong {
    color: #ffffff;
  }

  .footer-verified-badge {
    font-size: 9.5px;
    padding: 1px 6px;
  }

  .footer-center-group {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-status-chip {
    padding: 4px 12px;
    font-size: 11px;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer-right-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    margin-top: 2px;
  }

  .btn-contact-footer {
    width: 100%;
    justify-content: center;
    padding: 9px 8px;
    min-height: 40px;
    border-radius: 11px;
    font-size: 11.5px;
    box-sizing: border-box;
    touch-action: manipulation;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .modal-card {
    padding: 22px 18px;
    border-radius: 22px;
    width: 95%;
    max-width: 440px;
    max-height: 94vh;
  }

  .modal-input,
  .modal-textarea,
  .retention-select,
  .lang-select {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    border-radius: 12px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-wrapper {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    white-space: nowrap;
  }

  .qr-preview-img {
    width: 190px;
    height: 190px;
  }

  .social-share-grid.mini {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Small Mobile Screens (iPhone SE / Compact phones: <= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .download-glass-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .download-brand-logo {
    width: 56px;
    height: 56px;
  }

  .download-title-sr {
    font-size: 18px;
  }

  .download-file-card {
    padding: 14px;
    gap: 10px;
  }

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

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

  .btn-download-massive {
    padding: 14px 16px;
    font-size: 13px;
  }

  .social-share-grid {
    grid-template-columns: 1fr;
  }

  /* Compact Mobile Footer (<= 480px) */
  .window-footer {
    padding: 12px 10px 14px 10px;
    gap: 8px;
  }

  .footer-brand-title {
    font-size: 11px;
  }

  .footer-version-tag {
    font-size: 9px;
    padding: 1px 5px;
  }

  .footer-status-chip {
    font-size: 10px;
    padding: 3px 10px;
    white-space: nowrap;
  }

  .footer-author {
    font-size: 10.5px;
  }

  .btn-contact-footer {
    font-size: 10.5px;
    padding: 8px 6px;
    gap: 5px;
    min-height: 38px;
  }

  .btn-contact-footer svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }
}

/* Extra-narrow smartphones (<= 350px) */
@media (max-width: 350px) {
  .footer-right-group {
    grid-template-columns: 1fr !important;
  }
  .footer-status-chip {
    font-size: 9.5px;
    padding: 3px 8px;
  }
}

/* ==========================================================================
   User Session Pill & Retention Selector (macOS 2026 Glass)
   ========================================================================== */
.user-session-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 18px;
  height: 30px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.user-session-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 254, 0.35);
}

/* Logged-In State Micro-Animations & Glow */
.user-session-pill.is-authenticated {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.12), inset 0 0 6px rgba(34, 197, 94, 0.06);
}

.user-session-pill.is-authenticated:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.22);
}

@keyframes pulseGreenRing {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 0 8px #22c55e;
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0), 0 0 14px #22c55e;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 0 8px #22c55e;
  }
}

.user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  flex-shrink: 0;
  transition: all 0.3s;
}

.user-status-dot.logged-in,
.user-session-pill.is-authenticated .user-status-dot {
  background: #22c55e;
  animation: pulseGreenRing 2.4s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.user-session-pill.is-authenticated .user-avatar-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-session-pill.is-authenticated:hover .user-avatar-icon {
  transform: scale(1.22) rotate(-8deg);
}

/* Guest / Logged-Out State Micro-Animations */
@keyframes pulseCyanDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
  }
  50% {
    transform: scale(1.28);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.95);
  }
}

.user-session-pill.is-guest .user-status-dot,
.user-status-dot:not(.logged-in) {
  background: #38bdf8;
  animation: pulseCyanDot 2.8s infinite ease-in-out;
}

@keyframes authBtnGlow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 242, 254, 0);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
  }
}

.user-session-pill.is-guest .btn-user-auth {
  animation: authBtnGlow 3.5s infinite ease-in-out;
}

.user-name-text {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.user-session-pill:hover .user-name-text {
  max-width: 320px;
}

.btn-auth-action {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: underline;
}

.btn-auth-action:hover {
  color: #fff;
  background: rgba(0, 242, 254, 0.15);
}

/* External Settings Panel (Outside Drop-In Zone Frame) */
.upload-settings-external-panel {
  width: 100%;
  margin: 18px 0 24px;
  background: rgba(18, 22, 33, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.upload-settings-external-panel:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.upload-settings-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent-cyan);
}

.upload-settings-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

[data-theme="light"] .upload-settings-external-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .upload-settings-title {
  color: #1e293b;
}

.upload-options-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2px;
}

.retention-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  color: var(--text-secondary);
}

.retention-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: rgba(18, 22, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  padding: 5px 28px 5px 10px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
}

.retention-select::-ms-expand {
  display: none;
}

/* ==========================================================================
   Auth Modal (Google, Apple, Classic Password)
   ========================================================================== */
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin: 16px 0 20px;
  gap: 6px;
}

.auth-tab,
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

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

.auth-tab.active,
.auth-tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.auth-tabs.admin .auth-tab-btn.active {
  background: var(--accent-gradient);
  color: #040812;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.35);
}

.oauth-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.btn-oauth.google {
  background: #ffffff;
  color: #1f2937;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-oauth.google:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-oauth.apple {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-oauth.apple:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 10px;
}

.modal-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.modal-input-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.modal-input,
.modal-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.modal-input:focus,
.modal-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
  background: rgba(0, 0, 0, 0.35);
}

.modal-textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-primary-modal {
  width: 100%;
  padding: 12px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #040812;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
  margin-top: 8px;
}

.btn-primary-modal:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
}

.btn-secondary-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-secondary-modal:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-input-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-input-eye:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.auth-footer-help {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.4;
}

/* ==========================================================================
   Master Admin Panel Modal (Shortcut: Ctrl + Shift + A | Pass: mupp2000)
   ========================================================================== */
.modal-backdrop.admin-modal-backdrop {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(4, 7, 15, 0.85);
  z-index: 9999;
}

.modal-card.admin-modal-card {
  max-width: 1080px;
  width: 95%;
  max-height: 92vh;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.98), rgba(9, 13, 22, 0.99));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

/* Application Titlebar */
.admin-app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.admin-app-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.08));
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
  flex-shrink: 0;
}

.admin-title-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-app-title {
  font-weight: 700;
  font-size: 14px;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.admin-app-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  user-select: none;
}

.btn-admin-top:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-admin-top.btn-admin-refresh {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
  color: #00f2fe;
}

.btn-admin-top.btn-admin-refresh:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

@keyframes spinRefresh {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.refresh-svg-icon.rotating {
  animation: spinRefresh 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin-top.btn-admin-logout {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-admin-top.btn-admin-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.admin-close-x {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.admin-close-x:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
  transform: scale(1.05);
}

/* Admin Login Hero Box */
.admin-login-box {
  padding: 56px 24px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.admin-lock-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.05));
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 242, 254, 0.2);
}

.admin-login-hero h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.admin-login-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 26px;
}

/* Unlocked Dashboard Content */
.admin-dashboard-box {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* KPI Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-chip.admin {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-chip.admin:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.08);
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.stat-chip.admin:hover .admin-stat-icon {
  transform: scale(1.08);
}

.admin-stat-icon.icon-files {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.15);
}

.admin-stat-icon.icon-storage {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15);
}

.admin-stat-icon.icon-users {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.15);
}

.admin-stat-icon.icon-system {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.15);
}

.admin-stat-meta {
  display: flex;
  flex-direction: column;
}

.stat-chip.admin .stat-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
  letter-spacing: -0.3px;
}

.stat-chip.admin .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* Tabs & Toolbar */
.auth-tabs.admin {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.auth-tabs.admin::-webkit-scrollbar {
  display: none;
}

.auth-tabs.admin .auth-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}

.auth-tabs.admin .auth-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.auth-tabs.admin .auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.16), rgba(79, 172, 254, 0.2));
  border-color: rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.12);
}

.admin-tab-count {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  margin-left: 2px;
}

.admin-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.admin-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-search-input {
  width: 100%;
  padding-left: 40px;
  font-size: 13px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.admin-search-input:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

/* Admin Table Styles */
.admin-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 29, 0.65);
  max-height: 460px;
  overflow-y: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.045);
  padding: 11px 16px;
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.admin-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.admin-badge.guest {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.admin-badge.user {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* System & Diagnostics Tab Grid */
.admin-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-system-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.admin-diag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.admin-diag-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.admin-diag-val {
  color: var(--accent-cyan);
  font-weight: 700;
}

.admin-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-admin-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  width: 100%;
}

.btn-admin-action-card .action-icon {
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-admin-action-card .action-text strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.btn-admin-action-card .action-text span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.btn-admin-action-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-admin-action-card.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.btn-admin-action-card.danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-admin-action-card.danger .action-text strong {
  color: #f87171;
}

/* Light Theme Admin Overrides */
[data-theme="light"] .modal-card.admin-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.16);
  color: #0f172a;
}

[data-theme="light"] .admin-app-titlebar {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .stat-chip.admin {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .auth-tabs.admin {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .admin-table-wrapper {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .admin-table th {
  background: #f8fafc;
  color: #475569;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .admin-table td {
  border-bottom-color: #f1f5f9;
}

[data-theme="light"] .admin-table tr:hover td {
  background: #f8fafc;
}

[data-theme="light"] .admin-system-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .btn-admin-action-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .btn-admin-action-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .modal-card.admin-modal-card {
    width: 98vw;
    max-width: 98vw;
    max-height: 96vh;
    border-radius: 16px;
  }

  .admin-app-titlebar {
    padding: 10px 14px;
  }

  .admin-app-title {
    font-size: 12px;
  }

  .admin-dashboard-box {
    padding: 12px 14px;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .stat-chip.admin {
    padding: 10px 12px;
  }

  .admin-stat-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .stat-chip.admin .stat-value {
    font-size: 15px;
  }

  .admin-system-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .hide-mobile {
    display: none !important;
  }
}

.admin-badge.guest {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.admin-badge.user {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.btn-action.purge {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-action.purge:hover {
  background: #ef4444;
  color: #fff;
}

.footer-btn-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-btn-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Animated Progress Bar with Candy-Stripe Shimmer & Auto-Resume
   ========================================================================== */
.progress-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resumable-pill {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.5); }
}

.btn-progress-ctrl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-progress-ctrl:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-progress-ctrl.cancel {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  margin-left: 6px;
}

.btn-progress-ctrl.cancel:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
}

/* Upload Recovery Card (Persistent upon refresh) */
.upload-recovery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
  animation: slideDownFade 0.35s ease-out;
}

[data-theme="light"] .upload-recovery-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.recovery-icon {
  font-size: 26px;
  animation: rotateIcon 4s linear infinite;
}

@keyframes rotateIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.recovery-info {
  flex: 1;
}

.recovery-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 3px;
}

[data-theme="light"] .recovery-title {
  color: #0284c7;
}

.recovery-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.recovery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-recovery-resume {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #000000;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}

.btn-recovery-resume:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 242, 254, 0.4);
}

.btn-recovery-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-recovery-dismiss:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.progress-bar-bg.animated-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}

.progress-bar-fill.animated-shimmer {
  width: 0%;
  height: 100%;
  border-radius: 20px;
  background-image: 
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.22) 50%,
      rgba(255, 255, 255, 0.22) 75%,
      transparent 75%,
      transparent
    ),
    var(--accent-gradient);
  background-size: 28px 28px, 100% 100%;
  animation: progressStripe 0.8s linear infinite;
  position: relative;
  transition: width 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes progressStripe {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 28px 0, 0 0; }
}

.progress-glow-head {
  position: absolute;
  top: 0;
  right: -2px;
  width: 8px;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffffff, 0 0 20px #00f2fe;
  animation: glowHeadPulse 1.2s ease-in-out infinite alternate;
}

@keyframes glowHeadPulse {
  0% {
    box-shadow: 0 0 10px #ffffff, 0 0 18px #00f2fe;
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 18px #ffffff, 0 0 28px #00f2fe, 0 0 38px #7f00ff;
    opacity: 1;
    transform: scaleY(1.15);
  }
}

.progress-retry-notice {
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  font-size: 12px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInNotice 0.3s ease;
}

@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   User Folders & Directory System (macOS Glass Grid)
   ========================================================================== */
.btn-upload.folder-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

.btn-upload.folder-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 242, 254, 0.4);
}

.folders-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.folder-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.crumb-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

.crumb-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.crumb-separator {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  user-select: none;
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
}

.folder-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-folder-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-folder-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-folder-action.zip-dl {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.btn-folder-action.zip-dl:hover {
  background: rgba(245, 158, 11, 0.25);
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.folder-empty-state {
  grid-column: 1 / -1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.folder-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  text-decoration: none;
  animation: folderIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

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

.folder-card:hover {
  background: var(--card-hover);
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.folder-card:hover .folder-card-icon {
  transform: scale(1.15) rotate(6deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.folder-card.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.folder-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.folder-card-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}

.folder-card-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.folder-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-card-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.folder-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-card-mini {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.btn-card-mini:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-card-mini.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Micro-interaction Ripple on Upload Zone */
.upload-zone {
  position: relative;
  overflow: hidden;
}

.upload-zone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.35);
  transform: scale(1.01);
}

.upload-zone::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.upload-zone.dragover::after {
  opacity: 1;
  animation: pulseRipple 2s infinite linear;
}

@keyframes pulseRipple {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  100% { transform: scale(0.9); }
}

/* ==========================================================================
   macOS Window Footer Contact Button & Header Auth Button
   ========================================================================== */
.btn-contact-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-contact-footer svg {
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.btn-contact-footer:hover {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.35);
}

.btn-contact-footer:hover svg {
  transform: scale(1.15);
}

.btn-contact-footer:active {
  transform: translateY(0);
}

.btn-user-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.2;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-user-auth:hover {
  background: var(--accent-cyan);
  color: #040812;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
  transform: translateY(-0.5px);
}

/* Admin Contact Messages Viewer */
.admin-msgs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px;
}

.admin-msg-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  transition: background 0.2s;
}

.admin-msg-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.admin-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 13px;
}

.admin-msg-time {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-msg-subj {
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.admin-msg-body {
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Help & User Guide Modal & Responsive Grid
   ========================================================================== */
.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-modal-card {
  max-width: 820px;
  width: 95%;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
  padding: 28px 32px;
  box-sizing: border-box;
}

.help-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .help-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.help-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.help-modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.help-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.help-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .help-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .help-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.help-icon-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.help-item-content h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

[data-theme="light"] .help-item-content h4 {
  color: #0f172a;
}

.help-item-content p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

[data-theme="light"] .help-item-content p {
  color: #475569;
}

.help-modal-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

[data-theme="light"] .help-modal-actions {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Responsive tweaks for Help modal on tablets & mobile phones */
@media (max-width: 768px) {
  .help-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .help-modal-card {
    padding: 20px 16px;
    width: 94%;
  }

  .help-modal-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ==========================================================================
   Modern Contact Form & OAuth Prompt Styles
   ========================================================================== */
.contact-modal-card {
  max-width: 620px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
  padding: 30px 34px;
  box-sizing: border-box;
}

.contact-header-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .contact-header-wrap {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.contact-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(127, 0, 255, 0.25));
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.contact-header-info h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-header-info p {
  margin: 3px 0 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Quick Topic Chips */
.contact-topics-section {
  margin-bottom: 18px;
}

.contact-topics-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.topic-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.3);
}

.topic-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .topic-chip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .topic-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .topic-chip.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: #0284c7;
  color: #0369a1;
}

/* 2-Column Inputs */
.contact-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-input-group {
  margin-bottom: 14px;
}

.contact-input-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

[data-theme="light"] .contact-input-group label {
  color: #334155;
}

.lbl-icon {
  font-size: 14px;
}

.contact-field {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-field:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .contact-field {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .contact-field:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.textarea-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.contact-char-count {
  font-size: 11px;
  color: var(--text-muted);
}

.contact-field.textarea-field {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

/* Bottom Bar */
.contact-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .contact-bottom-bar {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.contact-sec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-submit-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-submit-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
}

.btn-submit-contact:active {
  transform: translateY(0);
}

/* OAuth Details Modal */
.oauth-modal-card {
  max-width: 460px;
  width: 95%;
  padding: 28px 30px;
  text-align: left;
}

.oauth-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.oauth-provider-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.oauth-header-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.oauth-header-text p {
  margin: 3px 0 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.oauth-quick-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.oauth-quick-profile:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

[data-theme="light"] .oauth-quick-profile {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.35);
}

.quick-profile-avatar {
  font-size: 24px;
}

.quick-profile-details {
  flex: 1;
}

.quick-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-profile-email {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.quick-profile-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

[data-theme="light"] .quick-profile-badge {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

@media (max-width: 600px) {
  .contact-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-modal-card {
    padding: 22px 18px;
  }

  .contact-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

/* ==========================================================================
   Site Address Copy & Enhanced High-Contrast QR Code Styles
   ========================================================================== */
.site-copy-btn,
.site-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 11px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  height: 30px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-copy-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-1px);
}

.site-qr-btn:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: #a855f7;
  color: #c084fc;
  transform: translateY(-1px);
}

/* Hero Site Address Pill */
.hero-site-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-site-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

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

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

.hero-site-pill .copy-tag {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

[data-theme="light"] .hero-site-pill {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .hero-site-pill .copy-tag {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
}

/* Enhanced High-Contrast QR Code White Card */
.qr-white-card {
  background: #ffffff;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-white-card:hover {
  transform: scale(1.02);
}

.qr-preview-img {
  width: 210px;
  height: 210px;
  display: block;
  border-radius: 6px;
  image-rendering: pixelated;
  image-rendering: -webkit-optimize-contrast;
}
/* ==========================================================================
   Tactile Micro-Animations & High-Performance Transitions
   ========================================================================== */
button,
.primary-btn,
.secondary-btn,
.glass-btn,
.icon-action-btn,
.tab-btn,
.admin-tab-btn,
.admin-action-btn,
.nav-auth-btn,
.help-pill,
.chip,
.quick-action-pill,
.btn-folder-action {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

button:active:not(:disabled),
.primary-btn:active:not(:disabled),
.secondary-btn:active:not(:disabled),
.glass-btn:active:not(:disabled),
.icon-action-btn:active:not(:disabled),
.tab-btn:active:not(:disabled),
.admin-tab-btn:active:not(:disabled),
.admin-action-btn:active:not(:disabled),
.nav-auth-btn:active:not(:disabled),
.help-pill:active:not(:disabled),
.chip:active:not(:disabled),
.quick-action-pill:active:not(:disabled),
.btn-folder-action:active:not(:disabled) {
  transform: scale(0.96) !important;
}

/* Copied Pulse Bounce Effect */
.copied-bounce {
  animation: copyBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes copyBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Tab Active Glowing Border Pulse */
.tab-btn.active,
.admin-tab-btn.active {
  animation: tabGlow 2.5s ease-in-out infinite alternate;
}

@keyframes tabGlow {
  0% { box-shadow: 0 0 10px rgba(0, 242, 254, 0.25); }
  100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.5); }
}

/* Ultra-Fast Responsive Performance: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
   Live Countdown Timer on Download Page & File Cards
   ============================================================= */
.download-timer-container {
  width: 100%;
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
}

.download-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 30px;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

[data-theme="light"] .download-timer-pill {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0284c7;
}

.download-timer-pill .timer-digits {
  color: #00f2fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

[data-theme="light"] .download-timer-pill .timer-digits {
  color: #0369a1;
}

.download-timer-pill .timer-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: timerPulse 1.5s infinite ease-in-out;
}

.download-timer-pill.expired {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.download-timer-pill.expired .timer-live-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: none;
}

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

/* Live Countdown Badge in File Cards */
.live-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.live-countdown.permanent {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
  font-family: inherit;
}

.live-countdown.expired {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

/* Expiration Change Action Button on File Cards */
.btn-action.edit-expiry {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}

.btn-action.edit-expiry:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

/* Expiration Change Modal */
.expiry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 25, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.expiry-modal-card {
  width: 100%;
  max-width: 440px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .expiry-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.expiry-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .expiry-modal-title {
  color: #0f172a;
}

.expiry-modal-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.4;
}

.expiry-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.expiry-opt-btn {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: all 0.2s ease;
}

[data-theme="light"] .expiry-opt-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

.expiry-opt-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: #00f2fe;
  color: #00f2fe;
  transform: translateY(-2px);
}

[data-theme="light"] .expiry-opt-btn:hover {
  background: rgba(0, 150, 255, 0.1);
  border-color: #0096ff;
  color: #0066cc;
}

.expiry-opt-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
  border-color: #00f2fe;
  color: #00f2fe;
}

.expiry-modal-close-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.expiry-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

/* =============================================================
   Multi-file Upload Queue List
   ============================================================= */
.upload-queue-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.25s ease;
}

[data-theme="light"] .queue-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.queue-item.active-uploading {
  border-color: rgba(0, 242, 254, 0.35);
  background: rgba(0, 242, 254, 0.05);
}

.queue-item-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.queue-item-details {
  flex: 1;
  min-width: 0;
}

.queue-item-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.queue-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

[data-theme="light"] .queue-item-name {
  color: #0f172a;
}

.queue-item-status {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
}

.queue-item-status.pending {
  color: #94a3b8;
}

.queue-item-status.completed {
  color: #10b981;
}

.queue-item-status.cancelled {
  color: #ef4444;
}

.queue-item-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .queue-item-progress-track {
  background: #e2e8f0;
}

.queue-item-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
  border-radius: 4px;
  transition: width 0.2s ease-out;
}

.queue-item-progress-fill.completed {
  background: #10b981;
}

.queue-item-progress-fill.cancelled {
  background: #ef4444;
}

.queue-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.btn-queue-cancel {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-queue-cancel:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.queue-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-queue-priority {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-queue-priority:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.35));
  border-color: #00f2fe;
  color: #ffffff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.btn-queue-priority:active {
  transform: scale(0.96);
}

.queue-item.clickable-pending {
  cursor: pointer;
}

.queue-item.clickable-pending:hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.04);
}

.queue-item.is-priority {
  border-color: rgba(251, 191, 36, 0.6) !important;
  background: rgba(251, 191, 36, 0.06) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.18) !important;
  animation: priorityPulse 2s infinite alternate ease-in-out;
}

@keyframes priorityPulse {
  0% { box-shadow: 0 0 8px rgba(251, 191, 36, 0.12); }
  100% { box-shadow: 0 0 18px rgba(251, 191, 36, 0.35); }
}

.queue-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}

/* Light Theme Overrides for Queue Items & Priority */
[data-theme="light"] .queue-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .queue-item.active-uploading {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.05);
}

[data-theme="light"] .queue-item-icon {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .queue-item-meta {
  color: #475569;
  font-weight: 500;
}

[data-theme="light"] .queue-item-status.pending {
  color: #64748b;
}

[data-theme="light"] .queue-item-status {
  color: #0284c7;
}

[data-theme="light"] .btn-queue-priority {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: #0284c7;
  font-weight: 700;
}

[data-theme="light"] .btn-queue-priority:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .queue-priority-badge {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-weight: 700;
}

[data-theme="light"] .queue-item.is-priority {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .btn-queue-cancel {
  border-color: #fca5a5;
  color: #dc2626;
  background: #fef2f2;
}

[data-theme="light"] .btn-queue-cancel:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

/* ==========================================================================
   Drag & Drop File Movement & Move Modal Styles (NovaDrop 2026)
   ========================================================================== */
.file-item[draggable="true"] {
  cursor: grab;
}

.file-item[draggable="true"]:active {
  cursor: grabbing;
}

.file-item.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
  border: 1.5px dashed var(--accent-cyan) !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3) !important;
}

.folder-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.folder-card.folder-drag-over,
.crumb-btn.folder-drag-over {
  border-color: var(--accent-cyan) !important;
  background: rgba(0, 242, 254, 0.15) !important;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.5), inset 0 0 12px rgba(0, 242, 254, 0.2) !important;
  transform: scale(1.03) !important;
}

.btn-action.move-folder {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-action.move-folder:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.move-file-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-card);
  padding: 24px;
}

[data-theme="light"] .folder-card.folder-drag-over,
[data-theme="light"] .crumb-btn.folder-drag-over {
  border-color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.12) !important;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4), inset 0 0 8px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .file-item.is-dragging {
  border-color: #0284c7 !important;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .btn-action.move-folder {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.35);
  color: #0284c7;
}

[data-theme="light"] .btn-action.move-folder:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* ==========================================================================
   Desktop Modern Micro-Animations & Interactions 2026
   ========================================================================== */
@keyframes progressShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.progress-bar-fill {
  background-size: 200% 100% !important;
  animation: progressShimmer 2.2s infinite linear !important;
}

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

.file-item {
  animation: smoothCardFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.folder-card {
  animation: smoothCardFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

@media (min-width: 1025px) {
  .folder-card:hover {
    transform: translateY(-2px);
  }
  
  .file-item:hover {
    transform: translateY(-1px);
  }
}

@keyframes uploadGlowPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.15), inset 0 0 16px rgba(0, 242, 254, 0.05);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 242, 254, 0.35), inset 0 0 24px rgba(0, 242, 254, 0.12);
  }
}

.upload-zone.dragover,
.upload-zone.is-uploading {
  animation: uploadGlowPulse 2.2s infinite ease-in-out;
}

.btn-action {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action:hover {
  transform: translateY(-1.5px);
}

.btn-upload {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.btn-upload:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.05);
}

.macos-window {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   Light Mode Absolute Contrast & Readability Shield (Guaranteed Overrides)
   ========================================================================== */
[data-theme="light"] .autozip-toggle-wrap,
[data-theme="light"] #uploadSettingsPanel .autozip-toggle-wrap {
  background: #ffffff !important;
  border: 1.5px solid #64748b !important;
  border-radius: 30px !important;
  padding: 8px 18px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .autozip-toggle-wrap:hover,
[data-theme="light"] #uploadSettingsPanel .autozip-toggle-wrap:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2) !important;
}

[data-theme="light"] .autozip-label,
[data-theme="light"] .autozip-label span,
[data-theme="light"] .autozip-text,
[data-theme="light"] .autozip-text strong,
[data-theme="light"] [data-i18n="autoZipLabel"] {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

[data-theme="light"] .autozip-custom-box {
  background: #f8fafc !important;
  border: 2px solid #475569 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .autozip-checkbox:checked + .autozip-custom-box {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .autozip-checkbox:checked + .autozip-custom-box::after {
  content: '✓' !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

[data-theme="light"] .upload-settings-external-panel {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .upload-settings-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .retention-select-wrap {
  background: #ffffff !important;
  border: 1.5px solid #64748b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .retention-label,
[data-theme="light"] .retention-label span,
[data-theme="light"] .retention-label svg {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .retention-select {
  background-color: #ffffff !important;
  border: 1.5px solid #64748b !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .retention-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .macos-window {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

/* Light Theme Social Buttons High Contrast */
[data-theme="light"] .social-btn.whatsapp {
  background: #dcfce7 !important;
  border: 1px solid #86efac !important;
  color: #15803d !important;
}

[data-theme="light"] .social-btn.whatsapp:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

[data-theme="light"] .social-btn.viber {
  background: #f3e8ff !important;
  border: 1px solid #d8b4fe !important;
  color: #6d28d9 !important;
}

[data-theme="light"] .social-btn.viber:hover {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
}

[data-theme="light"] .social-btn.email {
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
}

[data-theme="light"] .social-btn.email:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .social-btn.telegram {
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .social-btn.telegram:hover {
  background: #0088cc !important;
  color: #ffffff !important;
  border-color: #0088cc !important;
}

/* ==========================================================================
   NovaDrop Dynamic File Size Limit Badges & Preferences Trigger
   ========================================================================== */
.unlimited-badge.is-guest {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
}

.unlimited-badge.is-user {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}

[data-theme="light"] .unlimited-badge.is-guest {
  background: #fef3c7 !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

[data-theme="light"] .unlimited-badge.is-user {
  background: #d1fae5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}

.btn-user-pref-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  vertical-align: middle;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-user-pref-trigger:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.6);
  color: #a5b4fc;
  transform: rotate(45deg) scale(1.08);
}

[data-theme="light"] .btn-user-pref-trigger {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .btn-user-pref-trigger:hover {
  background: #e0e7ff;
  border-color: #818cf8;
  color: #4338ca;
  transform: rotate(45deg) scale(1.08);
}

.retention-select option:disabled {
  color: #64748b !important;
  background: #0f172a !important;
  opacity: 0.55 !important;
  font-style: italic;
}

[data-theme="light"] .retention-select option:disabled {
  color: #94a3b8 !important;
  background: #f8fafc !important;
  opacity: 0.6 !important;
  font-style: italic;
}

/* ==========================================================================
   PWA Mobile & Tablet Only (Strictly Hidden on Desktop)
   ========================================================================== */
.mobile-pwa-btn {
  display: none !important;
}

.mobile-install-banner {
  display: none !important;
}

@media (max-width: 1024px) {
  .mobile-pwa-btn {
    display: inline-flex !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
  }

  .mobile-install-banner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    animation: fadeInBanner 0.4s ease;
  }

  .mobile-install-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-install-icon {
    font-size: 26px;
    flex-shrink: 0;
  }

  .mobile-install-info strong {
    display: block;
    font-size: 13.5px;
    color: #ffffff;
    font-weight: 700;
  }

  .mobile-install-info p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.35;
  }

  .mobile-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .btn-pwa-install-action {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
    transition: transform 0.2s ease;
  }

  .btn-pwa-install-action:active {
    transform: scale(0.96);
  }

  .btn-pwa-dismiss {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
  }
}

@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="light"] .mobile-install-banner {
  background: linear-gradient(135deg, #f8fafc, #ede9fe) !important;
  border-color: #c4b5fd !important;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12) !important;
}

[data-theme="light"] .mobile-install-info strong {
  color: #1e1b4b !important;
}

[data-theme="light"] .mobile-install-info p {
  color: #4b5563 !important;
}

/* ==========================================================================
   Desktop Draggable & Bounded Positioning inside Grid/Container
   ========================================================================== */
.folders-grid,
.files-list {
  position: relative;
}

.draggable-item {
  cursor: grab;
  user-select: none;
  -webkit-user-drag: element;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.draggable-item:active {
  cursor: grabbing;
}

.draggable-item.dragging-active {
  opacity: 0.65;
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35) !important;
  z-index: 20;
}

.draggable-drop-target {
  outline: 2px dashed #6366f1 !important;
  outline-offset: -2px;
  background: rgba(99, 102, 241, 0.1) !important;
}

/* ==========================================================================
   macOS Finder-Style File Conflict Dialog & Custom SaaS Confirmation Modals
   ========================================================================== */
.conflict-dialog-card {
  max-width: 540px !important;
  width: 92% !important;
  background: rgba(18, 24, 38, 0.95) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  padding: 24px !important;
  color: var(--text-primary);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.conflict-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.conflict-alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conflict-title-wrap {
  flex: 1;
}

.btn-conflict-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-left: auto;
  align-self: flex-start;
}

.btn-conflict-dismiss:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.conflict-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.conflict-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.conflict-subtitle strong {
  color: #f1f5f9;
  font-weight: 600;
}

.conflict-comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.conflict-file-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: all 0.2s ease;
}

.conflict-file-box.existing {
  border-color: rgba(148, 163, 184, 0.2);
}

.conflict-file-box.incoming {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
}

.conflict-box-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  align-self: flex-start;
}

.conflict-box-badge.new-badge {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
}

.conflict-box-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.conflict-box-icon {
  font-size: 24px;
  flex-shrink: 0;
}

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

.conflict-box-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conflict-box-meta {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conflict-arrow-wrap {
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conflict-apply-all-wrap {
  margin-bottom: 20px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.conflict-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.conflict-checkbox-label input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.conflict-actions-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-conflict {
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-conflict-skip {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: auto;
}

.btn-conflict-skip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.btn-conflict-keep {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-conflict-keep:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-conflict-replace {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-conflict-replace:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
  transform: translateY(-1px);
}

.btn-conflict-custom {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-conflict-custom:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.conflict-rename-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.conflict-rename-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.conflict-rename-label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.btn-conflict-suggest {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-conflict-suggest:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.conflict-rename-input-container {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.conflict-rename-input-container:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.conflict-custom-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}

.conflict-ext-pill {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}

.conflict-rename-tip {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Custom Application Confirm & Prompt Dialogs (Replaces native browser popup) */
.app-dialog-card {
  max-width: 440px !important;
  width: 90% !important;
  background: rgba(14, 20, 34, 0.96) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  padding: 30px 26px 24px !important;
  text-align: center;
  color: #fff;
  animation: modalPopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="light"] .app-dialog-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] .app-dialog-title {
  color: #0f172a !important;
}

[data-theme="light"] .app-dialog-message {
  color: #475569 !important;
}

.app-dialog-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.app-dialog-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.app-dialog-icon.icon-danger {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
  animation: dangerPulse 2.5s infinite;
}

@keyframes dangerPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3); transform: scale(1); }
  50% { box-shadow: 0 10px 28px rgba(239, 68, 68, 0.55); transform: scale(1.04); }
}

.app-dialog-icon.icon-primary {
  background: rgba(0, 242, 254, 0.16);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00F2FE;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.3);
}

.app-dialog-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.app-dialog-message {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 24px 0;
  word-break: break-word;
}

.app-dialog-input-wrap {
  margin-bottom: 22px;
}

.app-dialog-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.app-dialog-input:focus {
  border-color: #00F2FE;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.3);
}

[data-theme="light"] .app-dialog-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.app-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-app-dialog {
  flex: 1;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.btn-app-dialog svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-app-dialog:active {
  transform: scale(0.97);
}

.btn-dialog-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-dialog-cancel:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .btn-dialog-cancel {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-dialog-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-dialog-danger {
  background: linear-gradient(135deg, #ff3366 0%, #ff0844 50%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 120, 140, 0.4);
  box-shadow: 0 6px 24px rgba(255, 15, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-dialog-danger:hover {
  background: linear-gradient(135deg, #ff4d79 0%, #ff1f54 50%, #ef4444 100%);
  box-shadow: 0 10px 32px rgba(255, 15, 68, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-dialog-danger:hover svg {
  transform: scale(1.15) rotate(-6deg);
}

.btn-dialog-primary {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  color: #040812;
  font-weight: 800;
  border: 1px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-dialog-primary:hover {
  background: linear-gradient(135deg, #2bf6ff 0%, #68b8fe 100%);
  box-shadow: 0 10px 32px rgba(0, 242, 254, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-dialog-primary:hover svg {
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .conflict-comparison-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .conflict-arrow-wrap {
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .btn-conflict-skip {
    order: 3;
    width: 100%;
    margin-right: 0;
  }
  .btn-conflict-keep, .btn-conflict-replace {
    flex: 1;
  }
}

/* ==============================================================================
   Fullscreen Focused Upload Progress Overlay (Centered HUD with background blur)
   ============================================================================== */
.progress-bar-interactive {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.progress-bar-interactive:hover {
  transform: scaleY(1.35);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}

.btn-progress-ctrl.expand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  transition: all 0.2s ease;
}

.btn-progress-ctrl.expand:hover {
  background: rgba(0, 242, 254, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.35);
}

.focus-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  animation: focusOverlayFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes focusOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.focus-progress-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: linear-gradient(145deg, rgba(18, 25, 42, 0.95), rgba(11, 16, 28, 0.98));
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), 0 0 50px rgba(0, 242, 254, 0.22);
  animation: focusCardPop 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes focusCardPop {
  0% {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.focus-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
}

.focus-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 1.4s infinite ease-in-out;
}

.focus-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.focus-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: rotate(90deg) scale(1.08);
}

.focus-progress-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.focus-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.focus-percent-number {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 242, 254, 0.45));
  font-variant-numeric: tabular-nums;
}

.focus-percent-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.focus-filename-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.focus-bytes-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}

.focus-progress-track {
  position: relative;
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.focus-progress-bar-fill {
  position: relative;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe, #8b5cf6, #ec4899);
  background-size: 200% 100%;
  border-radius: 20px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.7);
  animation: gradientFlow 3s ease infinite;
}

.focus-progress-glow-head {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 80%);
  filter: blur(2px);
}

.focus-hud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 26px;
}

.focus-hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 10px;
  transition: all 0.2s ease;
}

.focus-hud-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 242, 254, 0.3);
}

.focus-hud-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.focus-hud-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.focus-hud-val.highlight {
  color: #38ef7d;
  text-shadow: 0 0 10px rgba(56, 239, 125, 0.4);
}

.focus-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-focus-action {
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-focus-action:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-focus-action.cancel {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-focus-action.cancel:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
}

.btn-focus-action.outline {
  background: transparent;
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}

.btn-focus-action.outline:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
}

/* User Preference Clear Cookies Button */
.btn-pref-clear-cookies {
  padding: 9px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-pref-clear-cookies:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* Light Theme Overrides for Focus Progress & Clear Cookies */
[data-theme="light"] .focus-progress-overlay {
  background: rgba(240, 245, 255, 0.88);
}

[data-theme="light"] .focus-progress-card {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15), 0 0 30px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .focus-hud-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .focus-hud-val {
  color: #0f172a;
}

[data-theme="light"] .focus-filename-title {
  color: #0f172a;
}

[data-theme="light"] .focus-progress-track {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-focus-action {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .btn-focus-action:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   Multi-File Selection & Bundle Sharing Toolbar (Floating Glassmorphism Bar)
   ========================================================================== */
.file-item {
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease;
}

.file-item.is-selected {
  border-color: rgba(0, 242, 254, 0.55) !important;
  background: rgba(0, 242, 254, 0.08) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.22), inset 0 0 14px rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}

.file-select-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  margin-right: 12px;
  user-select: none;
  flex-shrink: 0;
}

.file-select-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-select-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.8px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.file-select-label:hover .file-select-custom {
  border-color: var(--accent-cyan, #00f2fe);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  transform: scale(1.08);
}

.file-select-checkbox:checked + .file-select-custom {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border-color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.6);
  animation: checkboxPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.file-select-checkbox:checked + .file-select-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #04101e;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

@keyframes checkboxPop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* Floating Multi-Select Toolbar (Spring Slide-Up) */
.multi-select-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px) scale(0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  background: rgba(13, 20, 36, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 242, 254, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.2), opacity 0.3s ease, box-shadow 0.3s ease;
  max-width: 92vw;
}

.multi-select-bar.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.multi-select-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.multi-select-badge {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #04101e;
  font-weight: 800;
  font-size: 12px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
  animation: pulseBadge 2.2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 18px rgba(0, 242, 254, 0.8); }
}

.multi-select-size {
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
  font-weight: 500;
}

.multi-select-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-multi-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-multi-action.share-btn {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #04101e;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.4);
}

.btn-multi-action.share-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.6);
}

.btn-multi-action.zip-btn {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.btn-multi-action.zip-btn:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #c084fc;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

.btn-multi-action.delete-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-multi-action.delete-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-multi-action.outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-multi-action.outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-multi-close {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-multi-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

/* Light Theme Overrides for Multi-Select Bar */
[data-theme="light"] .multi-select-bar {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 25px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .multi-select-info {
  color: #0f172a;
}

[data-theme="light"] .file-item.is-selected {
  border-color: rgba(2, 132, 199, 0.5) !important;
  background: rgba(2, 132, 199, 0.08) !important;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .file-select-custom {
  border-color: rgba(0, 0, 0, 0.25);
  background: #ffffff;
}

[data-theme="light"] .btn-multi-action.outline {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Admin Panel Category Filters & Bulk Toolbar
   ========================================================================== */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.admin-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.admin-filter-pill.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
  border-color: var(--accent-cyan, #00f2fe);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.admin-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  animation: fadeInSlideDown 0.25s ease-out;
}

@keyframes fadeInSlideDown {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.admin-bulk-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.admin-bulk-badge {
  background: var(--accent-cyan, #00f2fe);
  color: #04101e;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11.5px;
}

.admin-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-admin-action.zip-btn {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-admin-action.zip-btn:hover {
  background: rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.btn-admin-action.delete-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-admin-action.delete-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-admin-action.outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, #94a3b8);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-admin-action.outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==========================================================================
   Bundle Share Page & Download Card Styles (download.html)
   ========================================================================== */
.bundle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

.bundle-header-card {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
}

.bundle-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px auto;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.bundle-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.bundle-subtitle {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  max-width: 460px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

.bundle-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  color: var(--accent-cyan, #00f2fe);
  font-weight: 600;
}

.bundle-zip-btn-wrap {
  width: 100%;
  margin-bottom: 28px;
}

.bundle-files-section {
  width: 100%;
}

.bundle-files-header {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bundle-files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.bundle-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bundle-file-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(4px);
}

.bundle-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.bundle-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bundle-file-size {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.bundle-file-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan, #00f2fe);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bundle-file-dl-btn:hover {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #04101e;
  transform: scale(1.05);
}











