:root {
    --bg: #0a0a0a;
    --surface: rgba(255,255,255,0.05);
    --surface-hover: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.1);
    --text: #fff;
    --text-dim: #888;
    --accent: #fff;
    --radius: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 700px;
    width: 100%;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo span {
    background: var(--text);
    color: var(--bg);
    padding: 2px 10px;
    border-radius: 6px;
}

.auth-buttons, .user-menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--text);
}

/* Glass Card */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.drop-zone i {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--text-dim);
}

/* File Info */
.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-hover);
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
}

/* Upload Options */
.upload-options {
    margin-top: 20px;
}

.upload-options input {
    width: 100%;
    padding: 12px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 14px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

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

.btn-outline:hover {
    background: var(--surface-hover);
}

/* Progress */
.progress-container {
    margin-top: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dim);
}

.progress-track {
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
}

/* Result View */
.result-view {
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.share-link {
    background: var(--surface-hover);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dim);
    word-break: break-all;
    margin: 20px 0;
}

/* Download Section */
.file-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.file-header i {
    width: 48px;
    height: 48px;
    color: var(--text-dim);
}

.file-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-dim);
}

.file-stats div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-stats i {
    width: 16px;
    height: 16px;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.file-item {
    background: var(--surface-hover);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.file-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.file-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.file-item-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 12px;
}

.file-item-actions {
    display: flex;
    gap: 8px;
}

.file-item-actions button {
    padding: 6px 12px;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    margin-bottom: 12px;
}

/* Error Toast */
.error-toast, .error-text {
    color: #ff4444;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    color: var(--text-dim);
    padding: 40px;
}

/* Preview */
#previewContainer img {
    max-width: 100%;
    border-radius: 8px;
}

#previewContainer iframe {
    width: 100%;
    height: 500px;
    border: 1px solid var(--border);
    border-radius: 8px;
}