:root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --surface2: #0f3460;
    --accent: #e94560;
    --text: #eee;
    --text-muted: #999;
    --border: #333;
    --success: #4caf50;
    --error: #f44336;
}

* { 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;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

header h1 { font-size: 1.5rem; }

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: var(--surface2);
    color: var(--text);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    background: var(--surface2);
    color: var(--text);
}

.btn-cancel {
    background: transparent;
    color: var(--text-muted);
    margin-top: 1rem;
}

.auth-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    margin: 4rem auto;
}

.auth-card p { margin-bottom: 1.5rem; color: var(--text-muted); }

.status-msg {
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.status-msg.success { background: rgba(76,175,80,0.15); color: var(--success); }
.status-msg.error { background: rgba(244,67,54,0.15); color: var(--error); }
.hidden { display: none !important; }

.upload-section {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.upload-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }

#upload-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#upload-form input[type="file"] {
    flex: 1;
    color: var(--text);
}

.progress-bar {
    margin-top: 1rem;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.progress-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.files-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th,
.file-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.file-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-delete {
    background: var(--error);
    color: #fff;
    margin-left: 0.5rem;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: relative;
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    min-width: 340px;
    text-align: center;
    z-index: 101;
}

.modal-content h3 { margin-bottom: 0.5rem; }
.modal-content p { color: var(--text-muted); margin-bottom: 1rem; }

.verify-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sms-section { margin-top: 0.5rem; }
.sms-section hr { border-color: var(--border); margin-bottom: 0.75rem; }

#sms-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

#sms-code {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    width: 140px;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
}
