/* 사주풀이 - 메인 스타일시트 */
/* ===== 폼 요소 스타일 통일 (크로스 브라우징 표준화) ===== */
/* 모든 폼 요소의 기본 브라우저 스타일(User Agent Styles) 제거 */
input,
select,
textarea,
button {
    /* 가장 중요한 속성: 브라우저 고유 모양을 없애고 개발자 스타일을 따르도록 강제 */
    -webkit-appearance: none;
    /* 크롬, 엣지, 사파리 */
    -moz-appearance: none;
    /* 파이어폭스 */
    appearance: none;
    /* 표준 */

    /* 폰트 상속을 확실하게 */
    font-family: inherit;
    font-size: inherit;
}

/* 포커스 시 브라우저 기본 파란색/노란색 외곽선 제거 (커스텀 섀도우를 사용할 것이므로) */
input:focus,
select:focus,
button:focus {
    outline: none;
}

/* 참고: select 태그의 기본 화살표가 appearance:none 으로 제거되었으므로,
         원하는 경우 background-image를 이용해 커스텀 화살표를 추가해야 합니다. */
.input-wrapper select,
.time-select select {
    background: white;
    /* appearance: none; 적용 후 일부 브라우저에서 배경색이 사라지는 것 방지 */
}

/* 기존 CSS 코드의 .form-group 이하 내용이 이어서 작성됩니다.
*/
/* ===== 변수 정의 ===== */
:root {
    --primary-color: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --secondary-color: #8B5CF6;
    --accent-gold: #F59E0B;
    --accent-coral: #F472B6;
    --accent-mint: #34D399;

    --bg-gradient-start: #EEF2FF;
    --bg-gradient-end: #FDF4FF;
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);

    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-white: #ffffff;

    --wood-color: #10B981;
    --fire-color: #EF4444;
    --earth-color: #D97706;
    --metal-color: #6B7280;
    --water-color: #3B82F6;

    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Gowun Dodum', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ===== 리셋 및 기본 스타일 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.7;
}

/* ===== 배경 장식 ===== */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-symbol {
    position: absolute;
    font-size: 80px;
    color: rgba(99, 102, 241, 0.08);
    animation: float 20s infinite ease-in-out;
}

.symbol-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.symbol-2 {
    top: 30%;
    right: 10%;
    animation-delay: -4s;
}

.symbol-3 {
    top: 60%;
    left: 15%;
    animation-delay: -8s;
}

.symbol-4 {
    top: 80%;
    right: 5%;
    animation-delay: -12s;
}

.symbol-5 {
    top: 50%;
    left: 50%;
    animation-delay: -16s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.15;
    }
}

/* ===== 컨테이너 ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===== 헤더 ===== */
.main-header {
    text-align: center;
    padding: 0;
    color: var(--text-dark);
}

/* 상단 네비게이션 바 */
.top-nav-bar {
    background: #6366F1;
    background: -webkit-linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    background: -moz-linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    background: -o-linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    padding: 12px 20px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 25px;
    -webkit-box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    -moz-box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.nav-logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 15px;
    white-space: nowrap;
}

.nav-logo-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* 햄버거 메뉴 버튼 - 작은 화면에서만 표시 */
.hamburger-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: none;
    /* 기본적으로 숨김 */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

/* 네비게이션 메뉴 - 데스크톱에서는 인라인 표시 */
.nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    position: static;
    background: transparent;
    padding: 0;
    margin: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
}

.nav-link {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    background: white;
    color: #6366F1;
    font-weight: 600;
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 태블릿 반응형 (1200px 이하) - 햄버거 메뉴로 전환 */
@media (max-width: 1200px) {
    .hamburger-btn {
        display: flex !important;
    }

    .nav-container {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0;
        margin-top: 10px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 600px;
        opacity: 1;
        padding: 15px;
        overflow-y: auto;
    }

    .nav-link {
        width: 100%;
        margin: 5px 0;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* 모바일 반응형 */
@media (max-width: 900px) {
    .nav-container {
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -moz-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .nav-logo {
        width: auto;
        margin-right: 0;
        margin-bottom: 0;
    }
}

/* 로고 영역 */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.yin-yang {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(to right, #C8102E 50%, #003478 50%);
    position: relative;
    animation: rotate 20s linear infinite;
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.yin-yang::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #C8102E;
    border-radius: 50%;
}

.yin-yang::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #003478;
    border-radius: 50%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.main-header h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366F1, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 기존 header-nav 숨김 (새 nav로 대체) */
.header-nav {
    display: none;
}

/* ===== 폼 카드 ===== */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-header .card-desc {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 0 10px;
}

.card-header .card-desc strong {
    color: var(--primary-color);
    font-weight: 600;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.feature-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    transform: translateY(-2px);
}

/* ===== 폼 요소 ===== */
.form-group {
    margin-bottom: 25px;
}

.group-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1rem;
}

/* 라디오 버튼 그룹 */
.radio-group {
    display: flex;
    gap: 15px;
}

.radio-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-item:hover {
    background: #e9ecef;
}

.radio-item input {
    display: none;
}

.radio-item input:checked+.radio-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.radio-item input:checked+.radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-item input:checked~.radio-text {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.radio-text {
    font-weight: 500;
    margin-right: 8px;
}

.radio-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 윤달 체크박스 */
.leap-month-check {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: var(--radius-sm);
}

.leap-month-check.show {
    display: block;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-item input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
}

.checkbox-item input:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: bold;
}

/* 날짜 입력 */
.date-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
}

.input-wrapper select,
.time-select select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-wrapper select:focus,
.time-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 78, 140, 0.1);
}

.input-help {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 음력/양력 선택 */
.calendar-select {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.calendar-item {
    flex: 1;
    cursor: pointer;
}

.calendar-item input {
    display: none;
}

.calendar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.calendar-item input:checked+.calendar-card {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.calendar-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.calendar-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* 윤달 체크박스 */
.checkbox-wrapper {
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkbox-label {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.checkbox-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.checkbox-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* 성별 선택 */
.gender-select {
    display: flex;
    gap: 15px;
}

.gender-item {
    flex: 1;
    cursor: pointer;
}

.gender-item input {
    display: none;
}

.gender-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gender-item input:checked+.gender-card {
    border-color: var(--primary-color);
    background: rgba(93, 78, 140, 0.1);
}

.gender-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.gender-text {
    font-weight: 600;
    color: var(--text-dark);
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(93, 78, 140, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(93, 78, 140, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
}

/* 에러 메시지 */
.error-message {
    background: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cc0000;
}

/* ===== 정보 카드들 ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    color: var(--text-dark);
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    font-family: var(--font-serif);
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 상세 설명 섹션 ===== */
.detail-section {
    margin-bottom: 30px;
    scroll-margin-top: 100px;
}

.detail-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary-color);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.detail-icon {
    font-size: 2.5rem;
}

.detail-header h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary-color);
}

.detail-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.detail-content strong {
    color: var(--primary-color);
}

.detail-content em {
    color: var(--accent-coral);
    font-style: normal;
    font-weight: 500;
}

/* 사주 기둥 설명 */
.pillar-explain {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.pillar-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.pillar-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 오행 그리드 */
.oheng-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.oheng-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.oheng-item:hover {
    transform: translateY(-5px);
}

.oheng-item.wood {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.oheng-item.fire {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.oheng-item.earth {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(217, 119, 6, 0.2));
    border: 2px solid rgba(217, 119, 6, 0.3);
}

.oheng-item.metal {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(107, 114, 128, 0.2));
    border: 2px solid rgba(107, 114, 128, 0.3);
}

.oheng-item.water {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.oheng-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.oheng-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.oheng-item.wood .oheng-name {
    color: #10B981;
}

.oheng-item.fire .oheng-name {
    color: #EF4444;
}

.oheng-item.earth .oheng-name {
    color: #D97706;
}

.oheng-item.metal .oheng-name {
    color: #6B7280;
}

.oheng-item.water .oheng-name {
    color: #3B82F6;
}

.oheng-keyword {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.oheng-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

.oheng-relation {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-md);
}

.oheng-relation h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.oheng-relation p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.oheng-relation p:last-child {
    margin-bottom: 0;
}

/* ===== 결과 페이지 ===== */
.result-container {
    padding-bottom: 40px;
}

.back-button-area {
    text-align: center;
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 결과 카드 */
.result-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.result-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.card-emoji {
    font-size: 2rem;
}

.result-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary-color);
}

.card-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 요약 카드 */
.summary-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.animal-display {
    margin-bottom: 20px;
}

.animal-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animal-display h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
}

.season-desc {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* 사주 기둥 */
.saju-pillars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pillar {
    text-align: center;
}

.pillar-label {
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.pillar-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pillar-content span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    font-family: var(--font-serif);
    font-weight: 600;
}

.cheongan {
    color: white;
}

.jiji {
    background: rgba(255, 255, 255, 0.2);
}

.pillar.day-pillar .pillar-label {
    font-weight: 600;
}

.pillar.day-pillar .pillar-content span {
    transform: scale(1.1);
}

.pillar-content.unknown span {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 탭 네비게이션 */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 하단 탭 네비게이션 */
.bottom-tab-navigation {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    overflow-x: auto;
}

.bottom-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bottom-tab-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    transform: translateY(-2px);
}

.bottom-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 일간 카드 */
.ilgan-card .highlight-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(93, 78, 140, 0.1) 0%, rgba(93, 78, 140, 0.05) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.detail-text {
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 25px;
}

.traits-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.trait-group h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trait-tag {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trait-tag.good {
    background: #e8f5e9;
    color: #2e7d32;
}

.trait-tag.grow {
    background: #fff3e0;
    color: #f57c00;
}

.advice-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
}

.advice-box.warning {
    background: #fff8e1;
}

.advice-icon {
    font-size: 1.5rem;
}

/* 성격 특성 */
.personality-traits {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.personality-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.trait-name {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.trait-desc {
    color: var(--text-dark);
}

/* 재능 태그 */
.talent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.talent-tag {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 25px;
    font-weight: 500;
}

.additional-talent {
    margin-top: 20px;
    color: var(--text-light);
}

/* 오행 차트 */
.oheng-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.oheng-item {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 15px;
}

.oheng-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oheng-emoji {
    font-size: 1.5rem;
}

.oheng-name {
    font-weight: 500;
}

.oheng-bar-container {
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

.oheng-bar {
    height: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 1s ease;
}

.oheng-count {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.oheng-status {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

.oheng-status.status-강함 {
    color: var(--success-color);
}

.oheng-status.status-약함 {
    color: var(--danger-color);
}

.oheng-status.status-없음 {
    color: var(--danger-color);
}

.oheng-status.status-보통 {
    color: var(--text-light);
}

.oheng-analysis {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oheng-detail {
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border-left: 4px solid #ccc;
}

/* 용신 카드 */
.yongsin-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.yongsin-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.yongsin-emoji {
    font-size: 4rem;
}

.yongsin-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
}

.yongsin-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.yongsin-howto h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.howto-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.howto-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.howto-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* 삼재 카드 */
.samjae-card.warning {
    background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
    border: 2px solid #ffd54f;
}

.samjae-card.good {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border: 2px solid #81c784;
}

.warning-text {
    color: #f57c00 !important;
}

.good-text {
    color: #2e7d32 !important;
}

.samjae-timeline {
    margin-top: 25px;
}

.samjae-timeline h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.timeline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-item {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    text-align: center;
}

.timeline-item.current {
    background: #fff3e0;
    border: 2px solid #ff9800;
}

.timeline-item .year {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.timeline-item .type {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 세운 카드 */
.seun-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.seun-ganji {
    text-align: center;
}

.seun-ganji .ganji {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.seun-ganji .animal {
    color: var(--text-light);
}

.seun-desc {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
}

.effect-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.effect-box.good {
    background: #e8f5e9;
}

.effect-box.caution {
    background: #fff3e0;
}

.effect-icon {
    font-size: 1.5rem;
}

/* 운세 점수 */
.fortune-scores {
    margin-top: 30px;
}

.fortune-scores h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.score-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-item {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 15px;
}

.score-label {
    font-weight: 500;
}

.score-bar-container {
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.score-bar.total {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.score-bar.wealth {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.score-bar.career {
    background: linear-gradient(90deg, #2196F3, #03A9F4);
}

.score-bar.love {
    background: linear-gradient(90deg, #E91E63, #FF4081);
}

.score-bar.health {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.score-value {
    font-weight: 600;
    text-align: right;
}

/* 월별 운세 */
.monthly-fortune {
    margin-top: 30px;
}

.monthly-fortune h4 {
    margin-bottom: 20px;
}

.monthly-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.month-item {
    text-align: center;
    padding: 15px 10px;
    border-radius: var(--radius-md);
    background: #f8f9fa;
}

.month-item.level-大吉 {
    background: #c8e6c9;
}

.month-item.level-吉 {
    background: #dcedc8;
}

.month-item.level-平 {
    background: #f5f5f5;
}

.month-item.level-小凶 {
    background: #ffe0b2;
}

.month-item.level-凶 {
    background: #ffccbc;
}

.month-num {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.month-level {
    font-size: 0.9rem;
}

/* 대운 */
.daeun-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
}

.daeun-direction {
    font-weight: 600;
    color: var(--primary-color);
}

.daeun-timeline {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.daeun-item {
    flex: 0 0 100px;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
}

.daeun-item.current {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.daeun-age {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.daeun-ganji {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.daeun-sipsin {
    font-size: 0.85rem;
    opacity: 0.8;
}

.current-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-gold);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.all-daeun-details {
    margin-top: 25px;
}

.all-daeun-details h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.daeun-detail-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border-left: 4px solid #e0e0e0;
}

.daeun-detail-item.current-period {
    background: linear-gradient(135deg, rgba(93, 78, 140, 0.1) 0%, rgba(93, 78, 140, 0.05) 100%);
    border-left-color: var(--primary-color);
}

.period-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.period-age {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.period-ganji {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-dark);
}

.current-label {
    background: var(--accent-gold);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.period-description {
    line-height: 1.9;
    color: var(--text-dark);
    font-size: 1rem;
}

/* 직업/재물 */
.career-type,
.wealth-type {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.type-badge {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
}

.career-desc {
    text-align: center;
    margin-bottom: 25px;
}

.job-list h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-tag {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

/* 배우자운 상세 분석 */
.spouse-card {
    background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
}

.spouse-palace {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #E85D75 0%, #FF9A8B 100%);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
}

.palace-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.palace-emoji {
    font-size: 3rem;
}

.palace-status {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 5px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.palace-desc {
    line-height: 1.8;
}

.spouse-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.spouse-section:last-of-type {
    border-bottom: none;
}

.spouse-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.spouse-personality .main-trait {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.spouse-personality .trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.spouse-personality .trait-tag {
    padding: 8px 18px;
    background: #ffe4ec;
    color: #E85D75;
    border-radius: 20px;
    font-weight: 500;
}

.spouse-personality .trait-desc {
    color: var(--text-dark);
    line-height: 1.7;
}

.appearance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.appearance-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
}

.appearance-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.appearance-item .value {
    font-weight: 500;
    color: var(--text-dark);
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.career-tag {
    padding: 10px 20px;
    background: #e3f2fd;
    color: #1976D2;
    border-radius: 20px;
    font-weight: 500;
}

.marriage-timing .timing-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.timing-type {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.timing-range {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.timing-desc {
    margin-bottom: 15px;
    line-height: 1.7;
}

.good-periods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff8e1;
    border-radius: var(--radius-md);
}

.period-label {
    font-weight: 500;
}

.period-badge {
    padding: 5px 15px;
    background: #FFC107;
    color: #5D4037;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.relation-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.relation-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.relation-card .rel-emoji {
    font-size: 1.5rem;
    margin-right: 10px;
}

.relation-card .rel-aspect {
    font-weight: 600;
    color: var(--primary-color);
}

.relation-card .rel-desc {
    margin-top: 10px;
    line-height: 1.7;
}

.match-section .match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius-md);
}

.match-list.good .match-item {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.match-list.caution .match-item {
    background: #fff3e0;
    border-left: 4px solid #FF9800;
}

.match-emoji {
    font-size: 1.5rem;
}

.match-animal {
    font-weight: 600;
    min-width: 60px;
}

.match-type {
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.match-list.good .match-type {
    background: #4CAF50;
    color: white;
}

.match-list.caution .match-type {
    background: #FF9800;
    color: white;
}

.match-desc {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.match-note {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-light);
}

.gunghap-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed #f0f0f0;
}

.gunghap-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #E85D75 0%, #FF9A8B 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(232, 93, 117, 0.3);
}

.gunghap-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 93, 117, 0.4);
}

.gunghap-btn span {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .appearance-grid {
        grid-template-columns: 1fr;
    }

    .match-item {
        flex-wrap: wrap;
    }

    .match-desc {
        width: 100%;
        margin-top: 10px;
    }
}

/* 건강 */
.health-warnings {
    margin-bottom: 25px;
}

.health-warnings h4 {
    margin-bottom: 15px;
    color: var(--danger-color);
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #fff3e0;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.warning-emoji {
    font-size: 1.5rem;
}

.health-tips h4 {
    margin-bottom: 15px;
    color: var(--success-color);
}

.health-tips ul {
    list-style: none;
    padding: 0;
}

.health-tips li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.health-tips li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* 행운 아이템 */
.lucky-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lucky-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lucky-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
}

.lucky-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 종합 조언 */
.advice-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.advice-card .card-header {
    color: white;
}

.advice-card h3 {
    color: white;
}

.main-advice {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.element-advice {
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.daily-advice {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
}

.daily-advice h4 {
    margin-bottom: 15px;
    opacity: 0.9;
}

.daily-advice ul {
    list-style: none;
    padding: 0;
}

.daily-advice li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    opacity: 0.9;
}

.daily-advice li:before {
    content: '★';
    position: absolute;
    left: 0;
}

/* 면책 조항 */
.disclaimer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.disclaimer p {
    margin-bottom: 5px;
}

/* 푸터 */
.main-footer {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.copyright {
    margin-top: 10px;
    font-size: 0.85rem;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .top-nav-bar {
        padding: 12px 15px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .container {
        padding: 15px;
    }

    .main-header h1 {
        font-size: 1.8rem;
    }

    .form-card {
        padding: 25px;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .saju-pillars {
        gap: 10px;
    }

    .pillar-content span {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .tab-navigation {
        gap: 5px;
        padding: 10px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
        min-width: 90px;
    }

    .bottom-tab-navigation {
        gap: 5px;
        padding: 10px;
        margin-top: 20px;
    }

    .bottom-tab-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
        min-width: 90px;
    }

    .traits-section {
        grid-template-columns: 1fr;
    }

    .oheng-item {
        grid-template-columns: 80px 1fr 50px;
    }

    .score-item {
        grid-template-columns: 80px 1fr 50px;
    }

    .monthly-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .lucky-grid {
        grid-template-columns: 1fr;
    }

    .howto-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 정보 카드 반응형 */
    .info-cards {
        grid-template-columns: 1fr;
    }

    /* 상세 섹션 반응형 */
    .pillar-explain {
        grid-template-columns: 1fr;
    }

    .oheng-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .oheng-item:last-child {
        grid-column: span 2;
    }

    .detail-card {
        padding: 25px;
    }

    .detail-header h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .radio-group {
        flex-direction: column;
    }

    .calendar-select {
        flex-direction: column;
    }

    .gender-select {
        flex-direction: column;
    }

    .monthly-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .daeun-item {
        flex: 0 0 80px;
        padding: 15px 10px;
    }

    .daeun-ganji {
        font-size: 1.1rem;
    }

    .oheng-grid {
        grid-template-columns: 1fr;
    }

    .oheng-item:last-child {
        grid-column: span 1;
    }

    .tab-btn {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ===== 사주란/오행 알기 페이지 전용 스타일 ===== */

.page-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.content-section {
    padding-bottom: 30px;
}

/* 천간지지 리스트 */
.gan-ji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.gan-item,
.ji-item {
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.gan-item.wood {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.gan-item.fire {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.gan-item.earth {
    background: rgba(217, 119, 6, 0.15);
    color: #D97706;
}

.gan-item.metal {
    background: rgba(107, 114, 128, 0.15);
    color: #6B7280;
}

.gan-item.water {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.ji-item {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-dark);
}

/* 특징 그리드 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-box {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.feature-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 오행 카드 (새 레이아웃) */
.oheng-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.oheng-row.two-items {
    grid-template-columns: repeat(2, 1fr);
    max-width: 66.66%;
    margin-left: auto;
    margin-right: auto;
}

.oheng-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.oheng-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.oheng-card-header {
    padding: 20px;
    text-align: center;
    color: white;
}

.oheng-card.wood .oheng-card-header {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.oheng-card.fire .oheng-card-header {
    background: linear-gradient(135deg, #EF4444, #F87171);
}

.oheng-card.earth .oheng-card-header {
    background: linear-gradient(135deg, #D97706, #FBBF24);
}

.oheng-card.metal .oheng-card-header {
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
}

.oheng-card.water .oheng-card-header {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.oheng-card .oheng-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 5px;
}

.oheng-card .oheng-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
}

.oheng-card-body {
    padding: 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.oheng-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.oheng-keywords span {
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.oheng-card-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.oheng-card-body p strong {
    color: var(--primary-color);
}

/* 상생상극 플로우 */
.relation-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.relation-flow,
.relation-flow-geuk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.flow-item {
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.flow-item.wood {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.flow-item.fire {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.flow-item.earth {
    background: rgba(217, 119, 6, 0.2);
    color: #D97706;
}

.flow-item.metal {
    background: rgba(107, 114, 128, 0.2);
    color: #6B7280;
}

.flow-item.water {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.flow-arrow {
    color: var(--success-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.flow-arrow-geuk {
    color: var(--danger-color);
    font-size: 1rem;
}

.relation-explain {
    padding-left: 10px;
}

.relation-explain p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* 균형 팁 */
.balance-tips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.balance-item {
    padding: 15px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-md);
    text-align: center;
}

.balance-item h5 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.balance-item p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* CTA 섹션 */
.cta-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
    color: white;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.cta-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* 새 페이지 반응형 */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .oheng-row {
        grid-template-columns: 1fr;
    }

    .oheng-row.two-items {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .balance-tips {
        grid-template-columns: repeat(2, 1fr);
    }

    .balance-tips .balance-item:last-child {
        grid-column: span 2;
    }

    .cta-section {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .relation-flow,
    .relation-flow-geuk {
        gap: 5px;
    }

    .flow-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .balance-tips {
        grid-template-columns: 1fr;
    }

    .balance-tips .balance-item:last-child {
        grid-column: span 1;
    }

    .gan-ji-list {
        gap: 8px;
    }

    .gan-item,
    .ji-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ===== 탑 버튼 ===== */
.top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.top-btn.show {
    display: flex;
}

.top-btn span {
    line-height: 1;
}

@media (max-width: 768px) {
    .top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ===== 스마트폰 최적화 (max-width: 480px) ===== */
@media (max-width: 480px) {

    /* 컨테이너 및 기본 레이아웃 */
    .container {
        padding: 10px;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    /* 네비게이션 */
    .top-nav-bar {
        padding: 10px;
        border-radius: 0 0 15px 15px;
    }

    .nav-logo {
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 5px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin: 2px;
    }

    /* 폼 카드 */
    .form-card {
        padding: 20px 15px;
        border-radius: var(--radius-lg);
    }

    .card-header h2 {
        font-size: 1.3rem;
    }

    .card-features {
        gap: 5px;
    }

    .feature-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* 폼 요소 */
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .date-inputs {
        grid-template-columns: 1fr;
        /* 한 줄에 하나씩 */
        gap: 10px;
    }

    .calendar-select {
        flex-direction: column;
        gap: 10px;
    }

    .gender-select {
        flex-direction: column;
        gap: 10px;
    }

    .submit-btn {
        padding: 15px;
        font-size: 1.1rem;
    }

    /* 정보 카드 */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }

    /* 결과 페이지 요소 */
    .result-card {
        padding: 20px 15px;
    }

    .animal-emoji {
        font-size: 4rem;
    }

    .animal-display h2 {
        font-size: 1.6rem;
    }

    /* 사주 기둥 */
    .saju-pillars {
        gap: 5px;
    }

    .pillar-content span {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* 탭 네비게이션 */
    .tab-navigation {
        padding: 5px;
        gap: 5px;
    }

    .tab-btn {
        min-width: auto;
        padding: 8px 10px;
        font-size: 0.8rem;
        flex: 1;
    }

    /* 그리드 조정 */
    .traits-section,
    .appearance-grid,
    .lucky-grid,
    .howto-grid,
    .pillar-explain,
    .oheng-grid,
    .feature-grid,
    .balance-tips,
    .oheng-row {
        grid-template-columns: 1fr !important;
    }

    .monthly-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3열로 유지 */
        gap: 8px;
    }

    .month-item {
        padding: 10px 5px;
    }

    /* 오행 아이템 */
    .oheng-item {
        grid-template-columns: 60px 1fr 40px;
        gap: 10px;
        padding: 15px 10px;
    }

    .oheng-emoji {
        font-size: 1.2rem;
    }

    /* 대운 */
    .daeun-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .daeun-timeline {
        width: 100%;
    }

    /* 기타 */
    .top-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }
}

/* ===== 오늘의 운세 섹션 ===== */
.daily-fortune-section {
    margin-bottom: 40px;
}

.daily-fortune-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 240, 0.98) 100%);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.1);
}

.fortune-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.fortune-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.fortune-icon {
    font-size: 2rem;
    animation: sunrise 3s ease-in-out infinite;
}

@keyframes sunrise {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
}

.fortune-title h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.fortune-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.date-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.ganji-text {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    font-family: var(--font-serif);
}

.fortune-general-advice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.advice-icon {
    font-size: 1.3rem;
}

/* 12띠 운세 그리드 */
.animal-fortune-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.animal-fortune-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.animal-fortune-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 운세 레벨별 색상 */
.animal-fortune-item.level-대길 {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), white);
}

.animal-fortune-item.level-길 {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), white);
}

.animal-fortune-item.level-평길 {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), white);
}

.animal-fortune-item.level-보통 {
    border-color: rgba(156, 163, 175, 0.3);
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.05), white);
}

.animal-fortune-item.level-주의 {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), white);
}

.animal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.animal-emoji {
    font-size: 2rem;
}

.animal-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    flex: 1;
}

.fortune-level {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.level-대길 .fortune-level {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.level-길 .fortune-level {
    background: rgba(59, 130, 246, 0.15);
    color: #2563EB;
}

.level-평길 .fortune-level {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.level-보통 .fortune-level {
    background: rgba(156, 163, 175, 0.15);
    color: #6B7280;
}

.level-주의 .fortune-level {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

/* 운세 점수 바 */
.fortune-score-bar {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    border-radius: 4px;
    transition: width 1s ease;
}

.level-대길 .score-fill {
    background: linear-gradient(90deg, #10B981, #059669);
}

.level-길 .score-fill {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.level-평길 .score-fill {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.level-보통 .score-fill {
    background: linear-gradient(90deg, #9CA3AF, #6B7280);
}

.level-주의 .score-fill {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

.score-text {
    position: absolute;
    right: 5px;
    top: -20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

/* 운세 메시지 */
.fortune-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 12px;
    min-height: 48px;
}

/* 행운 요소 */
.fortune-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.detail-icon {
    font-size: 1rem;
}

.detail-text {
    color: var(--text-light);
}

/* 조언 */
.fortune-advice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

.advice-label {
    font-size: 1rem;
    flex-shrink: 0;
}

.advice-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-dark);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .animal-fortune-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .daily-fortune-card {
        padding: 25px 20px;
    }

    .fortune-title h2 {
        font-size: 1.5rem;
    }

    .animal-fortune-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .animal-fortune-grid {
        grid-template-columns: 1fr;
    }

    .fortune-general-advice {
        flex-direction: column;
        text-align: center;
    }

    .daily-fortune-card {
        padding: 20px 15px;
    }
}

/* ===== Sunrise Icon (for today.php) ===== */
.sunrise-icon {
    width: 80px;
    height: 80px;
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sunrise-pulse 3s ease-in-out infinite;
}

@keyframes sunrise-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* ===== Fortune Highlights (Fun Factor) ===== */
.fortune-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.best-luck {
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
    border: 2px solid #F59E0B;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.caution-luck {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 2px solid #EF4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.highlight-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom-right-radius: 15px;
    color: white;
}

.best-luck .highlight-badge {
    background: #F59E0B;
}

.caution-luck .highlight-badge {
    background: #EF4444;
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.highlight-emoji {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.highlight-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.highlight-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
}

/* Fun Items (Food & Action) */
.fun-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.fun-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fun-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.fun-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 600px) {
    .fortune-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===== Interactive Features ===== */

/* Sparkle Effect */
.sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkle-fade 1s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes sparkle-fade {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Lucky Number Badge */
.lucky-number-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 8px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

.badge-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8B4513;
}

.badge-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B4513;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Expandable Details */
.expandable-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 10px;
}

.animal-fortune-item.expanded .expandable-details {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.detail-row:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.detail-row .detail-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.quote-row {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-left: 3px solid var(--primary-color);
}

.quote-text {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
}

/* Click Hint */
.click-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.animal-fortune-item.expanded .click-hint {
    display: none;
}

.click-hint:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
}

/* Card Hover Effects */
.animal-fortune-item {
    transition: all 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.animal-fortune-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.animal-fortune-item:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Level-based Glow Effects */
.level-대길:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.level-길:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.level-평길:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.level-보통:hover {
    box-shadow: 0 8px 30px rgba(156, 163, 175, 0.4);
}

.level-주의:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

/* Mobile Responsiveness for New Features */
@media (max-width: 768px) {
    .lucky-number-badge {
        padding: 6px 10px;
    }

    .badge-label {
        font-size: 0.75rem;
    }

    .badge-value {
        font-size: 1.1rem;
    }

    .detail-row {
        padding: 8px;
    }
}

/* ===== 토정비결 스타일 ===== */
.tojeong-icon {
    width: 80px;
    height: 80px;
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.tojeong-result {
    margin-top: 30px;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: var(--radius-xl);
}

.result-header h2 {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #6366F1, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gwae-info {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.retry-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 월별 타임라인 */
.monthly-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.month-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.month-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--primary-color);
}

.score-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.score-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B4513;
}

.fortune-title {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    color: var(--text-dark);
    margin-bottom: 15px;
}

.fortune-poem {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-family: var(--font-serif);
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-line;
}

.fortune-interpretation {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.score-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.score-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
}

@media (max-width: 768px) {
    .monthly-timeline {
        grid-template-columns: 1fr;
    }

    .result-header h2 {
        font-size: 1.5rem;
    }
}

/* ===== 심층 분석 스타일 ===== */
.deep-analysis-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-lg);
}

.deep-analysis-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.deep-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.deep-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.deep-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.deep-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.gyeokguk-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: var(--radius-xl);
}

.gyeokguk-name {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 10px 25px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.gyeokguk-desc {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.sinsal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sinsal-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sinsal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sinsal-item.good {
    border-left-color: var(--success-color);
}

.sinsal-item.neutral {
    border-left-color: var(--primary-color);
}

.sinsal-item.bad {
    border-left-color: var(--danger-color);
}

.sinsal-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
}

.sinsal-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.sinsal-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.sinsal-advice {
    font-size: 0.85rem !important;
    color: var(--primary-dark) !important;
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* ===== 택일 (Taekil) Styles ===== */
.purpose-select,
.direction-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.purpose-item,
.direction-item {
    cursor: pointer;
}

.purpose-item input,
.direction-item input {
    display: none;
}

.purpose-card,
.direction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    min-height: 100px;
    justify-content: center;
}

.purpose-item input:checked+.purpose-card,
.direction-item input:checked+.direction-card {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.purpose-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.purpose-text,
.direction-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-range-inputs .input-wrapper {
    flex: 1;
}

.date-range-inputs input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.range-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .purpose-select {
        grid-template-columns: repeat(2, 1fr);
    }

    .direction-select {
        grid-template-columns: repeat(3, 1fr);
    }

    .date-range-inputs {
        flex-direction: column;
    }

    .range-separator {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {

    .purpose-select,
    .direction-select {
        grid-template-columns: 1fr;
    }
}

.sinsal-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sinsal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sinsal-item.good {
    border-left-color: var(--success-color);
}

.sinsal-item.neutral {
    border-left-color: var(--primary-color);
}

.sinsal-item.bad {
    border-left-color: var(--danger-color);
}

.sinsal-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
}

.sinsal-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.sinsal-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.sinsal-advice {
    font-size: 0.85rem !important;
    color: var(--primary-dark) !important;
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* ===== 택일 (Taekil) Styles ===== */
.purpose-select,
.direction-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.purpose-item,
.direction-item {
    cursor: pointer;
}

.purpose-item input,
.direction-item input {
    display: none;
}

.purpose-card,
.direction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    min-height: 100px;
    justify-content: center;
}

.purpose-item input:checked+.purpose-card,
.direction-item input:checked+.direction-card {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.purpose-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.purpose-text,
.direction-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-range-inputs .input-wrapper {
    flex: 1;
}

.date-range-inputs input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.range-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .purpose-select {
        grid-template-columns: repeat(2, 1fr);
    }

    .direction-select {
        grid-template-columns: repeat(3, 1fr);
    }

    .date-range-inputs {
        flex-direction: column;
    }

    .range-separator {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {

    .purpose-select,
    .direction-select {
        grid-template-columns: 1fr;
    }
}