﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

    .nav-link:hover {
        color: var(--primary);
    }

    .nav-link.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: background 0.2s;
}

    .user-profile:hover {
        background: var(--light);
    }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-name {
    font-weight: 600;
    color: var(--dark);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: var(--dark);
    }

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .modal-header h2 {
        font-size: 1.75rem;
        color: var(--dark);
        margin-bottom: 0.5rem;
    }

    .modal-header p {
        color: var(--text-light);
        font-size: 0.95rem;
    }

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: white;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

    .auth-btn:hover {
        border-color: var(--primary);
        background: var(--light);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }

    .auth-btn svg {
        width: 24px;
        height: 24px;
    }

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--text-light);
    font-size: 0.875rem;
}

    .divider::before,
    .divider::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 40%;
        height: 1px;
        background: var(--border);
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

/* User Menu Dropdown */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 1001;
}

.user-menu-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .user-menu-item:hover {
        background: var(--light);
    }

    .user-menu-item.danger {
        color: var(--danger);
    }

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero .subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.85;
}

/* Upload Section */
.upload-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.drop-zone {
    border: 3px dashed var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--light);
}

    .drop-zone:hover, .drop-zone.drag-over {
        border-color: var(--primary);
        background: #eef2ff;
        transform: scale(1.02);
    }

.drop-zone-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.drop-zone p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

/* Progress Container */
.progress-container {
    padding: 2rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
}

.file-icon {
    font-size: 3rem;
}

.file-details {
    flex: 1;
    text-align: left;
}

.file-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-size {
    color: var(--text-light);
    font-size: 0.875rem;
}

.upload-spinner {
    width: 56px;
    height: 56px;
    margin: 1.25rem auto 1rem;
    border: 5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.progress-bar {
    height: 12px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.25rem 0 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 12px;
    transition: width 0.2s ease;
}
.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Success Container */
.success-container {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-container h3 {
    color: var(--success);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.success-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.link-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Inter', monospace;
    background: var(--light);
}

.btn-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 1em;
}

    .btn-copy:hover {
        background: var(--primary-dark);
    }

    .btn-copy.copied {
        background: var(--success);
    }

.btn-new {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1em;
}

    .btn-new:hover {
        background: var(--primary);
        color: white;
    }

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

    .faq-section h2 {
        text-align: center;
        color: white;
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    transition: background 0.2s;
}

    .faq-question:hover {
        background: var(--light);
    }

.faq-icon {
    transition: transform 0.3s;
    font-size: 1.5rem;
}

    .faq-icon.open {
        transform: rotate(180deg);
    }

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--text);
}

    .faq-answer.open {
        padding: 0 1.5rem 1.5rem;
        max-height: 500px;
    }

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
}

    .footer-link:hover {
        opacity: 1;
    }

.page {
    background: white;
    min-height: calc(100vh - 100px);
    padding: 2rem 2rem;
}

/* My Files */
.my-files-content {
    max-width: 1024px;
    margin: 0 auto;
}

/* Privacy Page */


.privacy-content {
    max-width: 1024px;
    margin: 0 auto;
}

    .privacy-content h1 {
        color: var(--dark);
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .privacy-content h2 {
        color: var(--dark);
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--dark);
    }

    .privacy-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--dark);
    }

    .privacy-content p {
        margin-bottom: 1rem;
        line-height: 1.8;
    }

    .privacy-content ul {
        margin: 1rem 0 1rem 2rem;
        line-height: 1.8;
    }

    .privacy-content li {
        margin-bottom: 0.5rem;
    }

    .privacy-content a {
        color: var(--primary);
        text-decoration: none;
    }

        .privacy-content a:hover {
            text-decoration: underline;
        }

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
}

    .footer-link:hover {
        opacity: 1;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .upload-card {
        padding: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ========================================
   MY FILES PAGE STYLES
   ======================================== */

.my-files-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.my-files-header {
    margin-bottom: 2rem;
    text-align: center;
}

.my-files-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.refresh-btn {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
    margin-bottom: 0.4rem;
}

.refresh-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.refresh-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.refresh-btn .spinning {
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.countdown-inline {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.05em;
}

.countdown-inline.active { color: var(--primary); }
.countdown-inline.expiring-soon { color: #f59e0b; }
.countdown-inline.expired { color: var(--danger, #ef4444); }

    .my-files-header h1 {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--dark);
        margin-bottom: 0.5rem;
    }

    .my-files-header .subtitle {
        font-size: 1.125rem;
        color: var(--text-light);
    }

/* Files List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .file-item:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

.file-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    border-radius: 12px;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.file-separator {
    color: var(--border);
}

.file-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

    .status-badge.active {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }

    .status-badge.expiring-soon {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
    }

    .status-badge.expired {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
    }

.file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-action {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .btn-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.btn-copy {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    }

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-indicator p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Delete Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

    .modal-content h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 1rem;
    }

    .modal-content p {
        color: var(--text);
        margin-bottom: 1rem;
        line-height: 1.6;
    }

.file-name-confirm {
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    font-weight: 600;
    color: var(--dark);
    word-break: break-all;
}

.warning-text {
    color: var(--danger);
    font-weight: 600;
    margin-top: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

    .modal-actions button {
        flex: 1;
        padding: 0.875rem 1.5rem;
        border-radius: 10px;
        border: none;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

.btn-secondary {
    background: var(--light);
    color: var(--dark);
}

    .btn-secondary:hover {
        background: var(--border);
    }

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .file-item {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .my-files-container {
        padding: 2rem 1rem;
    }

    .my-files-header h1 {
        font-size: 2rem;
    }

    .file-item {
        padding: 1rem;
    }

    .file-icon {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .file-name {
        font-size: 1rem;
    }

    .file-meta {
        font-size: 0.8125rem;
    }

    .file-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .file-icon {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .file-name {
        font-size: 0.9375rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}
/* My Files Statistics */
.myfiles-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.myfiles-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.myfiles-stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.myfiles-stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.myfiles-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.myfiles-stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .myfiles-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .myfiles-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .myfiles-stat-value {
        font-size: 1.125rem;
    }
}

/* Download Landing Page */
.download-page-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.download-card--expired {
    border-color: rgba(239, 68, 68, 0.3);
}

.download-card--notfound {
    border-color: rgba(102, 126, 234, 0.3);
}

.notfound-graphic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.12));
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.notfound-icon {
    font-size: 2.25rem;
    line-height: 1;
}

.notfound-slash {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    background: #ef4444;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

.notfound-suggestions {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notfound-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.notfound-suggestion-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.download-status-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.download-card h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.download-subtitle {
    color: var(--text-light);
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.download-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    text-align: left;
}

.download-file-icon {
    font-size: 2.25rem;
    flex-shrink: 0;
}

.download-file-details {
    min-width: 0;
}

.download-filename {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-filesize {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.btn-download-main {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 1.25rem;
}

.btn-download-main:hover:not(:disabled) {
    background: var(--primary-hover, #4f46e5);
    transform: translateY(-1px);
}

.btn-download-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-note {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.expired-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    opacity: 0.6;
}

/* ─── Settings Modal ─────────────────────────────────────────────────────── */
.settings-modal {
    max-width: 480px;
}

.settings-loading {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.settings-body {
    margin-top: 0.5rem;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin: 0 0 1rem;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.settings-toggle-row:last-child {
    border-bottom: none;
}

.settings-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.settings-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.settings-toggle-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Toggle switch */
.toggle-switch {
    flex-shrink: 0;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s ease;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(22px);
}

/* Settings footer */
.settings-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.settings-save-btn {
    padding: 0.6rem 1.75rem;
    font-size: 0.95rem;
}

.settings-saved-msg {
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 600;
}
