/**
 * 무료 사주 (sjbF01) 전용 CSS
 * - sjbF0101.jsp (입력 폼)
 * - sjbF0102.jsp (결과 페이지)
 * 
 * 네이밍: .sjb- 접두사 사용 (다른 페이지와 충돌 방지)
 * 
 * @author saju.a1
 * @since 2025-01-10
 */

/* ========================================
   1. 기본 컨테이너 / 헤더
   ======================================== */

.sjb-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: 100vh;
}

.sjb-header {
    text-align: center;
    margin-bottom: 16px;
}

.sjb-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
    font-size: 30px;
}

.sjb-header-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.sjb-header-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.sjb-header-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.sjb-header-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ========================================
   2. 입력 카드 / 폼 그룹
   ======================================== */

.sjb-input-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sjb-form-group {
    margin-bottom: 18px;
}

.sjb-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.sjb-form-label-hint {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
    margin-left: 4px;
}

.sjb-label-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* ========================================
   3. 셀렉트박스
   ======================================== */

.sjb-select-row {
    display: flex;
    gap: 8px;
}

.sjb-select-wrap {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.sjb-select {
    width: 100%;
    height: 48px;
    padding: 0 30px 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.sjb-select:hover {
    border-color: #d1d5db;
    background-color: #f3f4f6;
}

.sjb-select:focus {
    outline: none;
    border-color: #818cf8;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

.sjb-select-wrap::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
}

.sjb-select.has-value {
    color: #1f2937;
    border-color: #818cf8;
    background-color: #f5f3ff;
}

/* ========================================
   4. 성별 선택
   ======================================== */

.sjb-gender-row {
    display: flex;
    gap: 12px;
}

.sjb-gender-option {
    flex: 1;
}

.sjb-gender-option input {
    display: none;
}

.sjb-gender-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sjb-gender-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.sjb-gender-icon {
    font-size: 18px;
}

.sjb-gender-option input:checked + .sjb-gender-btn.male {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sjb-gender-option input:checked + .sjb-gender-btn.female {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

/* 양력 안내 */
.sjb-calendar-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
}

.sjb-calendar-badge {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
}

.sjb-calendar-hint {
    font-size: 11px;
    color: #6b7280;
}

/* ========================================
   5. 제출 버튼
   ======================================== */

.sjb-submit-btn {
    width: 100%;
    height: 56px;
    font-size: 17px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.sjb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.sjb-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sjb-loading-text {
    animation: sjb-pulse 1.5s ease-in-out infinite;
}

@keyframes sjb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   6. 결과 카드
   ======================================== */

.sjb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    text-decoration: none;
}

.sjb-back-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.sjb-result-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sjb-result-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.sjb-result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

.sjb-result-icon.icon-calendar { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.sjb-result-icon.icon-user { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.sjb-result-icon.icon-chart { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.sjb-result-icon.icon-twelve { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
.sjb-result-icon.icon-special { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.sjb-result-icon.icon-yukchin { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }

/* ========================================
   7. 오늘의 간지 (구식 달력 스타일)
   ======================================== */

.sjb-today-ganji {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sjb-today-ganji.vintage .sjb-today-item {
    flex: 1;
    max-width: 120px;
    text-align: center;
    background: linear-gradient(180deg, #fef9e7 0%, #f5e6c8 100%);
    border-radius: 10px;
    padding: 14px 12px;
    border: 2px solid #c9a227;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 4px rgba(139,90,43,0.15);
}

.sjb-today-ganji.vintage .sjb-today-label {
    font-size: 11px;
    font-weight: 700;
    color: #8b5a2b;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.sjb-today-ganji.vintage .sjb-today-date {
    font-size: 14px;
    font-weight: 600;
    color: #5c4033;
    margin-bottom: 6px;
}

.sjb-today-ganji.vintage .sjb-today-value {
    font-size: 28px;
    font-weight: 700;
}

/* 구식 달력 오행색 */
.sjb-today-ganji.vintage .sjb-oh-wood { color: #228b22 !important; }
.sjb-today-ganji.vintage .sjb-oh-fire { color: #cc0000 !important; }
.sjb-today-ganji.vintage .sjb-oh-earth { color: #8b6914 !important; }
.sjb-today-ganji.vintage .sjb-oh-metal { color: #4a4a4a !important; }
.sjb-today-ganji.vintage .sjb-oh-water { color: #1a1a1a !important; }

.sjb-ganji-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #c9a227;
}

.sjb-ganji-note p {
    font-size: 11px;
    color: #8b7355;
    margin: 0 0 4px 0;
    line-height: 1.6;
}

/* ========================================
   8. 오행색 (현대)
   ======================================== */

.sjb-bg-wood { background: #dcfce7; }
.sjb-bg-fire { background: #fee2e2; }
.sjb-bg-earth { background: #fef3c7; }
.sjb-bg-metal { background: #f3f4f6; }
.sjb-bg-water { background: #dbeafe; }

.sjb-oh-wood { color: #16a34a !important; }
.sjb-oh-fire { color: #dc2626 !important; }
.sjb-oh-earth { color: #ca8a04 !important; }
.sjb-oh-metal { color: #4b5563 !important; }
.sjb-oh-water { color: #2563eb !important; }

/* ========================================
   9. 사주 차트
   ======================================== */

.sjb-saju-chart {
    overflow-x: auto;
}

.sjb-saju-inner {
    min-width: 600px;
    padding: 10px;
}

.sjb-pillar-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.sjb-pillar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
}

.sjb-pillar-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.sjb-char-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 2px;
}

.sjb-pillar-col.day-master .sjb-char-box.stem {
    border: 3px solid #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.sjb-group-divider {
    width: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    align-self: stretch;
}

/* 육친 라벨 */
.sjb-yukchin-row {
    margin-bottom: 2px;
}

.sjb-yukchin-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    min-height: 16px;
    line-height: 16px;
}

.sjb-yukchin-label.sjb-yukchin-me {
    color: #10b981;
    font-weight: 700;
}

.sjb-group-label-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.sjb-group-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sjb-group-tag.wonguk { background: #f1f5f9; color: #475569; }
.sjb-group-tag.un { background: #fef3c7; color: #92400e; }

/* ========================================
   10. 브라켓 연결선
   ======================================== */

.sjb-bracket-container {
    position: relative;
    margin-top: 8px;
}

.sjb-bracket-svg {
    width: 100%;
    overflow: visible;
}

.sjb-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.sjb-summary-badge {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.sjb-summary-badge.type-chung { background: #fee2e2; color: #dc2626; }
.sjb-summary-badge.type-hyeong { background: #ffedd5; color: #ea580c; }
.sjb-summary-badge.type-hap { background: #dcfce7; color: #16a34a; }
.sjb-summary-badge.type-pa { background: #e0e7ff; color: #4f46e5; }
.sjb-summary-badge.type-hae { background: #f3e8ff; color: #9333ea; }
.sjb-summary-badge.type-gyeokgak { background: #fef2f2; color: #b91c1c; border: 1px dashed #dc2626; }
.sjb-summary-badge.count-zero { opacity: 0.4; }

/* 삼합/반합 정보 */
.sjb-samhap-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px dashed #86efac;
}

.sjb-samhap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.sjb-samhap-badge.samhap {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.sjb-samhap-badge.banhap {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
    border: 1px solid #fde047;
}

.sjb-samhap-type {
    font-weight: 700;
    font-size: 11px;
}

.sjb-samhap-name {
    font-size: 11px;
    opacity: 0.8;
}

.sjb-samhap-jiji {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sjb-chart-note {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.sjb-chart-note p {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 0 4px 0;
}

/* ========================================
   11. 육친별 운세 강도 (세로 바)
   ======================================== */

.sjb-strength-note {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 16px;
    text-align: center;
}

.sjb-yukchin-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.sjb-yukchin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 52px;
    padding: 12px 4px 10px;
    background: #f9fafb;
    border-radius: 10px;
    min-height: 130px;
}

.sjb-yukchin-card.inactive { opacity: 0.35; }

.sjb-yukchin-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-align: center;
}

.sjb-yukchin-stem {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1;
}

.sjb-bar-container-v {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 50px;
    margin-bottom: 6px;
}

.sjb-bar-wrapper-v {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sjb-bar-track-v {
    width: 14px;
    height: 26px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sjb-bar-fill-v {
    width: 100%;
    border-radius: 4px;
    transition: height 0.5s ease;
}

.sjb-bar-fill-v.strength-6 { background: linear-gradient(180deg, #059669, #047857); }
.sjb-bar-fill-v.strength-5 { background: linear-gradient(180deg, #10b981, #059669); }
.sjb-bar-fill-v.strength-4 { background: linear-gradient(180deg, #34d399, #10b981); }
.sjb-bar-fill-v.strength-3 { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.sjb-bar-fill-v.strength-2 { background: linear-gradient(180deg, #fb923c, #f97316); }
.sjb-bar-fill-v.strength-1 { background: linear-gradient(180deg, #f87171, #ef4444); }

.sjb-bar-label-v {
    font-size: 9px;
    color: #9ca3af;
    font-weight: 500;
}

.sjb-stage-text {
    display: flex;
    gap: 4px;
    font-size: 10px;
    color: #6b7280;
}

.sjb-stage-text span {
    min-width: 14px;
    text-align: center;
}

/* ========================================
   12. 공망/천을귀인/월령
   ======================================== */

.sjb-special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sjb-special-item {
    text-align: center;
    padding: 16px 12px;
    background: #f9fafb;
    border-radius: 12px;
}

.sjb-special-item .info-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.sjb-special-item .info-value {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.sjb-special-item .info-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}

.sjb-special-item .info-badge.active { background: #dcfce7; color: #16a34a; }
.sjb-special-item .info-badge.inactive { background: #f3f4f6; color: #9ca3af; }
.sjb-special-item .info-badge.deukryeong { background: #dbeafe; color: #2563eb; }
.sjb-special-item .info-badge.silryeong { background: #fee2e2; color: #dc2626; }

/* ========================================
   13. CTA 배너
   ======================================== */

.sjb-cta-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    margin-top: 16px;
}

.sjb-cta-banner h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.sjb-cta-banner p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.sjb-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    color: #b45309;
    background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sjb-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: sjb-btn-shine 2.5s infinite;
}

@keyframes sjb-btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.sjb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #92400e;
}

/* ========================================
   14. 공유 버튼 / 토스트
   ======================================== */

.sjb-share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.sjb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    text-decoration: none;
}

.sjb-share-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.sjb-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.sjb-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   15. PC/모바일 레이아웃
   ======================================== */

.sjb-pc-only { display: none; }
.sjb-mobile-only { display: block; }

@media (min-width: 768px) {
    .sjb-pc-only { display: block; }
    .sjb-mobile-only { display: none; }

    .sjb-container { max-width: 900px; padding: 40px 32px; }
    .sjb-header { margin-bottom: 24px; }
    .sjb-header-icon { width: 88px; height: 88px; font-size: 44px; border-radius: 24px; }
    .sjb-header-title { font-size: 32px; }
    .sjb-header-subtitle { font-size: 16px; }

    .sjb-input-card { padding: 40px 48px; border-radius: 28px; }

    .sjb-form-row-pc {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 20px;
    }
    .sjb-form-row-pc .sjb-form-group { margin-bottom: 0; }
    .sjb-form-row-full { grid-column: 1 / -1; }

    .sjb-form-label { font-size: 14px; margin-bottom: 12px; }
    .sjb-select { height: 56px; font-size: 16px; border-radius: 14px; }
    .sjb-gender-btn { height: 56px; font-size: 16px; border-radius: 14px; }
    .sjb-submit-btn { height: 60px; font-size: 18px; border-radius: 16px; margin-top: 16px; }

    .sjb-result-card { padding: 28px; }
    .sjb-result-title { font-size: 18px; }
    .sjb-result-icon { width: 38px; height: 38px; font-size: 20px; }

    .sjb-today-ganji { gap: 16px; }
    .sjb-today-ganji.vintage .sjb-today-item { padding: 14px 16px; border-width: 3px; }
    .sjb-today-ganji.vintage .sjb-today-label { font-size: 12px; }
    .sjb-today-ganji.vintage .sjb-today-date { font-size: 16px; }
    .sjb-today-ganji.vintage .sjb-today-value { font-size: 32px; }

    .sjb-pillar-col { width: 64px; }
    .sjb-char-box { width: 56px; height: 56px; font-size: 30px; }
    .sjb-pillar-label { font-size: 12px; }

    .sjb-yukchin-card { width: 64px; padding: 10px 6px; }
    .sjb-yukchin-name { font-size: 12px; }
    .sjb-yukchin-stem { font-size: 16px; }
    .sjb-bar-track-v { width: 18px; height: 34px; }
    .sjb-bar-label-v { font-size: 10px; }
    .sjb-stage-text { font-size: 11px; }

    .sjb-cta-banner { padding: 32px; }
    .sjb-cta-banner h3 { font-size: 24px; }
    .sjb-cta-banner p { font-size: 16px; }
    .sjb-cta-btn { padding: 18px 48px; font-size: 18px; }
}

@media (max-width: 480px) {
    .sjb-container { padding: 16px 12px; }
    .sjb-input-card { padding: 20px 16px; }
    .sjb-select { height: 44px; font-size: 13px; }
    .sjb-saju-inner { min-width: 500px; }
    .sjb-pillar-col { width: 46px; }
    .sjb-char-box { width: 40px; height: 40px; font-size: 22px; }
    .sjb-pillar-label { font-size: 10px; }

    .sjb-special-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sjb-special-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
    }
    .sjb-special-item .info-label { margin-bottom: 0; min-width: 60px; }
    .sjb-special-item .info-value { margin-bottom: 0; font-size: 18px; }
}

/* ========================================
   16. 육친 가이드
   ======================================== */

.sjb-yukchin-guide {
    padding: 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-radius: 14px;
    border: 1px solid #fde047;
}

.sjb-yukchin-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #fde047;
}

.sjb-yukchin-guide-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sjb-yukchin-guide-item:first-child {
    padding-top: 0;
}

.sjb-yukchin-guide-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.sjb-yukchin-guide-desc {
    flex: 1;
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
    padding-top: 3px;
}

/* ========================================
   17. 합형충파해 관계 가이드
   ======================================== */

.sjb-relation-guide {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 14px;
    border: 1px solid #7dd3fc;
}

.sjb-relation-guide-intro {
    font-size: 12px;
    color: #0369a1;
    margin: 0 0 14px 0;
    line-height: 1.6;
    text-align: center;
}

.sjb-relation-guide-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.sjb-relation-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sjb-relation-label {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
}

.sjb-relation-item.type-hap .sjb-relation-label {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.sjb-relation-item.type-hyeong .sjb-relation-label {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.sjb-relation-item.type-chung .sjb-relation-label {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.sjb-relation-item.type-pa .sjb-relation-label {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.sjb-relation-item.type-hae .sjb-relation-label {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
}

.sjb-relation-desc {
    font-size: 11px;
    color: #374151;
}

.sjb-relation-item.count-zero {
    opacity: 0.4;
}

.sjb-relation-minor {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    padding: 3px 8px;
    background: #f3f4f6;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
}
