/* Video2SRT — Layout v2.0
 * Refactored: Better spacing, enhanced sidebar, polished workspace
 */

/* ── App shell ────────────────────────────────────────────────────────── */
.app {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    height: 100vh;
    background: var(--color-bg);
    transition: grid-template-columns var(--duration-base) var(--ease-out);
}
.app[data-sidebar="collapsed"] {
    grid-template-columns: var(--sidebar-width-collapsed) 1fr;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-elev-1);
    border-right: 1px solid var(--color-border);
    z-index: var(--z-sticky);
    overflow: hidden;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    height: var(--navbar-height);
    padding: 0 var(--space-md);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-brand-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.30);
    transition: box-shadow var(--duration-base) var(--ease-out);
}
.sidebar-brand-mark:hover {
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.40);
}
.sidebar-brand-mark > svg { width: 16px; height: 16px; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-md) var(--space-sm);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.sidebar-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    height: 40px;
    padding: 0 var(--space-md);
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    cursor: pointer;
    text-align: left;
    transition:
        background var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
    white-space: nowrap;
    width: 100%;
}
.sidebar-nav-item > svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav-item:hover { background: var(--color-bg-elev-3); color: var(--color-text); }
.sidebar-nav-item[aria-current="page"] {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}
/* Active indicator bar */
.sidebar-nav-item[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    animation: fadeIn var(--duration-base) var(--ease-out);
}
.sidebar-nav-item[aria-current="page"] > svg { color: var(--color-accent); }

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-sm);
    border-top: 1px solid var(--color-border);
}
.sidebar-credit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-elev-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    overflow: hidden;
}
.sidebar-credit-label {
    flex-shrink: 0;
    color: var(--color-text-subtle);
    font-weight: var(--weight-medium);
}
.sidebar-credit-value {
    font-family: var(--font-mono);
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 var(--space-sm);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-subtle);
    font-size: var(--text-xs);
    cursor: pointer;
    gap: var(--space-xs);
    transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.sidebar-collapse-btn:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.sidebar-collapse-btn > svg { width: 14px; height: 14px; transition: transform var(--duration-base) var(--ease-out); }
.app[data-sidebar="collapsed"] .sidebar-collapse-btn > svg { transform: rotate(180deg); }

.app[data-sidebar="collapsed"] .sidebar-brand span,
.app[data-sidebar="collapsed"] .sidebar-nav-item span,
.app[data-sidebar="collapsed"] .sidebar-credit-label,
.app[data-sidebar="collapsed"] .sidebar-credit-value,
.app[data-sidebar="collapsed"] .sidebar-collapse-btn span { display: none; }
.app[data-sidebar="collapsed"] .sidebar-nav-item { justify-content: center; padding: 0; width: 40px; margin: 0 auto; }
.app[data-sidebar="collapsed"] .sidebar-nav-item[aria-current="page"]::before { left: -4px; }
.app[data-sidebar="collapsed"] .sidebar-credit { justify-content: center; padding: var(--space-sm); }
.app[data-sidebar="collapsed"] .sidebar-collapse-btn { padding: 0; width: 32px; }

/* ── Main wrapper ─────────────────────────────────────────────────────── */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    /* Subtle ambient glow from top-right corner */
    background:
        radial-gradient(ellipse at 85% 5%, rgba(225, 29, 72, 0.03), transparent 50%),
        var(--color-bg);
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    height: var(--navbar-height);
    padding: 0 var(--space-xl);
    background: var(--color-bg-elev-1);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--z-sticky);
}
.navbar-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    min-width: 0;
}
.navbar-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.40);
    animation: pulse 2s var(--ease-in-out) infinite;
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}
.theme-toggle:hover {
    color: var(--color-text);
    background: var(--color-bg-elev-3);
    border-color: var(--color-border-strong);
    transform: rotate(15deg);
}
.theme-toggle > svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* ── Main content ─────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: var(--space-lg);
}

/* ── Auth screen ──────────────────────────────────────────────────────── */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(225, 29, 72, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.04), transparent 40%),
        var(--color-bg);
}
.auth-card {
    width: min(100%, 440px);
    background: var(--color-bg-elev-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    animation: fadeInScale var(--duration-slow) var(--ease-out);
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.auth-brand-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
}
.auth-brand-mark > svg { width: 22px; height: 22px; }
.auth-brand h1 { font-size: var(--text-xl); }
.auth-brand p { font-size: var(--text-sm); color: var(--color-text-subtle); margin-top: 2px; }

.auth-form { display: flex; flex-direction: column; gap: var(--space-md); }
.auth-form .btn { margin-top: var(--space-sm); }

.security-note {
    padding: var(--space-md);
    background: var(--color-info-soft);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: var(--leading-relaxed);
}
@media (max-width: 640px) {
    .auth-card { padding: var(--space-xl) var(--space-lg); }
}

/* ── Upload screen ────────────────────────────────────────────────────── */
.upload-screen {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: var(--space-xl) var(--space-md);
    overflow-y: auto;
}
.upload-wrapper {
    width: 100%;
    max-width: 680px;
    animation: fadeInUp var(--duration-slow) var(--ease-out);
}
.upload-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: rgba(5, 5, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: inherit;
}
.upload-overlay-progress { width: min(80%, 320px); }

/* ── Workspace ────────────────────────────────────────────────────────── */
.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--workspace-panel-width);
    gap: var(--space-lg);
    height: 100%;
    min-height: 0;
}
.video-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}
.results-section {
    display: flex;
    min-height: 0;
}
.results-section .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.video-wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--duration-base) var(--ease-out);
}
.video-wrapper:has(video[src]) {
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 0, 0, 0.50);
}
/* Seeking indicator */
.video-wrapper.is-seeking::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: fadeIn var(--duration-fast) var(--ease-out);
}
.video-wrapper.is-seeking::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 1;
    pointer-events: none;
}
.video-wrapper video { max-width: 100%; max-height: 100%; display: block; }

.video-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-md);
    background: var(--color-bg-elev-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.video-controls .controls-group { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; }
.video-controls .timeline { flex: 1; min-width: 0; width: 0; margin: 0 var(--space-xs); }
.video-controls .time-display {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-controls .select-wrap { flex-shrink: 0; }

.density-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}
.density-row .select-wrap { width: auto; }
.density-row .select { height: 28px; min-width: 88px; padding: 0 var(--space-xl) 0 var(--space-sm); font-size: var(--text-xs); }

.action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-elev-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}
.action-bar-divider {
    width: 1px;
    height: 20px;
    background: var(--color-border-strong);
    margin: 0 var(--space-xs);
}
.action-bar-progress { flex: 1; min-width: 160px; }

.workspace-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.panel-section { border-bottom: 1px solid var(--color-border); }
.panel-section:last-of-type { border-bottom: 0; }
.panel-section-label {
    padding: 6px var(--space-md);
    background: var(--color-bg-elev-3);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-subtle);
}
.results-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-sm);
}
.results-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--color-border);
}

/* ── Admin page ───────────────────────────────────────────────────────── */
.admin-page {
    height: 100%;
    overflow-y: auto;
    padding: var(--space-xl) var(--space-lg);
}
.admin-container { max-width: 960px; margin: 0 auto; }

.admin-header { margin-bottom: var(--space-xl); }
.admin-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.admin-header h2 { font-size: var(--text-2xl); margin-bottom: var(--space-xs); }
.admin-header p { color: var(--color-text-subtle); font-size: var(--text-sm); }

.admin-stats {
    display: flex;
    gap: var(--space-md);
}
.admin-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-elev-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    min-width: 100px;
}
.admin-stat-value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
}
.admin-stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    margin-top: 2px;
}

.admin-create-card { margin-bottom: var(--space-lg); }
.admin-create-form {
    display: flex;
    gap: var(--space-md);
    align-items: flex-end;
    flex-wrap: wrap;
}
.admin-create-form .field { flex: 1; min-width: 180px; }
.admin-create-form .btn { flex-shrink: 0; }
.admin-create-hint {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    margin-top: var(--space-sm);
}
.admin-create-hint code {
    padding: 2px 6px;
    background: var(--color-bg-elev-3);
    border-radius: var(--radius-xs);
    font-size: var(--text-2xs);
}

.admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.admin-list-header h3 {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
}
.admin-search-wrap { width: 240px; }
.admin-search {
    height: 34px;
    font-size: var(--text-xs);
    padding-left: var(--space-md);
}

.admin-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.admin-row {
    display: grid;
    grid-template-columns: 40px 1fr 140px 130px auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--color-bg-elev-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition:
        border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}
.admin-row:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.admin-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg-elev-3);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    text-transform: uppercase;
    flex-shrink: 0;
}
.admin-row-main { min-width: 0; }
.admin-row-email {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-row-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}
.admin-role-badge {
    display: inline-flex;
    padding: 1px 6px;
    font-size: var(--text-2xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    background: var(--color-accent-soft);
    color: var(--color-accent);
}
.admin-role-badge.role-user {
    background: var(--color-bg-elev-3);
    color: var(--color-text-subtle);
}
.admin-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
}
.admin-status-dot.is-disabled { background: var(--color-text-subtle); }
.admin-row-main strong { display: block; font-size: var(--text-sm); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-main span { display: block; font-size: var(--text-xs); color: var(--color-text-subtle); }
.admin-row-actions { display: flex; gap: var(--space-xs); justify-content: flex-end; }

@media (max-width: 1024px) {
    .admin-row {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
            "avatar main"
            "avatar limit"
            "avatar actions";
        gap: var(--space-sm) var(--space-md);
    }
    .admin-row-avatar { grid-area: avatar; align-self: start; }
    .admin-row-main { grid-area: main; }
    .admin-limit-input { grid-area: limit; }
    .admin-status-select { display: none; }
    .admin-row-actions { grid-area: actions; justify-content: flex-start; flex-wrap: wrap; }
    .admin-create-form { flex-direction: column; }
    .admin-create-form .field { min-width: 100%; }
    .admin-stats { flex-wrap: wrap; }
    .admin-header-top { flex-direction: column; }
    .admin-search-wrap { width: 100%; }
    .admin-list-header { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
}

@media (max-width: 768px) {
    .admin-page { padding: var(--space-md); }
    .admin-stat { min-width: 80px; padding: var(--space-sm) var(--space-md); }
    .admin-stat-value { font-size: var(--text-md); }
}

/* History dialog rows */
.history-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.history-row {
    display: grid;
    grid-template-columns: 1fr 110px 110px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-elev-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}
.history-row.is-today { border-color: var(--color-success); background: var(--color-success-soft); }
.history-row .history-amount { font-family: var(--font-mono); font-weight: var(--weight-semibold); text-align: right; }
.history-row .history-remaining { color: var(--color-text-subtle); font-size: var(--text-xs); text-align: right; }

/* ── SRT modal panels ────────────────────────────────────────────────── */
.srt-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: start;
}
.srt-panel { display: flex; flex-direction: column; min-height: 0; }
.srt-panel .card-body {
    max-height: 60vh;
    overflow-y: auto;
}
.translate-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elev-1);
}
.translate-toolbar .field { gap: 4px; }
.translate-toolbar .field-grow { flex: 1; min-width: 160px; }
.translate-toolbar .progress { width: 100%; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .workspace { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .results-section { max-height: 40vh; }
    .srt-panels { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        min-height: 100vh;
    }
    .sidebar {
        flex-direction: row;
        align-items: center;
        height: var(--navbar-height);
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
        padding: 0 var(--space-md);
        gap: var(--space-md);
    }
    .sidebar-brand { border-bottom: 0; height: auto; padding: 0; }
    .sidebar-nav {
        flex-direction: row;
        padding: 0;
        flex: 1;
        overflow-x: auto;
    }
    .sidebar-nav-item { width: auto; height: 36px; padding: 0 var(--space-md); }
    .sidebar-nav-item[aria-current="page"]::before { display: none; }
    .sidebar-footer { flex-direction: row; padding: 0; border-top: 0; }
    .sidebar-collapse-btn { display: none; }
    .sidebar-credit { display: none; }
    .navbar { display: none; }
    .main-content { padding: var(--space-md); }
    .video-controls { flex-wrap: wrap; }
    .admin-page { padding: var(--space-md); }
    .video-controls .time-display { min-width: 0; font-size: var(--text-2xs); }

    /* Always show cue-edit on touch */
    .cue-edit-group { opacity: 1 !important; }
}

@media (max-width: 480px) {
    .auth-card { padding: var(--space-lg); }
    .upload-wrapper .dropzone { padding: var(--space-xl) var(--space-md); }
    .main-content { padding: var(--space-sm); }
}
