/* ============================================================
   RESUMEAI — CORE STYLES & THEMING (Light/Dark Support)
   ============================================================ */

/* --- CSS Reset & Base Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Base Dark Theme (Default) */
    --bg-0: #08090a;
    --bg-1: #111214;
    --bg-2: #1a1b1e;
    --bg-3: #242529;
    --bg-4: #2e2f35;

    --text-1: #f4f4f5;
    --text-2: #a1a1aa;
    --text-3: #71717a;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-bg: rgba(99, 102, 241, 0.12);
    --accent-border: rgba(99, 102, 241, 0.25);
    
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.1);
    --green-text: #34d399;
    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.1);
    --amber-text: #fbbf24;
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --red-text: #fca5a5;

    --border: #27272a;
    --border-2: #3f3f46;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 25px rgba(99,102,241,0.25);

    --t: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
.light-mode {
    --bg-0: #f8fafc;
    --bg-1: #ffffff;
    --bg-2: #f1f5f9;
    --bg-3: #e2e8f0;
    --bg-4: #cbd5e1;

    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #64748b;

    --border: #cbd5e1;
    --border-2: #94a3b8;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(99,102,241,0.15);
}

html, body { height: 100%; font-family: 'Inter', system-ui, sans-serif; background: var(--bg-0); color: var(--text-1); line-height: 1.6; transition: background var(--t), color var(--t); }
#app { height: 100%; }

/* --- Page Management --- */
.page { display: none; min-height: 100vh; flex-direction: column; }
.page.active { display: flex; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.top-nav {
    height: 64px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-1);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background var(--t), border-color var(--t);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-1);
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
}
.logo svg { color: var(--accent); }
nav { display: flex; align-items: center; gap: 0.75rem; }
.nav-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--text-1); background: var(--bg-2); }

/* ============================================================
   BUTTONS & CONTROLS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--t);
    font-family: inherit;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text-1); border-color: var(--border-2); background: var(--bg-4); }
.btn-outline { background: transparent; color: var(--text-1); border: 1px solid var(--border-2); }
.btn-outline:hover { background: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); background: var(--bg-3); }
.btn-accent { background: var(--green-bg); color: var(--green-text); border: 1px solid rgba(16,185,129,0.25); }
.btn-accent:hover { background: rgba(16,185,129,0.2); }
.btn-large { padding: 0.75rem 1.6rem; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-mini { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); padding: 0.25rem 0.6rem; font-size: 0.72rem; font-weight: 700; border-radius: var(--radius-sm); cursor: pointer; }
.btn-mini:hover { color: var(--text-1); border-color: var(--border-2); }
.btn-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: all var(--t); }
.btn-icon:hover { color: var(--text-1); border-color: var(--border-2); }

/* Theme Toggle Button */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t);
}
.theme-toggle:hover { color: var(--text-1); border-color: var(--border-2); }

/* ============================================================
   LANDING HERO
   ============================================================ */
.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; font-family: 'Outfit', sans-serif; margin-bottom: 1.25rem; }
.gradient-text { background: linear-gradient(135deg, var(--accent), #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-2); margin-bottom: 2rem; }

/* 3D Floating graphic */
.hero-visual { position: relative; height: 380px; }
.floating-previews { position: relative; width: 100%; height: 100%; }
.fp-glow { position: absolute; inset: 10%; background: radial-gradient(ellipse, rgba(99,102,241,0.18), transparent 70%); }
.fp-card { position: absolute; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transition: border-color var(--t); }
.fp-card-1 { width: 170px; top: 10px; left: 50px; transform: rotate(-5deg); animation: floatA 6s ease-in-out infinite; }
.fp-card-2 { width: 190px; top: 70px; left: 170px; animation: floatB 7s ease-in-out infinite; z-index: 2; }
.fp-card-3 { width: 150px; top: 200px; left: 80px; transform: rotate(5deg); animation: floatC 6.5s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:rotate(-5deg) translateY(0)} 50%{transform:rotate(-5deg) translateY(-10px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes floatC { 0%,100%{transform:rotate(5deg) translateY(0)} 50%{transform:rotate(5deg) translateY(-8px)} }

.fp-header { height: 40px; background: var(--bg-4); }
.fp-lines { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.fp-line { height: 5px; background: var(--bg-3); border-radius: 3px; }
.fp-line.w80 { width: 80%; }
.fp-line.w60 { width: 60%; }
.fp-line.w90 { width: 90%; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-content { flex: 1; padding: 2rem; max-width: 1100px; width: 100%; margin: 0 auto; }
.resume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.resume-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--t); display: flex; flex-direction: column; position: relative; }
.resume-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.resume-card-thumb { height: 140px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.resume-card-info { padding: 1rem; border-top: 1px solid var(--border); flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.resume-card-actions { display: flex; gap: 0.4rem; margin-top: 0.75rem; }

/* ============================================================
   EDITOR LAYOUT — BetterCV 2-Column Style
   ============================================================ */

.editor-layout {
    flex-direction: column !important;
    overflow: hidden;
    height: calc(100vh - 64px); /* below top nav */
}

/* Main workspace: 2-column (left form + right preview) */
.editor-workspace {
    display: grid;
    grid-template-columns: 520px 1fr;
    height: 100%;
    overflow: hidden;
}

/* ─── LEFT PANEL ──────────────────────────────────────── */
.editor-left {
    display: flex;
    flex-direction: column;
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
}
body:not(.light-mode) .editor-left {
    background: var(--bg-1);
    border-right-color: var(--border);
}

/* Tab Navigation at the top of left panel */
.editor-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    scrollbar-width: none;
    flex-shrink: 0;
    padding: 0;
}
.editor-tabs::-webkit-scrollbar { display: none; }
body:not(.light-mode) .editor-tabs {
    background: var(--bg-1);
    border-bottom-color: var(--border);
}

.editor-tab {
    flex-shrink: 0;
    padding: 0.75rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    position: relative;
    top: 1px; /* overlap border */
}
.editor-tab:hover { color: #0ea5e9; }
.editor-tab.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
    font-weight: 700;
}
body:not(.light-mode) .editor-tab { color: var(--text-3); }
body:not(.light-mode) .editor-tab.active { color: #0ea5e9; }

/* Form scroll body */
.editor-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2rem 1rem 2rem;
}

/* Section heading within form */
.editor-section-header {
    margin-bottom: 1.5rem;
}
.editor-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.4rem;
    line-height: 1.15;
}
body:not(.light-mode) .editor-section-title { color: var(--text-1); }

.editor-section-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    font-family: 'DM Sans', sans-serif;
}
body:not(.light-mode) .editor-section-desc { color: var(--text-3); }

/* Bottom footer nav */
.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: white;
    flex-shrink: 0;
}
body:not(.light-mode) .editor-footer {
    background: var(--bg-1);
    border-top-color: var(--border);
}

.btn-next-step {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    border-radius: 50px !important;
    font-size: 0.875rem !important;
    padding: 0.65rem 1.5rem !important;
}
.btn-next-step:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

/* Additional info collapsible */
.additional-info-toggle {
    margin-top: 0.5rem;
}
.additional-info-toggle summary {
    font-size: 0.875rem;
    color: #0ea5e9;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    user-select: none;
    padding: 0.4rem 0;
}
.additional-info-toggle summary::-webkit-details-marker { display: none; }

/* Finalize cards */
.finalize-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
}
.finalize-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Import zone (updated BetterCV style) */
.import-zone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--t);
    margin-bottom: 1.25rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.import-zone:hover { border-color: #0ea5e9; background: #f0f9ff; }
.import-zone svg { color: #94a3b8; }
.import-zone-title { font-size: 0.9rem; font-weight: 700; color: #334155; }
.import-zone-sub { font-size: 0.75rem; color: #94a3b8; }
body:not(.light-mode) .import-zone {
    border-color: var(--border-2);
    background: var(--bg-2);
    color: var(--text-3);
}
body:not(.light-mode) .import-zone:hover { border-color: var(--accent); background: var(--accent-bg); }
body:not(.light-mode) .import-zone-title { color: var(--text-1); }

/* ─── RIGHT PANEL ─────────────────────────────────────── */
.editor-right {
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    overflow: hidden;
    height: 100%;
}
body:not(.light-mode) .editor-right { background: var(--bg-2); }

/* Preview top bar with score badge + Change Template */
.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    gap: 1rem;
}
body:not(.light-mode) .preview-topbar {
    background: var(--bg-1);
    border-bottom-color: var(--border);
}

.preview-score-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
}
.score-pct { font-weight: 800; color: #d97706; }
.score-emoji { font-size: 1rem; }

.btn-change-template {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-2) !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-1) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.45rem 0.9rem !important;
    cursor: pointer !important;
    white-space: nowrap;
}
.btn-change-template:hover { color: var(--text-1) !important; border-color: var(--border-2) !important; }

/* Preview scroll area */
.preview-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.preview-scroll .resume-document {
    transform: scale(0.68);
    transform-origin: top center;
    margin-bottom: -36%;
    box-shadow: var(--shadow-lg);
    transition: transform var(--t);
}

/* ─── FORM COMMON STYLES ──────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: white;
    color: #0f172a;
    transition: border-color 0.15s;
    font-family: inherit;
    width: 100%;
}
body:not(.light-mode) .form-group input,
body:not(.light-mode) .form-group select,
body:not(.light-mode) .form-group textarea {
    background: var(--bg-2);
    border-color: var(--border);
    color: var(--text-1);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.form-group textarea { resize: vertical; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-with-btn { display: flex; gap: 0.5rem; }
.input-with-btn input { flex: 1; }
.skills-add-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.skills-add-row input { flex: 1; }
.skills-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.w-full { width: 100%; }

/* Inline AI toolbar */
.inline-ai-toolbar { display: flex; gap: 0.25rem; margin-top: 0.35rem; justify-content: flex-end; }
.inline-ai-btn { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); padding: 0.2rem 0.5rem; font-size: 0.7rem; color: #64748b; cursor: pointer; transition: all var(--t); font-family: inherit; }
.inline-ai-btn:hover { color: #0ea5e9; border-color: rgba(14,165,233,0.3); background: #f0f9ff; }
body:not(.light-mode) .inline-ai-btn { background: var(--bg-3); border-color: var(--border); color: var(--text-2); }
body:not(.light-mode) .inline-ai-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-bg); }

/* Entry cards (experience, education, projects) */
.entry-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; margin-bottom: 0.75rem; }
.entry-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.entry-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text-1); }
.entry-delete-btn { font-size: 0.75rem; color: var(--text-3); background: none; border: none; cursor: pointer; padding: 0.2rem 0.4rem; border-radius: var(--radius-sm); transition: all var(--t); }
.entry-delete-btn:hover { color: #ef4444; background: rgba(239,68,68,0.08); }

/* Auto save indicator */
.autosave-indicator { font-size: 0.72rem; color: var(--text-3); display: flex; align-items: center; gap: 0.3rem; margin-right: 0.5rem; }
.autosave-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.autosave-dot.saving { background: var(--amber); animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }

/* ATS sub-panels */
.ats-radial-progress { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-2); padding: 0.75rem; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 1rem; }
.ats-radial-svg { width: 44px; height: 44px; position: relative; flex-shrink: 0; }
.ats-radial-svg circle { fill: none; stroke-width: 4; }
.ats-radial-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; }
.ats-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.ats-mini-card { background: var(--bg-2); padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
.ats-mini-val { font-size: 0.95rem; font-weight: 800; color: var(--accent); }
.ats-mini-lbl { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; }
.jd-textarea { width: 100%; height: 100px; resize: none; font-size: 0.8rem; line-height: 1.5; padding: 0.6rem 0.85rem; border: 1px solid #e2e8f0; border-radius: var(--radius-md); font-family: inherit; background: white; color: #0f172a; }
body:not(.light-mode) .jd-textarea { background: var(--bg-2); border-color: var(--border); color: var(--text-1); }

/* Design customizer */
.customizer-bar { display: flex; flex-direction: column; gap: 0.75rem; }
.cust-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cust-row label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin: 0; }
.cust-color-picker { width: 34px; height: 34px; border: none; border-radius: 50%; cursor: pointer; outline: none; background: transparent; }

/* Drag-and-drop ordering */
.drag-list { display: flex; flex-direction: column; gap: 0.4rem; }
.drag-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.45rem 0.75rem; font-size: 0.8rem; cursor: grab; user-select: none; }
.drag-item.dragging { opacity: 0.5; border-style: dashed; }
.drag-handle { cursor: grab; opacity: 0.5; font-size: 1.1rem; }

/* Skill chips */
.skill-chip { display: inline-flex; align-items: center; gap: 0.25rem; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; padding: 0.25rem 0.6rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
body:not(.light-mode) .skill-chip { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-border); }
.skill-chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: 0.9rem; padding: 0; line-height: 1; opacity: 0.6; }
.skill-chip button:hover { opacity: 1; }

/* Modals */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-content { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--radius-xl); width: 90%; max-width: 580px; box-shadow: var(--shadow-lg); transition: background var(--t); }
.modal-content-wide { max-width: 820px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-body { padding: 1.25rem; overflow-y: auto; max-height: 75vh; }
.modal-close { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 1.25rem; }

/* File input */
.file-input { padding: 0.4rem; font-size: 0.8rem; }

/* Custom Font classes */
.font-inter { font-family: 'Inter', sans-serif !important; }
.font-outfit { font-family: 'Outfit', sans-serif !important; }
.font-dm { font-family: 'DM Sans', sans-serif !important; }
.font-serif { font-family: 'Playfair Display', Georgia, serif !important; }

/* Spacing classes */
.spacing-compact { line-height: 1.3 !important; }
.spacing-compact .item { margin-bottom: 6px !important; }
.spacing-compact .section-title { margin-top: 10px !important; }
.spacing-wide { line-height: 1.7 !important; }
.spacing-wide .item { margin-bottom: 18px !important; }
.spacing-wide .section-title { margin-top: 24px !important; }

/* 1-page strict limit */
.one-page-limit { height: 297mm !important; overflow: hidden !important; }

/* Wizard step section (content areas) */
.wizard-step-section { display: none; }
.wizard-step-section.active { display: block; }

/* Theme Toggle */
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t); }
.theme-toggle:hover { color: var(--text-1); border-color: var(--border-2); }
