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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f35;
    --bg-card-hover: #1f2642;
    --border: #2a3050;
    --border-focus: #6366f1;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --cyan: #06b6d4;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-focus: #6366f1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.1);
    --success: #059669;
    --success-glow: rgba(5, 150, 105, 0.1);
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.1);
    --warning: #d97706;
    --warning-glow: rgba(217, 119, 6, 0.1);
    --cyan: #0891b2;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ─── Header ─── */
header {
    margin-bottom: 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ─── Buttons ─── */
.login-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-hover);
}

.logged-in-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.logout-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.logout-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-glow);
}

/* ─── Nav Tabs ─── */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border);
}

.nav-tab {
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-tab:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Upload Area ─── */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.upload-area:hover::before,
.upload-area.dragover::before {
    opacity: 1;
}

.upload-area.dragover {
    transform: scale(1.01);
}

.upload-icon {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    transition: var(--transition);
}

.upload-area:hover .upload-icon svg,
.upload-area.dragover .upload-icon svg {
    color: var(--accent);
    transform: translateY(-4px);
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.upload-limit {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 8px;
    opacity: 0.7;
}

.file-info {
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ─── Mode Selection ─── */
.mode-selection {
    margin-top: 28px;
}

.mode-selection h3 {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mode-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    text-align: left;
}

.mode-btn:hover {
    border-color: var(--text-muted);
    background: var(--bg-card-hover);
}

.mode-btn.active {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 1px var(--accent);
}

.mode-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
}

.mode-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mode-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Options ─── */
.options {
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.options h3 {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.option-group {
    margin-bottom: 14px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.option-group select,
.option-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    -webkit-appearance: none;
}

.option-group select:focus,
.option-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── Upload Button ─── */
.upload-btn {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: linear-gradient(135deg, #7c3aed, #6366f1, #8b5cf6);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12));
    opacity: 0;
    transition: opacity 0.2s;
}

.upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6, #818cf8, #a78bfa);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

.upload-btn:hover:not(:disabled)::after {
    opacity: 1;
}

.upload-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ─── Password Option ─── */
.password-option {
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border);
}

.auth-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

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

/* ─── Password Visibility Toggle ─── */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap .auth-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--text-secondary);
    background: var(--bg-card-hover);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-prompt .password-wrap {
    margin-bottom: 0;
}

.auth-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 8px;
    min-height: 18px;
}

.auth-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
    min-height: 18px;
}

.auth-hint a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-hint a:hover {
    text-decoration: underline;
}

.auth-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Success / Link Section ─── */
.success-icon {
    margin-bottom: 16px;
}

.success-icon svg {
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.3));
}

.success-message {
    text-align: center;
    margin-bottom: 24px;
}

.file-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.file-info-row:last-child {
    border-bottom: none;
}

.file-info-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.file-info-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

[data-theme="light"] .file-info-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.success-message h2 {
    color: var(--success);
    margin-bottom: 6px;
    font-size: 1.5rem;
}

.success-message p {
    color: var(--text-secondary);
}

.link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.link-box input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--cyan);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

.copy-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    background: var(--success);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.warning {
    color: var(--warning);
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--warning-glow);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.new-upload-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.new-upload-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ─── View Section ─── */
#view-section {
    text-align: center;
}

.locked-icon,
.ready-icon,
.expired-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

#view-section h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

#view-section > div > p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.countdown {
    font-size: 3rem;
    font-weight: 700;
    color: var(--danger);
    margin: 24px 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 2px;
}

.expire-countdown {
    font-size: 2.2rem;
    color: var(--danger);
}

.filename {
    color: var(--text-muted);
    margin-top: 8px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* ─── File Details ─── */
.file-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    text-align: left;
}

.file-details h3 {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row:last-of-type {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-value.green {
    color: var(--success);
}

.detail-value.cyan {
    color: var(--cyan);
}

.file-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-tag {
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-hover);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.feature-tag.green {
    background: var(--success-glow);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* ─── Download Button ─── */
.download-btn {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 28px auto 12px;
    padding: 16px;
    background: linear-gradient(135deg, #059669, #10b981, #34d399);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

/* ─── Password Prompt ─── */
.password-prompt {
    max-width: 380px;
    margin: 20px auto;
    text-align: center;
}

.password-prompt .auth-input {
    margin-bottom: 12px;
}

.password-prompt .auth-btn {
    max-width: 180px;
    margin: 0 auto;
}

/* ─── Auth Box ─── */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

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

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

.auth-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s ease;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-close:hover {
    background: var(--danger-glow);
    color: var(--danger);
}

.auth-box h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.auth-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 24px;
    opacity: 0.7;
}

.auth-toggle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 16px;
}

.auth-toggle a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 8px;
}

.auth-btn:hover {
    transform: translateY(-1px);
}

.auth-btn.primary {
    background: var(--accent);
    color: #fff;
    margin-top: 4px;
}

.auth-btn.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.google-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.google-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

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

/* ─── History ─── */
.history-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: var(--transition);
}

.history-item:hover {
    border-color: var(--text-muted);
    background: var(--bg-card-hover);
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-info .file-id {
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    margin-bottom: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-info .file-id:hover {
    text-decoration: underline;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.history-meta .has-password {
    color: var(--warning);
}

.delete-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.delete-btn:hover {
    background: var(--danger-glow);
    border-color: var(--danger);
}

.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 48px 20px;
    font-size: 0.9rem;
}

/* ─── Ad Container ─── */
#ad-container {
    margin-top: 32px;
    text-align: center;
}

/* ─── Footer ─── */
footer {
    text-align: center;
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ─── Theme Toggle ─── */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ─── Info Pages (About, Terms, Privacy) ─── */
.info-page { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.info-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.info-page .subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }
.info-page .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 32px; }
.info-page h2 { font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px; color: var(--text-primary); }
.info-page p, .info-page li { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.info-page ul { padding-left: 24px; margin-bottom: 12px; }
.info-page ul li { margin-bottom: 8px; }
.info-page .back-home { display: inline-block; margin-top: 32px; padding: 10px 24px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.info-page .back-home:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.feature-card p { font-size: 0.85rem; margin-bottom: 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #10b981; font-size: 0.75rem; font-weight: 600; margin-bottom: 16px; }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* ─── Light Theme Overrides ─── */
[data-theme="light"] header h1 {
    background: linear-gradient(135deg, #4f46e5, #6366f1, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .link-box input {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .countdown {
    color: #dc2626;
}

[data-theme="light"] .expire-countdown {
    color: #dc2626;
}

[data-theme="light"] .upload-area {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .upload-area:hover,
[data-theme="light"] .upload-area.dragover {
    border-color: #6366f1;
    background: #f8fafc;
}

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

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

[data-theme="light"] .password-option {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .auth-box {
    background: #ffffff;
    border-color: #e2e8f0;
}

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

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

[data-theme="light"] .file-details {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .detail-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .file-features {
    border-top-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .feature-tag {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

[data-theme="light"] .feature-tag.green {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.15);
    color: #059669;
}

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

[data-theme="light"] .mode-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

[data-theme="light"] .option-group select,
[data-theme="light"] .option-group input {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

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

[data-theme="light"] .option-group select:focus,
[data-theme="light"] .option-group input:focus,
[data-theme="light"] .auth-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .google-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ─── Responsive ─── */
/* ─── Toast Notifications ─── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 420px;
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
}

.toast.removing {
    animation: toastOut 0.25s ease forwards;
}

.toast svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.toast.toast-error svg { color: var(--danger); }

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.toast.toast-success svg { color: var(--success); }

.toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.toast.toast-warning svg { color: var(--warning); }

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

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

/* ─── Progress Bar ─── */
.upload-progress {
    margin-top: 20px;
    display: none;
}

.upload-progress.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-percent {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--accent);
}

/* ─── Spinner ─── */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── File Preview Icon ─── */
.file-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    animation: slideUp 0.25s ease;
}

.file-preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.file-preview-icon.type-image {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}
.file-preview-icon.type-video {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
}
.file-preview-icon.type-audio {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}
.file-preview-icon.type-archive {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}
.file-preview-icon.type-doc {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
}
.file-preview-icon.type-pdf {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}
.file-preview-icon.type-code {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
}
.file-preview-icon.type-default {
    background: var(--accent-glow);
    color: var(--accent);
}

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

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

.file-preview-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.file-preview-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.file-preview-remove:hover {
    background: var(--danger-glow);
    color: var(--danger);
}

/* ─── Enhanced Upload Area ─── */
.upload-area.has-file {
    border-style: solid;
    border-color: var(--success);
    background: var(--success-glow);
    padding: 20px 32px;
}

.upload-area.has-file .upload-icon,
.upload-area.has-file > p:first-of-type {
    display: none;
}

.upload-area.has-file .file-info {
    display: none;
}

/* ─── SVG icon shared ─── */
.icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ─── Mode Selection icon SVGs ─── */
.mode-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: var(--transition);
}

.mode-btn[data-mode="burn"] .mode-icon-wrap {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.mode-btn[data-mode="capsule"] .mode-icon-wrap {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.mode-btn.active[data-mode="burn"] .mode-icon-wrap {
    background: rgba(239, 68, 68, 0.2);
}

.mode-btn.active[data-mode="capsule"] .mode-icon-wrap {
    background: rgba(99, 102, 241, 0.2);
}

.mode-btn .mode-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.mode-icon {
    display: none;
}

/* ─── View Section SVG Icons ─── */
.view-status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.view-status-icon.locked {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.view-status-icon.ready {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.view-status-icon.expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.view-status-icon svg {
    width: 36px;
    height: 36px;
}

/* Hide old emoji icons */
.locked-icon,
.ready-icon,
.expired-icon {
    display: none;
}

/* ─── History icons with SVGs ─── */
.history-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-item-icon.burn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.history-item-icon.capsule {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.history-item-icon svg {
    width: 18px;
    height: 18px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ─── Enhanced button states ─── */
.upload-btn.loading {
    pointer-events: none;
}

.upload-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ─── Upload success animation ─── */
@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon svg {
    animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Link input copy feedback ─── */
.link-box input.copied {
    border-color: var(--success);
    box-shadow: 0 0 0 3px var(--success-glow);
}

/* ─── Countdown pulse ─── */
.countdown {
    animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ─── Download button loading ─── */
.download-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.download-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ─── View page transitions ─── */
#view-section > div {
    animation: fadeIn 0.3s ease;
}

/* ─── Feedback Modal ─── */
.feedback-box {
    max-width: 420px;
}

.feedback-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 8px;
}

.feedback-stars .star {
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--border);
    transition: color 0.15s, transform 0.15s;
    user-select: none;
    line-height: 1;
}

.feedback-stars .star:hover,
.feedback-stars .star.active {
    color: #f59e0b;
}

.feedback-stars .star:hover {
    transform: scale(1.2);
}

.feedback-rating-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 16px;
    min-height: 20px;
}

.feedback-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* ─── Toast responsive ─── */
@media (max-width: 640px) {
    #toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        font-size: 0.8rem;
        padding: 12px 16px;
    }

    .upload-progress {
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 20px 16px 40px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .mode-buttons {
        grid-template-columns: 1fr;
    }

    .upload-area {
        padding: 36px 20px;
    }

    .upload-area.has-file {
        padding: 16px;
    }

    .countdown {
        font-size: 2rem;
    }

    .link-box {
        flex-direction: column;
    }

    .link-box input {
        font-size: 0.8rem;
    }

    .file-details {
        padding: 18px;
    }

    .history-meta {
        gap: 8px;
    }

    .auth-box {
        padding: 28px 24px;
    }

    .file-preview {
        padding: 10px 14px;
    }

    .file-preview-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .view-status-icon {
        width: 56px;
        height: 56px;
    }

    .view-status-icon svg {
        width: 28px;
        height: 28px;
    }
}
