/**
 * MendGod 体质辨识问卷样式
 * 响应式设计，移动端优先
 * 品牌色系：#2D5016主色 / #C8A96E辅色 / #E8F5E9浅底
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Brand Colors */
    --hm-primary: #2D5016;
    --hm-primary-dark: #1E3A0F;
    --hm-primary-light: #4A7A2C;
    --hm-secondary: #C8A96E;
    --hm-secondary-dark: #A68B4B;
    --hm-secondary-light: #E8D5A8;
    --hm-bg-light: #E8F5E9;
    --hm-bg-card: #FFFFFF;
    --hm-text-primary: #1A1A1A;
    --hm-text-secondary: #666666;
    --hm-text-light: #999999;
    --hm-border: #E0E0E0;
    --hm-success: #4CAF50;
    --hm-warning: #FF9800;
    --hm-error: #F44336;
    
    /* Spacing */
    --hm-space-xs: 4px;
    --hm-space-sm: 8px;
    --hm-space-md: 16px;
    --hm-space-lg: 24px;
    --hm-space-xl: 32px;
    --hm-space-2xl: 48px;
    
    /* Border Radius */
    --hm-radius-sm: 8px;
    --hm-radius-md: 12px;
    --hm-radius-lg: 16px;
    --hm-radius-xl: 24px;
    --hm-radius-full: 9999px;
    
    /* Shadows */
    --hm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --hm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --hm-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --hm-transition-fast: 150ms ease;
    --hm-transition-normal: 300ms ease;
    --hm-transition-slow: 500ms ease;
}

/* ========================================
   Base Styles
   ======================================== */
.herbmend-quiz {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--hm-text-primary);
    background: linear-gradient(135deg, var(--hm-bg-light) 0%, #FFFFFF 100%);
    min-height: 100vh;
    padding: var(--hm-space-md);
    box-sizing: border-box;
}

.herbmend-quiz * {
    box-sizing: border-box;
}

/* ========================================
   Select Page Styles
   ======================================== */
.quiz-select-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--hm-space-xl) 0;
}

.quiz-header {
    text-align: center;
    margin-bottom: var(--hm-space-xl);
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hm-primary);
    margin: 0 0 var(--hm-space-sm) 0;
    letter-spacing: -0.02em;
}

.quiz-subtitle {
    font-size: 1.125rem;
    color: var(--hm-text-secondary);
    margin: 0;
}

.quiz-intro {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-lg);
    margin-bottom: var(--hm-space-xl);
    box-shadow: var(--hm-shadow-sm);
    text-align: center;
}

.quiz-intro p {
    margin: 0;
    color: var(--hm-text-secondary);
}

/* Version Cards */
.quiz-version-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hm-space-md);
    margin-bottom: var(--hm-space-xl);
}

@media (max-width: 500px) {
    .quiz-version-cards {
        grid-template-columns: 1fr;
    }
}

.version-card {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--hm-transition-normal);
    border: 2px solid transparent;
    box-shadow: var(--hm-shadow-sm);
    position: relative;
}

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

.version-card:active {
    transform: translateY(-2px);
}

.version-icon {
    font-size: 2.5rem;
    margin-bottom: var(--hm-space-md);
}

.version-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hm-primary);
    margin: 0 0 var(--hm-space-xs) 0;
}

.version-card p {
    font-size: 0.875rem;
    color: var(--hm-text-secondary);
    margin: 0;
}

.version-tag {
    display: inline-block;
    background: var(--hm-bg-light);
    color: var(--hm-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--hm-space-xs) var(--hm-space-sm);
    border-radius: var(--hm-radius-full);
    margin-top: var(--hm-space-md);
}

.version-tag.premium {
    background: linear-gradient(135deg, var(--hm-secondary-light) 0%, var(--hm-secondary) 100%);
    color: #5D4E37;
}

/* Quiz Features */
.quiz-features {
    display: flex;
    justify-content: center;
    gap: var(--hm-space-xl);
    margin-bottom: var(--hm-space-xl);
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--hm-space-xs);
    color: var(--hm-text-secondary);
    font-size: 0.875rem;
}

.feature-icon {
    font-size: 1.25rem;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    justify-content: center;
    gap: var(--hm-space-sm);
    margin-top: var(--hm-space-xl);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius-full);
    padding: var(--hm-space-sm) var(--hm-space-md);
    font-size: 0.875rem;
    color: var(--hm-text-secondary);
    cursor: pointer;
    transition: all var(--hm-transition-fast);
}

.lang-btn:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
}

.lang-btn.active {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: white;
}

/* Gender Select */
.quiz-gender-select {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-lg);
    margin-bottom: var(--hm-space-xl);
    text-align: center;
    box-shadow: var(--hm-shadow-sm);
}

.quiz-gender-select p {
    margin: 0 0 var(--hm-space-md) 0;
    color: var(--hm-text-secondary);
}

.gender-btn {
    background: var(--hm-bg-light);
    border: 2px solid transparent;
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-md) var(--hm-space-xl);
    font-size: 1rem;
    font-weight: 500;
    color: var(--hm-primary);
    cursor: pointer;
    margin: 0 var(--hm-space-sm);
    transition: all var(--hm-transition-fast);
}

.gender-btn:hover {
    border-color: var(--hm-primary);
}

.gender-btn:active {
    background: var(--hm-primary);
    color: white;
}

/* ========================================
   Quiz Container
   ======================================== */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--hm-space-md) 0;
}

/* Progress Bar */
.quiz-progress-bar {
    height: 8px;
    background: var(--hm-border);
    border-radius: var(--hm-radius-full);
    overflow: hidden;
    margin-bottom: var(--hm-space-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-primary-light) 100%);
    border-radius: var(--hm-radius-full);
    transition: width var(--hm-transition-normal);
}

.quiz-progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--hm-text-secondary);
    margin-bottom: var(--hm-space-lg);
}

/* Question Card */
.question-card {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-xl);
    margin-bottom: var(--hm-space-xl);
    box-shadow: var(--hm-shadow-md);
}

.question-number {
    display: inline-block;
    background: var(--hm-bg-light);
    color: var(--hm-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--hm-space-xs) var(--hm-space-sm);
    border-radius: var(--hm-radius-sm);
    margin-bottom: var(--hm-space-md);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--hm-text-primary);
    margin: 0 0 var(--hm-space-xl) 0;
    line-height: 1.5;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: var(--hm-space-md);
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--hm-space-md);
    padding: var(--hm-space-md) var(--hm-space-lg);
    background: var(--hm-bg-light);
    border-radius: var(--hm-radius-md);
    cursor: pointer;
    transition: all var(--hm-transition-fast);
    border: 2px solid transparent;
}

.option-item:hover {
    background: var(--hm-secondary-light);
    border-color: var(--hm-secondary);
}

.option-item.selected {
    background: var(--hm-secondary-light);
    border-color: var(--hm-primary);
}

.option-item input[type="radio"] {
    display: none;
}

.option-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--hm-border);
    transition: all var(--hm-transition-fast);
    flex-shrink: 0;
}

.option-item.selected .option-circle {
    border-color: var(--hm-primary);
    background: var(--hm-primary);
    box-shadow: inset 0 0 0 4px white;
}

.option-text {
    font-size: 1rem;
    color: var(--hm-text-primary);
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--hm-space-md);
    margin-bottom: var(--hm-space-md);
}

.nav-btn {
    flex: 1;
    padding: var(--hm-space-md) var(--hm-space-xl);
    border-radius: var(--hm-radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--hm-transition-fast);
    border: none;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn {
    background: var(--hm-bg-card);
    color: var(--hm-text-secondary);
    border: 1px solid var(--hm-border);
}

.prev-btn:hover:not(:disabled) {
    background: var(--hm-bg-light);
    color: var(--hm-text-primary);
}

.next-btn, .submit-btn {
    background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-light) 100%);
    color: white;
}

.next-btn:hover:not(:disabled), .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--hm-shadow-md);
}

.submit-btn {
    background: linear-gradient(135deg, var(--hm-success) 0%, #66BB6A 100%);
}

/* Time Estimate */
.quiz-time-estimate {
    text-align: center;
    font-size: 0.875rem;
    color: var(--hm-text-light);
}

/* ========================================
   Result Page Styles
   ======================================== */
.quiz-result-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--hm-space-lg) 0;
}

.result-header {
    text-align: center;
    margin-bottom: var(--hm-space-xl);
}

.result-emoji {
    font-size: 4rem;
    margin-bottom: var(--hm-space-md);
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hm-primary);
    margin: 0;
}

/* Primary Result */
.primary-result {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-xl);
    padding: var(--hm-space-xl);
    text-align: center;
    margin-bottom: var(--hm-space-xl);
    box-shadow: var(--hm-shadow-lg);
    border-left: 4px solid;
}

.result-badge {
    display: inline-block;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--hm-space-sm) var(--hm-space-lg);
    border-radius: var(--hm-radius-full);
    margin-bottom: var(--hm-space-md);
}

.result-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hm-text-primary);
    margin: 0 0 var(--hm-space-md) 0;
}

.result-description {
    font-size: 1rem;
    color: var(--hm-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Radar Chart */
.radar-chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--hm-space-xl);
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-lg);
    box-shadow: var(--hm-shadow-sm);
}

#radarChart {
    max-width: 100%;
    height: auto;
}

/* Scores List */
.scores-list {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-lg);
    margin-bottom: var(--hm-space-xl);
    box-shadow: var(--hm-shadow-sm);
}

.score-item {
    display: flex;
    align-items: center;
    gap: var(--hm-space-md);
    padding: var(--hm-space-sm) 0;
}

.score-item.primary-score {
    padding: var(--hm-space-md);
    background: var(--hm-bg-light);
    border-radius: var(--hm-radius-md);
    margin-bottom: var(--hm-space-sm);
}

.score-label {
    width: 80px;
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
}

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

.score-bar-fill {
    height: 100%;
    border-radius: var(--hm-radius-full);
    transition: width var(--hm-transition-slow);
}

.score-value {
    width: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hm-text-primary);
    text-align: right;
    flex-shrink: 0;
}

/* Secondary Types */
.secondary-types {
    background: var(--hm-bg-card);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-lg);
    margin-bottom: var(--hm-space-xl);
    box-shadow: var(--hm-shadow-sm);
}

.secondary-types h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hm-text-primary);
    margin: 0 0 var(--hm-space-md) 0;
}

.secondary-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hm-space-sm);
}

.secondary-tag {
    display: inline-block;
    font-size: 0.875rem;
    padding: var(--hm-space-xs) var(--hm-space-md);
    border-radius: var(--hm-radius-full);
    border: 1px solid;
    background: white;
}

/* Suggestions Box */
.suggestions-box {
    background: linear-gradient(135deg, var(--hm-bg-light) 0%, var(--hm-secondary-light) 100%);
    border-radius: var(--hm-radius-lg);
    padding: var(--hm-space-xl);
    margin-bottom: var(--hm-space-xl);
}

.suggestions-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hm-primary);
    margin: 0 0 var(--hm-space-md) 0;
}

.suggestions-list {
    margin: 0;
    padding-left: var(--hm-space-lg);
}

.suggestions-list li {
    font-size: 0.9375rem;
    color: var(--hm-text-secondary);
    margin-bottom: var(--hm-space-sm);
    line-height: 1.5;
}

.suggestions-list li:last-child {
    margin-bottom: 0;
}

/* Result Actions */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: var(--hm-space-md);
    margin-bottom: var(--hm-space-xl);
}

.action-btn {
    display: block;
    width: 100%;
    padding: var(--hm-space-lg) var(--hm-space-xl);
    border-radius: var(--hm-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--hm-transition-fast);
    border: none;
}

.primary-action {
    background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-light) 100%);
    color: white;
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--hm-shadow-lg);
}

.secondary-action {
    background: var(--hm-bg-card);
    color: var(--hm-text-primary);
    border: 1px solid var(--hm-border);
}

.secondary-action:hover {
    background: var(--hm-bg-light);
    border-color: var(--hm-secondary);
}

/* Disclaimer */
.disclaimer {
    background: var(--hm-bg-light);
    border-radius: var(--hm-radius-md);
    padding: var(--hm-space-md);
    margin-bottom: var(--hm-space-lg);
}

.disclaimer p {
    font-size: 0.75rem;
    color: var(--hm-text-light);
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

/* Retake Link */
.retake-link {
    text-align: center;
}

.retake-link a {
    color: var(--hm-primary);
    font-size: 0.875rem;
    text-decoration: none;
}

.retake-link a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 480px) {
    .herbmend-quiz {
        padding: var(--hm-space-sm);
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
    }
    
    .question-card {
        padding: var(--hm-space-lg);
    }
    
    .question-text {
        font-size: 1.125rem;
    }
    
    .option-item {
        padding: var(--hm-space-md);
    }
    
    .option-text {
        font-size: 0.9375rem;
    }
    
    .result-emoji {
        font-size: 3rem;
    }
    
    .result-title {
        font-size: 1.25rem;
    }
    
    .result-tagline {
        font-size: 1.125rem;
    }
    
    .score-label {
        width: 60px;
        font-size: 0.75rem;
    }
    
    .score-value {
        width: 35px;
        font-size: 0.75rem;
    }
}

/* ========================================
   Animation Classes
   ======================================== */
.fade-in {
    animation: fadeIn var(--hm-transition-normal) ease forwards;
}

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

.slide-in {
    animation: slideIn var(--hm-transition-normal) ease forwards;
}

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

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .herbmend-quiz {
        background: white;
        padding: 0;
    }
    
    .quiz-navigation,
    .language-toggle,
    .result-actions,
    .retake-link {
        display: none;
    }
    
    .question-card,
    .primary-result,
    .scores-list {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   Paywall / Unlock Styles
   ======================================== */

/* Unlock CTA */
.unlock-cta {
    margin: 32px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
    border: 2px solid var(--accent, #2d6a4f);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.unlock-cta-inner {
    padding: 32px 24px;
    text-align: center;
}

.unlock-cta-inner h3 {
    font-size: 1.3rem;
    color: var(--primary, #1b4332);
    margin: 0 0 12px 0;
}


.unlock-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.unlock-includes li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-dark, #1a1a2e);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.unlock-includes li:last-child {
    border-bottom: none;
}

.btn-unlock {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent, #2d6a4f), var(--primary, #1b4332));
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

.unlock-trust {
    margin: 16px 0 4px 0;
    font-size: 0.85rem;
    color: var(--text-light, #6c757d);
    font-style: italic;
}

.unlock-guarantee {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-light, #6c757d);
}

.unlocked-notice {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #40916c;
}

.unlocked-notice h3 {
    color: #2d6a4f;
}

/* Paid sections */
.paid-section {
    position: relative;
    margin: 24px 0;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.paid-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.paid-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary, #1b4332);
}

.paid-badge {
    font-size: 1.2rem;
}

/* Locked state - blur overlay */
.paid-section.locked {
    max-height: 300px;
    overflow: hidden;
}

.paid-section.locked .lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 40%,
        rgba(255,255,255,0.95) 70%,
        rgba(255,255,255,1) 100%
    );
    z-index: 10;
    pointer-events: none;
}

.paid-section.locked > *:not(.paid-section-header):not(.lock-overlay) {
    filter: blur(3px);
    opacity: 0.5;
}

/* Unlocked state */
.paid-section.unlocked {
    max-height: none;
}

.paid-section.unlocked .lock-overlay {
    display: none;
}

/* Acupoint cards */
.acupoint-card {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.acupoint-card:last-child {
    border-bottom: none;
}

.acupoint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.acupoint-code {
    background: var(--accent, #2d6a4f);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.acupoint-name {
    font-weight: 600;
    color: var(--primary, #1b4332);
}

.acupoint-benefit {
    font-size: 0.9rem;
    color: var(--text-medium, #4a5568);
    margin: 4px 0 10px 0;
    font-style: italic;
}

.acupoint-steps {
    margin: 8px 0;
}

.acupoint-steps ol {
    padding-left: 20px;
    margin: 6px 0;
}

.acupoint-steps li {
    font-size: 0.88rem;
    color: var(--text-dark, #1a1a2e);
    padding: 3px 0;
    line-height: 1.5;
}

.acupoint-technique {
    font-size: 0.88rem;
    color: var(--text-dark, #1a1a2e);
    margin: 8px 0;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 6px;
}

.acupoint-caution {
    font-size: 0.82rem;
    color: #92400e;
    background: #fef3c7;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 6px 0 0 0;
}

/* Tea card */
.tea-card {
    padding: 20px;
}

.tea-card h4 {
    margin: 0 0 6px 0;
    color: var(--primary, #1b4332);
    font-size: 1.05rem;
}

.tea-desc {
    color: var(--text-medium, #4a5568);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
}

.tea-brands ul {
    margin: 4px 0;
    padding-left: 20px;
}

.tea-brands li {
    font-size: 0.88rem;
    color: var(--text-dark, #1a1a2e);
    padding: 2px 0;
}

/* Food list */
.food-categories {
    padding: 16px 20px;
}

.food-cat {
    margin-bottom: 16px;
}

.food-cat:last-child {
    margin-bottom: 0;
}

.food-cat h5 {
    margin: 0 0 8px 0;
    font-size: 0.92rem;
}

.food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.food-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.food-tag.green {
    background: #dcfce7;
    color: #166534;
}

.food-tag.yellow {
    background: #fef9c3;
    color: #854d0e;
}

.food-tag.red {
    background: #fee2e2;
    color: #991b1b;
}

/* Week plan */
.weekplan-intro {
    padding: 20px;
}

.weekplan-intro p {
    color: var(--text-medium, #4a5568);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 640px) {
    
    .btn-unlock {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    .unlock-cta-inner {
        padding: 24px 16px;
    }
    
    .paid-section.locked {
        max-height: 220px;
    }
}
/* ===== Analyzing Loading Animation ===== */
.analyzing-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1E3A0E 0%, #2D5016 50%, #E8F5E9 100%);
    padding: 40px 20px;
}
.analyzing-content {
    text-align: center;
    max-width: 460px;
}
.analyzing-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
}
.spinner-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spinRing 1.5s linear infinite;
}
.spinner-ring:nth-child(1) {
    border-top-color: #C8A96E;
    animation-delay: 0s;
}
.spinner-ring:nth-child(2) {
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border-right-color: #D4BC8A;
    animation-delay: 0.3s;
    animation-direction: reverse;
}
.spinner-ring:nth-child(3) {
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border-bottom-color: #E8F5E9;
    animation-delay: 0.6s;
}
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.analyzing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}
.analyzing-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
}
.analyzing-progress {
    max-width: 320px;
    margin: 0 auto;
}
.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #C8A96E, #D4BC8A);
    border-radius: 4px;
    animation: progressGrow 3s ease-in-out forwards;
}
@keyframes progressGrow {
    0% { width: 0%; }
    20% { width: 35%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}
.progress-steps {
    display: flex;
    justify-content: space-between;
}
.progress-step {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    transition: color 0.5s;
}
.progress-step.active {
    color: rgba(255,255,255,0.9);
}

/* ===== Value Anchored Price ===== */
.unlock-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 20px 0;
}
.price-original {
    font-size: 1.4rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}
.price-current {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent, #C8A96E);
}
.price-badge {
    display: inline-block;
    background: #EF5350;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Mobile adjustments for new elements */
@media (max-width: 768px) {
    .analyzing-title { font-size: 1.3rem; }
    .unlock-price-row { gap: 8px; }
    .price-current { font-size: 2rem; }
    .price-original { font-size: 1.1rem; }

    .hero-card-name { font-size: 1.5rem; }
    .hero-card-tagline { font-size: 0.95rem; }
    .hero-card-icon { font-size: 2.4rem; }
    .radar-chart-container { max-width: 340px; }
}

/* ===== V9: Hero Card (screenshot-friendly result card) ===== */
.result-hero-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--card-gradient, linear-gradient(135deg, #43e97b 0%, #38f9d7 100%));
    opacity: 0.95;
}
.hero-card-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 36px 28px;
    color: #fff;
}
.hero-card-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}
.hero-card-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 3px;
}
.hero-card-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 16px;
}
.hero-card-brand {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: rgba(200,169,110,0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* V10: Hero card decorative orbs */
.hero-card-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}
.hero-card-orb-1 {
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
}
.hero-card-orb-2 {
    bottom: -30%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
}
/* V10: Hero card score badge */
.hero-card-score-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    color: #fff;
    letter-spacing: 0.5px;
}
/* V10: 5-Dimension Detail Bars */
.dim-detail-section {
    background: #fafbfc;
    border-radius: 16px;
    padding: 24px 16px;
    margin-bottom: 24px;
}
.dim-detail-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.dim-detail-item:last-child {
    margin-bottom: 0;
}
.dim-detail-item:hover {
    transform: translateX(4px);
}
.dim-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
    flex-shrink: 0;
}
.dim-detail-info {
    flex: 1;
}
.dim-detail-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}
.dim-detail-bar {
    width: 100%;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}
.dim-detail-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}
.dim-detail-score {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 12px;
    flex-shrink: 0;
}
/* V11: Pain Relief Guide */
.pain-relief-section {
    border-left: 4px solid #e74c3c;
}
.pain-relief-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.pain-relief-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.pain-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 6px;
}
.pain-icon {
    font-size: 1.3rem;
}
.pain-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-style: italic;
}


/* V9: Radar Chart upgrade */
.radar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #2D5016;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}
.radar-chart-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.radar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 16px;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4a4a4a;
}
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* V9: Action buttons upgrade */
.share-btn {
    background: linear-gradient(135deg, #2D5016, #3D6A1F) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(45,80,22,0.25);
    border: none !important;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45,80,22,0.35);
}
.share-icon {
    font-size: 1.1rem;
}
.retake-btn {
    background: transparent !important;
    color: #7a7a7a !important;
    border: 1px solid #ddd !important;
}
.retake-btn:hover {
    background: #f5f5f5 !important;
    color: #4a4a4a !important;
}


/* ========================================
   V14: Meridian Blockage Alert
   ======================================== */
.meridian-alert-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    margin: 20px 0;
    border-left: 4px solid #ff6b35;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.meridian-alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.meridian-alert-icon {
    font-size: 1.4rem;
}
.meridian-alert-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d84315;
    margin: 0;
}
.meridian-alert-summary {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
    padding-left: 12px;
    border-left: 2px solid #ffe0b2;
}
.meridian-alert-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.meridian-card {
    border-radius: 12px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.meridian-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.meridian-card.meridian-level-high {
    border-left: 3px solid #ef4444;
    background: #fef2f2;
}
.meridian-card.meridian-level-moderate {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}
.meridian-card.meridian-level-low {
    border-left: 3px solid #10b981;
    background: #f0fdf4;
}
.meridian-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.meridian-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    background: #2D5016;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    padding: 0 6px;
}
.meridian-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}
.meridian-risk {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}
.meridian-risk.high {
    background: #fee2e2;
    color: #dc2626;
}
.meridian-risk.moderate {
    background: #fef3c7;
    color: #d97706;
}
.meridian-risk.low {
    background: #d1fae5;
    color: #059669;
}
.meridian-signals {
    list-style: none;
    padding: 0;
    margin: 0;
}
.meridian-signals li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.meridian-signals li:last-child {
    border-bottom: none;
}
.meridian-signals li:hover {
    background: rgba(0,0,0,0.02);
    border-radius: 6px;
}
.meridian-signals li.checked {
    background: #f0fdf4;
    border-radius: 6px;
}
.meridian-signals li.checked .signal-check {
    color: #2D5016;
}
.signal-check {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 1px;
}
.signal-text {
    flex: 1;
}
.meridian-alert-tip {
    font-size: 0.8rem;
    color: #999;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
    transition: color 0.3s;
}

/* Responsive: Meridian Alert */
@media (max-width: 480px) {
    .meridian-alert-section {
        padding: 16px 12px;
        margin: 16px 0;
    }
    .meridian-card {
        padding: 12px;
    }
    .meridian-alert-header h3 {
        font-size: 1rem;
    }
}
