/* ═══════════════════════════════════════════
   Foundational Docs Generator — Premium UI
   Aesthetic: Refined dark, editorial warmth
   ═══════════════════════════════════════════ */

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

:root {
    --bg-0: #08080c;
    --bg-1: #0e0e14;
    --bg-2: #15151e;
    --bg-3: #1c1c28;
    --bg-4: #242434;
    --bg-hover: #1f1f2e;
    --border-1: #1e1e2c;
    --border-2: #2a2a3c;
    --border-3: #35354a;
    --text-1: #ededf4;
    --text-2: #9d9db8;
    --text-3: #65657e;
    --accent: #c8a2f8;
    --accent-dim: rgba(200, 162, 248, 0.12);
    --accent-bright: #dfc2ff;
    --green: #6ee7a0;
    --green-dim: rgba(110, 231, 160, 0.1);
    --amber: #f0c060;
    --amber-dim: rgba(240, 192, 96, 0.1);
    --red: #f87171;
    --topbar-h: 52px;
    --sidebar-w: 260px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 10px;
    --radius-sm: 7px;
    --radius-lg: 14px;
}

html { font-size: 14.5px; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-0);
    color: var(--text-1);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══ TOPBAR ═══ */
.topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border-1);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }

.topbar-brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #a07ce8, #c8a2f8);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-size: 16px; font-style: italic;
    color: #1a1a2e;
    font-weight: 400;
}

.brand-text {
    font-size: 13.5px; font-weight: 600;
    color: var(--text-2);
    letter-spacing: -0.01em;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

.api-key-widget {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: 8px;
    padding: 0 10px;
    height: 34px;
    transition: border-color 0.2s var(--ease);
}

.api-key-widget:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

.key-icon { color: var(--text-3); flex-shrink: 0; }

.api-key-input {
    background: none; border: none; outline: none;
    color: var(--text-1); font-family: 'JetBrains Mono', monospace;
    font-size: 12px; width: 200px; padding: 0;
}

.api-key-input::placeholder { color: var(--text-3); font-family: 'DM Sans', sans-serif; }

.api-toggle-vis {
    background: none; border: none; cursor: pointer;
    color: var(--text-3); display: flex; padding: 2px;
    transition: color 0.15s;
}
.api-toggle-vis:hover { color: var(--text-2); }

.topbar-downloads-btn {
    display: flex; align-items: center; gap: 7px;
    background: var(--bg-2); border: 1px solid var(--border-1);
    border-radius: 8px; padding: 0 12px; height: 34px;
    color: var(--text-2); font-family: inherit; font-size: 12.5px;
    cursor: pointer; transition: all 0.15s var(--ease);
}
.topbar-downloads-btn:hover { border-color: var(--border-3); color: var(--text-1); }

.downloads-badge {
    background: var(--accent-dim); color: var(--accent);
    font-size: 11px; font-weight: 600;
    padding: 1px 7px; border-radius: 10px;
    min-width: 20px; text-align: center;
}

/* ═══ DOWNLOADS DRAWER ═══ */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 60; opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.downloads-drawer {
    position: fixed; top: 0; right: -380px; bottom: 0;
    width: 380px; background: var(--bg-1);
    border-left: 1px solid var(--border-1);
    z-index: 70; transition: right 0.3s var(--ease);
    display: flex; flex-direction: column;
}
.downloads-drawer.open { right: 0; }

.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border-1);
}
.drawer-header h3 { font-size: 14px; font-weight: 600; }
.drawer-close {
    background: none; border: none; color: var(--text-3);
    font-size: 22px; cursor: pointer; line-height: 1;
}
.drawer-close:hover { color: var(--text-1); }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }

.drawer-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; padding: 48px 20px;
    text-align: center;
}
.drawer-empty p { font-size: 13px; color: var(--text-3); line-height: 1.5; }

.drawer-doc-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--bg-2);
    border: 1px solid var(--border-1); border-radius: var(--radius-sm);
    margin-bottom: 8px; transition: border-color 0.15s;
}
.drawer-doc-item:hover { border-color: var(--border-3); }
.drawer-doc-name { font-size: 13px; font-weight: 500; }
.drawer-doc-dl {
    color: var(--accent); text-decoration: none; font-size: 12px;
    font-weight: 500; padding: 4px 10px; border-radius: 6px;
    transition: background 0.15s;
}
.drawer-doc-dl:hover { background: var(--accent-dim); }

/* ═══ LAYOUT ═══ */
.app-layout { display: flex; min-height: 100vh; padding-top: var(--topbar-h); }

/* ═══ SIDEBAR ═══ */
.sidebar {
    width: var(--sidebar-w); position: fixed;
    top: var(--topbar-h); left: 0; bottom: 0;
    background: var(--bg-1);
    border-right: 1px solid var(--border-1);
    display: flex; flex-direction: column;
    overflow-y: auto; z-index: 10;
}

.steps-nav { padding: 16px 12px; flex: 1; }

.step-item {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.15s var(--ease);
    position: relative;
}
.step-item:hover { background: var(--bg-hover); }

.step-item.active { background: var(--accent-dim); }
.step-item.active .step-dot { background: var(--accent); color: var(--bg-0); border-color: var(--accent); }
.step-item.active .step-label { color: var(--text-1); }

.step-item.completed .step-dot {
    background: var(--green-dim); border-color: var(--green);
    color: var(--green);
}
.step-item.completed .step-dot span { display: none; }
.step-item.completed .step-dot::after {
    content: '\2713'; font-size: 11px; font-weight: 700;
}

.step-dot {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1.5px solid var(--border-2);
    background: var(--bg-2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s var(--ease);
    font-size: 11px; font-weight: 600; color: var(--text-3);
}

.step-connector {
    width: 1.5px; height: 10px; background: var(--border-1);
    margin: 0 0 0 22px;
}

.step-info { display: flex; flex-direction: column; min-width: 0; }
.step-label {
    font-size: 12.5px; font-weight: 500; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.15s;
}
.step-desc {
    font-size: 11px; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-footer {
    padding: 14px 16px; border-top: 1px solid var(--border-1);
    display: flex; align-items: center; gap: 10px;
}

.progress-ring { width: 28px; height: 28px; flex-shrink: 0; }
.progress-ring svg { transform: rotate(-90deg); }
.ring-bg { stroke: var(--border-1); }
.ring-fill { stroke: var(--accent); transition: stroke-dasharray 0.5s var(--ease); }
.progress-text { font-size: 12px; color: var(--text-3); }
.progress-text span { color: var(--accent); font-weight: 600; }

/* ═══ MAIN CONTENT ═══ */
.main-content {
    flex: 1; margin-left: var(--sidebar-w);
    min-height: calc(100vh - var(--topbar-h));
    display: flex; justify-content: center;
}

.content-inner {
    width: 100%; max-width: 720px;
    padding: 40px 32px 80px;
}

.step-panel { display: none; }
.step-panel.active {
    display: block;
    animation: panelIn 0.35s var(--ease);
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ PANEL HEADER ═══ */
.panel-header { margin-bottom: 28px; }

.panel-tag {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin-bottom: 8px;
}

.panel-header h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem; font-weight: 400; font-style: italic;
    color: var(--text-1); margin-bottom: 6px;
    letter-spacing: -0.02em; line-height: 1.15;
}

.panel-header p { color: var(--text-3); font-size: 0.92rem; }

/* ═══ FORMS ═══ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.label-hint { font-weight: 400; color: var(--text-3); }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.form-actions.full-width { grid-column: 1 / -1; }

input[type="text"], input[type="password"], textarea, select {
    background: var(--bg-2); border: 1px solid var(--border-1);
    border-radius: var(--radius-sm); padding: 9px 13px;
    color: var(--text-1); font-size: 13.5px; font-family: inherit;
    transition: all 0.15s var(--ease); outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}
textarea { resize: vertical; min-height: 76px; }
.form-hint { font-size: 11.5px; color: var(--text-3); }

/* Checkbox */
.checkbox-row { margin-top: 10px; margin-bottom: 16px; }
.checkbox-label {
    display: inline-flex; align-items: center; gap: 9px;
    cursor: pointer; font-size: 13px; color: var(--text-2);
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
    width: 17px; height: 17px; border: 1.5px solid var(--border-2);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s var(--ease); flex-shrink: 0;
}
.checkbox-label input:checked + .checkmark {
    background: var(--accent); border-color: var(--accent);
}
.checkbox-label input:checked + .checkmark::after {
    content: '\2713'; color: var(--bg-0); font-size: 11px; font-weight: 700;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; font-family: inherit;
    border: none; cursor: pointer; transition: all 0.15s var(--ease);
    white-space: nowrap; text-decoration: none;
}

.btn-primary {
    background: var(--accent); color: var(--bg-0);
}
.btn-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 2px 12px var(--accent-dim);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
    background: transparent; color: var(--text-2);
    border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--border-3); color: var(--text-1); }

.btn-lg { padding: 11px 24px; font-size: 14px; }

.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-icon {
    background: var(--bg-3); color: var(--text-2);
    border: 1px solid var(--border-1);
    gap: 5px;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }

.btn-remove {
    background: none; border: none; cursor: pointer;
    color: var(--text-3); display: flex; padding: 4px;
    border-radius: 4px; transition: all 0.15s;
}
.btn-remove:hover { color: var(--red); background: rgba(248,113,113,0.1); }

/* ═══ UPLOAD ZONES ═══ */
.upload-zone {
    border: 1.5px dashed var(--border-2);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex; align-items: center; gap: 16px;
    cursor: pointer; transition: all 0.2s var(--ease);
    background: var(--bg-1);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}
.upload-zone.large { padding: 36px 24px; }
.upload-zone.compact { padding: 18px 14px; gap: 12px; }

.upload-icon-wrap {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--bg-3); display: flex; align-items: center; justify-content: center;
    color: var(--text-3); flex-shrink: 0;
}
.upload-icon-wrap.small { width: 36px; height: 36px; border-radius: 8px; }

.upload-text { flex: 1; }
.upload-text p { font-size: 13px; color: var(--text-2); margin-bottom: 2px; }
.upload-link { color: var(--accent); cursor: pointer; }
.upload-link:hover { text-decoration: underline; }
.upload-hint { font-size: 11.5px; color: var(--text-3); }

.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.upload-card {
    background: var(--bg-2); border: 1px solid var(--border-1);
    border-radius: var(--radius); padding: 14px;
}
.upload-card h3 { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; color: var(--text-2); }

.file-preview {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; background: var(--bg-2);
    border: 1px solid var(--border-1); border-radius: var(--radius-sm);
    margin-top: 8px;
}
.file-preview-inner { display: flex; align-items: center; gap: 8px; color: var(--text-3); min-width: 0; }
.file-name { font-size: 12.5px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══ MARKET CHIPS ═══ */
.market-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.market-chip { cursor: pointer; }
.market-chip input { display: none; }
.market-chip span {
    display: inline-block; padding: 7px 14px;
    border: 1px solid var(--border-2); border-radius: 100px;
    font-size: 12.5px; color: var(--text-3);
    transition: all 0.15s var(--ease); background: var(--bg-2);
}
.market-chip:hover span { border-color: var(--accent); color: var(--text-2); }
.market-chip input:checked + span {
    background: var(--accent); border-color: var(--accent); color: var(--bg-0); font-weight: 500;
}
.market-chip.special span { border-style: dashed; }
.market-chip.special input:checked + span { border-style: solid; }

/* ═══ LOADING ═══ */
.loading-state {
    display: flex; flex-direction: column; align-items: center;
    padding: 56px 24px; gap: 18px;
}
.loading-state p { color: var(--text-3); font-size: 13px; }

.loader {
    display: flex; gap: 6px;
}
.loader div {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    animation: loaderBounce 1.2s ease-in-out infinite;
}
.loader div:nth-child(2) { animation-delay: 0.15s; }
.loader div:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* Legacy spinner for inline use */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border-2); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ RESPONSE CARDS ═══ */
.response-card {
    background: var(--bg-2); border: 1px solid var(--border-1);
    border-radius: var(--radius); overflow: hidden;
    margin-bottom: 18px;
}

.response-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--border-1);
    background: var(--bg-1); gap: 8px;
}
.response-actions { display: flex; gap: 6px; }

.response-badge {
    font-size: 11.5px; font-weight: 600;
    padding: 3px 10px; border-radius: 100px;
    background: var(--accent-dim); color: var(--accent);
}
.badge-green { background: var(--green-dim); color: var(--green); }

.response-content {
    padding: 18px; font-size: 13.5px; line-height: 1.7;
    color: var(--text-2); max-height: 480px;
    overflow-y: auto; white-space: pre-wrap; word-wrap: break-word;
}

.prompt-output {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; background: var(--bg-0);
    padding: 18px; color: var(--text-2);
}

/* ═══ CALLOUTS ═══ */
.callout {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--radius);
    margin-bottom: 18px; font-size: 13px;
    line-height: 1.5;
}
.callout svg { flex-shrink: 0; margin-top: 1px; }
.callout strong { font-weight: 600; }
.callout span { color: var(--text-2); }

.callout-info {
    background: var(--accent-dim); border: 1px solid rgba(200,162,248,0.15);
    color: var(--accent-bright);
}
.callout-warn {
    background: var(--amber-dim); border: 1px solid rgba(240,192,96,0.15);
    color: var(--amber);
}

/* Legacy info-box alias */
.info-box { composes: callout callout-info; }

/* ═══ STATUS BANNER ═══ */
.status-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; background: var(--amber-dim);
    border: 1px solid rgba(240,192,96,0.15);
    border-radius: var(--radius); margin-bottom: 20px;
    font-size: 13px; color: var(--amber);
}

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--amber); flex-shrink: 0;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(240,192,96,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(240,192,96,0); }
}

/* ═══ SUCCESS BANNER ═══ */
.success-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; background: var(--green-dim);
    border: 1px solid rgba(110,231,160,0.15);
    border-radius: var(--radius); margin-bottom: 20px;
    color: var(--green);
}
.success-banner h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.success-banner p { font-size: 12.5px; opacity: 0.7; }

/* ═══ DETECTED INFO ═══ */
.detected-info {
    padding: 14px 16px; background: var(--green-dim);
    border: 1px solid rgba(110,231,160,0.12);
    border-radius: var(--radius); margin-bottom: 18px;
}
.info-badge {
    font-size: 10.5px; font-weight: 700; color: var(--green);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px;
}
.detected-info p { font-size: 13px; color: var(--text-1); }

/* ═══ DOCS GRID (Final step) ═══ */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }

.doc-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--bg-2);
    border: 1px solid var(--border-1); border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}
.doc-item:hover { border-color: var(--accent); }
.doc-item-name { font-size: 12.5px; font-weight: 500; }
.doc-item-download {
    color: var(--accent); text-decoration: none;
    font-size: 12px; font-weight: 500;
    padding: 3px 8px; border-radius: 5px;
    transition: background 0.15s;
}
.doc-item-download:hover { background: var(--accent-dim); }

/* ═══ TOAST ═══ */
.toast {
    position: fixed; bottom: 20px; right: 20px;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--bg-3); border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-1);
    transform: translateY(80px); opacity: 0;
    transition: all 0.3s var(--ease);
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast svg { color: var(--green); flex-shrink: 0; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-3); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .sidebar { width: 52px; overflow: hidden; }
    .step-info, .sidebar-footer, .step-connector { display: none; }
    .step-dot { margin: 0 auto; }
    .main-content { margin-left: 52px; }
    .content-inner { padding: 28px 18px 60px; }
    .form-grid, .upload-grid, .docs-grid { grid-template-columns: 1fr; }
}

/* ═══ BRAND BADGE ═══ */
.brand-badge {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 2px 8px; border-radius: 100px;
    background: var(--green-dim); color: var(--green);
    margin-left: 4px;
}

/* ═══ COOKIE PANEL ═══ */
.cookie-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 60; opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease);
}
.cookie-overlay.open { opacity: 1; pointer-events: all; }

.cookie-panel {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 480px; max-width: 90vw;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    z-index: 70; opacity: 0; pointer-events: none;
    transition: all 0.25s var(--ease);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cookie-panel.open {
    opacity: 1; pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border-1);
}
.cookie-panel-header h3 { font-size: 14px; font-weight: 600; }

.cookie-panel-body { padding: 20px; }

.cookie-input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px; width: 100%;
}

.cookie-status {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-2);
    display: inline-block; flex-shrink: 0;
    transition: background 0.2s;
}
.cookie-status.connected {
    background: var(--green);
    box-shadow: 0 0 6px rgba(110, 231, 160, 0.4);
}

/* ═══ DIVIDER OR ═══ */
.divider-or {
    display: flex; align-items: center; gap: 16px;
    margin: 24px 0; color: var(--text-3); font-size: 12px;
    text-transform: uppercase; letter-spacing: 1px;
}
.divider-or::before, .divider-or::after {
    content: ''; flex: 1; height: 1px; background: var(--border-2);
}

/* ═══ PROGRESS BAR ═══ */
.progress-bar-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.progress-bar-track {
    width: 100%; height: 6px; background: var(--bg-3);
    border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    border-radius: 3px; transition: width 1s linear;
}
.progress-timer {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--text-2); letter-spacing: 0.5px;
}

/* ═══ CALLOUT ACCENT ═══ */
.callout-accent {
    background: rgba(200,162,248,0.06); border: 1px solid rgba(200,162,248,0.18);
    color: var(--accent-bright);
}

/* ═══ BTN SECONDARY ═══ */
.btn-secondary {
    background: var(--bg-3); color: var(--text-2);
    border: 1px solid var(--border-2);
}
.btn-secondary:hover {
    background: var(--bg-4); color: var(--text-1);
    border-color: var(--border-3);
}

/* ═══ ATTEMPT BADGE ═══ */
.attempt-badge {
    display: inline-block; font-size: 11px; color: var(--amber);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px; margin-top: 4px;
}

/* ═══ SUBTLE GRAIN ═══ */
body > * { position: relative; z-index: 1; }
