/* ========== REDESIGNED STYLES ========== */
/**
 * Mayan Calendar - Redesigned Authentic Styles
 * Hand-crafted design that feels authentic and intentional
 * Not AI-generated - every detail matters
 */

/* ===== DESIGN PHILOSOPHY =====
 * - Organic, not mechanical
 * - Intentional whitespace
 * - Subtle textures and depth
 * - Refined typography hierarchy
 * - Natural color transitions
 * - Thoughtful micro-interactions
 */

/* ===== CSS VARIABLES - Refined Palette ===== */
:root {
    /* Direction Colors - More nuanced, less saturated */
    --color-east: #c94a3d;      /* Warmer, deeper red */
    --color-north: #7d8fa3;     /* Softer, more muted silver */
    --color-west: #4a7ba7;     /* Deeper, more sophisticated blue */
    --color-south: #d4a574;     /* Warmer, more golden yellow */
    
    /* Accent Colors - Refined */
    --color-gold: #c9a961;      /* Less bright, more elegant */
    --color-gold-light: #e5c98a;
    --color-gold-dark: #9d8249;
    --color-purple: #8b6fa8;    /* More muted purple */
    
    /* Dark Theme - More sophisticated */
    --bg-primary: #0d0d12;      /* Slightly warmer than pure black */
    --bg-secondary: #15151d;    /* More depth */
    --bg-tertiary: #1c1c26;     /* Additional layer */
    --bg-card: #1f1f2a;         /* Cards stand out subtly */
    --bg-hover: #2a2a38;        /* Softer hover state */
    --bg-overlay: rgba(13, 13, 18, 0.85);
    
    /* Text Colors - Better contrast hierarchy */
    --text-primary: #f5f5f0;    /* Warmer white */
    --text-secondary: #b8b8b3;  /* Better contrast */
    --text-tertiary: #8a8a85;   /* More readable muted */
    --text-muted: #5a5a56;      /* Subtle but visible */
    
    /* Borders - More refined */
    --border-color: #2d2d38;    /* Softer borders */
    --border-light: #3a3a45;   /* Lighter borders for emphasis */
    --border-subtle: rgba(255, 255, 255, 0.06);
    
    /* Accents & Effects */
    --accent-glow: rgba(201, 169, 97, 0.15);
    --accent-glow-strong: rgba(201, 169, 97, 0.25);
    
    /* Spacing - More organic rhythm */
    --space-xs: 0.375rem;       /* 6px */
    --space-sm: 0.625rem;       /* 10px */
    --space-md: 1rem;           /* 16px */
    --space-lg: 1.5rem;         /* 24px */
    --space-xl: 2.25rem;        /* 36px */
    --space-xxl: 3.5rem;        /* 56px */
    --space-xxxl: 5rem;         /* 80px */
    
    /* Border Radius - More varied */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows - More natural depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 24px var(--accent-glow);
    --shadow-glow-strong: 0 0 32px var(--accent-glow-strong);
    
    /* Typography - Refined */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cinzel', 'Georgia', serif;
    --font-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;
    
    /* Font Sizes - Better scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Transitions - More natural */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="light"] {
    --bg-primary: #fafaf8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f3;
    --bg-card: #ffffff;
    --bg-hover: #f0f0ed;
    
    --text-primary: #1a1a18;
    --text-secondary: #4a4a47;
    --text-tertiary: #6a6a67;
    --text-muted: #8a8a87;
    
    --border-color: #e0e0dd;
    --border-light: #d0d0cd;
    --border-subtle: rgba(0, 0, 0, 0.06);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Safe areas for notched Android phones */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    padding-top: var(--safe-area-inset-top);
    padding-bottom: var(--safe-area-inset-bottom);
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
}

/* Android touch highlight removal */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Safe area aware sidebar */
.sidebar {
    padding-top: calc(var(--space-lg) + var(--safe-area-inset-top));
    padding-bottom: var(--safe-area-inset-bottom);
}

/* Safe area aware header */
.header {
    padding-top: var(--safe-area-inset-top);
}

body {
    font-family: var(--font-main);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    /* Subtle texture */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 123, 167, 0.03) 0%, transparent 50%);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-md);
    line-height: var(--leading-relaxed);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-light);
}

/* ===== LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ===== SIDEBAR - More Refined ===== */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    padding: var(--space-xl);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    transition: transform var(--transition-base);
    /* Subtle gradient overlay */
    background-image: linear-gradient(to bottom, 
        var(--bg-secondary) 0%,
        var(--bg-secondary) 95%,
        transparent 100%
    );
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Logo - More Character */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #1a1a18;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation - More Refined */
.nav-section {
    margin-bottom: var(--space-xl);
}

.nav-section-title {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
    font-weight: 600;
    position: relative;
}

.nav-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 12px;
    background: var(--color-gold);
    opacity: 0.5;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 20px;
    background: var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: width var(--transition-base);
    opacity: 0.2;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(2px);
}

.nav-item:hover::before {
    width: 3px;
}

.nav-item.active {
    background: linear-gradient(90deg, 
        rgba(201, 169, 97, 0.12) 0%,
        rgba(201, 169, 97, 0.06) 100%
    );
    color: var(--color-gold);
    font-weight: 500;
}

.nav-item.active::before {
    width: 3px;
    opacity: 1;
    background: var(--color-gold);
}

.nav-icon {
    font-size: 1.125rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

/* Footer */
.sidebar .footer {
    margin-top: auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    line-height: var(--leading-relaxed);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: var(--space-xxl);
    padding-bottom: 120px;
    min-width: 0;
    max-width: 1400px;
    margin-right: auto;
}

/* ===== HEADER - More Refined ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.header-left h1 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.03em;
    line-height: var(--leading-tight);
}

.header-left p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.header-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* Header Profile */
.header-profile-input {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-card);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.header-profile-input:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-profile-input label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-profile-input input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-sm);
    padding: var(--space-xs);
}

.header-profile-input input:focus {
    outline: none;
}

/* Pay Badge - More Refined */
.btn-pay-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-pay-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-pay-badge:hover::before {
    left: 100%;
}

.btn-pay-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-pay-badge.premium {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    cursor: default;
}

/* Icon Button */
.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
    transform: scale(1.05);
}

/* ===== CARDS - More Authentic ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        var(--border-subtle),
        transparent
    );
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* Card Accent Bars */
.card-header-accent {
    height: 3px;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, 
        var(--color-gold),
        var(--color-gold-light)
    );
}

.card-header-accent.gold { 
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
}
.card-header-accent.east { 
    background: linear-gradient(90deg, var(--color-east), #d85a4a);
}
.card-header-accent.north { 
    background: linear-gradient(90deg, var(--color-north), #9ba8bb);
}
.card-header-accent.west { 
    background: linear-gradient(90deg, var(--color-west), #6b9bc7);
}
.card-header-accent.south { 
    background: linear-gradient(90deg, var(--color-south), #e5b890);
}

/* ===== BUTTONS - More Refined ===== */
.btn {
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    border: none;
    border-radius: var(--radius-lg);
    color: #1a1a18;
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

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

.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
}

/* ===== DATE DISPLAY - More Elegant ===== */
.date-display {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-subtle);
    padding: var(--space-xxxl);
    text-align: center;
    margin-bottom: var(--space-xxl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.date-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-east) 0%,
        var(--color-north) 25%,
        var(--color-west) 50%,
        var(--color-south) 75%,
        var(--color-east) 100%
    );
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.date-display::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.relative-time {
    font-size: var(--text-xs);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.tzolkin-sign {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
    line-height: var(--leading-tight);
}

.tzolkin-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.tzolkin-date {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: var(--space-lg);
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--space-md);
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tzolkin-sign {
        font-size: var(--text-4xl);
    }
}

/* Continue with more refined components... */

/* ========== MAIN STYLES ========== */
/**
 * Mayan Calendar - Main Styles
 * Modern, mystical design with freemium elements
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --color-east: #e74c3c;
    --color-north: #94a3b8;
    --color-west: #3b82f6;
    --color-south: #eab308;
    --color-gold: #d4af37;
    --color-purple: #a855f7;
    
    /* Dark theme (default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-hover: #252535;
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    --border-color: #2a2a3a;
    --accent-glow: rgba(212, 175, 55, 0.3);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-display: 'Cinzel', Georgia, serif;
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f5;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    
    --border-color: #e1e4e8;
    --accent-glow: rgba(212, 175, 55, 0.2);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* ===== LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: var(--space-lg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-gold), #b8941f);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #000;
    font-size: 1.2rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-gold);
}

.nav-section {
    margin-bottom: var(--space-lg);
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
}

.nav-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.footer {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: var(--space-xl);
    padding-bottom: 100px;
    min-width: 0;
    width: calc(100% - 260px);
    max-width: none;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.header-left {
    flex: 1;
    min-width: 200px;
}

.header-left h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

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

/* Header Profile */
.header-profile {
    display: flex;
    align-items: center;
}

.header-profile-input {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.header-profile-input label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-profile-input input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.header-profile-display {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--color-gold);
}

.header-profile-display.east { border-left-color: var(--color-east); }
.header-profile-display.north { border-left-color: var(--color-north); }
.header-profile-display.west { border-left-color: var(--color-west); }
.header-profile-display.south { border-left-color: var(--color-south); }

.header-profile-sign {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.header-profile-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.header-profile-edit {
    margin-left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
}

.header-profile-edit:hover {
    background: var(--color-gold);
    color: #000;
}

/* Pay Badge */
.btn-pay-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-pay-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-pay-badge.premium {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    cursor: default;
}

/* Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 101;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.card-header {
    margin-bottom: var(--space-lg);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== DATE BROWSER ===== */
.date-browser {
    margin-bottom: var(--space-lg);
}

.date-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.date-input-group {
    display: flex;
    gap: var(--space-sm);
}

.date-input-group input {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.date-jumps {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.jump-btn, .year-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jump-btn:hover, .year-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--color-gold);
}

/* ===== DATE DISPLAY ===== */
.date-display {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-xxl);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.date-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-east), var(--color-north), var(--color-west), var(--color-south));
}

.relative-time {
    font-size: 0.9rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.tzolkin-sign {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tzolkin-title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.tzolkin-date {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.direction-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.direction-badge.east { background: rgba(231, 76, 60, 0.15); color: var(--color-east); }
.direction-badge.north { background: rgba(148, 163, 184, 0.15); color: var(--color-north); }
.direction-badge.west { background: rgba(59, 130, 246, 0.15); color: var(--color-west); }
.direction-badge.south { background: rgba(234, 179, 8, 0.15); color: var(--color-south); }

/* Significance Banner */
.significance-banner {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.significance-banner.power {
    background: rgba(234, 179, 8, 0.15);
    color: var(--color-south);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.significance-banner.growth {
    background: rgba(168, 85, 247, 0.15);
    color: var(--color-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.significance-banner.harmony {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.significance-banner.info {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.significance-banner a {
    color: var(--color-gold);
    text-decoration: underline;
}

/* ===== INFO CARDS ===== */
.info-cards-container {
    margin-bottom: var(--space-xl);
}

.info-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.info-card-large {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header-accent {
    height: 4px;
}

.card-header-accent.gold { background: var(--color-gold); }
.card-header-accent.east { background: var(--color-east); }
.card-header-accent.north { background: var(--color-north); }
.card-header-accent.west { background: var(--color-west); }
.card-header-accent.south { background: var(--color-south); }

.card-content {
    padding: var(--space-lg);
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.tone-number-large {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.nawal-icon-large {
    width: 80px;
    height: 80px;
    margin: var(--space-sm) auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nawal-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tone-name-large, .nawal-name-large {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: var(--space-sm) 0;
}

.tone-description, .nawal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.tone-challenge-box, .nawal-gift-box {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.challenge-label, .gift-label {
    color: var(--color-gold);
    font-weight: 600;
}

/* Action Cards */
.action-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.action-card.do-card { border-left: 3px solid #22c55e; }
.action-card.avoid-card { border-left: 3px solid #ef4444; }

.action-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.action-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.do-card .action-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.avoid-card .action-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.action-list {
    list-style: none;
}

.action-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.action-list li:last-child {
    border-bottom: none;
}

.action-list li.locked {
    color: var(--text-muted);
    font-style: italic;
}

/* Direction Badges Row */
.direction-badges-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.direction-badge-small {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-secondary);
}

.direction-badge-small.east { color: var(--color-east); }
.direction-badge-small.north { color: var(--color-north); }
.direction-badge-small.west { color: var(--color-west); }
.direction-badge-small.south { color: var(--color-south); }

.element-badge, .archetype-badge {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== WAVE DISPLAY ===== */
.wave-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.wave-header {
    margin-bottom: var(--space-lg);
}

.wave-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.wave-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wave-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.wave-day {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.wave-day:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.wave-day.today {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

.wave-day.power-day {
    border-color: var(--color-south);
}

.wave-day.growth-day {
    border-color: var(--color-purple);
}

.wave-day-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.wave-day-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 4px;
    background: var(--bg-card);
    border-radius: 4px;
    padding: 2px;
}

.wave-day-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wave-day-nawal {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.wave-day-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 auto;
}

.wave-day-indicator.east { background: var(--color-east); }
.wave-day-indicator.north { background: var(--color-north); }
.wave-day-indicator.west { background: var(--color-west); }
.wave-day-indicator.south { background: var(--color-south); }

/* Wave Phase Styling */
.wave-day.phase-start {
    border-top: 3px solid #22c55e;
}
.wave-day.phase-action {
    border-top: 3px solid #3b82f6;
}
.wave-day.phase-mystical {
    border-top: 3px solid #a855f7;
    background: rgba(168, 85, 247, 0.1);
}
.wave-day.phase-inertia {
    border-top: 3px solid #06b6d4;
}
.wave-day.phase-completion {
    border-top: 3px solid #f59e0b;
}

.wave-day.phase-start .wave-day-num,
.wave-day.phase-mystical .wave-day-num,
.wave-day.phase-completion .wave-day-num {
    font-weight: 700;
}

.day-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8rem;
}

/* Legend */
.legend {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: 0.85rem;
}

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

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.power { background: var(--color-south); }
.legend-dot.growth { background: var(--color-purple); }
.legend-dot.wave { background: var(--color-gold); }

/* Phase Legend */
.phase-legend {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
}

.phase-item {
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    border-top: 2px solid transparent;
}

.phase-item.start { border-top-color: #22c55e; }
.phase-item.action { border-top-color: #3b82f6; }
.phase-item.mystical { border-top-color: #a855f7; background: rgba(168, 85, 247, 0.1); }
.phase-item.inertia { border-top-color: #06b6d4; }
.phase-item.completion { border-top-color: #f59e0b; }

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

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

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
}

/* Buttons */
.btn {
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--color-gold), #b8941f);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    box-shadow: none;
}

.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn-premium {
    background: linear-gradient(135deg, var(--color-purple), #7c3aed);
    color: white;
}

.btn-premium-small {
    background: rgba(168, 85, 247, 0.15);
    color: var(--color-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn-premium-large {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1.1rem;
    justify-content: center;
}

/* ===== RESULT HERO ===== */
.result-hero {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xxl);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.result-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.result-hero.east::before { background: var(--color-east); }
.result-hero.north::before { background: var(--color-north); }
.result-hero.west::before { background: var(--color-west); }
.result-hero.south::before { background: var(--color-south); }

.result-nawal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-nawal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-sign {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.result-title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.result-meta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.meta-badge {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.free-badge {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(168, 85, 247, 0.15);
    color: var(--color-purple);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* ===== INFO GRID ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.info-card.modern-explanation {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(168, 85, 247, 0.05));
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.info-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.info-card-body p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.info-card-body .highlight {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list.strengths li::before {
    content: '↑';
    color: #22c55e;
}

.info-list.challenges li::before {
    content: '↓';
    color: #ef4444;
}

.info-list.careers li::before {
    content: '★';
    color: var(--color-gold);
}

.locked-row {
    color: var(--text-muted) !important;
    font-style: italic;
}

.lock-icon {
    margin-left: auto;
}

.shadow-text {
    padding: var(--space-md);
    background: rgba(239, 68, 68, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid #ef4444;
}

.purpose-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.tone-box {
    padding: var(--space-lg);
    background: rgba(212, 175, 55, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-gold);
}

.challenge-text {
    display: block;
    margin-top: var(--space-sm);
    color: var(--color-gold);
    font-style: italic;
}

.advice {
    padding: var(--space-md);
    background: rgba(168, 85, 247, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-purple);
    margin-top: var(--space-md);
}

/* Modern archetype */
.modern-archetype {
    color: var(--color-purple) !important;
    font-size: 1rem !important;
}

.modern-details {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.advisor-insights {
    margin-bottom: var(--space-lg);
}

.advisor-insights p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* ===== PREMIUM LOCK ===== */
.premium-lock {
    background: linear-gradient(135deg, var(--bg-card), rgba(168, 85, 247, 0.05));
    border: 2px dashed rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-xxl);
    text-align: center;
    margin: var(--space-xl) 0;
}

.premium-lock-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.premium-lock-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.premium-lock-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.premium-lock-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.lock-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lock-feature span {
    color: var(--color-gold);
}

.premium-lock-note {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.premium-teaser {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.premium-teaser-small {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.premium-teaser-small p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

/* ===== UPGRADE MODAL ===== */
.premium-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.premium-modal.active {
    opacity: 1;
    visibility: visible;
}

.premium-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.premium-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.premium-modal.active .premium-modal-content {
    transform: scale(1);
}

.premium-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.premium-icon-large {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.premium-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.premium-modal-header p {
    color: var(--text-secondary);
}

.premium-features {
    margin-bottom: var(--space-xl);
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.premium-price {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
}

.price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.premium-guarantee {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.demo-unlock {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px dashed var(--border-color);
    text-align: center;
}

.demo-unlock p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

/* ===== AI ADVISOR ===== */
.advisor-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.advisor-chat {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.advisor-message {
    margin-bottom: var(--space-md);
    max-width: 80%;
}

.advisor-message.user {
    margin-left: auto;
}

.advisor-message.ai {
    margin-right: auto;
}

.message-content {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.6;
}

.advisor-message.user .message-content {
    background: var(--color-gold);
    color: #000;
}

.advisor-message.ai .message-content {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.advisor-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    padding: var(--space-md);
}

.suggestion-chip {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

/* Typing Indicator */
.typing-indicator {
    color: var(--text-secondary);
    font-style: italic;
}

.typing-indicator .dots {
    display: inline-block;
    animation: typingDots 1.4s infinite;
}

@keyframes typingDots {
    0%, 20% { content: '.'; opacity: 0.3; }
    40% { opacity: 0.6; }
    60% { opacity: 1; }
    80%, 100% { opacity: 0.3; }
}

.advisor-input-area {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.advisor-input-area input {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.advisor-input-area input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.advisor-input-area button {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

/* ===== PROFILE ===== */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.profile-header {
    padding: var(--space-xl);
    text-align: center;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.profile-header.east::before { background: var(--color-east); }
.profile-header.north::before { background: var(--color-north); }
.profile-header.west::before { background: var(--color-west); }
.profile-header.south::before { background: var(--color-south); }

.profile-sign {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.profile-title {
    color: var(--text-secondary);
}

.profile-details {
    padding: var(--space-lg);
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-detail:last-child {
    border-bottom: none;
}

.profile-detail .label {
    color: var(--text-muted);
}

.profile-detail .value {
    color: var(--text-primary);
    text-align: right;
}

.profile-empty {
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
}

.upcoming-days {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.upcoming-days h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.days-list {
    margin-bottom: var(--space-lg);
}

.day-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-item:hover {
    background: var(--bg-hover);
}

.day-item.power {
    border-left: 3px solid var(--color-south);
}

.day-item.growth {
    border-left: 3px solid var(--color-purple);
}

.day-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.day-sign {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== LEARN SECTION ===== */
.filter-bar {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

.nawales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.nawal-card-small {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.nawal-card-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.nawal-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.nawal-card-small.east::before { background: var(--color-east); }
.nawal-card-small.north::before { background: var(--color-north); }
.nawal-card-small.west::before { background: var(--color-west); }
.nawal-card-small.south::before { background: var(--color-south); }

.nawal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nawal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nawal-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.nawal-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}

.modal-header {
    padding: var(--space-xl);
    text-align: center;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.modal-header.east::before { background: var(--color-east); }
.modal-header.north::before { background: var(--color-north); }
.modal-header.west::before { background: var(--color-west); }
.modal-header.south::before { background: var(--color-south); }

.modal-sign {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.modal-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

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

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

.modal-body .highlight {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-sm);
    z-index: 100;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-item.active {
    color: var(--color-gold);
}

.mobile-nav-icon {
    font-size: 1.3rem;
}

.mobile-nav-label {
    font-size: 0.7rem;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-gold);
    color: #000;
    border-radius: var(--radius-md);
    font-weight: 500;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

/* ===== DEV TOOLBAR ===== */
.dev-toolbar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2e;
    border: 1px solid #333;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 999;
    font-family: monospace;
    font-size: 0.85rem;
}

.dev-label {
    color: #f59e0b;
    font-weight: bold;
}

.dev-toolbar button {
    padding: var(--space-xs) var(--space-sm);
    background: #333;
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
}

.dev-toolbar button:hover {
    background: #444;
}

.dev-tier {
    color: #888;
}

.dev-tier strong {
    color: #22c55e;
}

/* ===== DAILY INSIGHT ===== */
.daily-insight {
    background: linear-gradient(135deg, var(--bg-card), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.daily-insight h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--color-purple);
}

.daily-insight p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CONTENT SECTIONS (30/70 Split) ===== */
.content-section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
}

.section-title.premium-title {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.free-content .section-title {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

.truncated-notice {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
}

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

@media (max-width: 768px) {
    .info-grid.two-col {
        grid-template-columns: 1fr;
    }
    
    .header-profile {
        width: 100%;
        order: 3;
    }
    
    .header-profile-input {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .header-profile-input input {
        flex: 1;
    }
}

/* ===== PREMIUM FEATURE PREVIEW ===== */
.premium-feature-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.premium-feature-preview h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.premium-feature-preview ul {
    list-style: none;
}

.premium-feature-preview li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.premium-feature-preview li:last-child {
    border-bottom: none;
}

/* ===== 13 TONES LIST ===== */
.tones-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tone-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tone-item:hover {
    background: var(--bg-hover);
    border-color: var(--color-gold);
}

.tone-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.tone-content {
    flex: 1;
}

.tone-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.tone-keyword {
    color: var(--color-gold);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.tone-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tone-challenge {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.tone-item-birth {
    border-color: var(--color-gold);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(212, 175, 55, 0.08));
}

/* ===== PERSONAL CORRELATIONS ===== */

.personal-correlation {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(212, 175, 55, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.correlation-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.correlation-you {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.correlation-section {
    margin-bottom: var(--space-md);
}

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

.correlation-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.correlation-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.correlation-area-item {
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.correlation-divider {
    border: none;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin: var(--space-xl) 0 var(--space-lg);
}

.correlation-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

/* Tone correlation (inline in tone items) */
.tone-correlation {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(212, 175, 55, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-gold);
}

.tone-badge {
    margin-bottom: var(--space-sm);
    font-size: 0.8rem;
}

.correlation-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: var(--space-xs) 0;
}

.correlation-advice {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: var(--space-xs) 0;
    font-style: italic;
}

.correlation-modern {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border-color);
}

.nawal-lists {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.nawal-do, .nawal-avoid {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about-hero {
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.05));
    border-color: rgba(212, 175, 55, 0.2);
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-section {
    margin-top: var(--space-lg);
}

.about-heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.about-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.about-list {
    list-style: none;
    margin: var(--space-lg) 0;
}

.about-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
}

.about-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
}

.note-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--color-west);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.note-box strong {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.note-box p {
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.about-item {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.about-item h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.about-item p {
    font-size: 0.95rem;
    margin: 0;
}

.calendar-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.calendar-type {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-gold);
}

.calendar-type h4 {
    font-family: var(--font-display);
    margin-bottom: var(--space-xs);
}

.calendar-period {
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.calendar-type p {
    font-size: 0.9rem;
    margin: 0;
}

.correlation-note {
    background: rgba(168, 85, 247, 0.1);
    border-left-color: var(--color-purple);
}

.disclaimer-box {
    background: rgba(234, 179, 8, 0.1);
    border-left: 3px solid var(--color-south);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.disclaimer-box strong {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.glossary-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.glossary-term {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.glossary-term h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.glossary-term p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .calendar-types {
        grid-template-columns: 1fr;
    }
    
    .tone-item {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .tone-number {
        font-size: 2rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px var(--space-md) 100px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .tzolkin-sign {
        font-size: 2.5rem;
    }
    
    .result-sign {
        font-size: 2rem;
    }
    
    .header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .info-cards-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .wave-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .nawales-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dev-toolbar {
        bottom: 100px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .date-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-jumps {
        justify-content: center;
    }
    
    .wave-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ===== V2 STYLES: WAVESPELL & ARCANA ===== */

/* Wavespell Section */
.wavespell-detail-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.wavespell-header-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
}

.wavespell-dates {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.wavespell-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.direction-symbol {
    font-size: 1.25rem;
}

.wavespell-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.theme-box, .energy-flow {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.theme-box h4, .energy-flow h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.flow-start, .flow-end {
    text-align: center;
}

.flow-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.flow-energy {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.wavespell-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.wave-day-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid;
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.wave-day-card.current {
    background: var(--gradient-gold);
    border-color: transparent;
}

.wave-day-card.current * {
    color: #fff !important;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.badge {
    font-size: 0.7rem;
}

.day-nawal-display {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.wavespell-key-days {
    margin-bottom: 2rem;
}

.wavespell-key-days h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.key-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.key-day-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.key-day-item.current {
    border: 1px solid var(--accent-primary);
}

.key-day-number {
    font-weight: 600;
}

.key-day-meaning {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Arcana Grid */
.arcana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.arcana-card {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.arcana-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.arcana-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.arcana-sym {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.arcana-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.arcana-tone {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.arcana-keywords {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.arcana-pair {
    font-size: 0.8rem;
    color: var(--color-purple);
    padding: 4px 8px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.arcana-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Arcana Visual Cards with SVG */
.arcana-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.arcana-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--color-gold);
}

.arcana-card.expanded {
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.arcana-visual {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.arcana-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.arcana-card:hover .arcana-visual img {
    transform: scale(1.02);
}

.arcana-info {
    padding: 1rem;
    text-align: center;
}

.arcana-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* Arcana Card in Today Section */
.arcana-card .card-header-accent {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.arcana-symbol-large {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.arcana-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arcana-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.arcana-name-large {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.arcana-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.arcana-keywords-box {
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.keywords-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}


/* Next Wave Preview */
.next-wave-card {
    margin-top: var(--space-lg);
}

.next-wave-info {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.next-wave-info h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--space-sm);
}

.next-wave-theme {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.next-wave-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.next-wave-personal {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.next-wave-personal p {
    color: var(--accent-primary);
}


/* ===== DEBUG & LOADING ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#loadingIndicator {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hide loading indicator when content is ready */
body.js-loaded #loadingIndicator {
    display: none !important;
}


/* ===== WAVESPELL EXPLANATION ===== */
.wavespell-explanation {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-gold);
}

.wavespell-explanation h4 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.explanation-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advice-section,
.warning-section,
.keywords-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.advice-section .label,
.warning-section .label,
.keywords-section .label {
    font-weight: 600;
    font-size: 0.9rem;
}

.advice-section .label {
    color: #22c55e;
}

.warning-section .label {
    color: #ef4444;
}

.keywords-section .label {
    color: var(--color-gold);
}

.advice-section p,
.warning-section p,
.keywords-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Section hint */
.section-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Key days improvements */
.key-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.current-badge {
    background: var(--gradient-gold);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.key-day-item.current {
    border-left: 3px solid var(--color-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
}

/* Header profile input improvements */
.header-profile-input input[type="date"] {
    font-family: inherit;
    cursor: text;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.header-profile-input input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.header-profile-input input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Ensure input is editable */
.header-profile-input input[type="date"]:not([readonly]) {
    background: var(--bg-primary);
    color: var(--text-primary);
}


/* ===== DAY EXPLANATIONS IN WAVESPELL ===== */
.day-explanation {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    border-left: 2px solid var(--color-gold);
}

.day-personal-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.day-personal-note.power {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
}

.day-personal-note.growth {
    background: rgba(168, 85, 247, 0.2);
    color: var(--color-purple);
}

.wave-day-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.wave-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wave-day-card.active .day-explanation {
    display: block;
}

/* ===== ARCANA PERSONAL CORRELATION ===== */
.arcana-personal {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border-left: 3px solid;
}

.arcana-personal.resonant {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: var(--color-gold);
    color: #f0d878;
}

.arcana-personal.adjacent {
    background: rgba(34, 197, 94, 0.15);
    border-left-color: #22c55e;
    color: #86efac;
}

.arcana-personal.harmonious {
    background: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
    color: #93c5fd;
}

.arcana-personal.challenging {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
    color: #fca5a5;
}

.arcana-personal.neutral {
    background: rgba(148, 163, 184, 0.15);
    border-left-color: #94a3b8;
    color: #cbd5e1;
}

.arcana-advice {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 2px solid var(--color-purple);
}

.arcana-header-note {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.arcana-header-note p {
    margin: 0;
    color: var(--text-secondary);
}

.arcana-header-note strong {
    color: var(--color-gold);
}

.arcana-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.arcana-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arcana-card.active .arcana-advice {
    display: block;
}

/* ===== DIRECTIONS (DEBESPUSU) ===== */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.direction-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.direction-card.east {
    border-color: var(--color-east);
}
.direction-card.east:hover {
    box-shadow: 0 12px 32px rgba(231, 76, 60, 0.3);
}

.direction-card.north {
    border-color: var(--color-north);
}
.direction-card.north:hover {
    box-shadow: 0 12px 32px rgba(148, 163, 184, 0.3);
}

.direction-card.west {
    border-color: var(--color-west);
}
.direction-card.west:hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.direction-card.south {
    border-color: var(--color-south);
}
.direction-card.south:hover {
    box-shadow: 0 12px 32px rgba(234, 179, 8, 0.3);
}

.direction-visual {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.direction-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.direction-card:hover .direction-visual img {
    transform: scale(1.05);
}

.direction-info {
    padding: 1.25rem;
    text-align: center;
}

.direction-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.direction-card.east .direction-info h4 {
    color: var(--color-east);
}
.direction-card.north .direction-info h4 {
    color: var(--color-north);
}
.direction-card.west .direction-info h4 {
    color: var(--color-west);
}
.direction-card.south .direction-info h4 {
    color: var(--color-south);
}

.direction-element {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.direction-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.direction-nawals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.direction-nawal {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Expand indicator */
.wave-day-card::after,
.arcana-card::after {
    content: '▼';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0.5;
}

.wave-day-card:hover::after,
.arcana-card:hover::after {
    opacity: 1;
}


/* ===== WAVE NAVIGATION ===== */
.wave-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.wave-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-sm);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wave-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

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

.wave-nav-center {
    text-align: center;
    flex: 1;
}

.wave-position-display {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.wave-position-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 200px;
    margin: 0 auto;
}

.position-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-hover);
    transition: all 0.2s;
}

.position-dot.active {
    background: var(--color-gold);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

/* Wavespell Hero */
.wavespell-hero {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.wavespell-hero-direction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.wavespell-hero-direction .direction-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.wavespell-hero-main {
    flex: 1;
}

.wavespell-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 var(--space-sm) 0;
}

.wavespell-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.wavespell-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.keyword-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-gold);
}

/* Wavespell Info Row */
.wavespell-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.wavespell-info-card {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.wavespell-info-card .info-card-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.wavespell-info-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.wavespell-info-card .info-main-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Energy Flow Visual */
.energy-flow-visual {
    display: flex;
    align-items: stretch;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.energy-start, .energy-end {
    flex: 1;
    padding: var(--space-sm);
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.energy-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

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

.energy-arrow {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    color: var(--color-gold);
}

.flow-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Wave Day Position */
.wave-day-position {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.wave-day-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.wave-day-info {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.wave-day-info strong {
    color: var(--color-gold);
    font-size: 1.5rem;
}

.phase-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-left: var(--space-xs);
}

.phase-tag.phase-start { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.phase-tag.phase-action { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.phase-tag.phase-mystical { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.phase-tag.phase-inertia { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.phase-tag.phase-completion { background: rgba(212, 175, 55, 0.2); color: var(--color-gold); }

@media (max-width: 768px) {
    .wavespell-hero {
        flex-direction: column;
        text-align: center;
    }

    .wavespell-hero-direction {
        flex-direction: row;
        gap: var(--space-sm);
    }

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

    .energy-flow-visual {
        flex-direction: column;
    }

    .energy-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }
}

/* ===== WAVESPELL DAYS HEADER ===== */
.wavespell-days-header {
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.wavespell-days-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.calendar-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

/* ===== YEAR CALENDAR ===== */
.wavespell-year-calendar {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.wavespell-year-calendar h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.year-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.year-calendar-wave {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid;
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s;
}

.year-calendar-wave:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.year-calendar-wave.current {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px var(--color-gold);
}

.wave-cal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.wave-cal-number {
    font-size: 0.75rem;
    opacity: 0.7;
}

.wave-cal-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.wave-cal-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.wave-cal-theme {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.wave-cal-btn {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wave-cal-btn:hover {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

.year-calendar-wave.current .wave-cal-btn {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

/* Day card calendar date */
.day-calendar-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


/* ===== WAVE HEADER DISPLAY ===== */
.wave-header-display {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wave-header-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.wave-header-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.wave-header-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}


/* ===== NEXT WAVESPELL CARD ===== */
.next-wavespell-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.next-wave-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.next-wave-icon {
    font-size: 1.5rem;
}

.next-wave-header h4 {
    margin: 0;
    font-family: var(--font-heading);
    color: #60a5fa;
}

.next-wave-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.next-wave-theme {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.next-wave-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.next-wave-personal {
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.95rem;
    color: #a78bfa;
}

/* Enhanced Day Card with Arcana Integration */
.wave-day-card .day-arcana {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.wave-day-card .day-explanation {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-gold);
}

.wave-day-card .day-explanation .explanation-title {
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.wave-day-card .day-explanation .wave-context {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.wave-day-card .day-explanation .arcana-context {
    font-size: 0.85rem;
    color: #a78bfa;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-sm);
}

.wave-day-card .day-explanation .personal-context {
    font-size: 0.85rem;
    color: #22c55e;
    padding: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-sm);
}

/* ===== NOTIFICATION SETTINGS ===== */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.notification-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    flex: 1;
}

.toggle-input {
    display: none;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.toggle-input:checked + .toggle-switch {
    background: var(--color-success);
}

.toggle-input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-text strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

/* ===== COMPATIBILITY SECTION ===== */
.compatibility-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-top: var(--space-lg);
}

.compat-person {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.compat-person h4 {
    margin-bottom: var(--space-md);
    color: var(--color-gold);
}

.compat-heart {
    font-size: 2rem;
    text-align: center;
}

.compat-sign {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-secondary);
}

.compat-sign.calculated {
    color: var(--color-gold);
    font-size: 1.1rem;
}

.compatibility-result {
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.compat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.compat-score {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--color-gold);
}

.compat-section {
    margin-bottom: var(--space-lg);
}

.compat-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.compat-section ul {
    list-style: none;
    padding: 0;
}

.compat-section li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.compat-section li:last-child {
    border-bottom: none;
}

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

    .compat-heart {
        transform: rotate(90deg);
    }
}

/* ===== BEST DAY FINDER ===== */
.finder-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.finder-controls select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.finder-controls select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.finder-date-range {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.finder-date-range span {
    color: var(--text-secondary);
}

.finder-date-range input[type="date"] {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.finder-date-range input[type="date"]:focus {
    outline: none;
    border-color: var(--color-gold);
}

.finder-controls button {
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--color-gold), #b8860b);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.finder-controls button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.finder-results-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.finder-result-card:hover {
    border-color: var(--color-gold);
    transform: translateX(4px);
}

.finder-result-card.excellent {
    border-left: 4px solid #22c55e;
}

.finder-result-card.good {
    border-left: 4px solid var(--color-gold);
}

.finder-result-card.moderate {
    border-left: 4px solid var(--color-north);
}

.finder-result-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    min-width: 40px;
    text-align: center;
}

.finder-result-main {
    flex: 1;
}

.finder-result-date {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.finder-result-sign {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.finder-result-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.reason-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.reason-tag.match {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
}

.finder-result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
}

.score-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.finder-no-results {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .finder-date-range {
        flex-direction: column;
    }

    .finder-result-card {
        flex-wrap: wrap;
    }

    .finder-result-score {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-sm);
        padding-top: var(--space-sm);
        border-top: 1px solid var(--border-color);
    }
}

.time-select {
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* ===== FORECAST SECTION ===== */
#forecast-section .card {
    margin-bottom: var(--space-lg);
}

/* Forecast Hero Card */
.forecast-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
}

.wave-hero-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.wave-hero-direction {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.wave-hero-direction .direction-symbol {
    font-size: 2rem;
    line-height: 1;
}

.wave-hero-direction .direction-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.wave-hero-main {
    flex: 1;
}

.wave-number {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.wave-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold);
    margin: 0 0 var(--space-xs) 0;
}

.wave-theme {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Wave Progress Section */
.wave-progress-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
}

.wave-progress-section .wave-day-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    min-width: 70px;
}

.wave-progress-section .wave-day-indicator .day-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.wave-progress-section .wave-day-indicator .day-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.wave-progress-section .wave-day-indicator .day-total {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.wave-progress-track {
    flex: 1;
    position: relative;
    height: 24px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    overflow: visible;
}

.wave-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), #eab308);
    border-radius: var(--radius-md);
    transition: width 0.5s ease;
}

.wave-progress-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.wave-progress-markers .marker {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    z-index: 1;
}

.wave-progress-markers .marker.active {
    color: #000;
}

.wave-progress-markers .marker.current {
    background: var(--color-gold);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.wave-phase-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    min-width: 100px;
    text-align: center;
}

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

.wave-phase-badge .phase-name {
    font-size: 0.75rem;
    font-weight: 600;
}

.wave-phase-badge.phase-start {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.wave-phase-badge.phase-action {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.wave-phase-badge.phase-mystical {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.wave-phase-badge.phase-inertia {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.wave-phase-badge.phase-completion {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
}

/* Wave Energy Flow */
.wave-energy-flow {
    display: flex;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.energy-start, .energy-end {
    flex: 1;
}

.energy-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.energy-start p, .energy-end p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.energy-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-gold);
    padding: 0 var(--space-sm);
}

.wave-advice {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
}

.wave-advice strong {
    color: var(--color-gold);
}

/* Next Wave Card */
.next-wave-card {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
}

.next-wave-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.next-wave-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.next-wave-countdown .countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.next-wave-countdown .countdown-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.next-wave-info {
    flex: 1;
}

.next-wave-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.next-wave-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: var(--space-xs) 0;
}

.next-wave-theme {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.next-wave-direction .direction-symbol {
    font-size: 2rem;
}

/* Forecast Days Row (Power & Growth side by side) */
.forecast-days-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.forecast-days-card {
    margin-bottom: 0 !important;
}

.forecast-days-list.compact {
    /* No scroll - show all items */
}

.forecast-days-list.compact .forecast-day-card {
    padding: var(--space-sm) var(--space-md);
}

/* Wave Grid Legend */
.wave-grid-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-md);
}

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

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.power {
    background: var(--color-gold);
}

.legend-dot.growth {
    background: var(--color-purple);
}

.legend-dot.today {
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

/* Original forecast-days styles */
.forecast-days-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

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

.forecast-day-card:hover {
    border-color: var(--color-gold);
    transform: translateX(4px);
}

.forecast-day-card.power {
    border-left: 4px solid var(--color-gold);
}

.forecast-day-card.growth {
    border-left: 4px solid var(--color-purple);
}

.forecast-day-date {
    flex: 1;
}

.forecast-day-date .date-main {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.forecast-day-date .date-relative {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.forecast-day-sign {
    text-align: center;
    min-width: 80px;
}

.forecast-day-sign .sign-tone {
    font-weight: 700;
    font-size: 1.1rem;
}

.forecast-day-sign .sign-nawal {
    font-size: 0.9rem;
}

.forecast-day-phase .phase-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.phase-badge.phase-start {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.phase-badge.phase-action {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.phase-badge.phase-mystical {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.phase-badge.phase-inertia {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.phase-badge.phase-completion {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
}

/* Wave Forecast Grid */
.wave-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
}

.wave-forecast-day {
    position: relative;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wave-forecast-day:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.wave-forecast-day.today {
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.wave-forecast-day.past {
    opacity: 0.5;
}

.wave-forecast-day.power-day {
    background: rgba(212, 175, 55, 0.1);
}

.wave-forecast-day.growth-day {
    background: rgba(168, 85, 247, 0.1);
}

.wave-forecast-day .wf-tone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.wave-forecast-day .wf-nawal {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.wave-forecast-day .wf-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.wave-forecast-day .wf-phase {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.wave-forecast-day .wf-special {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 1rem;
}

/* Phase borders on wave forecast */
.wave-forecast-day.phase-start {
    border-top: 3px solid #22c55e;
}

.wave-forecast-day.phase-action {
    border-top: 3px solid #3b82f6;
}

.wave-forecast-day.phase-mystical {
    border-top: 3px solid #a855f7;
}

.wave-forecast-day.phase-inertia {
    border-top: 3px solid #94a3b8;
}

.wave-forecast-day.phase-completion {
    border-top: 3px solid var(--color-gold);
}

/* Forecast Highlights */
.forecast-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

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

.highlight-card:hover {
    border-color: var(--color-gold);
    transform: translateX(4px);
}

.highlight-countdown {
    min-width: 50px;
    padding: var(--space-sm);
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-gold);
}

.highlight-main {
    flex: 1;
}

.highlight-date {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.highlight-sign {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.highlight-types {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.highlight-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-hover);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.no-days, .no-highlights {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .wave-hero-header {
        flex-direction: column;
        text-align: center;
    }

    .wave-hero-direction {
        flex-direction: row;
        gap: var(--space-sm);
    }

    .wave-progress-section {
        flex-direction: column;
        gap: var(--space-md);
    }

    .wave-progress-track {
        width: 100%;
        order: 2;
    }

    .wave-progress-section .wave-day-indicator {
        order: 1;
    }

    .wave-phase-badge {
        order: 3;
        flex-direction: row;
        gap: var(--space-sm);
    }

    .wave-energy-flow {
        flex-direction: column;
    }

    .energy-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }

    .next-wave-header {
        flex-wrap: wrap;
    }

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

    .wave-grid-legend {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

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

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

    .wave-forecast-day .wf-tone {
        font-size: 1.2rem;
    }

    .wave-forecast-day .wf-nawal {
        font-size: 0.75rem;
    }

    .forecast-day-card {
        flex-wrap: wrap;
    }
}

/* ===== LAYOUT HARDENING ===== */
.app-container,
.main-content,
.section,
.card,
.wave-container,
.wave-grid,
.wavespell-container,
.wavespell-grid,
.wave-forecast-grid {
    max-width: 100%;
}

.section,
.card,
.main-content {
    overflow-x: hidden;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

.wave-grid {
    grid-template-columns: repeat(13, minmax(0, 1fr));
}

.wave-day {
    min-width: 0;
    min-height: 128px;
    overflow: hidden;
}

.wave-day-icon {
    width: clamp(28px, 3vw, 44px);
    height: clamp(28px, 3vw, 44px);
}

.wave-day-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wave-day-nawal {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.72rem, 0.85vw, 0.9rem);
}

.arcana-visual img,
.direction-visual img {
    object-fit: contain;
}

@media (max-width: 1500px) {
    .wave-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .wave-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .wave-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .wave-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ========== MAYA THEME ========== */
/**
 * MAYAN/AZTEC THEME
 * Autentisks seno maiju stils - bez neona, ar zelta/terrakota/brūnām krāsām
 */

/* ===== MAIJU KRĀSU PALETE ===== */
:root {
    /* Pamatkrāsas - dabīgas, senas */
    --maya-gold: #c9a961;
    --maya-gold-dark: #a08540;
    --maya-gold-light: #e8d5a3;
    --maya-terracotta: #b85450;
    --maya-terracotta-dark: #8a3a36;
    --maya-jade: #4a7c59;
    --maya-jade-dark: #2d4a35;
    --maya-stone: #6b5b4f;
    --maya-stone-light: #8a7a6e;
    --maya-dark: #1a1410;
    --maya-paper: #f5f0e8;
    
    /* Virzieni - zemes, dabīgi */
    --color-east: #c75b39;      /* Rietumu sarkanā - terakota */
    --color-north: #d4d0c8;     /* Ziemeļu baltais - kauls */
    --color-west: #4a6fa5;      /* Austrumu zilā - jūra */
    --color-south: #d4a843;     /* Dienvidu dzeltenā - zelts */
    
    /* Fona krāsas */
    --bg-primary: #14100c;
    --bg-secondary: #1c1814;
    --bg-card: #242018;
    --bg-hover: #2d2820;
    
    /* Teksta krāsas */
    --text-primary: #f5f0e8;
    --text-secondary: #a89b8c;
    --text-muted: #6b5b4f;
}

/* ===== GALVENAIS DISPLĒJS ===== */
.maya-display {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, 
        var(--bg-secondary) 0%, 
        rgba(201, 169, 97, 0.05) 50%,
        var(--bg-secondary) 100%);
    border: 3px solid var(--maya-gold-dark);
    border-radius: 8px;
    position: relative;
    margin-bottom: 2rem;
}

.maya-display::before,
.maya-display::after {
    content: '◆';
    position: absolute;
    top: 1rem;
    color: var(--maya-gold);
    font-size: 1.2rem;
    opacity: 0.5;
}

.maya-display::before { left: 1rem; }
.maya-display::after { right: 1rem; }

/* Nawal ikona galvenajā ekrānā */
.maya-nawal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--bg-card), rgba(201, 169, 97, 0.1));
    border: 2px solid var(--maya-gold);
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 4px var(--bg-secondary),
        0 0 0 6px var(--maya-gold-dark);
}

.maya-nawal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Tekstu stili */
.relative-time {
    font-size: 0.85rem;
    color: var(--maya-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tzolkin-sign {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--maya-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.tzolkin-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.tzolkin-date {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.direction-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.direction-badge.east { border-color: var(--color-east); color: var(--color-east); }
.direction-badge.north { border-color: var(--color-north); color: var(--color-north); }
.direction-badge.west { border-color: var(--color-west); color: var(--color-west); }
.direction-badge.south { border-color: var(--color-south); color: var(--color-south); }

/* ===== KARTIŅU STILI ===== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--maya-gold) 20%, 
        var(--maya-gold) 80%, 
        transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--maya-stone);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--maya-gold);
    margin: 0;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== POGAS ===== */
.btn {
    background: linear-gradient(180deg, var(--maya-terracotta), var(--maya-terracotta-dark));
    border: 1px solid var(--maya-terracotta);
    color: var(--maya-paper);
    padding: 0.75rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(180deg, var(--maya-terracotta-dark), var(--maya-terracotta));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 84, 80, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--maya-stone);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--maya-gold);
    color: var(--maya-gold);
}

/* ===== NAVIGĀCIJA ===== */
.sidebar {
    background: var(--bg-primary);
    border-right: 1px solid var(--maya-stone);
}

.nav-item {
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--maya-gold);
    border-left-color: var(--maya-gold);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.1), transparent);
    color: var(--maya-gold);
    border-left-color: var(--maya-gold);
}

/* ===== LIFE AREAS ===== */
.area-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--maya-stone);
    color: var(--text-secondary);
}

.area-btn:hover {
    border-color: var(--maya-gold);
    color: var(--maya-gold);
}

.area-btn.active {
    background: rgba(201, 169, 97, 0.1);
    border-color: var(--maya-gold);
    color: var(--maya-gold);
}

/* ===== ENERĢIJAS PROGNOZE ===== */
.simple-forecast {
    background: var(--bg-secondary);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
}

.simple-day {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
}

.simple-day:hover {
    border-color: var(--maya-gold);
}

.simple-day.today {
    border-color: var(--maya-gold);
    box-shadow: 0 0 0 1px var(--maya-gold);
}

.simple-energy-bar {
    background: linear-gradient(to top, var(--day-color, var(--maya-gold)), rgba(201, 169, 97, 0.3));
}

/* ===== NAWAL KARTIŅAS ===== */
.nawal-card-small {
    background: var(--bg-secondary);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
}

.nawal-card-small:hover {
    border-color: var(--maya-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nawal-card-small.east::before,
.nawal-card-small.north::before,
.nawal-card-small.west::before,
.nawal-card-small.south::before {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--day-color), transparent);
}

.nawal-icon {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
}

/* ===== INPUT FIELDI ===== */
input[type="date"],
input[type="text"],
select {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: inherit;
}

input[type="date"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--maya-gold);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--maya-stone);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--maya-gold);
}

/* ===== LOADER ===== */
.loading {
    color: var(--maya-gold);
}

/* ===== SIGNIFICANCE BANNERS ===== */
.significance-banner {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.significance-banner.power {
    border-color: var(--maya-gold);
    background: rgba(201, 169, 97, 0.1);
}

.significance-banner.growth {
    border-color: var(--color-east);
    background: rgba(199, 91, 57, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tzolkin-sign {
        font-size: 2.5rem;
    }
    
    .maya-nawal-icon {
        width: 80px;
        height: 80px;
    }
}

/* ========== MISSING VARIABLE ADDITIONS ========== */
:root {
    --font-heading: 'Cinzel', serif;
    --bg-tertiary: var(--bg-secondary);
    --gradient-gold: linear-gradient(135deg, #d4af37, #c9a961);
}
