/* [2026-08-15] 온보딩 카드뉴스 (설치/최초방문 5단계) — v12_layout.css의 CSS 변수 재사용으로
   라이트/다크 테마 자동 대응. 별도 프레임워크 없이 순정 JS(js/onboarding.js)에서 DOM 생성. */

#ob-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#ob-overlay[hidden] { display: none; }

.ob-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card, #0f172a);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 20px;
    padding: 32px 28px 24px;
    color: var(--text-main, #f8fafc);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.ob-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.ob-progress i {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: var(--border, rgba(255,255,255,0.1));
}
.ob-progress i.on { background: var(--brand-accent-secondary); }

.ob-icon {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 12px;
}

.ob-list {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--text-main, #f8fafc);
    font-size: 0.9rem;
    line-height: 1.6;
}
.ob-list li { margin-bottom: 10px; }
.ob-list li:last-child { margin-bottom: 0; }
.ob-sublist {
    margin: 8px 0 0;
    padding-left: 18px;
    list-style: none;
}
.ob-sublist li {
    color: var(--text-dim, #94a3b8);
    font-size: 0.85rem;
    border-left: 2px solid var(--border, rgba(255,255,255,0.12));
    padding-left: 10px;
}

.ob-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 10px;
}
.ob-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-dim, #94a3b8);
    margin: 0 0 20px;
}
.ob-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ob-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.ob-chip {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    background: transparent;
    color: var(--text-main, #f8fafc);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ob-chip.sel {
    background: var(--brand-accent-secondary);
    border-color: var(--brand-accent-secondary);
    color: #fff;
    font-weight: 700;
}

.ob-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    background: transparent;
    color: var(--text-main, #f8fafc);
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
}
.ob-option.sel {
    border-color: var(--brand-accent-secondary);
    background: rgba(24, 185, 171, 0.12);
}
.ob-option strong { display: block; margin-bottom: 2px; }
.ob-soon {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    vertical-align: middle;
}
.ob-option span { color: var(--text-dim, #94a3b8); font-size: 0.8rem; }

.ob-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}
.ob-skip {
    background: none;
    border: none;
    color: var(--text-dim, #94a3b8);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
}
.ob-back {
    background: none;
    border: none;
    color: var(--text-dim, #94a3b8);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
    white-space: nowrap;
}
.ob-back:hover { color: var(--text-main, #f8fafc); }
.ob-next {
    flex: 1;
    padding: 13px 18px;
    border: none;
    border-radius: 12px;
    background: var(--brand-accent-secondary);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}
.ob-next:disabled { opacity: 0.5; cursor: not-allowed; }
.ob-more-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}
.ob-more-link {
    font-size: 0.82rem;
    color: var(--brand-accent-secondary);
    text-decoration: none;
}

@media (max-width: 480px) {
    .ob-card { padding: 26px 20px 20px; border-radius: 16px; }
}
