/* ============================================
   FILE TIZONE PRO - STYLE.CSS
   ============================================ */

/* ============================================
   CSS VARIABLES - LIGHT & DARK MODE
   ============================================ */
:root {
    --bg-primary: #f5f0eb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f5f0eb;
    --bg-hover: #f0ebe6;
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    --text-primary: #2d1f14;
    --text-secondary: #6b5a4a;
    --text-muted: #a89787;
    --text-white: #ffffff;
    
    --border-color: #e8ddd2;
    --shadow-color: rgba(45, 31, 20, 0.08);
    --shadow-hover: rgba(45, 31, 20, 0.15);
    
    --primary: #d4442a;
    --primary-light: #e8684a;
    --primary-dark: #b83a22;
    --primary-glow: rgba(212, 68, 42, 0.25);
    
    --secondary: #2d7a9e;
    --success: #2d9e6a;
    --warning: #e8a42a;
    --danger: #d4442a;
    --admin: #8e44ad;
    
    --neumo-shadow: 8px 8px 16px rgba(45, 31, 20, 0.06),
                   -8px -8px 16px rgba(255, 255, 255, 0.9);
    --neumo-inset: inset 4px 4px 8px rgba(45, 31, 20, 0.06),
                  inset -4px -4px 8px rgba(255, 255, 255, 0.9);
    --neumo-pressed: inset 6px 6px 12px rgba(45, 31, 20, 0.08),
                    inset -6px -6px 12px rgba(255, 255, 255, 0.8);
    
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #1a1410;
    --bg-secondary: #2d241c;
    --bg-card: #2d241c;
    --bg-input: #3d3228;
    --bg-hover: #3d3228;
    --bg-glass: rgba(45, 36, 28, 0.85);
    
    --text-primary: #f0ebe6;
    --text-secondary: #c4b8ad;
    --text-muted: #8a7a6b;
    
    --border-color: #3d3228;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    
    --neumo-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3),
                   -8px -8px 16px rgba(45, 36, 28, 0.3);
    --neumo-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.3),
                  inset -4px -4px 8px rgba(45, 36, 28, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 16px;
    transition: background var(--transition), color var(--transition);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ============================================
   MARQUEE
   ============================================ */
.marquee-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
}

.marquee-bar .marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-bar .marquee-content {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: marqueeScroll 40s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-bar .marquee-content i { font-size: 14px; opacity: 0.8; }
.marquee-bar .marquee-content span { font-weight: 500; font-size: 13px; opacity: 0.95; }
.marquee-bar .marquee-content .highlight {
    background: rgba(255,255,255,0.2);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* ============================================
   GLASS CONTAINER
   ============================================ */
.glass-container {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 20px 60px var(--shadow-color);
    transition: background var(--transition);
}

/* ============================================
   HEADER
   ============================================ */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    box-shadow: var(--neumo-shadow);
    margin-bottom: 16px;
    transition: all var(--transition);
    flex-wrap: wrap;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.brand i { font-size: 24px; color: var(--primary); }
.brand .admin-badge {
    font-size: 10px;
    background: var(--admin);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--neumo-shadow);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle:active { box-shadow: var(--neumo-pressed); }

/* ============================================
   USER AUTH
   ============================================ */
.auth-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-input {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    box-shadow: var(--neumo-inset);
    font-family: 'Inter', sans-serif;
    width: 140px;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.auth-input::placeholder { color: var(--text-muted); }

.username-display {
    font-weight: 600;
    color: var(--text-primary);
    padding: 6px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.username-display.admin {
    border-color: var(--admin);
    background: rgba(142, 68, 173, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-neumo {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    box-shadow: var(--neumo-shadow);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-neumo:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px var(--shadow-hover),
               -10px -10px 20px rgba(255,255,255,0.5);
}
.btn-neumo:active {
    transform: translateY(2px);
    box-shadow: var(--neumo-pressed);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
    border: none;
}
.btn-primary:hover { box-shadow: 0 6px 28px var(--primary-glow); }

.btn-success {
    background: linear-gradient(135deg, var(--success), #1e8449);
    color: white;
    box-shadow: 0 4px 16px rgba(45, 158, 106, 0.25);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b83a22);
    color: white;
    box-shadow: 0 4px 16px rgba(212, 68, 42, 0.25);
    border: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #1a6d8a);
    color: white;
    box-shadow: 0 4px 16px rgba(45, 122, 158, 0.25);
    border: none;
}

.btn-admin {
    background: linear-gradient(135deg, var(--admin), #6c3483);
    color: white;
    box-shadow: 0 4px 16px rgba(142, 68, 173, 0.25);
    border: none;
}

/* ============================================
   UPLOAD AREA
   ============================================ */
.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 12px;
    box-shadow: var(--neumo-inset);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(212, 68, 42, 0.05);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.upload-area .icon { font-size: 36px; color: var(--primary); margin-bottom: 8px; opacity: 0.7; }
.upload-area h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.upload-area p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ============================================
   TOGGLE
   ============================================ */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    box-shadow: var(--neumo-inset);
}

.toggle-container label {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
}

.toggle-container .toggle-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.toggle-switch {
    position: relative;
    width: 46px;
    height: 24px;
    background: var(--bg-input);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--border-color);
    box-shadow: var(--neumo-inset);
}

.toggle-switch.active {
    background: var(--success);
    border-color: var(--success);
}

.toggle-switch .knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.toggle-switch.active .knob { left: 22px; }

/* ============================================
   SELECTED FILES
   ============================================ */
.selected-files-list {
    margin: 8px 0 12px 0;
    display: none;
}

.selected-files-list.active { display: block; }

.selected-files-list .selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    border-left: 3px solid var(--primary);
    box-shadow: var(--neumo-shadow);
    transition: all var(--transition);
}

.selected-files-list .selected-file-item .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.selected-files-list .selected-file-item .file-info .file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-files-list .selected-file-item .file-info .file-size {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.selected-files-list .selected-file-item .remove-file {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all var(--transition);
    font-size: 14px;
}

.selected-files-list .selected-file-item .remove-file:hover {
    background: var(--danger);
    color: white;
}

.selected-files-list .empty-message {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
}

/* ============================================
   TOOLBAR
   ============================================ */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    box-shadow: var(--neumo-shadow);
    align-items: center;
}

.toolbar .selected-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
    font-weight: 500;
}

.toolbar .selected-info .count {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   PROGRESS
   ============================================ */
.progress-container {
    display: none;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: var(--neumo-shadow);
    border: 1px solid var(--border-color);
}

.progress-container.active { display: block; }

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: var(--neumo-inset);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-details {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   FILE GRID
   ============================================ */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.file-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--neumo-shadow);
    transition: all var(--transition);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 12px 12px 24px var(--shadow-hover),
               -12px -12px 24px rgba(255,255,255,0.5);
}

.file-card.selected {
    border-color: var(--primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.file-card .file-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    box-shadow: var(--neumo-shadow);
}

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

.file-card .file-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.file-card .file-actions {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.file-card .file-actions .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-secondary);
    box-shadow: var(--neumo-shadow);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.file-card .file-actions .btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 18px var(--shadow-hover),
               -10px -10px 18px rgba(255,255,255,0.5);
}

.file-card .file-actions .btn-icon:active { box-shadow: var(--neumo-pressed); }

.file-card .file-actions .btn-icon.delete { color: var(--danger); }
.file-card .file-actions .btn-icon.download { color: var(--secondary); }
.file-card .file-actions .btn-icon.preview { color: var(--primary); }

.file-card .file-checkbox {
    margin-left: auto;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.file-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.file-card .badge.public {
    background: var(--success);
    color: white;
    border: none;
}

.file-card .badge.private {
    background: var(--primary);
    color: white;
    border: none;
}

.file-card .badge.owner {
    background: var(--secondary);
    color: white;
    border: none;
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
}

.file-card .badge.admin-badge {
    background: var(--admin);
    color: white;
    border: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    top: auto;
}

/* ============================================
   DELETE CONFIRMATION MODAL (Top Center)
   ============================================ */
.delete-modal {
    display: none;
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.delete-modal.active { display: flex; }

.delete-modal .delete-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.delete-modal .delete-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--danger), var(--primary));
}

.delete-modal .delete-content .delete-icon {
    font-size: 48px;
    color: var(--danger);
    text-align: center;
    margin-bottom: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

.delete-modal .delete-content h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.delete-modal .delete-content p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.delete-modal .delete-content .delete-count {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--danger);
    background: var(--bg-input);
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.delete-modal .delete-content .delete-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.delete-modal .delete-content .delete-actions .btn-neumo {
    min-width: 100px;
    justify-content: center;
}

.delete-modal .delete-content .delete-actions .btn-danger {
    background: linear-gradient(135deg, var(--danger), #b83a22);
    color: white;
    box-shadow: 0 4px 20px rgba(212, 68, 42, 0.3);
    border: none;
}

.delete-modal .delete-content .delete-actions .btn-danger:hover {
    box-shadow: 0 6px 30px rgba(212, 68, 42, 0.5);
}

/* ============================================
   PREVIEW MODAL
   ============================================ */
.preview-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.preview-modal.active { display: flex; }

.preview-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.preview-header h3 {
    color: var(--text-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--neumo-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-close:hover { transform: rotate(90deg); }

.preview-body .preview-icon {
    font-size: 60px;
    text-align: center;
    margin: 10px 0;
}

.preview-body .preview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 14px;
    margin: 10px 0;
}

.preview-body .preview-info-item .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-body .preview-info-item .value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.preview-body .preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    margin: 10px 0;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.preview-body .preview-text {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 14px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-primary);
}

.preview-body .preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PHONE REGISTRATION MODAL
   ============================================ */
.phone-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.phone-modal.active { display: flex; }

.phone-modal .phone-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-modal .phone-content .phone-icon {
    font-size: 48px;
    text-align: center;
    color: var(--primary);
    margin-bottom: 12px;
}

.phone-modal .phone-content h3 {
    text-align: center;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.phone-modal .phone-content p {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.phone-modal .phone-content .username-display-modal {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
    background: var(--bg-input);
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.phone-modal .phone-content .phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-modal .phone-content .phone-input-group .auth-input {
    flex: 1;
    width: auto;
}

.phone-modal .phone-content .error-message {
    color: var(--danger);
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
    display: none;
}

.phone-modal .phone-content .error-message.show { display: block; }

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    max-width: 360px;
    width: 100%;
}

.notification {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    box-shadow: 0 10px 40px var(--shadow-hover);
    border-left: 4px solid var(--primary);
    font-weight: 500;
    color: var(--text-primary);
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.notification.success { border-left-color: var(--success); }
.notification.error { border-left-color: var(--danger); }
.notification.warning { border-left-color: var(--warning); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
    box-shadow: var(--neumo-inset);
}

.empty-state i { font-size: 36px; color: var(--text-muted); opacity: 0.5; }
.empty-state h3 { color: var(--text-secondary); margin-top: 10px; font-size: 16px; }
.empty-state p { color: var(--text-muted); font-size: 13px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 20px 0 10px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

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

.footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer .footer-heart {
    color: var(--danger);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    body { padding: 10px; }
    .glass-container { padding: 14px; border-radius: var(--radius); }
    .header-section { flex-direction: column; align-items: stretch; text-align: center; padding: 12px; }
    .header-controls { justify-content: center; flex-wrap: wrap; }
    .brand { justify-content: center; }
    .auth-container { justify-content: center; width: 100%; }
    .auth-input { width: 120px; font-size: 12px; padding: 6px 12px; }
    .btn-neumo { font-size: 11px; padding: 6px 12px; }
    .file-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .file-card { padding: 12px; }
    .file-card .file-icon { width: 40px; height: 40px; font-size: 26px; }
    .file-card .file-name { font-size: 12px; }
    .preview-content { padding: 20px; margin: 10px; }
    .preview-body .preview-info { grid-template-columns: 1fr; }
    .toolbar { justify-content: center; padding: 8px 12px; }
    .toolbar .selected-info { margin-left: 0; width: 100%; text-align: center; }
    .upload-area { padding: 24px 16px; }
    .upload-area .icon { font-size: 28px; }
    .upload-area h3 { font-size: 14px; }
    .upload-area p { font-size: 12px; }
    .phone-modal .phone-content { padding: 24px; margin: 10px; }
    .phone-modal .phone-content .phone-input-group { flex-direction: column; }
    .phone-modal .phone-content .phone-input-group .auth-input { width: 100%; }
    .delete-modal { padding-top: 40px; }
    .delete-modal .delete-content { padding: 24px; }
}

@media (max-width: 480px) {
    .file-grid { grid-template-columns: 1fr; gap: 10px; }
    .header-controls { flex-direction: column; align-items: center; }
    .auth-container { flex-direction: column; align-items: center; width: 100%; }
    .auth-input { width: 100%; max-width: 240px; }
    .btn-neumo { width: 100%; max-width: 200px; justify-content: center; }
    .toggle-container { flex-wrap: wrap; padding: 6px 12px; }
    .delete-modal .delete-content .delete-actions { flex-direction: column; align-items: center; }
    .delete-modal .delete-content .delete-actions .btn-neumo { width: 100%; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-input); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }