/* =====================================================================
   Signup Onboarding — 4-phase 플로우
   회원가입 페이지와 동일한 톤 (teal #3C8D99, 라이트 배경)
   ===================================================================== */

.onb-root {
    padding: 20px 16px 40px;
    max-width: 520px;
    margin: 0 auto;
    box-sizing: border-box;
}

.onb-phase {
    animation: onb-fade-up 0.4s ease-out;
}

@keyframes onb-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.onb-phase-head {
    text-align: center;
    margin-bottom: 20px;
}

.onb-phase-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    margin: 0 0 8px;
}

.onb-phase-sub {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.onb-phase-sub strong {
    color: #3C8D99;
}

.onb-phase-foot {
    margin-top: 24px;
    padding: 0 4px;
}

/* Phase 2 "다음" 버튼 꽉차게 */
.onb-phase-foot .btn {
    width: 100%;
    height: 52px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
}

.onb-phase-foot .btn.btn-primary {
    background: #3C8D99;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(60, 141, 153, 0.22);
    transition: all 0.18s ease;
}

.onb-phase-foot .btn.btn-primary:hover:not(:disabled) {
    background: #2a6b75;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(60, 141, 153, 0.28);
}

.onb-phase-foot .btn.btn-primary:disabled {
    background: #9CA3AF;
    box-shadow: none;
    cursor: not-allowed;
}

/* Phase 3 중간 팁 카드 */
.onb-tip {
    margin-top: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FDE68A;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #78350F;
    letter-spacing: -0.2px;
}

.onb-tip-title {
    font-weight: 700;
    color: #92400E;
    margin-right: 6px;
}

/* =====================
   Phase 1 — 환영
   ===================== */
.onb-welcome {
    text-align: center;
    padding: 48px 20px 60px;
    animation: onb-welcome-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes onb-welcome-pop {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.onb-welcome-wave {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-block;
    transform-origin: 70% 70%;
    animation: onb-wave 1.6s ease-in-out 0.5s;
}

@keyframes onb-wave {
    0%,  100% { transform: rotate(0deg); }
    20%, 60%  { transform: rotate(18deg); }
    40%, 80%  { transform: rotate(-10deg); }
}

.onb-welcome-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
}

.onb-welcome-title span {
    color: #3C8D99;
}

.onb-welcome-sub {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 24px;
}

.onb-welcome-sub strong {
    color: #3C8D99;
    font-weight: 700;
}

.onb-welcome-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.onb-welcome-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3C8D99;
    opacity: 0.3;
    animation: onb-dot 1.4s infinite ease-in-out;
}

.onb-welcome-dots span:nth-child(2) { animation-delay: 0.2s; }
.onb-welcome-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes onb-dot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.9); }
    40%           { opacity: 1;   transform: scale(1.2); }
}

/* =====================
   Phase 2 — 관심사
   ===================== */
.onb-interest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.onb-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 112px;
    padding: 14px 10px;
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    text-align: center;
}

.onb-chip:hover {
    border-color: #3C8D99;
    background: rgba(60, 141, 153, 0.04);
}

.onb-chip.selected {
    border-color: #3C8D99;
    background: rgba(60, 141, 153, 0.08);
    box-shadow: 0 0 0 3px rgba(60, 141, 153, 0.15);
}

.onb-chip-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F0F7F8 0%, #E3F1F3 100%);
    color: #3C8D99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 2px;
    transition: all 0.18s ease;
}

.onb-chip.selected .onb-chip-icon {
    background: linear-gradient(135deg, #3C8D99 0%, #2a6b75 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(60, 141, 153, 0.3);
}

.onb-chip-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.onb-chip.selected .onb-chip-label {
    color: #3C8D99;
}

.onb-chip-sub {
    font-size: 10.5px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.onb-chip.selected .onb-chip-sub {
    color: #3C8D99;
    opacity: 0.85;
}

.onb-chip.shake {
    animation: onb-shake 0.35s;
}

@keyframes onb-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

/* =====================
   Phase 3 — 크롤링 현황판
   ===================== */
.onb-stats-row {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
}

.onb-stat {
    flex: 1;
    background: linear-gradient(135deg, #F0F7F8 0%, #F7FCFD 100%);
    border: 1px solid rgba(60, 141, 153, 0.2);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
}

.onb-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

.onb-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #3C8D99;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.onb-progress-wrap {
    margin: 14px 0 18px;
}

.onb-progress-track {
    height: 8px;
    background: #EEF1F2;
    border-radius: 8px;
    overflow: hidden;
}

.onb-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3C8D99 0%, #2a6b75 100%);
    border-radius: 8px;
    transition: width 0.25s ease;
}

.onb-site-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 18px 18px;
    min-height: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.onb-site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E5E7EB;
    margin-bottom: 12px;
}

.onb-site-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.onb-site-icon {
    color: #9CA3AF;
    font-size: 13px;
}

.onb-site-boards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.onb-board {
    font-size: 13px;
    color: #4b5563;
    padding: 6px 10px;
    background: #F9FAFB;
    border-radius: 8px;
    letter-spacing: -0.2px;
}

.onb-site-card .fade-in {
    animation: onb-slide-up 0.32s ease;
}

@keyframes onb-slide-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.onb-skip-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: #3C8D99;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    letter-spacing: -0.3px;
}

.onb-skip-btn:hover { color: #2a6b75; }

/* =====================
   Phase 4 — 완료
   ===================== */
.onb-complete {
    text-align: center;
    padding: 40px 20px 30px;
    animation: onb-welcome-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.onb-complete-icon {
    font-size: 60px;
    line-height: 1;
    margin-bottom: 20px;
    animation: onb-bounce 0.8s cubic-bezier(0.22, 1.6, 0.36, 1);
}

@keyframes onb-bounce {
    0%   { opacity: 0; transform: scale(0.2); }
    60%  { opacity: 1; transform: scale(1.15); }
    100% { transform: scale(1); }
}

.onb-complete-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
}

.onb-complete-desc {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 12px;
}

.onb-complete-desc strong {
    color: #1a1a1a;
    font-weight: 700;
}

.onb-complete-desc .onb-done-count {
    color: #3C8D99;
    font-weight: 800;
    font-size: 16px;
}

.onb-complete-note {
    font-size: 13px;
    color: #6b7280;
    background: #F9FAFB;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.onb-complete-note strong {
    color: #3C8D99;
    font-weight: 700;
}
