/* 
 * Daniè - Il tuo specchio personale
 * A cosmic, introspective design inspired by the logo colors
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Core palette - inspired by logo gradient */
    --color-bg-deep: #0a0d14;
    --color-bg: #0e1219;
    --color-bg-elevated: #151a24;
    --color-bg-card: #1a2030;
    --color-bg-card-hover: #1f2640;
    
    /* Gradient colors from logo */
    --color-orange: #f5a623;
    --color-orange-light: #ffc857;
    --color-blue: #4a90d9;
    --color-blue-light: #6fb3f2;
    --color-cyan: #5bc0de;
    
    /* Text */
    --color-text: #e8eaf0;
    --color-text-secondary: #8b92a5;
    --color-text-muted: #5a6070;
    
    /* Accents */
    --color-success: #4ade80;
    --color-warning: #fbbf24;
    --color-error: #f87171;
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--color-orange) 0%, var(--color-blue) 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(74, 144, 217, 0.15) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Crimson Pro', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-card: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Shadows */
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(245, 166, 35, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   COSMIC BACKGROUND - Optimized (static)
   ============================================ */
.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--color-bg-deep);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.2), transparent);
    background-size: 200px 200px;
    opacity: 0.7;
    /* Removed animation for performance */
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    /* Removed blur and animation for performance */
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 18, 25, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--color-orange);
    background: rgba(245, 166, 35, 0.1);
}

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

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

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-link.logout {
    color: var(--color-text-muted);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: calc(100vh - 140px);
    padding: var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-container {
    position: fixed;
    top: 80px;
    right: var(--space-xl);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.flash-message {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-blue);
    box-shadow: var(--shadow-soft);
    animation: slideIn 0.3s ease-out;
}

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

.flash-success { border-left-color: var(--color-success); }
.flash-error { border-left-color: var(--color-error); }
.flash-warning { border-left-color: var(--color-warning); }

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

.flash-close {
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-orange);
    background: rgba(245, 166, 35, 0.1);
}

.btn-ghost {
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text);
}

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

.btn-large {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

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

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-bg-elevated);
    border: var(--border-card);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

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

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

.form-error {
    display: block;
    margin-top: var(--space-xs);
    color: var(--color-error);
    font-size: 0.85rem;
}

.form-hint {
    display: block;
    margin-top: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

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

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-orange);
}

.optional {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.8em;
}

/* ============================================
   CARDS
   ============================================ */
.dashboard-card,
.stat-card,
.feature-card,
.insight-card {
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.dashboard-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

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

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.card-link {
    font-size: 0.85rem;
    color: var(--color-orange);
    transition: color var(--transition-fast);
}

.card-link:hover {
    color: var(--color-orange-light);
}

.card-empty {
    text-align: center;
    padding: var(--space-lg) 0;
    color: var(--color-text-muted);
}

.card-empty p {
    margin-bottom: var(--space-md);
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    min-height: 70vh;
    align-items: center;
    padding: var(--space-3xl) 0;
}

.hero-logo {
    margin-bottom: var(--space-xl);
}

.logo-glyph {
    font-size: 5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-title {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mirror-frame {
    width: 320px;
    height: 400px;
    border-radius: var(--radius-lg);
    background: var(--gradient-brand-soft);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.mirror-glass {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.8) 0%, rgba(26, 32, 48, 0.9) 100%);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.reflection-element {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    opacity: 0.5;
}

.reflection-element.zodiac { opacity: 0.6; }
.reflection-element.numbers { opacity: 0.5; }
.reflection-element.elements { opacity: 0.4; }

/* Features */
.features {
    padding: var(--space-3xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

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

/* Philosophy */
.philosophy {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.philosophy-quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.philosophy-quote cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

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

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.auth-card-wide {
    max-width: 560px;
}

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

.auth-logo {
    font-size: 3rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

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

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    color: var(--color-text-secondary);
}

.auth-footer a {
    color: var(--color-orange);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.completion-ring {
    width: 60px;
    height: 60px;
    position: relative;
}

.completion-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.completion-bg {
    fill: none;
    stroke: var(--color-bg-elevated);
    stroke-width: 3;
}

.completion-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.completion-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.completion-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

.stat-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Quick Actions */
.quick-actions h3 {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.actions-row {
    display: flex;
    gap: var(--space-md);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-elevated);
    border: var(--border-card);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
    border-color: var(--color-orange);
}

.action-icon {
    font-size: 1.1rem;
}

/* Cosmic Summary */
.cosmic-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cosmic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cosmic-value {
    font-weight: 500;
}

/* Numerology Summary */
.numerology-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.num-main {
    text-align: center;
    padding: var(--space-md);
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-md);
}

.num-big {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.num-title {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.num-meaning {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    font-style: italic;
}

.num-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
}

.num-secondary .num-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.num-secondary .num-value {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Interests Cloud */
.interests-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.interest-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.interest-tag.intensity-5 { background: rgba(245, 166, 35, 0.3); color: var(--color-orange-light); }
.interest-tag.intensity-4 { background: rgba(245, 166, 35, 0.2); }
.interest-tag.intensity-3 { background: rgba(74, 144, 217, 0.2); }
.interest-tag.intensity-2 { background: rgba(74, 144, 217, 0.1); }

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.profile-username {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.profile-bio {
    color: var(--color-text-secondary);
    max-width: 500px;
}

.profile-motto {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-orange);
}

.profile-section {
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: var(--border-subtle);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.data-item {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.data-value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Cosmic Grid */
.cosmic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

.cosmic-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.cosmic-sign {
    font-weight: 600;
    display: block;
}

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

/* Numerology Preview */
.numerology-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

.num-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

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

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

/* Chinese Preview */
.chinese-preview {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
}

.chinese-animal {
    font-size: 2.5rem;
}

.chinese-text {
    font-weight: 600;
}

.chinese-yin-yang {
    color: var(--color-text-muted);
}

/* Values List */
.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.value-tag {
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

/* ============================================
   ASTROLOGY PAGE
   ============================================ */
.astrology-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

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

/* Big Three */
.big-three-section {
    margin-bottom: var(--space-2xl);
}

.big-three-section h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.big-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.big-three-card {
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.big-three-card.sun::before { background: var(--color-orange); }
.big-three-card.moon::before { background: var(--color-blue); }
.big-three-card.rising::before { background: var(--color-cyan); }

.big-three-card .card-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.big-three-card h3 {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

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

.sign-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

/* Elements */
.elements-section {
    margin-bottom: var(--space-3xl);
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

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

.element-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.element-name {
    font-weight: 500;
    display: block;
    margin-bottom: var(--space-md);
}

.element-bar {
    height: 6px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

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

.element-card.fuoco .element-fill { background: #f97316; }
.element-card.terra .element-fill { background: #84cc16; }
.element-card.aria .element-fill { background: #06b6d4; }
.element-card.acqua .element-fill { background: #3b82f6; }

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

/* Numerology Section */
.numerology-section {
    margin-bottom: var(--space-3xl);
}

.numerology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.num-card.featured {
    grid-column: span 3;
    background: var(--gradient-brand-soft);
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.num-card.featured .num-value {
    font-size: 4rem;
}

.num-card.highlight {
    background: var(--color-bg-card-hover);
}

.master-badge {
    display: inline-block;
    margin-top: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

/* Chinese Section */
.chinese-section {
    margin-bottom: var(--space-3xl);
}

.chinese-card {
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.chinese-main {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.chinese-main .chinese-emoji {
    font-size: 4rem;
}

.chinese-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.chinese-element {
    display: block;
    color: var(--color-text-secondary);
}

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

.chinese-traits {
    padding: var(--space-lg);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

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

.compat-animals {
    display: flex;
    gap: var(--space-sm);
}

.compat-animal {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-content {
    max-width: 400px;
    margin: 0 auto;
}

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

.empty-state h2,
.empty-state h3 {
    margin-bottom: var(--space-md);
}

.empty-state p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

/* ============================================
   INVESTMENTS PAGE
   ============================================ */
.investments-container {
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-bottom: var(--space-2xl);
}

.header-content h1 {
    font-size: 2rem;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.summary-card {
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.summary-card.main {
    background: var(--gradient-brand-soft);
    border-color: rgba(245, 166, 35, 0.2);
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.summary-change {
    display: block;
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.positive { color: var(--color-success); }
.negative { color: var(--color-error); }

/* Allocation */
.allocation-section {
    margin-bottom: var(--space-2xl);
}

.allocation-grid {
    display: flex;
    gap: var(--space-lg);
}

.allocation-item {
    flex: 1;
    text-align: center;
}

.allocation-bar {
    height: 120px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.allocation-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--allocation-pct);
    background: var(--gradient-brand);
    opacity: 0.3;
}

.allocation-emoji {
    font-size: 1.5rem;
    position: relative;
}

.allocation-label {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.allocation-value {
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* Investments Table */
.investments-table {
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-elevated);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: var(--border-subtle);
    transition: background var(--transition-fast);
}

.table-row:hover {
    background: var(--color-bg-card-hover);
}

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

.asset-emoji {
    font-size: 1.25rem;
}

.asset-info {
    display: flex;
    flex-direction: column;
}

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

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

/* ============================================
   INSIGHTS PAGE
   ============================================ */
.insights-container {
    max-width: 900px;
    margin: 0 auto;
}

.insights-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.action-card {
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-fast);
}

.action-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-orange);
    transform: translateY(-2px);
}

.action-card .action-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-md);
}

.action-card .action-title {
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.action-card .action-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Mood Summary */
.mood-summary {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.mood-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mood-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-bg-card);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.gauge-fill {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-orange) 0deg,
        var(--color-orange) calc(var(--mood-level) * 3.6deg),
        var(--color-bg-elevated) calc(var(--mood-level) * 3.6deg)
    );
}

.gauge-value {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Reflections Timeline */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.section-link {
    font-size: 0.9rem;
    color: var(--color-orange);
}

.reflections-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.reflection-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-md);
}

.reflection-date {
    text-align: center;
    min-width: 50px;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.reflection-content {
    flex: 1;
}

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

.reflection-emoji {
    font-size: 1.25rem;
}

.reflection-mood,
.reflection-energy {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

.reflection-gratitude {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

.gratitude-tag {
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* Insight Cards */
.insights-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.insight-card h3 {
    margin-bottom: var(--space-md);
}

.insight-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   SETUP PAGE
   ============================================ */
.setup-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.setup-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.setup-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: var(--border-subtle);
}

.setup-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.section-help {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

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

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    padding: var(--space-xl);
    text-align: center;
    border-top: var(--border-subtle);
    margin-top: auto;
}

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

.footer-logo {
    font-weight: 600;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .big-three-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--space-lg);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .data-grid,
    .cosmic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .elements-grid,
    .numerology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .num-card.featured {
        grid-column: span 2;
    }
    
    .insights-actions {
        grid-template-columns: 1fr;
    }
    
    .actions-row {
        flex-wrap: wrap;
    }
}

/* ============================================
   INTERACTIVE CARDS - Optimized for performance
   ============================================ */

/* Section Icons */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: var(--space-sm);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    vertical-align: middle;
    color: var(--color-orange);
}

.section-icon.taiji { color: var(--color-text); }
.section-icon.mercury-icon { color: #a0a0a0; }
.section-icon.jupiter-icon { color: #f59e0b; }
.section-icon.aspect-icon { color: var(--color-cyan); }
.section-icon.elements-icon { color: var(--color-blue); }
.section-icon.numerology-icon { color: var(--color-orange); }
.section-icon.matrix-icon { color: var(--color-orange); }

/* Card Icons */
.card-icon {
    display: inline-block;
    margin-right: var(--space-xs);
    color: var(--color-orange);
    font-size: 1rem;
}

/* Interactive Card Base - Lightweight */
.interactive-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.interactive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(245, 166, 35, 0.3);
}

/* Cosmic Header - Simplified */
.cosmic-header {
    position: relative;
    padding: var(--space-2xl);
    text-align: center;
}

.cosmic-header .header-glow {
    display: none; /* Removed heavy blur effect */
}

.cosmic-header .header-icon {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: var(--space-sm);
    color: var(--color-orange);
}

.header-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.8;
}

.btn-icon {
    display: inline-block;
    margin-right: var(--space-xs);
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: rotate(180deg);
}

/* Section Intro */
.section-intro {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

/* ============================================
   ELEMENT ICONS - Static, no animations
   ============================================ */
.element-icon-container {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-elevated);
}

.element-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

/* Fire Icon - Static */
.element-icon.fuoco-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b35 0%, #ffd93d 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

/* Earth Icon - Static */
.element-icon.terra-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
    border-radius: 50%;
}

/* Air Icon - Static */
.element-icon.aria-icon::before,
.element-icon.aria-icon::after {
    content: '';
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    border-radius: 4px;
}

.element-icon.aria-icon::before {
    width: 20px;
    top: 6px;
    left: 2px;
}

.element-icon.aria-icon::after {
    width: 16px;
    top: 14px;
    left: 6px;
}

/* Water Icon - Static */
.element-icon.acqua-icon::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 20px;
    left: 4px;
    top: 2px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Element Cards */
.element-card.interactive-card {
    padding: var(--space-xl);
    text-align: center;
}

.element-card.fuoco { border-top: 3px solid #f97316; }
.element-card.terra { border-top: 3px solid #22c55e; }
.element-card.aria { border-top: 3px solid #06b6d4; }
.element-card.acqua { border-top: 3px solid #3b82f6; }

.element-card:hover.fuoco { background: rgba(249, 115, 22, 0.08); }
.element-card:hover.terra { background: rgba(34, 197, 94, 0.08); }
.element-card:hover.aria { background: rgba(6, 182, 212, 0.08); }
.element-card:hover.acqua { background: rgba(59, 130, 246, 0.08); }

.element-dominant {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CHINESE ASTROLOGY
   ============================================ */
.chinese-symbol-container {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
}

.chinese-symbol {
    font-size: 2.5rem;
    line-height: 1;
}

.chinese-element-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.chinese-details {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

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

.chinese-polarity-badge {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chinese-polarity-badge.yang {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a1a;
}

.chinese-polarity-badge.yin {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
   NUMEROLOGY CARDS
   ============================================ */
.num-value.large {
    font-size: 4.5rem;
    line-height: 1;
}

.num-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

