/* ============================================
   🤲 QUIROMANCIA SUPREMA — CSS ULTRA PREMIUM v4.0
   Galáctico · Místico · Premium Day Mode
   ============================================ */

/* ===== VARIABLES CSS — PALETA PREMIUM ===== */
:root {
    --primary: #7c6aef;
    --primary-dark: #5b4cc4;
    --primary-light: #a78bfa;
    --secondary: #8b5cf6;
    --accent: #f0b429;
    --accent-glow: #fcd34d;
    --accent-dark: #d4940a;
    --cosmic-purple: #7c3aed;
    --cosmic-blue: #38bdf8;
    --cosmic-pink: #f472b6;
    --cosmic-teal: #2dd4bf;
    --cosmic-cyan: #22d3ee;
    --cosmic-gold: #f0b429;
    --neon-blue: #00d4ff;
    --neon-purple: #b14aed;
    --neon-gold: #ffcf40;
    --palmistry-rose: #e91e63;
    --palmistry-emerald: #10b981;
    --dark: #03030f;
    --dark-mid: #08081a;
    --dark-light: #0f0f2a;
    --dark-card: #0a0a22;
    --dark-card-hover: #12123a;
    --light: #e8e4f5;
    --light-mid: #b0a8d8;
    --text: #e8e4f5;
    --text-muted: #8b85b0;
    --text-dim: #5a5580;
    --border: rgba(124, 106, 239, 0.2);
    --glass: rgba(10, 10, 34, 0.85);
    --glass-light: rgba(167, 139, 250, 0.08);
    --glow-primary: 0 0 20px rgba(124, 106, 239, 0.4);
    --glow-accent: 0 0 20px rgba(240, 180, 41, 0.4);
    --glow-pink: 0 0 20px rgba(244, 114, 182, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Cinzel', serif;
    --font-body: 'Quicksand', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    --nav-height: 70px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 40px rgba(124,106,239,0.25);
}

/* ═══════ PREMIUM LIGHT THEME ═══════ */
[data-theme="light"] {
    --dark: #faf8ff;
    --dark-mid: #f0ecf9;
    --dark-light: #e8e2f5;
    --dark-card: #ffffff;
    --dark-card-hover: #f8f5ff;
    --text: #2d2455;
    --text-muted: #5b4f85;
    --text-dim: #7b6faa;
    --border: rgba(124, 106, 239, 0.18);
    --glass: rgba(255, 255, 255, 0.92);
    --glass-light: rgba(124, 106, 239, 0.05);
    --primary-light: #6d5ce0;
    --accent: #d4940a;
    --accent-glow: #e5a518;
    --shadow-card: 0 4px 20px rgba(124,106,239,0.1);
    --shadow-hover: 0 8px 32px rgba(124,106,239,0.15);
}
[data-theme="light"] .disclaimer-overlay {
    background: radial-gradient(ellipse at center, rgba(240,236,249,0.98) 0%, rgba(250,248,255,0.99) 100%);
}
[data-theme="light"] .portal-glow {
    background: radial-gradient(circle, rgba(124, 106, 239, 0.08) 0%, rgba(139, 92, 246, 0.03) 40%, transparent 70%);
}
[data-theme="light"] .hand-demo-card {
    background: rgba(240, 236, 249, 0.7);
}
[data-theme="light"] .analysis-card,
[data-theme="light"] .about-card,
[data-theme="light"] .guide-step,
[data-theme="light"] .line-guide-card,
[data-theme="light"] .mount-guide-card,
[data-theme="light"] .tradition-detail-card {
    background: linear-gradient(135deg, #ffffff, #f8f5ff);
    box-shadow: var(--shadow-card);
}
[data-theme="light"] .stat-card {
    background: #ffffff;
    box-shadow: var(--shadow-card);
}
[data-theme="light"] .result-card,
[data-theme="light"] .results-header {
    background: linear-gradient(135deg, #ffffff, #faf8ff);
    box-shadow: var(--shadow-card);
}
[data-theme="light"] .lang-dropdown {
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] .lang-option:hover {
    background: #f0ecf9;
}
[data-theme="light"] .note-card {
    background: rgba(212, 148, 10, 0.06);
}
[data-theme="light"] .tip-correct {
    background: rgba(16, 185, 129, 0.06);
}
[data-theme="light"] .tip-incorrect {
    background: rgba(239, 68, 68, 0.06);
}
[data-theme="light"] .guide-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--cosmic-purple));
    color: #fff;
}
[data-theme="light"] .mount-guide-card {
    border-color: rgba(124,106,239,0.12);
}
[data-theme="light"] .anatomy-legend {
    background: rgba(255,255,255,0.95);
}
[data-theme="light"] #cosmicCanvas {
    opacity: 0.3;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== COSMIC CANVAS ===== */
#cosmicCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hidden-canvas {
    position: absolute;
    top: -9999px; left: -9999px;
    visibility: hidden;
}

/* ═══════════════════════════════════════════
   DISCLAIMER OVERLAY
   ═══════════════════════════════════════════ */
.disclaimer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    background: radial-gradient(ellipse at center, rgba(10, 10, 34, 0.97) 0%, rgba(3, 3, 15, 0.99) 100%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(20px);
}
.disclaimer-overlay.active { display: flex; }

.disclaimer-container {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(124, 106, 239, 0.15), 0 0 120px rgba(139, 92, 246, 0.08);
    animation: fadeInScale 0.6s ease-out;
}

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

.disclaimer-header {
    text-align: center;
    padding: 40px 30px 24px;
    background: linear-gradient(180deg, rgba(124, 106, 239, 0.12) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}
.disclaimer-icon { font-size: 64px; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
.disclaimer-title {
    font-family: var(--font-display);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.disclaimer-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-top: 5px; margin-bottom: 16px; }

.disclaimer-body { padding: 30px; }
.disclaimer-section h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.legal-item {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--glass-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}
.legal-item h3 {
    font-size: 0.95rem;
    color: var(--primary-light);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.legal-item p, .legal-item li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.legal-item ul { list-style: none; padding-left: 0; }
.legal-item li { margin-bottom: 6px; padding-left: 10px; }
.legal-item li::before { content: '▸ '; color: var(--accent); }

.disclaimer-accept-area {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.checkbox-container input { display: none; }
.checkmark {
    min-width: 24px; height: 24px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.checkbox-container input:checked + .checkmark {
    background: var(--primary);
    box-shadow: var(--glow-primary);
}
.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   PREMIUM LANGUAGE SELECTOR
   ═══════════════════════════════════════════ */
.premium-lang-selector {
    position: relative;
    z-index: 100;
}
.lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.lang-trigger:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    background: rgba(124, 106, 239, 0.1);
}
.lang-trigger .lang-flag { font-size: 1.15rem; }
.lang-trigger .lang-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s;
    color: var(--text-dim);
}
.premium-lang-selector.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1000;
}
.premium-lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.lang-dropdown-header {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-dropdown-inner {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
    color: var(--text-muted);
}
.lang-option:hover {
    background: var(--glass-light);
    color: var(--text);
}
.lang-option .lang-flag { font-size: 1.2rem; }
.lang-option .fa-check {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--palmistry-emerald);
    opacity: 0;
    transition: opacity 0.2s;
}
.lang-option.active {
    color: var(--primary-light);
    font-weight: 600;
}
.lang-option.active .fa-check { opacity: 1; }

/* Disclaimer lang center */
.disclaimer-lang-wrap {
    display: inline-flex;
    justify-content: center;
}
.disclaimer-lang-wrap .lang-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px) scale(0.97);
}
.disclaimer-lang-wrap.open .lang-dropdown {
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-purple));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(124, 106, 239, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary::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 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(124, 106, 239, 0.5);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.btn-primary:disabled:hover { transform: none; box-shadow: 0 4px 20px rgba(124, 106, 239, 0.3); }
.btn-primary:disabled::before { display: none; }

.btn-accept {
    background: linear-gradient(135deg, var(--palmistry-emerald), #059669);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    width: 100%;
    justify-content: center;
}
.btn-accept:hover { box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: rgba(124, 106, 239, 0.1);
    box-shadow: var(--glow-primary);
}

/* ═══════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════ */
.main-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: var(--transition);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-icon { font-size: 1.6rem; }
.nav-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary-light); background: var(--glass-light); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-toggle {
    width: 40px; height: 40px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: rgba(240, 180, 41, 0.15); box-shadow: var(--glow-accent); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    flex-direction: column;
    padding: 10px 0;
}
.mobile-menu.show { display: flex; }
.mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}
.mobile-link:hover { color: var(--primary-light); background: var(--glass-light); }

/* ═══════════════════════════════════════════
   MAIN APP & SECTIONS
   ═══════════════════════════════════════════ */
.main-app { position: relative; z-index: 1; padding-top: var(--nav-height); }

.section {
    display: none;
    min-height: calc(100vh - var(--nav-height));
    padding: 40px 0;
    animation: sectionFadeIn 0.5s ease-out;
}
.section.active { display: block; }

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

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--cosmic-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

/* ═══════════════════════════════════════════
   HOME / PORTAL SECTION
   ═══════════════════════════════════════════ */
.portal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
}
.portal-glow {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124, 106, 239, 0.15) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: portalPulse 4s ease-in-out infinite;
}
@keyframes portalPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}
.portal-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
    animation: portalSpin linear infinite;
}
.portal-ring-1 { width: 350px; height: 350px; border-color: rgba(124, 106, 239, 0.2); animation-duration: 20s; }
.portal-ring-2 { width: 420px; height: 420px; border-color: rgba(240, 180, 41, 0.15); animation-duration: 30s; animation-direction: reverse; }
.portal-ring-3 { width: 480px; height: 480px; border-color: rgba(244, 114, 182, 0.1); animation-duration: 40s; }
@keyframes portalSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.portal-content { position: relative; z-index: 2; text-align: center; padding: 40px 20px; }
.portal-emoji { font-size: 80px; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.portal-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--cosmic-pink), var(--cosmic-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    margin-bottom: 10px;
}
@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.portal-subtitle {
    font-family: var(--font-tech);
    font-size: clamp(0.7rem, 2vw, 0.95rem);
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.portal-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}
.feature-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.feature-badge:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: var(--glow-primary);
}

.portal-traditions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}
.tradition-tag {
    padding: 4px 12px;
    background: rgba(240, 180, 41, 0.08);
    border: 1px solid rgba(240, 180, 41, 0.2);
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--accent);
}

.btn-start-reading {
    font-size: 1.15rem;
    padding: 18px 44px;
    background: linear-gradient(135deg, var(--palmistry-rose), var(--cosmic-purple), var(--primary));
    box-shadow: 0 4px 30px rgba(233, 30, 99, 0.3);
    animation: btnGlow 2s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 30px rgba(233, 30, 99, 0.3); }
    50% { box-shadow: 0 4px 50px rgba(233, 30, 99, 0.5), 0 0 80px rgba(124, 106, 239, 0.2); }
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.stat-number {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--cosmic-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

/* Analysis Preview Grid */
.analysis-preview { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}
.analysis-card {
    padding: 24px;
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.analysis-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}
.analysis-icon { font-size: 2.5rem; margin-bottom: 12px; }
.analysis-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.analysis-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   GUIDE SECTION — PREMIUM
   ═══════════════════════════════════════════ */
.section-guide { padding: 40px 0; }

/* Guide Tabs */
.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.guide-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.guide-tab:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}
.guide-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--cosmic-purple));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(124, 106, 239, 0.3);
}

.guide-tab-content {
    display: none;
}
.guide-tab-content.active { display: block; animation: sectionFadeIn 0.4s ease-out; }

/* Guide Steps */
.guide-steps { max-width: 900px; margin: 0 auto; }
.guide-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    padding: 28px;
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.guide-step:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }

.step-number {
    min-width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-purple));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-tech);
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.step-content ul { list-style: none; }
.step-content li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hand Position Demo */
.hand-position-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}
.hand-demo-card {
    text-align: center;
    padding: 20px;
    background: rgba(10, 10, 34, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.hand-demo-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.hand-demo-visual { margin-bottom: 12px; }
.hand-svg-container { max-width: 200px; margin: 0 auto; }
.hand-svg { width: 100%; height: auto; }

/* Escenario del render Pixar de la mano (foto + SVG de líneas + etiquetas).
   Es el ancestro `position:relative` que faltaba: sin él, las etiquetas con
   `style="left:%; top:%"` no tenían marco de referencia y caían como texto
   plano apilado bajo la imagen en vez de superponerse sobre la palma. */
.hand-render-stage {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 38%, rgba(76, 29, 149, 0.4), rgba(10, 3, 22, 0.92));
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}
.hand-render-stage .hand-render {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Mano izquierda = la derecha reflejada por CSS: ahorra generar/descargar
   una segunda imagen idéntica volteada (misma técnica que el Atlas). */
.hand-render-stage[data-side="left"] .hand-render { scale: -1 1; }
.hand-render-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}
.hr-line {
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    opacity: 0.92;
    filter: drop-shadow(0 0 1.4px currentColor);
}
.hr-line.hr-life  { stroke: #ff6b57; }
.hr-line.hr-head  { stroke: #5fc8ff; }
.hr-line.hr-heart { stroke: #ff77b0; }
.hr-line.hr-fate  { stroke: #ffd166; }
.hr-lbl {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    paint-order: stroke fill;
    stroke: rgba(12, 3, 32, 0.85);
    stroke-width: 2.6px;
    stroke-linejoin: round;
}
.hr-lbl-life  { color: #ff8f7f; }
.hr-lbl-head  { color: #8fdcff; }
.hr-lbl-heart { color: #ff9ac4; }
.hr-lbl-fate  { color: #ffdd8a; }
.hr-up {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fbbf24;
    pointer-events: none;
    paint-order: stroke fill;
    stroke: rgba(12, 3, 32, 0.85);
    stroke-width: 2px;
    stroke-linejoin: round;
}
.hr-side {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    margin: 0;
    padding: 20px 8px 10px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    color: #f4dd9a;
    background: linear-gradient(to top, rgba(10, 3, 22, 0.92), transparent);
    pointer-events: none;
}
.hand-demo-card h4 { font-size: 1rem; color: var(--primary-light); margin-bottom: 6px; }
.hand-demo-card .hand-meaning { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.hand-meaning-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.meaning-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.68rem;
    color: var(--text-dim);
}

/* Tips Grid */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tip-card { padding: 20px; border-radius: var(--radius); border: 1px solid; }
.tip-correct { background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.3); }
.tip-incorrect { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.3); }
.tip-icon { font-size: 1.5rem; margin-bottom: 8px; }
.tip-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.tip-correct h4 { color: var(--palmistry-emerald); }
.tip-incorrect h4 { color: #ef4444; }
.tip-card li { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; list-style: none; }

/* Important Notes */
.important-notes { display: flex; flex-direction: column; gap: 12px; }
.note-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(240, 180, 41, 0.05);
    border: 1px solid rgba(240, 180, 41, 0.2);
    border-radius: var(--radius-sm);
}
.note-card i { color: var(--accent); font-size: 1.2rem; margin-top: 2px; }
.note-card p { font-size: 0.85rem; color: var(--text-muted); }

.btn-go-reading { display: block; margin: 40px auto 0; text-align: center; }

/* ═══════════════════════════════════════════
   ANATOMY MAP TAB
   ═══════════════════════════════════════════ */
.anatomy-section { max-width: 1000px; margin: 0 auto; }
.anatomy-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}
.anatomy-svg-wrap {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}
.anatomy-svg { width: 100%; max-width: 380px; height: auto; }
.mount-zone { transition: var(--transition); cursor: pointer; }
.mount-zone:hover { transform: scale(1.1); filter: brightness(1.3); }

.anatomy-legend {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}
.anatomy-legend h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 14px;
}
.legend-items { display: flex; flex-direction: column; gap: 8px; }
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.legend-item small { color: var(--text-dim); font-size: 0.72rem; }
.legend-color {
    width: 14px; height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   LINES GUIDE TAB
   ═══════════════════════════════════════════ */
.lines-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.line-guide-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border-top: 3px solid var(--line-color, var(--primary));
}
.line-guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.line-guide-header {
    padding: 20px;
    background: var(--glass-light);
    border-bottom: 1px solid var(--border);
}
.line-guide-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--line-color, var(--primary-light));
    display: flex;
    align-items: center;
    gap: 8px;
}
.line-guide-emoji { font-size: 1.5rem; }
.line-guide-names {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-family: var(--font-body);
    font-weight: 400;
}
.line-guide-body { padding: 20px; }
.line-guide-body p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.line-variants { display: flex; flex-direction: column; gap: 6px; }
.variant-tag {
    padding: 6px 12px;
    background: var(--glass-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-dim);
    border-left: 2px solid var(--line-color, var(--primary));
}

/* ═══════════════════════════════════════════
   MOUNTS GUIDE TAB
   ═══════════════════════════════════════════ */
.mounts-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.mount-guide-card {
    padding: 20px;
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.mount-guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mount-guide-icon { font-size: 2rem; margin-bottom: 8px; }
.mount-guide-card h4 { font-family: var(--font-display); font-size: 0.9rem; color: var(--primary-light); margin-bottom: 8px; }
.mount-guide-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.mount-states { display: flex; flex-direction: column; gap: 4px; }
.ms-tag {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
}
.ms-prominent { background: rgba(16, 185, 129, 0.1); color: var(--palmistry-emerald); }
.ms-flat { background: rgba(139, 92, 246, 0.1); color: var(--secondary); }

/* ═══════════════════════════════════════════
   READING SECTION
   ═══════════════════════════════════════════ */
.reading-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.form-group label i { color: var(--accent); margin-right: 4px; }
.form-group input, .form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* Reading Mode Toggle */
.reading-mode-toggle { margin-bottom: 24px; }
.reading-mode-toggle h3 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.toggle-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-btn {
    padding: 16px;
    background: var(--dark-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-body);
}
.toggle-btn i { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.toggle-btn span { font-size: 0.9rem; font-weight: 600; }
.toggle-btn small { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 2px; }
.toggle-btn.active {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--glass-light);
    box-shadow: var(--glow-primary);
}

/* Upload Area */
.upload-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.upload-zone {
    position: relative;
    aspect-ratio: 3/4;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-zone:hover { border-color: var(--primary); background: var(--glass-light); }
.upload-zone.has-image { border-style: solid; border-color: var(--palmistry-emerald); }
.upload-placeholder { text-align: center; color: var(--text-muted); padding: 20px; }
.upload-hand-icon { font-size: 3rem; margin-bottom: 10px; }
.upload-placeholder i { color: var(--primary); margin-bottom: 10px; display: block; }
.upload-placeholder p { font-size: 0.9rem; font-weight: 600; }
.upload-placeholder small { font-size: 0.72rem; opacity: 0.6; }
.upload-preview { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.upload-remove {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
}
.file-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.btn-analyze {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 18px;
    background: linear-gradient(135deg, var(--cosmic-gold), var(--palmistry-rose), var(--cosmic-purple));
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

/* ═══════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════ */
.loading-screen { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.loading-container { text-align: center; max-width: 400px; }
.loading-mandala { position: relative; width: 150px; height: 150px; margin: 0 auto 30px; }
.mandala-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.ring-1 { width: 120px; height: 120px; border-color: var(--primary); animation: portalSpin 3s linear infinite; border-top-color: transparent; border-bottom-color: transparent; }
.ring-2 { width: 90px; height: 90px; border-color: var(--accent); animation: portalSpin 2s linear infinite reverse; border-left-color: transparent; border-right-color: transparent; }
.ring-3 { width: 60px; height: 60px; border-color: var(--cosmic-pink); animation: portalSpin 1.5s linear infinite; border-top-color: transparent; }
.loading-palm { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.5rem; animation: float 2s ease-in-out infinite; }
.loading-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary-light); margin-bottom: 20px; }
.loading-progress { margin-bottom: 24px; }
.progress-bar { height: 6px; background: var(--dark-card); border-radius: 50px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent), var(--cosmic-pink)); border-radius: 50px; transition: width 0.3s ease; }
.loading-status { font-size: 0.85rem; color: var(--text-muted); }
.loading-steps { display: flex; flex-direction: column; gap: 8px; }
.loading-step { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-dim); transition: var(--transition); }
.loading-step.active { color: var(--accent); background: rgba(240, 180, 41, 0.08); }
.loading-step.done { color: var(--palmistry-emerald); }
.loading-step.done i::after { content: ' ✓'; }

/* ═══════════════════════════════════════════
   RESULTS CONTAINER
   ═══════════════════════════════════════════ */
.results-container { max-width: 1000px; margin: 0 auto; animation: sectionFadeIn 0.8s ease-out; }
.results-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.results-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top, rgba(124, 106, 239, 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.results-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.results-header .accuracy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--palmistry-emerald);
    margin-top: 10px;
}

/* Result Cards */
.result-section { margin-bottom: 24px; }
.result-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-mid));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.result-card:hover { border-color: var(--primary); }
.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--glass-light);
    cursor: pointer;
    user-select: none;
}
.result-card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary-light);
}
.result-card-header .card-emoji { font-size: 1.5rem; }
.result-card-header .toggle-icon { color: var(--text-dim); transition: transform 0.3s; font-size: 0.9rem; }
.result-card.open .toggle-icon { transform: rotate(180deg); }
.result-card-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.result-card.open .result-card-body { max-height: 10000px; }
.result-card-content { padding: 24px; }

/* Line Reading Cards */
.line-reading { padding: 20px; background: var(--glass-light); border-radius: var(--radius); margin-bottom: 16px; border-left: 3px solid var(--primary); }
.line-reading h4 { font-size: 1rem; color: var(--accent); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.line-reading .line-names { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.line-name-tag { padding: 2px 8px; background: rgba(124, 106, 239, 0.1); border-radius: 50px; font-size: 0.7rem; color: var(--text-dim); }
.line-reading .reading-title { font-family: var(--font-display); font-size: 0.95rem; color: var(--primary-light); margin-bottom: 6px; }
.line-reading .reading-meaning { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.line-reading .reading-advice { padding: 10px; background: rgba(16, 185, 129, 0.06); border-radius: var(--radius-sm); border-left: 2px solid var(--palmistry-emerald); font-size: 0.82rem; color: var(--palmistry-emerald); margin-bottom: 6px; }
.line-reading .reading-health, .line-reading .reading-spiritual { font-size: 0.8rem; color: var(--text-dim); padding: 6px 10px; margin-top: 4px; }

/* Hand Side Badge */
.hand-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; }
.hand-badge.left-badge { background: rgba(167, 139, 250, 0.15); color: var(--primary-light); border: 1px solid rgba(167, 139, 250, 0.3); }
.hand-badge.right-badge { background: rgba(240, 180, 41, 0.15); color: var(--accent); border: 1px solid rgba(240, 180, 41, 0.3); }

/* Mount Cards */
.mount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mount-card { padding: 16px; background: var(--glass-light); border-radius: var(--radius); border-left: 3px solid; text-align: center; transition: var(--transition); }
.mount-card:hover { transform: translateY(-2px); }
.mount-emoji { font-size: 1.5rem; margin-bottom: 6px; }
.mount-name { font-size: 0.85rem; font-weight: 700; color: var(--primary-light); margin-bottom: 4px; }
.mount-state { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: 0.7rem; margin-bottom: 6px; }
.mount-state.prominent { background: rgba(16, 185, 129, 0.15); color: var(--palmistry-emerald); }
.mount-state.flat { background: rgba(139, 92, 246, 0.15); color: var(--secondary); }
.mount-state.overdeveloped { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.mount-trait { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* Finger Cards */
.finger-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.finger-card { padding: 14px; background: var(--glass-light); border-radius: var(--radius); text-align: center; transition: var(--transition); }
.finger-card:hover { transform: translateY(-2px); box-shadow: var(--glow-primary); }
.finger-emoji { font-size: 1.5rem; margin-bottom: 4px; }
.finger-name { font-size: 0.78rem; font-weight: 700; color: var(--primary-light); margin-bottom: 4px; }
.finger-prop { font-size: 0.72rem; color: var(--accent); margin-bottom: 4px; }
.finger-reading { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

/* Mark & Minor Line Cards */
.mark-card, .minor-line-card { padding: 14px; background: var(--glass-light); border-radius: var(--radius-sm); margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start; }
.mark-emoji, .minor-emoji { font-size: 1.3rem; min-width: 30px; text-align: center; }
.mark-info h4, .minor-info h4 { font-size: 0.85rem; color: var(--primary-light); margin-bottom: 4px; }
.mark-info p, .minor-info p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* Comparison & Deep Insights */
.comparison-card { padding: 18px; background: linear-gradient(135deg, rgba(124, 106, 239, 0.05), rgba(240, 180, 41, 0.05)); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; }
.comparison-card h4 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--accent); margin-bottom: 8px; }
.comparison-finding { font-size: 0.85rem; color: var(--primary-light); margin-bottom: 6px; }
.comparison-interpretation { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.insight-card { padding: 20px; background: var(--glass-light); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; }
.insight-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.insight-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* Action Buttons in Results */
.results-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto 50px; }
.about-card { padding: 30px; background: linear-gradient(135deg, var(--dark-card), var(--dark-mid)); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: var(--transition); }
.about-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.about-icon { font-size: 2.5rem; margin-bottom: 12px; }
.about-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--primary-light); margin-bottom: 8px; }
.about-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.traditions-section { max-width: 1000px; margin: 0 auto 50px; text-align: center; }
.traditions-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin-bottom: 30px; }
.tradition-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tradition-detail-card { padding: 20px; background: var(--glass-light); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: var(--transition); }
.tradition-detail-card:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }
.tradition-emoji { font-size: 2rem; margin-bottom: 8px; }
.tradition-detail-card h4 { font-size: 0.82rem; color: var(--primary-light); margin-bottom: 6px; }
.tradition-detail-card p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; }
.about-legal { text-align: center; margin-top: 30px; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.main-footer { background: var(--dark-mid); border-top: 1px solid var(--border); padding: 40px 20px; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1.1rem; color: var(--primary-light); margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 6px; }
.footer-copy { font-size: 0.72rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .tradition-cards { grid-template-columns: repeat(3, 1fr); }
    .mount-grid { grid-template-columns: repeat(2, 1fr); }
    .mounts-guide-grid { grid-template-columns: repeat(2, 1fr); }
    .anatomy-main { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .analysis-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .tradition-cards { grid-template-columns: repeat(2, 1fr); }
    .finger-grid { grid-template-columns: repeat(3, 1fr); }
    .guide-step { flex-direction: column; padding: 20px; }
    .hand-position-demo { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
    .toggle-options { grid-template-columns: 1fr; }
    .lines-guide-grid { grid-template-columns: 1fr; }
    .portal-title { font-size: 2rem; }
    .portal-ring { display: none; }
    .portal-glow { width: 300px; height: 300px; }
    .section-title { font-size: 1.5rem; }
    .guide-tabs { gap: 6px; }
    .guide-tab { padding: 10px 14px; font-size: 0.78rem; }
    .nav-lang-wrap .lang-name { display: none; }
}

@media (max-width: 480px) {
    :root { --nav-height: 60px; }
    .nav-title { display: none; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .analysis-grid { grid-template-columns: 1fr; }
    .mount-grid { grid-template-columns: 1fr; }
    .finger-grid { grid-template-columns: repeat(2, 1fr); }
    .tradition-cards { grid-template-columns: 1fr; }
    .mounts-guide-grid { grid-template-columns: 1fr; }
    .upload-area { grid-template-columns: 1fr; }
    .upload-zone { aspect-ratio: 4/5; }
    .disclaimer-container { max-height: 95vh; }
    .disclaimer-header { padding: 25px 20px 15px; }
    .disclaimer-icon { font-size: 48px; }
    .disclaimer-title { font-size: 1.5rem; }
    .disclaimer-body { padding: 20px; }
    .btn-primary { padding: 14px 24px; font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal-up { animation: revealUp 0.6s ease-out both; }
.result-section:nth-child(1) { animation-delay: 0.1s; }
.result-section:nth-child(2) { animation-delay: 0.2s; }
.result-section:nth-child(3) { animation-delay: 0.3s; }
.result-section:nth-child(4) { animation-delay: 0.4s; }
.result-section:nth-child(5) { animation-delay: 0.5s; }

.overview-element-card { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; margin: 8px 4px; }
.element-earth { background: rgba(139, 69, 19, 0.15); color: #d4a574; border: 1px solid rgba(139, 69, 19, 0.3); }
.element-air { background: rgba(135, 206, 235, 0.15); color: #87CEEB; border: 1px solid rgba(135, 206, 235, 0.3); }
.element-water { background: rgba(65, 105, 225, 0.15); color: #6495ED; border: 1px solid rgba(65, 105, 225, 0.3); }
.element-fire { background: rgba(255, 69, 0, 0.15); color: #FF6B35; border: 1px solid rgba(255, 69, 0, 0.3); }

.btn-new-reading { background: linear-gradient(135deg, var(--palmistry-emerald), #059669); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3); }
.btn-new-reading:hover { box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5); }

/* Print */
@media print {
    #cosmicCanvas, .main-nav, .main-footer, .results-actions, .mobile-menu { display: none !important; }
    body { background: white; color: #333; }
    .result-card-body { max-height: none !important; }
    .result-card { border: 1px solid #ccc; }
}