:root {
    --bg-primary: #0A0A0F;
    --bg-secondary: #13131A;
    --bg-tertiary: #1A1A24;
    --bg-elevated: #1F1F2E;
    --accent-primary: #6366F1;
    --accent-secondary: #8B5CF6;
    --accent-tertiary: #A78BFA;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-medium: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --success-bg: rgba(16, 185, 129, 0.1);
    --error-bg: rgba(239, 68, 68, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
}

.bg-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.35;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    filter: blur(80px);
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.025;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(180%);
    background: rgba(10, 10, 15, 0.75);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    gap: 0;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span:last-child {
    color: var(--text-primary);
}

.logo:link,
.logo:visited {
    text-decoration: none;
    color: inherit;
}


.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    margin-right: -12px;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-btn {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    border-color: var(--border-strong);
    background: var(--bg-secondary);
}

.nav-btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
}

.nav-btn-primary:hover {
    background: var(--text-secondary);
}

.nav-btn-logout {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.nav-btn-logout:hover {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

main {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
}

.hero {
    text-align: center;
    margin-bottom: 6rem;
    padding: 3rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-tertiary);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.75rem;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #FFFFFF 0%, #787878 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.usage-tracker {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}

.usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.usage-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.upgrade-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--accent-tertiary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.upgrade-link svg {
    width: 14px;
    height: 14px;
}

.upgrade-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.usage-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.usage-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    position: relative;
}

.usage-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.usage-text {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-align: center;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-zone {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-medium);
    border-radius: 24px;
    padding: 5rem 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-zone:hover::before,
.upload-zone.dragover::before {
    opacity: 1;
}

.upload-zone.dragover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    transform: scale(1.005);
}

.upload-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.upload-icon-wrapper {
    width: 88px;
    height: 88px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--border-medium);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upload-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-secondary);
    transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon-wrapper {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 20px 40px var(--accent-glow);
    border-color: var(--border-strong);
}

.upload-zone:hover .upload-icon-wrapper svg {
    stroke: var(--accent-primary);
}

.upload-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.upload-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.9375rem;
    font-weight: 400;
}

.upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

input[type="file"] {
    display: none;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-strong);
}

.upload-info {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.info-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-tertiary);
}

/* Settings Panel */
.settings-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.settings-grid {
    display: grid;
    gap: 2.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.setting-label svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.option-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.option-btn:hover {
    border-color: var(--border-medium);
    background: var(--bg-elevated);
}

.option-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.password-input::placeholder {
    color: var(--text-tertiary);
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.toggle-password:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.files-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    width: 240px;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-tertiary);
}

.view-toggle {
    display: flex;
    gap: 0;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.view-btn {
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

.view-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.file-card:hover::before {
    opacity: 1;
}

.file-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-tertiary);
}

.file-icon-large {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.file-icon-large svg {
    width: 24px;
    height: 24px;
}

.file-card:hover .file-icon-large {
    transform: scale(1.05);
    border-color: var(--border-strong);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.file-meta {
    display: flex;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.action-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.action-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
}

.action-btn.danger:hover {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 1.125rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: var(--success-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--success);
}

.toast.error .toast-icon {
    background: var(--error-bg);
}

.toast.error .toast-icon svg {
    stroke: var(--error);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.toast-message {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.toast-close {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

.toast-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader {
    width: 56px;
    height: 56px;
    border: 3px solid var(--border-medium);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-tertiary);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-tertiary);
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-text {
    font-size: 0.9375rem;
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    padding: 3rem 2.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    margin-top: 6rem;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .container {
        padding: 3rem 1.5rem;
    }

    .upload-zone {
        padding: 4rem 2rem;
    }

    .settings-panel {
        padding: 2rem;
    }

    .files-grid {
        grid-template-columns: 1fr;
    }

    .upload-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-actions {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        width: 100%;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .upload-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .option-group {
        width: 100%;
    }

    .option-btn {
        flex: 1;
    }

    .settings-panel {
        padding: 1.5rem;
    }

    .auth-container {
        padding: 2rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.lock-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
}

.lock-indicator svg {
    width: 12px;
    height: 12px;
    stroke: var(--text-secondary);
}

.meta-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.meta-lock-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-tertiary);
}

.files-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-card-list {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.file-card-list .file-header {
    flex: 1;
    margin-bottom: 0;
}

.file-card-list .file-info .file-name {
    margin-bottom: 0.25rem;
}

.file-card-list .file-actions {
    border-top: none;
    padding-top: 0;
    margin-left: 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.file-card-list .action-btn {
    flex: 0 0 auto;
    padding-inline: 0.75rem;
}

@media (max-width: 768px) {
    .file-card-list {
        flex-direction: column;
        align-items: stretch;
    }

    .file-card-list .file-actions {
        width: 100%;
        margin-left: 0;
        padding-top: 1rem;
        border-top: 1px solid var(--border-subtle);
        justify-content: stretch;
    }

    .file-card-list .action-btn {
        flex: 1;
    }

    .auth-box {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }
}

/* Auth Page Styles */
.auth-container {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2.5rem;
}

.auth-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.form-label svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

.form-input {
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-elevated);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-input {
    flex: 1;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.toggle-password:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.password-strength {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.25rem;
    height: 3px;
}

.password-strength::before,
.password-strength::after {
    content: '';
    flex: 1;
    background: var(--border-medium);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.password-strength.weak::before {
    background: var(--error);
}

.password-strength.medium::before,
.password-strength.medium::after {
    background: var(--warning);
}

.password-strength.strong::before,
.password-strength.strong::after {
    background: var(--success);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-medium);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.forgot-link {
    color: var(--accent-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--accent-primary);
}

.terms-label {
    margin-top: 0.5rem;
}

.link {
    color: var(--accent-tertiary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--accent-primary);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary:active {
    transform: translateY(0);
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-subtle);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-btn {
    padding: 0.875rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    letter-spacing: -0.01em;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.switch-btn {
    background: none;
    border: none;
    color: var(--accent-tertiary);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: 0.375rem;
    letter-spacing: -0.01em;
}

.switch-btn:hover {
    color: var(--accent-primary);
}


/* Auth: standalone register page */
.auth-switch.single {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-switch.single .link {
    margin-left: 0.35rem;
}

/* Download page */
.download-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.download-card {
    max-width: 720px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.download-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.download-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-tertiary);
}

.download-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.download-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.download-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.meta-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.download-password-label {
    margin-bottom: 0.25rem;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.download-btn-main {
    width: 100%;
    justify-content: center;
}

.download-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-align: center;
}

.download-footer {
    position: relative;
    z-index: 10;
    padding: 3rem 2.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    margin-top: 6rem;
}

.download-security {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.security-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-medium);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
}

.download-footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .download-card {
        padding: 2.25rem 1.75rem;
    }

    .download-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-container {
        padding-inline: 1.5rem;
    }
}

.stat-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-tertiary);
}
.file-card .file-icon {
    display: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.stat-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.action-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.download-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.download-card {
    max-width: 600px;
    width: 100%;
}