@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   1. CORE VARIABLES & GLOBAL STYLES
   ============================================================ */
:root {
    --bg-start: #0a1628; 
    --bg-mid: #132743; 
    --bg-end: #1a3556;
    --text-main: #b8c9e0; 
    --text-secondary: #8a9bb2;
    --heading-main: #ffffff;
    --highlight: #5ba3f5; 
    --btn-bg: rgba(91, 163, 245, 0.15); 
    --btn-hover: rgba(91, 163, 245, 0.25);
    --progress-fill: #4a90d9; 
    --ice-highlight: rgba(255, 255, 255, 0.12);
    --ice-dim: rgba(255, 255, 255, 0.04); 
    --ice-shadow: rgba(0, 0, 0, 0.4);
    --danger: #ff6b6b;
    --cb: cubic-bezier(0.4, 0.0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }

body { 
    background-color: var(--bg-start);
    min-height: 100vh; 
    color: var(--text-main); 
    overflow-x: hidden; 
    position: relative; 
    padding-bottom: 80px; 
}

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

body::before { 
    content: ''; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh; 
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(91, 163, 245, 0.05) 0%, transparent 50%), 
        radial-gradient(circle at 80% 70%, rgba(74, 144, 217, 0.05) 0%, transparent 60%); 
    pointer-events: none; 
    z-index: -2; 
}
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 40%, var(--bg-end) 100%);
    z-index: -3;
    pointer-events: none;
}

#bg-particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.icon-particle { 
    position: absolute !important; 
    fill: rgba(255, 255, 255, 0.15) !important; 
    will-change: transform, opacity; 
    pointer-events: none; 
}

.d-none { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* ============================================================
   2. REUSABLE COMPONENTS (Cards & Buttons)
   ============================================================ */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.glass-panel, .card { 
    background: rgba(255, 255, 255, 0.06); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-radius: 20px; 
    border: 1px solid var(--ice-dim); 
    border-top: 1px solid var(--ice-highlight); 
    border-left: 1px solid var(--ice-highlight); 
    box-shadow: 0 20px 40px var(--ice-shadow), inset 0 0 10px rgba(255, 255, 255, 0.02); 
    padding: 25px; 
    transition: transform 0.15s var(--cb), box-shadow 0.15s var(--cb); 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    animation: scaleIn 0.25s var(--cb) both;
    will-change: transform, opacity, box-shadow;
}

.glass-panel:hover, .card:hover {
    box-shadow: 0 30px 60px var(--ice-shadow), inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}
.auth-card:hover { transform: none; }

.card.drag-over { 
    border: 2px dashed var(--highlight) !important; 
    background: rgba(91, 163, 245, 0.1) !important; 
    box-shadow: inset 0 0 40px rgba(91, 163, 245, 0.15), 0 20px 50px var(--ice-shadow) !important; 
}

.glass-button, .glass-btn { 
    background: var(--btn-bg); 
    border: 1px solid var(--ice-dim); 
    border-top: 1px solid var(--ice-highlight);
    padding: 10px 20px; 
    border-radius: 30px; 
    color: var(--heading-main); 
    font-weight: 600; 
    cursor: pointer; 
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.05); 
    transition: transform 0.1s var(--cb), box-shadow 0.1s var(--cb), background-color 0.1s var(--cb), border-color 0.1s var(--cb), color 0.1s var(--cb); 
    text-transform: uppercase; 
    letter-spacing: 0.8px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, background;
}

.glass-button::after, .glass-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s var(--cb);
}

.glass-button:hover::after, .glass-btn:hover::after {
    left: 100%;
}

.glass-button:hover, .glass-btn:hover { 
    background: var(--btn-hover); 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), inset 0 2px 8px rgba(255,255,255,0.2);
    border-color: var(--ice-highlight);
    color: #ffffff;
}

.glass-button:active, .glass-btn:active {
    transform: translateY(1px) scale(0.98);
}

.glass-button:disabled, .glass-btn:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none; 
}

.glass-btn.primary { 
    background: rgba(91, 163, 245, 0.15); 
    border-color: var(--highlight); 
    color: var(--heading-main); 
    box-shadow: 0 4px 15px rgba(91, 163, 245, 0.2);
}
.glass-btn.primary:hover { 
    background: rgba(91, 163, 245, 0.3); 
    box-shadow: 0 10px 30px rgba(91, 163, 245, 0.4);
}

/* ============================================================
   3. APP.HTML SPECIFIC STYLES
   ============================================================ */
#app-container { max-width: 1500px; margin: 30px auto 60px auto; display: flex; flex-direction: column; gap: 30px; z-index: 10; position: relative; }
.driveforge-logo { width: 120px; height: auto; margin-top: 15px; margin-bottom: 25px; filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.4)); transition: transform 0.4s var(--cb); will-change: transform;}
.driveforge-logo:hover { transform: scale(1.05); }

#header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; padding: 0 10px; flex-wrap: wrap; gap: 15px; }
#logo-title { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; transition: opacity 0.3s var(--cb); }
#logo-title:hover { opacity: 0.9; }

.header-logo { width: 40px; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }
#app-title { font-size: 2.2rem; font-weight: 800; color: var(--heading-main); text-shadow: 0 2px 10px rgba(91, 163, 245, 0.4); letter-spacing: 1px; }

#user-controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; flex-grow: 1; justify-content: flex-end; }
#user-profile-container { position: relative; margin-left: auto; z-index: 9999; display: flex; align-items: center; }

#local-action-group .glass-button, #cloud-action-group .glass-button, #view-toggle-btn { 
    min-width: 42px; width: auto; height: 42px; padding: 0 8px; font-size: 1.1rem; border-radius: 12px; flex-shrink: 0; 
}
.ctrl-btn { width: 32px !important; height: 32px !important; padding: 0 !important; font-size: 0.95rem; border-radius: 8px !important; flex-shrink: 0; }
.ctrl-btn:disabled { opacity: 0.3 !important; }

#time-status { 
    display: flex; gap: 15px; color: var(--heading-main); font-size: 0.90rem; font-weight: 700; text-transform: uppercase; 
    background: rgba(0, 0, 0, 0.3); padding: 8px 16px; border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); 
    flex-wrap: wrap; justify-content: center; box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}
.timer-block { display: flex; align-items: center; gap: 6px; }

.step-title { font-size: 1.3rem; font-weight: 800; color: var(--heading-main); margin-bottom: 15px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.step-number { 
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(200,200,200,0.9)); 
    color: var(--bg-mid); 
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1rem; font-weight: 900; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}
.step-number::after {
    content: '';
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%; box-shadow: 0 0 15px rgba(255,255,255,0.3);
    animation: pulse 2s infinite;
}

#action-bar-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; width: 100%; padding: 0 12px; }
#action-bar-row > * { flex-shrink: 0; }

select, input[type="text"] { 
    padding: 10px 14px; border-radius: 12px; 
    border: 1px solid var(--ice-dim); border-top: 1px solid var(--ice-highlight); border-left: 1px solid var(--ice-highlight); 
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); 
    color: var(--heading-main); font-size: 0.95rem; font-weight: 600; outline: none; 
    transition: all 0.3s var(--cb);
}
select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a9bb2'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 22px;
    padding-right: 35px;
}
select:hover, input[type="text"]:hover, select:focus, input[type="text"]:focus { 
    background: rgba(255, 255, 255, 0.15); 
    box-shadow: 0 0 0 2px rgba(91, 163, 245, 0.3);
}

.mode-selector {
    background: rgba(91, 163, 245, 0.1);
    border-color: var(--highlight);
    color: var(--highlight);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235ba3f5'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
    padding-right: 40px;
    padding-left: 15px;
    border-radius: 12px;
}
.mode-selector option {
    background-color: var(--bg-mid);
    color: var(--heading-main);
    font-weight: 600;
}

#file-list-header { 
    display: grid; grid-template-columns: 70px 1fr 110px 100px; gap: 10px; padding: 8px 12px; 
    font-size: 0.85rem; text-transform: uppercase; font-weight: 800; color: var(--text-secondary); 
    border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 8px; align-items: center; flex-shrink: 0; 
}
#file-list { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; min-height: 0; }
#file-list::-webkit-scrollbar, #review-list::-webkit-scrollbar, #logArea::-webkit-scrollbar { width: 6px; }
#file-list::-webkit-scrollbar-thumb, #review-list::-webkit-scrollbar-thumb, #logArea::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.file-item { 
    display: grid; grid-template-columns: 70px 1fr 110px 100px; gap: 10px; align-items: center; 
    padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: transform 0.1s var(--cb), background-color 0.1s var(--cb), box-shadow 0.1s var(--cb), border-color 0.1s var(--cb); 
    color: var(--text-main); font-weight: 500; font-size: 0.95rem; 
    background: rgba(255,255,255,0.03); border: 1px solid transparent; 
}
.file-item:hover { 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid var(--ice-highlight);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(4px);
}
.file-item.selected { 
    background: rgba(91, 163, 245, 0.15); 
    border: 1px solid var(--highlight); 
}
.file-item.keyboard-focus { background: rgba(255, 255, 255, 0.1); border: 1px dashed var(--highlight); outline: none; }

.checkbox-container { display: flex; align-items: center; justify-content: center; }
.file-checkbox, #select-all-checkbox { width: 20px; height: 20px; cursor: pointer; accent-color: var(--highlight); margin: 0; }
.file-name-block { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--heading-main);}
.file-icon { width: 22px; height: 22px; fill: var(--highlight); flex-shrink: 0; }
.file-size, .file-type { font-weight: 500; color: var(--text-secondary); text-align: right; pointer-events: none; font-size: 0.9rem; }

#file-list.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; align-items: start; }
#file-list.grid-view .file-item { 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    height: 140px; padding: 10px; position: relative; text-align: center; 
}
#file-list.grid-view .file-item:hover { transform: translateY(-4px); }
#file-list.grid-view .checkbox-container { position: absolute; top: 8px; left: 8px; }
#file-list.grid-view .preview-btn { position: absolute; top: 8px; right: 8px; }
#file-list.grid-view .delete-btn { position: absolute; top: 8px; right: 30px; }
#file-list.grid-view .file-name-block { flex-direction: column; align-items: center; gap: 6px; width: 100%; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box; }
#file-list.grid-view .file-icon { width: 35px; height: 35px; }
#file-list.grid-view .local-badge { position: absolute; bottom: 8px; left: 8px; }
#file-list.grid-view .file-size { position: absolute; bottom: 8px; right: 8px; font-size: 0.75rem; }
#file-list.grid-view .file-type { display: none; }

.preview-btn, .delete-btn { cursor: pointer; margin-left: 6px; font-size: 1.1rem; display: inline-block; opacity: 0.5; transition: all 0.3s var(--cb); color: var(--text-main);}
.preview-btn:hover { opacity: 1; color: var(--highlight); transform: scale(1.1); }
.delete-btn:hover { opacity: 1; color: var(--danger); transform: scale(1.1); }

.local-badge { background: rgba(255,255,255,0.1); border: 1px solid var(--ice-highlight); color: var(--heading-main); font-size: 0.65rem; font-weight: 800; padding: 2px 5px; border-radius: 4px; backdrop-filter: blur(5px);}

#settings-area { display: flex; flex-direction: column; gap: 20px; }
#settings-area > .card:nth-child(1) { overflow: visible !important; padding-bottom: 55px; z-index: 10; }
.input-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 700; color: var(--heading-main); font-size: 0.9rem; letter-spacing: 0.5px;}

#review-list { flex-grow: 1; overflow-y: auto; min-height: 0; padding-right: 4px; margin-top: 10px; max-height: 380px; }
#logArea { display: flex; flex-direction: column; gap: 8px; min-height: 90px; max-height: 150px; overflow-y: auto; padding: 10px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.activity-item { 
    display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; 
    padding: 8px; background: rgba(0,0,0,0.2); border-radius: 6px; font-size: 12px; color: var(--text-main); font-weight: 500; 
    animation: scaleIn 0.3s var(--cb);
}
.activity-item::before { content: ''; width: 6px; height: 6px; background: var(--highlight); border-radius: 50%; box-shadow: 0 0 5px var(--highlight);}
.activity-time { color: var(--text-secondary); font-size: 10px; }

#progress-card { text-align: center; background: rgba(0,0,0,0.2); margin-top: 30px; clear: both; }
#progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--heading-main); font-weight: 600;}
#progress-bar-container { 
    width: 100%; height: 20px; background: rgba(0,0,0,0.3); border-radius: 15px; 
    overflow: hidden; margin-bottom: 5px; border: 1px solid rgba(255,255,255,0.1); 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
#progress-bar-fill { 
    width: 0%; height: 100%; background: linear-gradient(90deg, #132743, var(--progress-fill)); 
    border-radius: 15px; transition: width 0.4s var(--cb); 
    position: relative; overflow: hidden;
}
#progress-bar-fill::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer { 100% { left: 100%; } }

.remove-file-btn:hover { color: var(--danger); }

#toast-container { position: fixed; bottom: 25px; right: 25px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { 
    background: rgba(19, 39, 67, 0.95); backdrop-filter: blur(15px); color: var(--heading-main); 
    padding: 14px 20px; border-radius: 12px; border: 1px solid var(--highlight); 
    font-weight: 600; font-size: 0.95rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideInRight 0.4s var(--cb) both;
    will-change: transform, opacity;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Download Progress Bar */
#download-progress-toast {
    position: fixed; bottom: 25px; right: 25px; z-index: 10000;
    background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--highlight); border-radius: 16px;
    padding: 18px 22px; min-width: 320px; max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    animation: slideInRight 0.4s var(--cb) both;
}
#download-progress-toast .dl-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
#download-progress-toast .dl-title {
    font-weight: 800; font-size: 0.85rem; color: var(--heading-main); text-transform: uppercase; letter-spacing: 0.5px;
}
#download-progress-toast .dl-percent {
    font-weight: 800; font-size: 0.85rem; color: var(--highlight);
}
#download-progress-toast .dl-filename {
    font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 10px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#download-progress-toast .dl-bar-container {
    width: 100%; height: 8px; background: rgba(0,0,0,0.4); border-radius: 10px;
    overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
}
#download-progress-toast .dl-bar-fill {
    width: 0%; height: 100%; background: linear-gradient(90deg, #132743, var(--highlight));
    border-radius: 10px; transition: width 0.3s var(--cb);
}

@keyframes duplicatePulse { 
    0% { background: transparent; border-color: rgba(255,255,255,0.1); transform: scale(1); } 
    20% { background: rgba(255, 107, 107, 0.2); border-color: var(--danger); transform: scale(1.02); box-shadow: 0 0 15px rgba(255,107,107,0.3); } 
    80% { background: rgba(255, 107, 107, 0.2); border-color: var(--danger); transform: scale(1.02); box-shadow: 0 0 15px rgba(255,107,107,0.3); } 
    100% { background: transparent; border-color: rgba(255,255,255,0.1); transform: scale(1); } 
}
.highlight-duplicate { animation: duplicatePulse 0.75s ease-in-out; border: 1px solid transparent; border-radius: 8px; }

/* Refactored App Classes (Zero Inline Styles) */
.auth-wrapper { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; text-align: center; padding: 20px; }
.auth-card { 
    max-width: 480px; width: 100%; padding: 55px 45px; display: flex; flex-direction: column; 
    align-items: center; text-align: center; position: relative; 
    background: rgba(20, 36, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.auth-card > * { opacity: 0; animation: fadeUp 0.6s var(--cb) forwards; }
.auth-card > *:nth-child(1) { animation-delay: 0.1s; }
.auth-card > *:nth-child(2) { animation-delay: 0.2s; }
.auth-card > *:nth-child(3) { animation-delay: 0.3s; }
.auth-card > *:nth-child(4) { animation-delay: 0.4s; }
.auth-card > *:nth-child(5) { animation-delay: 0.5s; }
.auth-card > *:nth-child(6) { animation-delay: 0.6s; }

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

.auth-help-btn { position: absolute; top: 20px; right: 20px; padding: 8px 16px; font-size: 0.75rem; text-decoration: none; z-index: 100; cursor: pointer; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);}
.auth-logo { width: 100px; height: 100px; margin-bottom: 30px; display: block; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));}
.auth-title { font-size: 2.8rem; font-weight: 900; color: var(--heading-main); margin-bottom: 12px; letter-spacing: -1px;}
.auth-subtitle { color: var(--text-secondary); margin-bottom: 40px; font-weight: 500; font-size: 1.1rem; line-height: 1.5;}
.auth-login-btn { padding: 16px 36px; font-size: 1.1rem; width: 100%; font-weight: 700; background: rgba(74, 144, 217, 0.15); border-color: rgba(74, 144, 217, 0.4); }
.auth-login-btn:hover { background: rgba(74, 144, 217, 0.3); box-shadow: 0 10px 30px rgba(74, 144, 217, 0.3); }
.auth-status { margin-top: 15px; font-size: 0.85rem; color: var(--danger); font-weight: 600; }

.profile-btn { gap: 10px; }
.profile-avatar { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.2); object-fit: cover;}
.user-dropdown-arrow { font-size: 0.65rem; opacity: 0.8; margin-left: -2px; }
.dropdown-menu { 
    position: absolute; top: calc(100% + 12px); right: 0; 
    background: rgba(10, 22, 40, 0.95); border: 1px solid var(--highlight); border-radius: 16px; 
    padding: 16px; min-width: 220px; z-index: 1000; box-shadow: 0 15px 40px rgba(0,0,0,0.6); 
    backdrop-filter: blur(20px); flex-direction: column; gap: 10px; 
    animation: scaleIn 0.3s var(--cb); transform-origin: top right;
}
.dropdown-email { font-size: 0.85rem; color: var(--text-main); font-weight: 600; text-align: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 4px; word-break: break-all; }
.dropdown-btn { width: 100%; font-size: 0.9rem; padding: 10px 0; justify-content: center; font-weight: 600;}
.dropdown-btn.danger { border-color: var(--danger); color: var(--danger); background: rgba(255,107,107,0.1); }
.dropdown-btn.danger:hover { background: rgba(255,107,107,0.2); color: #fff; }
.dropdown-btn.support { border-color: rgba(255,255,255,0.3); color: var(--text-main); background: rgba(255,255,255,0.05); }
.dropdown-btn.replay { background: var(--btn-bg); color: var(--heading-main); }

.flex-row-mb { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; width: 100%; padding: 0 12px; }
.nav-btn-group { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.nav-btn { font-size: 1.1rem; padding-bottom: 2px; }

.breadcrumb-trail { 
    flex-grow: 1; display: flex; gap: 8px; font-size: 0.95rem; font-weight: 600; color: var(--heading-main); 
    padding: 10px 16px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); 
    min-width: 150px; overflow-x: auto; white-space: nowrap; align-items: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}
.breadcrumb-trail span { transition: color 0.2s; cursor: pointer; }
.breadcrumb-trail span:hover { color: var(--highlight); }

.search-row { display: flex; gap: 10px; margin-bottom: 20px; width: 100%; padding: 0 12px; }
#omni-search-input { flex-grow: 1; padding: 14px 20px; font-size: 1.1rem; border-radius: 16px; }
.search-btn { width: 52px; height: 52px; font-size: 1.2rem; padding: 0; border-radius: 16px; background: rgba(255,255,255,0.1); border: 1px solid var(--ice-highlight); }
.view-toggle { margin-left: auto; }
.sort-sel { width: auto; }
.mt-5 { margin-top: 5px; }

.dest-btn { width: 100%; justify-content: flex-start; gap: 10px; text-transform: none; font-size: 0.95rem; font-weight: 500;}
.dest-icon { font-size: 1.2rem; color: var(--highlight);}

.checkbox-row { flex-direction: row; align-items: center; margin-bottom: 0; }
.checkbox-input { width: 18px; height: 18px; accent-color: var(--highlight); }
.checkbox-label { margin: 0; margin-left: 10px; font-size: 0.9rem; font-weight: 500; cursor: pointer;}
.flex-col { display: flex; flex-direction: column; }
.summary-box { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-align: center; color: var(--heading-main); border: 1px solid rgba(255,255,255,0.05);}

.action-row { margin-top: 15px; display: flex; gap: 12px; }
.action-btn-main { flex-grow: 1; font-size: 1.05rem; padding: 14px; background: rgba(91, 163, 245, 0.15); border-color: var(--highlight); }
.action-btn-reset { width: 48px; height: 48px; padding: 0; border-radius: 14px; flex-shrink: 0; }

.mt-20 { margin-top: 20px; }
.finish-col { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; }
.finish-btn { margin: 0; width: 100%; font-size: 1rem; padding: 12px;}

.tracker-box { 
    position: fixed; bottom: 90px; right: 25px; z-index: 9998; 
    background: rgba(10, 22, 40, 0.95); border: 1px solid var(--highlight); border-radius: 12px; 
    padding: 15px 20px; min-width: 280px; pointer-events: none; transition: opacity 0.4s var(--cb); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(15px); opacity: 0; 
}
.tracker-title { font-size: 0.75rem; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; font-weight: 800; letter-spacing: 1px;}
.tracker-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--highlight); font-weight: 700; font-size: 0.95rem; }
.tracker-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; color: var(--heading-main);}
.tracker-count { flex-shrink: 0; }

.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(10, 22, 40, 0.7); backdrop-filter: blur(10px); z-index: 999; 
    justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s var(--cb); 
}
.modal-overlay.dark { background: rgba(5, 10, 20, 0.85); z-index: 9999; }
.modal-box { width: 400px; text-align: center; }
.modal-box-create { width: 90%; max-width: 420px; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.modal-box-wide { width: 90%; max-width: 500px; text-align: center; padding: 35px; }

.modal-header { margin-bottom: 15px; color: var(--heading-main); font-weight: 800; font-size: 1.5rem;}
.modal-text { margin-bottom: 25px; font-weight: 500; color: var(--text-main); font-size: 1.05rem; line-height: 1.5;}
.modal-actions { display: flex; gap: 15px; justify-content: center; }
.modal-actions-end { display: flex; gap: 15px; justify-content: flex-end; margin-top: 20px; }
.modal-actions-wrap { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-danger-fill { background: rgba(255, 107, 107, 0.8); color: white; border-color: var(--danger); }
.btn-danger-fill:hover { background: var(--danger); }

.limit-icon { font-size: 3rem; margin-bottom: 15px; }
.limit-title { margin-bottom: 12px; font-size: 1.6rem; color: var(--danger); font-weight: 800;}
.limit-desc { font-size: 1rem; line-height: 1.6; color: var(--text-main); margin-bottom: 25px; font-weight: 500;}
.limit-tip { background: rgba(0,0,0,0.2); border-radius: 12px; padding: 15px; margin-bottom: 25px; font-size: 0.9rem; font-weight: 600; color: var(--heading-main); border: 1px solid rgba(255,255,255,0.05);}
.limit-kofi { background: rgba(91, 163, 245, 0.2); border-color: var(--highlight); }

.reconnect-card { border-color: rgba(255, 107, 107, 0.4); box-shadow: 0 20px 50px rgba(255, 107, 107, 0.15); }
.reconnect-title { color: var(--danger); }
.reconnect-btn { background: rgba(91, 163, 245, 0.15); color: var(--heading-main); border-color: var(--highlight); width: 100%; }

.preview-modal { background: rgba(5, 10, 20, 0.9); backdrop-filter: blur(20px); }
.preview-card { width: 98%; max-width: 1800px; height: 96vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ice-highlight); border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.8);}
.preview-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; background: rgba(10, 22, 40, 0.8); border-bottom: 1px solid rgba(255,255,255,0.05); }
.preview-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 1.2rem; color: var(--heading-main); font-weight: 700;}
.preview-close { padding: 8px 20px; font-size: 0.9rem; }
.preview-content { flex-grow: 1; background: #050505; position: relative; display: flex; align-items: center; justify-content: center; }

.tour-overlay-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000; }
.tour-highlight { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10, 22, 40, 0.85), 0 0 30px rgba(91, 163, 245, 0.4); border: 2px solid var(--highlight); transition: all 0.5s var(--cb); pointer-events: none; }
.tour-tooltip { position: fixed; width: 340px; transition: all 0.5s var(--cb); padding: 25px; z-index: 10001; pointer-events: auto; }
.tour-title { color: var(--highlight); margin-bottom: 12px; font-size: 1.2rem; font-weight: 800; }
.tour-text { color: var(--heading-main); font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; font-weight: 500; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; }
.tour-skip { padding: 8px 16px; font-size: 0.85rem; background: rgba(255,107,107,0.1); border-color: var(--danger); color: var(--danger); }
.tour-nav-group { display: flex; gap: 10px; }
.tour-nav-btn { padding: 8px 16px; font-size: 0.85rem; }
.tour-next-btn { background: rgba(91, 163, 245, 0.2); border-color: var(--highlight); color: var(--heading-main);}

.player-card { 
    position: fixed; bottom: 30px; right: 30px; width: 400px; z-index: 9990; 
    padding: 20px; background: rgba(10, 22, 40, 0.9); backdrop-filter: blur(25px); 
    border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid var(--ice-highlight);
    border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(91, 163, 245, 0.05); 
    display: flex; flex-direction: column; gap: 12px; touch-action: none;
    overflow: hidden;
    animation: scaleIn 0.5s var(--cb);
    max-height: 90vh;
}
.player-card::before {
    content: ''; position: absolute; inset: -1px; border-radius: 25px;
    padding: 1px; background: linear-gradient(135deg, var(--highlight), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5;
    animation: breathingGlow 4s infinite alternate ease-in-out; pointer-events: none;
}
@keyframes breathingGlow { from { opacity: 0.2; } to { opacity: 0.7; } }

#now-playing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; width: 100%; cursor: grab; }
#now-playing-header:active { cursor: grabbing; }
.now-playing-tag { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 800; color: var(--highlight); text-transform: uppercase; letter-spacing: 1px; }

.player-title { color: #ffffff; font-weight: 700; margin-bottom: 10px; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 4px rgba(0,0,0,0.5); flex-shrink: 0; }

.pulse-dot { width: 10px; height: 10px; background: var(--danger); border-radius: 50%; box-shadow: 0 0 10px var(--danger); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.6; } 50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--danger);} 100% { transform: scale(0.95); opacity: 0.6; } }

#now-playing-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player-video { width: 100%; flex: 1; min-height: 0; max-height: 220px; border-radius: 12px; outline: none; background: #000; object-fit: contain; box-shadow: 0 4px 15px rgba(0,0,0,0.5);}
.player-audio-wrap { width: 100%; flex-direction: column; gap: 8px; }
.player-audio { width: 100%; outline: none; }
.player-spinner { padding: 15px; font-weight: 700; color: var(--heading-main); font-size: 0.9rem; text-align: center; }
.player-controls { display: flex; width: 100%; flex-shrink: 0; align-items: center; gap: 8px; background: rgba(0,0,0,0.4); padding: 12px 10px; border-radius: 12px; margin-top: 10px; box-sizing: border-box; border: 1px solid rgba(255,255,255,0.05);}
.player-time { font-size: 0.75rem; color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; margin-left: 4px; }
.player-range { flex: 1 1 0; min-width: 0; cursor: pointer; accent-color: var(--highlight); height: 4px; margin: 0 6px; }
.player-mute { font-size: 1.1rem; padding-bottom: 2px; }

/* ============================================================
   4. INDEX.HTML SPECIFIC STYLES (Landing Page)
   ============================================================ */
.landing-nav { position: fixed; top: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(10, 22, 40, 0.6); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 100; transition: all 0.3s var(--cb);}
.landing-logo { font-size: 1.8rem; font-weight: 900; color: var(--heading-main); text-shadow: 0 2px 10px rgba(0,0,0,0.4); letter-spacing: -0.5px; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.landing-logo img { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.landing-nav-links { display: flex; gap: 35px; }
.landing-nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.landing-nav-links a:hover { color: var(--heading-main); }
.landing-hero { min-height: 100vh; padding: 160px 20px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.landing-badge { 
    background: rgba(91, 163, 245, 0.1); border: 1px solid var(--highlight); padding: 8px 20px; 
    border-radius: 30px; font-size: 0.85rem; font-weight: 700; color: var(--heading-main); 
    margin-bottom: 30px; backdrop-filter: blur(10px); animation: floatUp 0.8s var(--cb) both; 
    box-shadow: 0 4px 15px rgba(91, 163, 245, 0.15);
}
.landing-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; color: var(--heading-main); text-shadow: 0 10px 30px rgba(0,0,0,0.4); max-width: 900px; margin-bottom: 25px; animation: floatUp 1s var(--cb) both 0.1s; }
.landing-hero h1 span { color: var(--highlight); text-shadow: 0 0 20px rgba(91, 163, 245, 0.3); }
.landing-hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-main); font-weight: 500; max-width: 650px; line-height: 1.6; margin-bottom: 40px; animation: floatUp 1s var(--cb) both 0.2s; }
.landing-cta-group { display: flex; gap: 20px; animation: floatUp 1s var(--cb) both 0.3s; }

@keyframes scanSweep { 0% { transform: translateY(-150%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(400%); opacity: 0; } }
@keyframes progressFill { 0% { width: 0%; } 45% { width: 100%; } 50% { width: 100%; } 95% { width: 0%; float: right; } 100% { width: 0%; float: right; } }
@keyframes zipPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 20px var(--highlight); filter: drop-shadow(0 0 10px var(--highlight));} }

.mock-scanner { position: absolute; width: 100%; height: 60px; background: linear-gradient(to bottom, transparent, rgba(91, 163, 245, 0.2)); border-bottom: 2px solid var(--highlight); animation: scanSweep 3s infinite ease-in-out; pointer-events: none; left: 0; top: 0; z-index: 10; }
.mock-progress-fill { height: 100%; background: linear-gradient(90deg, #132743, var(--highlight)); border-radius: 12px; animation: progressFill 4s infinite ease-in-out; }
.mock-status-text { font-weight: 800; color: var(--highlight); font-size: 0.85rem; text-align: right; margin-top: -10px; animation: zipPulse 2s infinite; text-transform: uppercase; letter-spacing: 1px;}
.mock-file-row { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 100%; color: var(--heading-main); font-weight: 600; font-size: 0.9rem; }
.mock-file-left { display: flex; align-items: center; gap: 10px; }
.mock-checkbox { width: 16px; height: 16px; border: 2px solid var(--highlight); border-radius: 4px; background: rgba(91, 163, 245, 0.1); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--heading-main); font-weight: bold; }
.mock-checkbox.checked::after { content: '✓'; }
.mock-file-size { color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; }
.mock-input-group { margin-bottom: 15px; display: flex; flex-direction: column; gap: 6px; }
.mock-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px;}
.mock-input { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; color: var(--heading-main); display: flex; justify-content: space-between; align-items: center;}

.landing-app-preview-container { margin-top: 80px; width: 100%; max-width: 1100px; animation: floatUp 1s var(--cb) both 0.4s; perspective: 1000px;}
.landing-app-mockup { width: 100%; height: auto; min-height: 560px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding: 30px; transform: rotateX(5deg) scale(0.95); transition: transform 0.5s var(--cb); box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.05);}
.landing-app-preview-container:hover .landing-app-mockup { transform: rotateX(0) scale(1); }

.mockup-left { display: flex; flex-direction: column; gap: 15px; position: relative; }
.mockup-right { display: flex; flex-direction: column; gap: 25px; }
.mock-bar { height: 45px; width: 100%; border-radius: 12px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }
.mock-list { flex-grow: 1; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-item { height: 50px; background: rgba(255,255,255,0.03); border-radius: 10px; width: 100%; border: 1px solid transparent; transition: all 0.2s;}
.mock-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); transform: translateX(5px);}

.landing-features-section { padding: 120px 5%; max-width: 1200px; margin: 0 auto; }
.landing-section-title { font-size: 2.8rem; font-weight: 900; text-align: center; margin-bottom: 60px; color: var(--heading-main); text-shadow: 0 2px 10px rgba(0,0,0,0.3); letter-spacing: -0.5px;}
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bento-card { padding: 40px; transition: transform 0.4s var(--cb); }
.bento-card:hover { transform: translateY(-10px); }
.span-2 { grid-column: span 2; }
.feature-icon { font-size: 3rem; margin-bottom: 25px; display: inline-block; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); color: var(--highlight);}
.bento-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 15px; color: var(--heading-main); }
.bento-card p { font-weight: 500; color: var(--text-main); line-height: 1.7; font-size: 1.05rem;}

.landing-investor-section { padding: 60px 5% 120px; max-width: 1100px; margin: 0 auto; }
.landing-investor-card { 
    background: rgba(10, 22, 40, 0.6); border-color: rgba(91, 163, 245, 0.3); padding: 60px; 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(91, 163, 245, 0.1); 
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; 
}
.investor-stats { display: flex; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.stat-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 20px; flex-grow: 1; backdrop-filter: blur(10px); text-align: center;}
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--highlight); text-shadow: 0 0 20px rgba(91, 163, 245, 0.4); margin-bottom: 5px; }
.stat-label { font-size: 0.85rem; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; }
.investor-form { display: flex; flex-direction: column; gap: 15px; background: rgba(0, 0, 0, 0.3); padding: 35px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); }
.investor-form input, .investor-form textarea { 
    width: 100%; padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255,255,255,0.1); color: var(--heading-main); outline: none; font-size: 1.05rem; font-weight: 500; transition: all 0.3s var(--cb);
}
.investor-form input::placeholder, .investor-form textarea::placeholder { color: rgba(255,255,255,0.4); font-weight: 500; }
.investor-form input:focus, .investor-form textarea:focus { background: rgba(255, 255, 255, 0.1); border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(91, 163, 245, 0.2); }

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

#investor-toast { position: fixed; bottom: -100px; right: 25px; z-index: 9999; background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(15px); color: var(--heading-main); padding: 16px 24px; border-radius: 12px; border: 1px solid var(--highlight); font-weight: 700; font-size: 1rem; box-shadow: 0 15px 40px rgba(0,0,0,0.6); transition: bottom 0.5s var(--cb); pointer-events: none; }
#investor-toast.show { bottom: 25px; }

.landing-footer { border-top: 1px solid rgba(255,255,255,0.05); background: rgba(5, 10, 20, 0.6); backdrop-filter: blur(20px); padding: 40px 5%; text-align: center; }
.landing-footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 20px; }
.landing-footer-links a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.landing-footer-links a:hover { color: var(--heading-main); }
.landing-footer-links span { color: rgba(255,255,255,0.2); }
.landing-footer-copy { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.landing-bottom-cta { text-align: center; padding: 60px 20px 100px; }
.landing-bottom-cta h2 { font-size: 3rem; font-weight: 900; color: var(--heading-main); text-shadow: 0 5px 15px rgba(0,0,0,0.4); margin-bottom: 40px; letter-spacing: -1px;}
.landing-bottom-cta a { font-size: 1.15rem; padding: 18px 45px; }

/* Landing Page utility classes */
.landing-launch-btn { padding: 10px 24px; }
.mock-step-badge { background: linear-gradient(135deg, #fff, #ddd); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: #132743; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,0.3);}
.mock-step-title { font-weight: 800; color: var(--heading-main); font-size: 1.3rem; display: flex; align-items: center; gap: 12px; }
.mock-step-title-small { font-weight: 800; color: var(--heading-main); font-size: 1.15rem; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.mock-select-icon { font-size: 0.7rem; opacity: 0.7; }
.mock-zip-icon { font-size: 3.5rem; margin-bottom: 15px; animation: zipPulse 2s infinite; color: var(--highlight);}
.mock-zip-title { font-weight: 800; color: var(--heading-main); font-size: 1.2rem; }
.mock-zip-stats { font-size: 0.9rem; color: var(--text-secondary); font-weight: 600; margin-top: 5px; }
.investor-title { font-size: 2.5rem; font-weight: 900; color: var(--heading-main); margin-bottom: 15px; letter-spacing: -0.5px;}
.investor-subtitle { font-size: 1.15rem; color: var(--text-main); font-weight: 500; line-height: 1.6; }
.investor-form-title { color: var(--heading-main); font-size: 1.4rem; margin-bottom: 5px; font-weight: 800;}
.investor-submit-btn { width: 100%; margin-top: 10px; padding: 16px; font-size: 1.1rem; }

/* ============================================================
   5. HELP.HTML SPECIFIC STYLES
   ============================================================ */
.help-nav { position: relative; padding: 25px 5%; background: rgba(10, 22, 40, 0.6); backdrop-filter: blur(20px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.help-nav-logo { color: var(--heading-main); text-decoration:none; font-weight:800; font-size:1.3rem; display:flex; align-items:center; gap:12px; letter-spacing: -0.5px;}
.help-nav-logo img { width:34px; height:34px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));}
.help-container { max-width: 900px; margin: 60px auto; padding: 20px; display: flex; flex-direction: column; gap: 40px; }
.help-card { padding: 45px; }
.help-card.center { text-align: center; }
.help-card h1 { font-size: 2.5rem; color: var(--heading-main); margin-bottom: 15px; font-weight: 900; letter-spacing: -1px;}
.help-card p.subtitle { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-main); font-weight: 500;}
.help-card h2 { color: var(--heading-main); font-size: 1.8rem; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; font-weight: 800;}
.help-card h3 { color: var(--highlight); font-size: 1.2rem; margin-top: 25px; margin-bottom: 12px; font-weight: 700;}
.help-card p, .help-card li { color: var(--text-main); font-size: 1.05rem; line-height: 1.7; margin-bottom: 15px; font-weight: 500;}
.help-card ul { padding-left: 25px; }
.troubleshoot-box { background: rgba(255, 107, 107, 0.1); border-left: 4px solid var(--danger); padding: 20px; margin-top: 20px; border-radius: 8px; }
.troubleshoot-box.green { background: rgba(91, 163, 245, 0.1); border-left: 4px solid var(--highlight); }
#show-form-btn { padding: 16px 36px; font-size: 1.15rem; width: 100%; max-width: 400px; display: inline-block; }

.support-form { display: flex; flex-direction: column; gap: 20px; background: rgba(0, 0, 0, 0.3); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); text-align: left; margin-top: 35px; animation: scaleIn 0.5s var(--cb); }
.support-form input, .support-form select, .support-form textarea { width: 100%; padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--heading-main); outline: none; font-size: 1.05rem; font-weight: 500; font-family: inherit; transition: all 0.3s var(--cb);}
.support-form input::placeholder, .support-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus { background: rgba(255, 255, 255, 0.1); border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(91, 163, 245, 0.2);}
.support-form select option { background: var(--bg-mid); color: #fff; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.support-submit { font-size: 1.15rem; padding: 16px 32px; margin-top: 15px; width: 100%; }

/* ============================================================
   6. PRIVACY.HTML SPECIFIC STYLES
   ============================================================ */
.privacy-wrapper { line-height: 1.7; color: var(--text-main); background-color: var(--bg-start); padding: 60px 20px; max-width: 900px; margin: 0 auto; min-height: 100vh;}
.privacy-container { background: rgba(10, 22, 40, 0.6); backdrop-filter: blur(20px); padding: 45px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05);}
.privacy-container h1, .privacy-container h2 { color: var(--heading-main); margin-top: 30px; margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px;}
.privacy-container p, .privacy-container li { margin-bottom: 15px; font-size: 1.05rem; font-weight: 500;}
.privacy-container ul { padding-left: 25px; margin-bottom: 25px;}
.privacy-container a { color: var(--highlight); font-weight: 700; text-decoration: none;}
.privacy-container a:hover { text-decoration: underline; }

/* ============================================================
   7. CSP DYNAMIC INJECTION CLASSES (100% CSP COMPLIANT)
   ============================================================ */
.align-center { align-items: center; }
.ml-auto { margin-left: auto; }
.mb-8 { margin-bottom: 8px; }

/* Custom Select Dropdowns (matching profile dropdown style) */
.custom-select-wrapper { position: relative; display: inline-block; }
.custom-select-trigger {
    background: var(--btn-bg); border: 1px solid var(--ice-dim); border-top: 1px solid var(--ice-highlight);
    padding: 10px 20px; border-radius: 30px; color: var(--heading-main); font-weight: 600;
    cursor: pointer; backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.05);
    transition: all 0.3s var(--cb); text-transform: uppercase; letter-spacing: 0.8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; position: relative; overflow: hidden;
    white-space: nowrap; user-select: none; font-size: 0.9rem;
}
.custom-select-trigger::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s var(--cb);
}
.custom-select-trigger:hover::after { left: 100%; }
.custom-select-trigger:hover {
    background: var(--btn-hover); transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), inset 0 2px 8px rgba(255,255,255,0.2);
    border-color: var(--ice-highlight); color: #ffffff;
}
.custom-select-trigger .cs-arrow {
    font-size: 0.65rem; opacity: 0.8; transition: transform 0.3s var(--cb);
}
.custom-select-wrapper.open .cs-arrow { transform: rotate(180deg); }
.custom-select-options {
    position: absolute; top: calc(100% + 12px); right: 0; 
    background: rgba(10, 22, 40, 0.95); border: 1px solid var(--highlight); border-radius: 16px; 
    padding: 16px; min-width: 220px; z-index: 1000; box-shadow: 0 15px 40px rgba(0,0,0,0.6); 
    backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 10px; 
    animation: scaleIn 0.3s var(--cb); transform-origin: top right;
}
.custom-select-option {
    background: var(--btn-bg); border: 1px solid var(--ice-dim); border-top: 1px solid var(--ice-highlight);
    width: 100%; font-size: 0.9rem; padding: 10px 0; display: flex; justify-content: center; font-weight: 600;
    border-radius: 30px; color: var(--heading-main); cursor: pointer; backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.05);
    transition: all 0.3s var(--cb); position: relative; overflow: hidden;
}
.custom-select-option::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s var(--cb);
}
.custom-select-option:hover::after { left: 100%; }
.custom-select-option:hover {
    background: var(--btn-hover); transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 2px 8px rgba(255,255,255,0.2);
    border-color: var(--ice-highlight); color: #ffffff;
}
.custom-select-option.active {
    background: rgba(91, 163, 245, 0.15); border-color: var(--highlight);
    color: var(--heading-main); box-shadow: 0 4px 15px rgba(91, 163, 245, 0.2);
}
/* Mode selector variant */
.custom-select-trigger.mode-trigger {
    background: rgba(91, 163, 245, 0.1); border-color: var(--highlight);
    color: var(--highlight); font-weight: 800;
}
.custom-select-trigger.mode-trigger:hover {
    background: rgba(91, 163, 245, 0.3);
    box-shadow: 0 10px 30px rgba(91, 163, 245, 0.4);
}
/* Settings area selects fill width */
.input-group .custom-select-wrapper { width: 100%; }
.input-group .custom-select-trigger { width: 100%; justify-content: space-between; text-transform: none; letter-spacing: normal; border-radius: 12px; }
.input-group .custom-select-options { left: 0; transform: none; width: 100%; padding: 8px; gap: 4px; }
.input-group .custom-select-option { text-transform: none; letter-spacing: normal; border-radius: 12px; font-size: 0.8rem; padding: 6px 0; }

.msg-center { text-align: center; margin-top: 50px; font-weight: 700; font-size: 1.1rem; color: var(--text-main);}
.msg-error { color: var(--danger); text-align: center; margin-top: 30px; padding: 0 20px; font-weight: 700; font-size: 1.1rem;}
.msg-empty { text-align: center; opacity: 0.6; margin-top: 30px; font-weight: 700; font-size: 1.1rem;}
.error-title { font-size: 1.2rem; margin-bottom: 12px; font-weight: 800;}
.error-desc { font-size: 1rem; font-weight: 500; margin-bottom: 25px; }

.v-hidden { visibility: hidden !important; }
.zip-badge { background: rgba(91, 163, 245, 0.2) !important; border-color: var(--highlight) !important; color: var(--heading-main) !important;}
.preview-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-iframe { width: 100%; height: 100%; border: none; background: #fff;}
.preview-error { font-weight: 700; color: var(--danger); text-align: center; padding: 30px; font-size: 1.1rem;}
.preview-wrapper { width: 100%; height: 100%; position: relative; background: #050505; }
.preview-fallback { position: absolute; top: 15px; right: 30px; padding: 8px 16px; font-size: 0.85rem; text-decoration: none; background: rgba(0, 0, 0, 0.7); color: var(--heading-main); border: 1px solid var(--highlight); border-radius: 10px; backdrop-filter: blur(10px); z-index: 10; font-weight: 700; transition: all 0.3s var(--cb); }
.preview-fallback:hover { background: rgba(0, 0, 0, 0.9); transform: scale(1.05); }

/* ============================================================
   8. MEDIA QUERIES (Mobile Responsiveness)
   ============================================================ */
@media (max-width: 900px) {
    .landing-app-mockup { grid-template-columns: 1fr; height: auto; transform: none;}
    .landing-app-preview-container:hover .landing-app-mockup { transform: none; }
    .bento-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .landing-nav-links { display: none; }
    .landing-cta-group { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto;}
    .landing-investor-card { grid-template-columns: 1fr; padding: 40px; text-align: center; }
    .investor-stats { justify-content: center; }
    .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    #app-container { margin: 20px 10px 40px 10px; gap: 20px;}
    .glass-panel, .card { padding: 20px; border-radius: 20px; }
    #main-app { display: flex; flex-direction: column; gap: 20px; }
    #header { flex-direction: column; align-items: stretch; gap: 20px; }
    #user-controls { flex-direction: column; width: 100%; gap: 15px; }
    .mode-selector, #time-status, #signout-button { width: 100%; justify-content: center; }
    #file-list-header { grid-template-columns: 50px 1fr; }
    #file-list-header > div:nth-child(3), #file-list-header > div:nth-child(4) { display: none; }
    .file-item { grid-template-columns: 50px 1fr; padding: 10px; }
    .file-size, .file-type { display: none; }
    #settings-area { grid-template-columns: 1fr; height: auto !important; }
    .player-card { width: calc(100% - 30px); right: 15px; bottom: 15px; padding: 15px;}
    .auth-card { padding: 30px 20px; }
} 

@media (min-width: 1024px) {
    #main-app.split-layout { display: grid !important; grid-template-columns: calc(61.5% + 20px) calc(38.5% - 20px); gap: 30px; max-width: 1500px; margin: 0 auto; align-items: stretch !important; }
    #main-app.split-layout #header { grid-column: 1 / -1; }
    #main-app.split-layout #drive-explorer-card { grid-column: 1 / 2; margin-top: 0; height: 82vh !important; min-height: 780px !important; min-width: 0; }
    #main-app.split-layout #settings-area { grid-column: 2 / 3; display: flex !important; flex-direction: column; gap: 30px; height: 82vh !important; min-height: 780px !important; min-width: 0; }
    #main-app.split-layout #settings-area .card:nth-child(1) { flex: 0 0 auto; margin: 0; padding: 25px 30px; }
    #main-app.split-layout #settings-area .card:nth-child(2) { flex: 1 1 0; margin: 0; display: flex; flex-direction: column; padding: 25px 30px; min-height: 0; }
    #review-list { max-height: none !important; }
    #main-app.split-layout #settings-area .card:nth-child(2) > div:last-child { flex-shrink: 0 !important; margin-top: auto !important; }
    #main-app:not(.split-layout) { max-width: 1500px; margin: 0 auto; }
    #main-app:not(.split-layout) #drive-explorer-card { height: 82vh; min-height: 780px; display: flex; flex-direction: column; }
}
