/* ========================================
   LunarWise — Ancestral Moon Wisdom
   Design: Organic mystical with earthen tones
   ======================================== */

:root {
    /* Core palette - night sky meets earth */
    --bg-deep: #0a0a12;
    --bg-card: #12121c;
    --bg-elevated: #1a1a28;
    
    /* Moon and light */
    --moon-glow: #f4f1e8;
    --moon-shadow: #2a2a3a;
    --star-color: #ffffff;
    
    /* Earth and growth */
    --sap-color: #7cb87c;
    --sap-glow: #a8e6a8;
    --root-brown: #8b6b4a;
    --bark-color: #5c4a3a;
    --canopy-dark: #2d4a2d;
    --canopy-mid: #3d6a3d;
    --canopy-light: #4d8a4d;
    
    /* Accents */
    --gold-accent: #d4a84b;
    --coral-accent: #e07b6b;
    --text-primary: #f4f1e8;
    --text-secondary: #a8a4a0;
    --text-muted: #6b6866;
    
    /* Functional */
    --success: #7cb87c;
    --warning: #d4a84b;
    --danger: #c75a4a;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Nunito Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    position: relative;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-md);
    padding-bottom: var(--space-2xl);
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--star-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--star-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--star-color), transparent),
        radial-gradient(2px 2px at 130px 80px, var(--star-color), transparent),
        radial-gradient(1px 1px at 160px 120px, var(--star-color), transparent),
        radial-gradient(2px 2px at 200px 50px, var(--star-color), transparent),
        radial-gradient(1px 1px at 250px 160px, var(--star-color), transparent),
        radial-gradient(2px 2px at 300px 90px, var(--star-color), transparent),
        radial-gradient(1px 1px at 350px 200px, var(--star-color), transparent),
        radial-gradient(2px 2px at 400px 150px, var(--star-color), transparent);
    background-size: 420px 220px;
    opacity: 0.4;
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.moon-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 241, 232, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Header */
.app-header {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    align-items: center;
}

.logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--moon-glow);
    text-shadow: 0 0 20px rgba(244, 241, 232, 0.5);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--moon-glow);
}

/* Language Selector */
.lang-selector {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-card);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.lang-btn {
    padding: var(--space-xs) var(--space-sm);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    line-height: 1;
    opacity: 0.85;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    opacity: 1;
    background: rgba(212, 168, 75, 0.3);
    border-color: var(--gold-accent);
}

.nav-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-card);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.nav-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--bg-elevated);
    color: var(--moon-glow);
    font-weight: 600;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 5;
}

.view-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-panel.active {
    display: block;
}

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

/* Cards */
.combined-signal-card,
.dual-cycle-card,
.moon-phase-card,
.tree-indicator-card,
.recommendations-card,
.categories-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(244, 241, 232, 0.05);
}

/* Combined Signal Card - Hero Element */
.combined-signal-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(244, 241, 232, 0.1);
    position: relative;
    overflow: hidden;
}

.combined-signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(72, 187, 120, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.signal-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72, 187, 120, 0.15);
    border-radius: var(--radius-md);
}

.signal-content {
    flex: 1;
}

.signal-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--moon-glow);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.signal-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.harmony-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.harmony-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.harmony-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sap-color);
}

.harmony-value.tension {
    color: var(--warning);
}

.harmony-value.moderate {
    color: var(--text-secondary);
}

/* Dual Cycle Card */
.dual-cycle-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: var(--space-md);
}

.cycle-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm);
}

.cycle-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-sm);
}

.divider-symbol {
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.cycle-visual {
    margin-bottom: var(--space-sm);
}

/* Moon in dual display */
.dual-cycle-card .moon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--moon-glow);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(244, 241, 232, 0.3);
}

.dual-cycle-card .moon-surface {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(0,0,0,0.05) 0%, transparent 20%),
        radial-gradient(circle at 60% 60%, rgba(0,0,0,0.08) 0%, transparent 15%);
}

.dual-cycle-card .moon-shadow {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--bg-deep);
    border-radius: 0 50% 50% 0;
    transform-origin: left center;
    transition: all 0.5s ease;
}

/* Sun display */
.sun {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-core {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ffd93d 0%, #f6ad55 70%, #ed8936 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(246, 173, 85, 0.5);
    position: relative;
    z-index: 2;
}

.sun-rays {
    position: absolute;
    width: 50px;
    height: 50px;
    background: 
        linear-gradient(0deg, transparent 40%, rgba(246, 173, 85, 0.3) 50%, transparent 60%),
        linear-gradient(60deg, transparent 40%, rgba(246, 173, 85, 0.3) 50%, transparent 60%),
        linear-gradient(120deg, transparent 40%, rgba(246, 173, 85, 0.3) 50%, transparent 60%);
    border-radius: 50%;
    animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.sun.dormant .sun-core {
    background: radial-gradient(circle, #a0aec0 0%, #718096 70%, #4a5568 100%);
    box-shadow: 0 0 10px rgba(160, 174, 200, 0.3);
}

.sun.dormant .sun-rays {
    opacity: 0.2;
    animation: none;
}

.sun.peak .sun-core {
    box-shadow: 0 0 30px rgba(246, 173, 85, 0.7);
}

.sun.peak .sun-rays {
    animation: sunPulse 2s ease-in-out infinite;
}

.cycle-info {
    margin-bottom: var(--space-sm);
}

.cycle-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cycle-phase {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: var(--space-xs) 0;
}

.phase-keyword {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--gold-accent);
    margin: var(--space-xs) 0;
    opacity: 0.9;
}

.cycle-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cycle-energy {
    width: 100%;
    max-width: 100px;
}

.energy-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 4px;
}

.energy-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

.moon-energy {
    background: linear-gradient(90deg, var(--sap-color), var(--sap-glow));
}

.sun-energy {
    background: linear-gradient(90deg, #ed8936, #ffd93d);
}

.energy-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Current Date */
.current-date {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Tree with solar effects */
.sun-glow-effect {
    transition: opacity 0.8s ease;
}

.ground-shadow {
    fill: rgba(139, 107, 74, 0.2);
    transition: fill 0.5s ease;
}

/* Dual meters */
.dual-meters {
    display: flex;
    gap: var(--space-lg);
    width: 100%;
    max-width: 280px;
    margin-bottom: var(--space-md);
}

.meter-group {
    flex: 1;
}

.meter-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

/* Sap Meter Row - meter + arrow */
.sap-meter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sap Direction Arrow (simplified - arrow only) */
.sap-direction-arrow {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    display: inline-block;
}

/* Rising state (waxing moon) */
.sap-direction-arrow.rising {
    color: #7cb87c;
    animation: bounceUp 1.5s ease-in-out infinite;
}

/* Falling state (waning moon) */
.sap-direction-arrow.falling {
    color: #d4a84b;
    animation: bounceDown 1.5s ease-in-out infinite;
}

/* Peak state (full moon) */
.sap-direction-arrow.peak {
    color: var(--moon-glow);
    animation: pulse 2s ease-in-out infinite;
}

/* Dormant state (new moon) */
.sap-direction-arrow.dormant {
    color: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
}

/* Arrow animations */
@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

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

.sap-meter,
.solar-meter {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.sap-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--root-brown), var(--sap-color), var(--sap-glow));
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

.solar-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a5568, #ed8936, #ffd93d);
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

.cycle-insight {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
}

/* Recommendations header */
.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.rec-header .card-title {
    margin-bottom: 0;
}

.rec-source {
    font-size: 0.65rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    background: rgba(212, 168, 75, 0.1);
    border-radius: var(--radius-sm);
}

/* Phase Description */
.phase-description {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.08) 0%, rgba(212, 168, 75, 0.02) 100%);
    border-left: 3px solid var(--gold-accent);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
}

.phase-desc-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(212, 168, 75, 0.9);
    line-height: 1.6;
    margin: 0;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    letter-spacing: 0.03em;
}

/* Moon Phase Card */
.moon-phase-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.moon-visual {
    flex-shrink: 0;
}

.moon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--moon-glow);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(244, 241, 232, 0.3),
        inset -5px -5px 15px rgba(0, 0, 0, 0.1);
}

.moon-surface {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(0,0,0,0.05) 0%, transparent 20%),
        radial-gradient(circle at 60% 60%, rgba(0,0,0,0.08) 0%, transparent 15%),
        radial-gradient(circle at 45% 25%, rgba(0,0,0,0.04) 0%, transparent 12%);
}

.moon-shadow {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--bg-deep);
    border-radius: 0 50% 50% 0;
    transform-origin: left center;
    transition: transform 0.5s ease, width 0.5s ease;
}

.moon-info {
    flex: 1;
}

.moon-phase-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--moon-glow);
    margin-bottom: var(--space-xs);
}

.moon-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.moon-illumination {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tree Indicator */
.tree-indicator-card {
    text-align: center;
}

.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* Crystal Tree Hybrid - Image + SVG Overlay */
.crystal-tree-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-tree-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* SVG Sap Tube Overlay */
.sap-tube-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 140px;
    pointer-events: none;
    z-index: 10;
}

/* Sap Tube Container */
.tube-container {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Sap Liquid - Smooth transitions */
.sap-liquid {
    transition: y 2s ease-in-out, height 2s ease-in-out;
}

/* Surface Glow - Pulse animation */
.sap-surface {
    transition: y1 2s ease-in-out, y2 2s ease-in-out;
    animation: sapGlow 3s ease-in-out infinite;
}

@keyframes sapGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Floating Sap Particles */
.sap-particle {
    opacity: 0;
    animation: floatUp 2.5s ease-in-out infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: translateY(-15px) scale(1.1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
}

/* Tube Glow - Subtle pulse */
.tube-glow {
    animation: tubeGlowPulse 4s ease-in-out infinite;
}

@keyframes tubeGlowPulse {
    0%, 100% {
        stroke-opacity: 0.3;
        filter: drop-shadow(0 0 3px rgba(249, 224, 77, 0.2));
    }
    50% {
        stroke-opacity: 0.6;
        filter: drop-shadow(0 0 6px rgba(249, 224, 77, 0.4));
    }
}

/* Sap Meter */
.sap-meter {
    width: 100%;
    max-width: 200px;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.sap-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--root-brown), var(--sap-color), var(--sap-glow));
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(124, 184, 124, 0.3);
}

.sap-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xs);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sap-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 280px;
}

/* Mayan Calendar Card */
.mayan-calendar-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(212, 168, 75, 0.2);
    box-shadow: 0 4px 20px rgba(212, 168, 75, 0.1);
}

.mayan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.mayan-subtitle {
    font-size: 0.85rem;
    color: var(--gold-accent);
    opacity: 0.8;
    font-weight: 400;
}

.mayan-display {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.05) 0%, transparent 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.mayan-icon {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(212, 168, 75, 0.3));
    animation: mayanGlow 4s ease-in-out infinite;
}

@keyframes mayanGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(212, 168, 75, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 6px 20px rgba(212, 168, 75, 0.5));
        transform: scale(1.05);
    }
}

.mayan-info {
    flex: 1;
}

.mayan-day {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold-accent);
    margin: 0 0 var(--space-xs) 0;
    letter-spacing: 0.5px;
}

.mayan-meaning {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.mayan-energy {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.mayan-energy .energy-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 100px;
}

.mayan-energy .energy-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mayan-energy .energy-number {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mayan-energy .energy-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 168, 75, 0.15);
}

.mayan-energy-fill {
    height: 100%;
    background: linear-gradient(90deg,
        rgba(212, 168, 75, 0.5) 0%,
        var(--gold-accent) 50%,
        rgba(212, 168, 75, 0.9) 100%);
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
    box-shadow: 0 0 12px rgba(212, 168, 75, 0.4);
}

.mayan-energy .energy-percent {
    font-size: 0.9rem;
    color: var(--gold-accent);
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.mayan-guidance {
    padding: var(--space-md);
    background: linear-gradient(to bottom,
        rgba(212, 168, 75, 0.03) 0%,
        transparent 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 168, 75, 0.1);
}

.mayan-guidance .guidance-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mayan-guidance .guidance-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-accent);
    margin: 0;
}

.mayan-guidance .guidance-title span:first-child {
    font-size: 1.1rem;
}

.mayan-guidance .guidance-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    padding-left: var(--space-lg);
}

/* Recommendations */
.recommendations-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.rec-section {
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.rec-do {
    background: rgba(124, 184, 124, 0.08);
    border: 1px solid rgba(124, 184, 124, 0.2);
}

.rec-avoid {
    background: rgba(199, 90, 74, 0.08);
    border: 1px solid rgba(199, 90, 74, 0.2);
}

.rec-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.rec-do .rec-title { color: var(--success); }
.rec-avoid .rec-title { color: var(--danger); }

.rec-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: bold;
}

.rec-do .rec-icon { background: rgba(124, 184, 124, 0.2); }
.rec-avoid .rec-icon { background: rgba(199, 90, 74, 0.2); }

.rec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.rec-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: var(--space-md);
    position: relative;
}

.rec-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-sm);
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: rgba(244, 241, 232, 0.1);
    transform: translateY(-2px);
}

.category-btn.active {
    background: rgba(212, 168, 75, 0.1);
    border-color: var(--gold-accent);
}

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

.cat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.category-btn.active .cat-label {
    color: var(--gold-accent);
}

/* Garden View */
.garden-header,
.wisdom-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.garden-header h1,
.wisdom-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--moon-glow);
    margin-bottom: var(--space-xs);
}

.garden-subtitle,
.wisdom-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.garden-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.garden-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.action-btn {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: var(--sap-color);
    color: var(--bg-deep);
}

.action-btn.primary:hover {
    background: var(--sap-glow);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(244, 241, 232, 0.1);
}

.action-btn.secondary:hover {
    border-color: rgba(244, 241, 232, 0.2);
}

.garden-log {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 200px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: var(--space-xl) 0;
}

.log-entry {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(244, 241, 232, 0.05);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-phase-icon {
    font-size: 1.25rem;
}

.log-content {
    flex: 1;
}

.log-action {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.log-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.log-alignment {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.log-alignment.good {
    background: rgba(124, 184, 124, 0.2);
    color: var(--success);
}

.log-alignment.excellent {
    background: rgba(72, 187, 120, 0.3);
    color: #48bb78;
}

.log-alignment.fair {
    background: rgba(212, 168, 75, 0.2);
    color: var(--warning);
}

.log-alignment.neutral {
    background: rgba(212, 168, 75, 0.2);
    color: var(--warning);
}

.log-alignment.poor {
    background: rgba(199, 90, 74, 0.2);
    color: var(--danger);
}

/* Modal feedback states */
.lunar-feedback.excellent {
    background: rgba(72, 187, 120, 0.15);
}

.lunar-feedback.excellent .feedback-text {
    color: #48bb78;
}

/* Wisdom View */
.wisdom-traditions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.tradition-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tradition-card:hover:not(.locked) {
    border-color: var(--gold-accent);
    transform: translateY(-2px);
}

.tradition-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.tradition-card.selected {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 4px 15px rgba(212, 168, 75, 0.15);
}

.tradition-icon {
    font-size: 2rem;
}

.tradition-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    min-width: 120px;
}

.tradition-card p {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    order: 3;
}

.tradition-status {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.tradition-status.unlocked {
    background: rgba(124, 184, 124, 0.15);
    color: var(--success);
}

.wisdom-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.wisdom-article {
    display: none;
}

.wisdom-article.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.wisdom-article h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--moon-glow);
    margin-bottom: var(--space-md);
}

.wisdom-article p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.wisdom-note {
    background: rgba(212, 168, 75, 0.08);
    border-left: 3px solid var(--gold-accent);
    padding: var(--space-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: var(--space-lg);
}

.note-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-xs);
}

.wisdom-note p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 18, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(244, 241, 232, 0.05);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--moon-glow);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.modal-body {
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid rgba(244, 241, 232, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.lunar-feedback {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(124, 184, 124, 0.1);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

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

.feedback-text {
    font-size: 0.85rem;
    color: var(--sap-color);
    line-height: 1.4;
}

.lunar-feedback.warning {
    background: rgba(212, 168, 75, 0.1);
}

.lunar-feedback.warning .feedback-text {
    color: var(--warning);
}

.modal-footer {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid rgba(244, 241, 232, 0.05);
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.btn-save {
    background: var(--sap-color);
    color: var(--bg-deep);
}

.btn-save:hover {
    background: var(--sap-glow);
}

/* ==================== CYCLES VIEW ==================== */

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

.cycles-subtitle {
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.year-wheel-container {
    display: flex;
    justify-content: center;
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
}

.year-wheel {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.solar-segment {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.solar-segment:hover {
    opacity: 0.8;
}

.month-label {
    fill: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}

.center-bg {
    fill: var(--bg-deep);
    stroke: var(--gold-accent);
    stroke-width: 2;
}

.center-date,
.center-signal {
    fill: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 700;
    text-anchor: middle;
}

.center-date {
    font-size: 14px;
}

.center-signal {
    font-size: 10px;
    fill: var(--gold-accent);
    text-transform: uppercase;
}

.optimal-windows-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.windows-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.window-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 4px solid var(--sap-color);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-xs) var(--space-md);
    align-items: center;
}

.window-item.excellent {
    border-left-color: var(--gold-accent);
    background: linear-gradient(
        to right,
        rgba(212, 168, 75, 0.1) 0%,
        var(--bg-elevated) 100%
    );
}

.window-item.good {
    border-left-color: var(--sap-color);
}

.window-date {
    grid-column: 1;
    grid-row: 1 / 3;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: center;
    min-width: 60px;
}

.window-action {
    grid-column: 2;
    grid-row: 1;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.window-phases {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.window-separator {
    opacity: 0.5;
}

.window-alignment {
    grid-column: 3;
    grid-row: 1 / 3;
    padding: var(--space-xs) var(--space-sm);
    background: var(--sap-color);
    color: var(--bg-deep);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.window-item.excellent .window-alignment {
    background: var(--gold-accent);
}

.no-windows {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--space-xl);
    font-style: italic;
}

.cycles-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

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

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(244, 241, 232, 0.1);
}

/* ========== Weather Card ========== */

.weather-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Subtle temperature-based gradient overlays */
.weather-card.weather-cold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.weather-card.weather-cool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(104, 211, 145, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.weather-card.weather-warm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(251, 191, 36, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.weather-card.weather-hot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(251, 146, 60, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.weather-card > * {
    position: relative;
    z-index: 1;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.weather-location-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.location-btn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--gold-accent);
}

.location-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.location-input {
    background: rgba(26, 26, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    width: 140px;
    transition: all 0.3s ease;
}

.location-input:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(26, 26, 40, 0.8);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.location-input::placeholder {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Loading State */
.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold-accent);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.weather-loading p {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    opacity: 0.8;
}

/* Error State */
.weather-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
}

.weather-error p {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    opacity: 0.8;
    text-align: center;
}

.retry-btn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    color: var(--gold-accent);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

/* Weather Content */
.weather-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Hero Weather Display */
.weather-current {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
}

.weather-icon-large {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
    animation: floatIcon 6s ease-in-out infinite;
}

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

.weather-temp-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
}

.weather-temp {
    font-size: 4rem;
    font-weight: 300;
    font-family: var(--font-accent);
    line-height: 0.9;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.weather-condition {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-family: var(--font-accent);
    font-style: italic;
    opacity: 0.8;
}

.weather-location-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    margin-top: calc(-1 * var(--space-xs));
    font-family: var(--font-body);
}

/* Weather Details Grid */
.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
}

.detail-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: var(--space-xs);
    opacity: 0.9;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1;
}

.detail-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    margin-top: var(--space-xs);
}

/* Disease Risk Indicator - Subtle Badge */
.disease-risk-indicator {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.risk-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-body);
}

.risk-badge.risk-low {
    background: rgba(72, 187, 120, 0.15);
    color: #68d391;
    border: 1px solid rgba(72, 187, 120, 0.25);
}

.risk-badge.risk-medium {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.risk-badge.risk-high {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.risk-badge.risk-unknown {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.risk-details {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    font-family: var(--font-body);
    font-style: italic;
    opacity: 0.8;
}

/* 3-Day Forecast - Horizontal Cards */
.weather-forecast {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.forecast-title {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    font-family: var(--font-body);
    text-align: center;
}

.forecast-days {
    display: flex;
    gap: var(--space-sm);
    justify-content: space-between;
}

.forecast-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forecast-day:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.forecast-day-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    font-family: var(--font-body);
}

.forecast-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin: var(--space-xs) 0;
}

.forecast-temps {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    font-family: var(--font-body);
}

.temp-max {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.temp-min {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Weather Tip - Wisdom Note Style */
.weather-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
    border-radius: var(--radius-md);
    border-left: 3px solid rgba(251, 191, 36, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tip-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.7;
    margin-top: 2px;
}

.tip-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.tip-title {
    font-size: 0.6875rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    font-family: var(--font-body);
    opacity: 0.8;
}

.tip-text {
    font-size: 0.9375rem;
    font-family: var(--font-accent);
    font-style: italic;
    color: rgba(251, 191, 36, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Weather Card */
@media (max-width: 768px) {
    .weather-temp {
        font-size: 3rem;
    }

    .weather-icon-large {
        font-size: 4rem;
    }

    .forecast-icon {
        font-size: 2rem;
    }

    .forecast-day {
        padding: var(--space-sm);
    }

    .tip-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 560px) {
    .weather-header {
        flex-wrap: wrap;
    }

    .location-input {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .weather-main {
        gap: var(--space-md);
    }

    .weather-temp {
        font-size: 2.5rem;
    }

    .weather-icon-large {
        font-size: 3.5rem;
    }

    .weather-details {
        gap: var(--space-md);
        padding: var(--space-sm);
    }

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

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

    .forecast-days {
        flex-direction: column;
    }

    .forecast-day {
        flex-direction: row;
        justify-content: space-between;
        padding: var(--space-sm) var(--space-md);
    }

    .forecast-icon {
        order: 2;
        font-size: 2rem;
    }

    .forecast-day-name {
        order: 1;
    }

    .forecast-temps {
        order: 3;
    }
}

/* ========== TOAST NOTIFICATIONS ========== */

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(212, 175, 55, 0.95);
    color: var(--bg-deep);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.9rem;
    z-index: 10000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(10px);
}

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

/* ========== COOKIE CONSENT BANNER ========== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--bg-elevated) 0%, rgba(26, 26, 40, 0.98) 100%);
    border-top: 1px solid rgba(212, 168, 75, 0.2);
    padding: var(--space-lg);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    animation: slideUpBanner 0.5s ease-out;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

.cookie-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-body);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    width: 100%;
    justify-content: center;
}

.btn-accept {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gold-accent);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: #e0b84d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 75, 0.3);
}

.btn-learn {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(244, 241, 232, 0.2);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-learn:hover {
    color: var(--text-primary);
    border-color: rgba(244, 241, 232, 0.3);
    transform: translateY(-2px);
}

/* ========== STORAGE DISCLAIMER ========== */

.storage-disclaimer {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.05) 0%, rgba(13, 115, 119, 0.05) 100%);
    border: 1px solid rgba(212, 168, 75, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) auto;
    max-width: 800px;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.disclaimer-cloud {
    display: inline-block;
    color: var(--gold-accent);
    font-style: italic;
    margin-left: var(--space-xs);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .storage-disclaimer {
        padding: var(--space-sm) var(--space-md);
        margin: var(--space-md) auto;
    }

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

    .disclaimer-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .storage-disclaimer {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }

    .disclaimer-icon {
        margin: 0 auto;
    }
}

/* ========== DISCLAIMER MODAL (FIRST TIME) ========== */

.disclaimer-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.disclaimer-modal-backdrop.show {
    opacity: 1;
}

.disclaimer-modal {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 26, 40, 0.95) 100%);
    border: 2px solid var(--gold-accent);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.disclaimer-modal-backdrop.show .disclaimer-modal {
    transform: translateY(0);
}

.disclaimer-modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
}

.disclaimer-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.disclaimer-modal-header h3::before {
    content: 'ℹ️';
    font-size: 1.75rem;
}

.disclaimer-modal-body {
    padding: var(--space-lg);
}

.disclaimer-modal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.disclaimer-modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(212, 168, 75, 0.1);
    display: flex;
    justify-content: center;
}

.disclaimer-understood-btn {
    background: linear-gradient(135deg, var(--gold-accent) 0%, rgba(217, 119, 6, 0.8) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disclaimer-understood-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

@media (max-width: 480px) {
    .disclaimer-modal {
        width: 95%;
        max-width: 95%;
    }

    .disclaimer-modal-header h3 {
        font-size: 1.25rem;
    }

    .disclaimer-modal-body p {
        font-size: 0.85rem;
    }
}

/* ========== SHARE SECTION ========== */

.share-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    border: 1px solid rgba(212, 168, 75, 0.15);
    text-align: center;
}

.share-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--moon-glow);
    margin-bottom: var(--space-xs);
}

.share-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid rgba(244, 241, 232, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
    flex-shrink: 0;
}

/* Individual share button colors */
.share-twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
    color: #1da1f2;
}

.share-facebook:hover {
    background: rgba(66, 103, 178, 0.2);
    border-color: rgba(66, 103, 178, 0.4);
    color: #4267b2;
}

.share-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
}

.share-telegram:hover {
    background: rgba(38, 166, 228, 0.2);
    border-color: rgba(38, 166, 228, 0.4);
    color: #26a6e4;
}

.share-linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.4);
    color: #0077b5;
}

.share-copy {
    flex: 1;
    max-width: 200px;
    background: rgba(212, 168, 75, 0.1);
    border-color: rgba(212, 168, 75, 0.2);
}

.share-copy:hover {
    background: rgba(212, 168, 75, 0.2);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

/* Ko-fi Support Link */
.support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    margin-top: var(--space-lg);
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 2px solid rgba(212, 168, 75, 0.3);
    border-radius: var(--radius-lg);
    color: var(--gold-accent);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.support-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.2), transparent);
    transition: left 0.5s ease;
}

.support-link:hover::before {
    left: 100%;
}

.support-link:hover {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
    border-color: var(--gold-accent);
    color: var(--moon-glow);
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(212, 168, 75, 0.3),
        0 0 40px rgba(212, 168, 75, 0.15);
}

.support-link:active {
    transform: translateY(-1px);
}

.support-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: coffeeFloat 3s ease-in-out infinite;
}

@keyframes coffeeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-2deg);
    }
    75% {
        transform: translateY(-3px) rotate(2deg);
    }
}

/* Feedback Link */
.feedback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    margin-top: var(--space-md);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    color: rgba(167, 139, 250, 0.95);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feedback-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.feedback-link:hover::before {
    left: 100%;
}

.feedback-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-color: rgba(167, 139, 250, 0.6);
    color: rgba(196, 181, 253, 1);
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(139, 92, 246, 0.15);
}

.feedback-link:active {
    transform: translateY(-1px);
}

.feedback-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: feedbackPulse 2.5s ease-in-out infinite;
}

@keyframes feedbackPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Share section responsive */
@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        width: 100%;
        max-width: none;
    }

    .share-copy {
        max-width: none;
    }
}

/* ========== LEGAL MODALS ========== */

.legal-modal-content {
    max-width: 600px;
    max-height: 85vh;
}

.legal-modal-body {
    max-height: calc(85vh - 140px);
    overflow-y: auto;
    padding: var(--space-lg);
}

.legal-modal-body h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gold-accent);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.legal-modal-body ul {
    list-style: none;
    padding-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.legal-modal-body ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
    padding-left: var(--space-md);
    position: relative;
}

.legal-modal-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-accent);
    font-weight: bold;
}

.legal-modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Legal modal scrollbar styling */
.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 75, 0.3);
    border-radius: var(--radius-sm);
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 75, 0.5);
}

/* Responsive */
@media (max-width: 360px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .garden-stats {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        padding: var(--space-sm);
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .btn-accept,
    .btn-learn {
        width: 100%;
    }
}

/* ========== TUTORIAL / LEARN VIEW ========== */

.tutorial-screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tutorial-screen.active {
    display: block;
}

.tutorial-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding-bottom: var(--space-2xl);
}

.tutorial-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--moon-glow);
    text-align: center;
    margin-bottom: var(--space-md);
}

.tutorial-body {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    line-height: 1.7;
}

.tutorial-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.tutorial-body p:last-child {
    margin-bottom: 0;
}

/* Screen 1: Introduction Visual */
.tutorial-visual {
    display: flex;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.moon-ocean-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.visual-moon {
    font-size: 4rem;
    animation: moonFloat 3s ease-in-out infinite;
}

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

.visual-waves {
    font-size: 2rem;
    color: var(--sap-color);
    animation: wavePulse 2s ease-in-out infinite;
}

@keyframes wavePulse {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

.visual-plant {
    font-size: 3rem;
    animation: plantGrow 2s ease-in-out infinite;
}

@keyframes plantGrow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Screen 2: Demo Tree Container */
.demo-tree-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.demo-crystal-tree-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-crystal-tree-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.demo-sap-tube-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 140px;
    pointer-events: none;
    z-index: 10;
}

.demo-phase-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-elevated);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
}

.demo-phase-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--moon-glow);
}

.demo-sap-level {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sap-color);
    font-family: var(--font-display);
}

.demo-direction-arrow {
    font-size: 1.5rem;
}

.demo-direction-arrow.rising {
    color: #7cb87c;
    animation: bounceUp 1.5s ease-in-out infinite;
}

.demo-direction-arrow.falling {
    color: #d4a84b;
    animation: bounceDown 1.5s ease-in-out infinite;
}

.demo-direction-arrow.peak,
.demo-direction-arrow.dormant {
    color: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
}

.demo-controls {
    display: flex;
    gap: var(--space-sm);
    width: 100%;
    max-width: 300px;
}

.demo-btn {
    flex: 1;
    padding: var(--space-md);
    border: none;
    background: var(--sap-color);
    color: var(--bg-deep);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn:hover:not(:disabled) {
    background: var(--sap-glow);
    transform: translateY(-2px);
}

.demo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.demo-btn.secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(244, 241, 232, 0.1);
}

.demo-btn.secondary:hover {
    border-color: rgba(244, 241, 232, 0.2);
    background: var(--bg-card);
}

/* Screen 3: Practical Guide */
.practical-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.practical-section:last-child {
    margin-bottom: 0;
}

.practical-subtitle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.arrow-up {
    font-size: 1.25rem;
    color: #7cb87c;
    animation: bounceUp 1.5s ease-in-out infinite;
}

.arrow-down {
    font-size: 1.25rem;
    color: #d4a84b;
    animation: bounceDown 1.5s ease-in-out infinite;
}

.practical-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.practical-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Screen 4: Solar Cycles */
.solar-visual {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
}

.cycle-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cycle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    flex: 1;
    min-width: 80px;
}

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

.cycle-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.cycle-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.cycle-plus,
.cycle-equals {
    font-size: 1.5rem;
    color: var(--gold-accent);
    font-weight: 600;
}

.tutorial-finish-btn {
    align-self: center;
    padding: var(--space-md) var(--space-xl);
    background: var(--gold-accent);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-lg);
}

.tutorial-finish-btn:hover {
    background: #e0b84d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 75, 0.3);
}

/* Tutorial Navigation */
.tutorial-nav {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-elevated);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 50;
}

.tutorial-nav-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(244, 241, 232, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-nav-btn:hover {
    border-color: rgba(244, 241, 232, 0.2);
    transform: translateY(-1px);
}

.tutorial-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold-accent);
    opacity: 1;
    transform: scale(1.3);
}

.dot:hover {
    opacity: 0.6;
}

.tutorial-skip-btn {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(244, 241, 232, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 50;
}

.tutorial-skip-btn:hover {
    color: var(--text-primary);
    border-color: rgba(244, 241, 232, 0.2);
}

/* Tutorial Responsive */
@media (max-width: 480px) {
    .tutorial-title {
        font-size: 1.5rem;
    }

    .demo-crystal-tree-wrapper {
        width: 200px;
        height: 200px;
    }

    .cycle-comparison {
        flex-direction: column;
        gap: var(--space-md);
    }

    .cycle-plus,
    .cycle-equals {
        transform: rotate(90deg);
    }

    .tutorial-nav {
        bottom: var(--space-md);
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-md);
    }

    .tutorial-nav-btn {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

/* ============================================
   MY LUNAR DIARY QUICK CARD
   ============================================ */
.diary-quick-card {
    background: var(--bg-card);
    border: 1px solid rgba(244, 241, 232, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Header Section */
.diary-quick-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.diary-quick-title-section {
    flex: 1;
}

.diary-quick-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
    letter-spacing: 0.5px;
}

.diary-quick-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.diary-moon-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(74, 26, 107, 0.3) 0%, rgba(13, 115, 119, 0.3) 100%);
    border: 2px solid var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diary-moon-emoji {
    font-size: 1.5rem;
}

/* Content Area */
.diary-quick-content {
    min-height: 80px;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

/* EMPTY STATE */
.diary-empty-state {
    text-align: center;
    padding: var(--space-sm) 0;
}

.diary-empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
    opacity: 0.5;
}

.diary-empty-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-xs) 0;
}

.diary-empty-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* ENTRY SUMMARY */
.diary-entry-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.diary-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
}

.diary-summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.diary-summary-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.diary-score-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    background: rgba(212, 175, 55, 0.1);
}

/* Score color variants */
.diary-score-value.score-low {
    color: #f87171;
}

.diary-score-value.score-medium {
    color: #fbbf24;
}

.diary-score-value.score-high {
    color: #68d391;
}

/* LOADING STATE */
.diary-loading-state {
    text-align: center;
    padding: var(--space-md) 0;
}

.diary-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.diary-loading-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* ACTION BUTTONS */
.diary-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.diary-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.diary-quick-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.diary-btn-icon {
    font-size: 1.1rem;
}

.diary-btn-text {
    white-space: nowrap;
}

/* Primary button variant (Record Today) */
.diary-record-btn {
    background: linear-gradient(135deg, rgba(74, 26, 107, 0.2) 0%, rgba(13, 115, 119, 0.2) 100%);
    border-color: var(--gold-accent);
}

.diary-record-btn:hover {
    background: linear-gradient(135deg, rgba(74, 26, 107, 0.3) 0%, rgba(13, 115, 119, 0.3) 100%);
    border-color: var(--gold-accent);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 480px) {
    .diary-quick-card {
        padding: var(--space-md);
    }

    .diary-quick-title {
        font-size: 1.1rem;
    }

    .diary-moon-badge {
        width: 40px;
        height: 40px;
    }

    .diary-moon-emoji {
        font-size: 1.25rem;
    }

    .diary-quick-actions {
        grid-template-columns: 1fr;
    }

    .diary-quick-btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .diary-btn-text {
        font-size: 0.8rem;
    }

    .diary-summary-label,
    .diary-summary-value {
        font-size: 0.75rem;
    }
}
