/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-liver: #10b981;
    --color-lung: #3b82f6;
    --color-spleen: #f59e0b;
    --color-kidney: #8b5cf6;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-primary: #6366f1;
    --color-success: #22c55e;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-text);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 화면 전환 */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 환영 화면 */
.welcome-content {
    background: var(--color-card);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.main-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 64px;
}

/* 진단 방식 선택 */
.survey-mode-selection {
    margin-bottom: 48px;
}

.survey-mode-selection h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mode-button {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 24px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mode-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.mode-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.mode-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 축 정보 */
.info-section {
    margin-bottom: 24px;
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.mode-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.mode-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mode-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.mode-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.mode-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 축 정보 */
.info-section {
    margin-top: 48px;
}

.info-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.axis-info {
    display: grid;
    gap: 16px;
}

.axis-item {
    padding: 16px;
    background: var(--color-bg);
    border-left: 4px solid;
    border-radius: 8px;
    font-size: 1rem;
}

.axis-item strong {
    font-weight: 700;
    margin-right: 8px;
}

/* 설문 진행 화면 */
#survey-screen {
    position: relative;
    min-height: 100vh;
}

/* 고정 헤더 제거 - 더 이상 사용하지 않음 */
.survey-header-fixed {
    display: none;
}

.progress-section {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-card);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.current-axis {
    font-weight: 700;
    font-size: 1rem;
}

.progress-text {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--color-bg);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* 인라인 진행률 바 (질문 카드 안에) */
.progress-section-inline {
    margin-top: 32px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.progress-section-inline .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-section-inline .current-axis {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.progress-section-inline .progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.progress-section-inline .progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    overflow: hidden;
}

.progress-section-inline .progress-bar {
    height: 100%;
    background: white;
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* 설문 카드 래퍼 - 자연스러운 스크롤 */
.survey-card-wrapper {
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* 설문 카드 */
.survey-card {
    background: var(--color-card);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: cardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.survey-card.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.question-number {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
}

.question-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.question-text {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 32px;
}

/* 선택 옵션 */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.option-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.875rem;
    text-align: left;
    transform: scale(1);
    will-change: transform, background, border-color;
}

.option-button:hover {
    background: #f1f5f9;
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.option-button:active {
    transform: scale(0.98);
}

.option-button.selected {
    background: #eef2ff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    animation: selectPulse 0.4s ease;
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.option-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.option-button.selected .option-value {
    background: var(--color-primary);
    color: white;
}

.option-label {
    flex: 1;
    font-size: 0.875rem;
}

/* 키보드 단축키 힌트 */
.keyboard-hint {
    text-align: center;
    padding: 12px;
    margin: 24px 0 16px 0;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-text-light);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.keyboard-hint strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* 하단 네비게이션 (이전/다음 버튼) - 고정 제거 */
.bottom-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 0;
}

.nav-button-new {
    flex: 1;
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

.nav-button-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.nav-button-new:active {
    transform: translateY(-1px);
}

.nav-button-new.secondary {
    background: white;
    color: #667eea;
    border: 3px solid #667eea;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.nav-button-new.secondary:hover {
    background: #f8f9ff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.nav-button-new:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.prev-only-button {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.prev-only-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.prev-only-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 기존 네비게이션 버튼 (숨김) */
.navigation-buttons {
    display: none;
}

.nav-button {
    flex: 1;
    padding: 16px 32px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-button:hover:not(:disabled) {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.nav-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.auto-hint {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    display: inline-block;
    margin-left: 8px;
}

.nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 저장 섹션 (숨김) */
.save-section {
    display: none;
}

.save-button {
    padding: 12px 24px;
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-button:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* 결과 화면 */
.result-content {
    background: var(--color-card);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.result-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 24px;
}

.constitution-type {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 48px;
}

.constitution-type h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.confidence-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.confidence-badge.preliminary {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.confidence-badge.final {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.preliminary-message {
    margin-top: 16px;
    font-size: 1rem;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.confidence-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.confidence-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confidence-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.confidence-value {
    font-size: 1rem;
    font-weight: 700;
}

.confidence-value.high {
    color: #22c55e;
}

.confidence-value.medium {
    color: #fbbf24;
}

.confidence-value.low {
    color: #f87171;
}

.upgrade-button {
    margin-top: 24px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upgrade-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    background: white;
}
    font-weight: 900;
    margin-bottom: 8px;
}

.constitution-type p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* 점수 차트 */
.scores-section {
    margin-bottom: 48px;
}

.scores-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.scores-chart {
    display: grid;
    gap: 16px;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-label {
    width: 80px;
    font-weight: 700;
    font-size: 1rem;
}

.score-visual {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-bar-bg {
    flex: 1;
    height: 32px;
    background: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.score-value {
    font-weight: 700;
    font-size: 1.25rem;
    min-width: 40px;
}

/* 세부 분석 */
.detailed-analysis {
    margin-bottom: 48px;
}

.detailed-analysis h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

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

.detail-card {
    padding: 20px;
    background: var(--color-bg);
    border-radius: 12px;
    text-align: center;
}

.detail-axis {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.detail-value {
    font-size: 2rem;
    font-weight: 700;
}

/* 해석 섹션 */
.interpretation-section {
    margin-bottom: 48px;
}

.interpretation-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.interpretation {
    padding: 24px;
    background: var(--color-bg);
    border-radius: 12px;
    line-height: 1.8;
}

.interpretation p {
    margin-bottom: 16px;
}

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

/* 액션 버튼 */
.action-buttons {
    display: flex;
    gap: 16px;
}

.action-button {
    flex: 1;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-button.secondary {
    background: var(--color-bg);
    color: var(--color-text);
}

/* 차 추천 화면 */
.tea-content {
    background: var(--color-card);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.back-button {
    padding: 12px 24px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: #f1f5f9;
    transform: translateX(-4px);
}

.tea-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.tea-header-info {
    margin-bottom: 32px;
    padding: 16px;
    background: var(--color-bg);
    border-radius: 12px;
    text-align: center;
}

.tea-constitution {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.tea-filter-section {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 16px;
}

.tea-filter-section h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.tea-filter-section p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.tea-recommendations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tea-card {
    position: relative;
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tea-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.rank-badge.gold {
    color: #f59e0b;
}

.rank-badge.silver {
    color: #6b7280;
}

.rank-badge.bronze {
    color: #92400e;
}

.tea-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg);
}

.tea-info {
    padding: 20px;
}

.tea-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tea-category {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.tea-reason {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 16px;
    padding: 12px;
    background: var(--color-bg);
    border-radius: 8px;
}

.tea-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.effect-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.tea-price {
    font-size: 1.125rem;
    font-weight: 700;
}

.tea-fitness {
    font-size: 0.875rem;
    font-weight: 700;
}

/* 차 추천 배너 (중간 배치) */
.tea-recommendation-banner {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

/* 모바일 전용 요소 - 데스크톱에서는 숨김 */
.mobile-only {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    }
}

.primary-large {
    width: 100%;
    padding: 24px 32px;
    font-size: 1.5rem;
    font-weight: 800;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9ff;
}

/* 차 상세 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    padding: 20px;
}

/* 모달 표시 상태 */
.modal[style*="flex"],
.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: var(--color-card);
    border-radius: 24px;
    padding: 48px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
    margin: auto;
    z-index: 100000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--color-text);
}

.tea-detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.tea-detail-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.tea-detail-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.tea-detail-section {
    margin-bottom: 32px;
}

.tea-detail-section h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.tea-detail-section p {
    line-height: 1.8;
    color: var(--color-text);
}

.tea-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.tea-detail-effects {
    display: grid;
    gap: 12px;
}

.effect-detail-row {
    display: grid;
    grid-template-columns: 150px 1fr 100px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: var(--color-bg);
    border-radius: 8px;
}

.effect-detail-label strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.effect-detail-label small {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.effect-detail-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.effect-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.effect-detail-value {
    text-align: right;
    font-weight: 700;
    font-size: 0.875rem;
}

.tea-detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.tea-detail-actions button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    background: var(--color-bg);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.secondary-button:hover {
    background: #f1f5f9;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .survey-header-fixed {
        display: none;
    }
    
    .progress-section {
        padding: 12px;
    }
    
    .survey-card-wrapper {
        padding: 20px 16px;
    }
    
    .welcome-content,
    .survey-card,
    .result-content,
    .tea-content {
        padding: 24px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 48px;
    }
    
    .mode-buttons {
        grid-template-columns: 1fr;
    }
    
    .tea-recommendations-container {
        grid-template-columns: 1fr;
    }
    
    .tea-detail-header {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 24px 20px;
        width: 95%;
        margin: 10px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal {
        padding: 10px;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .close-button {
        top: 12px;
        right: 12px;
        font-size: 1.75rem;
        background: rgba(255, 255, 255, 0.9);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .tea-recommendation-banner {
        margin: 32px 0;
        padding: 24px 16px;
        display: block !important;
        visibility: visible !important;
    }
    
    /* 모바일에서 mobile-only 표시 */
    .mobile-only {
        display: block !important;
    }
    
    .primary-large {
        font-size: 1.25rem;
        padding: 20px 24px;
        max-width: 100%;
        width: 100%;
        display: block;
    }
    
    .effect-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .detailed-scores {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .option-button {
        padding: 10px 14px;
        gap: 10px;
        font-size: 0.8125rem;
    }
    
    .option-value {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
    
    .option-label {
        font-size: 0.8125rem;
    }
    
    /* 모바일 네비게이션 버튼 */
    .bottom-navigation {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }
    
    .nav-button-new {
        width: 100%;
        font-size: 1.125rem;
        padding: 18px 32px;
        font-weight: 800;
    }
    
    .progress-section-inline {
        padding: 12px;
        margin-top: 24px;
    }
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 토스트 알림 */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
