/* ============================================================
   ONBOARDING – Dark Theme, passend zum App-Design
   ============================================================ */

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

:root {
    --primary:        #f9b41c;
    --primary-dark:   #d99a0e;
    --primary-subtle: rgba(249, 180, 28, 0.12);
    --teal:           #06b6d4;
    --teal-subtle:    rgba(6, 182, 212, 0.12);
    --bg:             #0f172a;
    --bg-card:        #1e293b;
    --border:         #334155;
    --text:           #f8fafc;
    --text-muted:     #94a3b8;
    --radius:         14px;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.5;
    overflow: hidden; /* no scroll during onboarding */
}

/* ── Shell ─────────────────────────────────────────────────── */
.ob-shell {
    max-width: 428px;
    height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ── Skip ──────────────────────────────────────────────────── */
.ob-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}
.ob-skip:hover { color: var(--text); border-color: var(--text-muted); }

/* ── Slides container ──────────────────────────────────────── */
.ob-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ── Single slide ──────────────────────────────────────────── */
.ob-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 28px 20px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.ob-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ob-slide.exit {
    opacity: 0;
    transform: translateX(-40px);
}

.ob-slide-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* ── Ambient glow ──────────────────────────────────────────── */
.ob-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
}
.ob-glow--gold { background: var(--primary); }
.ob-glow--teal { background: var(--teal); }

/* ── Emblem ────────────────────────────────────────────────── */
.ob-emblem {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--primary-subtle);
    border: 1.5px solid rgba(249, 180, 28, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.ob-emblem--teal {
    background: var(--teal-subtle);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--teal);
}

/* ── Typography ────────────────────────────────────────────── */
.ob-title {
    font-size: clamp(26px, 7vw, 32px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--text);
}

.ob-body {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 320px;
}

/* ── Stat row (Slide 1) ────────────────────────────────────── */
.ob-stat-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 0;
    width: 100%;
    margin-top: 4px;
}

.ob-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ob-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.ob-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ob-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ── Market chips (Slide 2) ────────────────────────────────── */
.ob-market-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
}

.ob-chip {
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Steps (Slide 3) ───────────────────────────────────────── */
.ob-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 4px;
}

.ob-step {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: left;
}

.ob-step-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary);
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ob-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ob-step-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.ob-step-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.ob-step-connector {
    width: 1px;
    height: 12px;
    background: var(--border);
    margin-left: 31px; /* align with center of step-num */
}

/* ── CTA (Slide 4) ─────────────────────────────────────────── */
.ob-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.ob-btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #0f172a;
    font-weight: 800;
    font-size: 15px;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.15s;
    border: 1.5px solid #0f172a;
}
.ob-btn-primary:active { transform: scale(0.97); }

.ob-btn-outline {
    display: block;
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s;
}
.ob-btn-outline:hover { border-color: var(--text-muted); }

.ob-link-guest {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    padding: 6px;
    transition: color 0.2s;
}
.ob-link-guest:hover { color: var(--text); }

.ob-terms {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}
.ob-terms a {
    color: var(--primary);
    text-decoration: none;
}

/* ── Progress dots ─────────────────────────────────────────── */
.ob-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 20px 0 40px;
}

.ob-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}

.ob-dot.active {
    width: 24px;
    background: var(--primary);
}