/* ============================================
   ESOTERIC UNIFIED - Modern Esoteric Design 2026
   GLASSMORPHISM STYLE
   ============================================ */

:root {
    --eso-primary: #0f0f1a;
    --eso-secondary: #1a1a2e;
    --eso-accent: #e94560;
    --eso-gold: #d4af37;
    --eso-purple: #7b2cbf;
    --eso-cyan: #00d9ff;
    --eso-text: #f0f0f0;
    --eso-text-muted: #a0a0a0;
    
    /* Glassmorphism variables */
    --eso-glass-bg: rgba(255, 255, 255, 0.03);
    --eso-glass-bg-hover: rgba(255, 255, 255, 0.08);
    --eso-glass-border: rgba(255, 255, 255, 0.08);
    --eso-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --eso-glass-blur: blur(16px);
    
    --eso-glow: 0 0 30px rgba(233, 69, 96, 0.3);
    --eso-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradient colors for animation */
    --gradient-1: #e94560;
    --gradient-2: #7b2cbf;
    --gradient-3: #00d9ff;
    --gradient-4: #d4af37;
    
    /* UNIFIED BUTTON GRADIENT */
    --eso-btn-gradient: radial-gradient(at center center, #270980 0%, #7b2cbf 50%, #e94560 100%);
    --eso-btn-gradient-hover: radial-gradient(at center center, #3a1a99 0%, #9b4dcf 50%, #ff6b8a 100%);
}

/* Animated Gradient Background - Glassmorphism Base */
.esoteric-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    overflow: hidden;
}

.esoteric-page-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(0, 217, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    animation: eso-bg-drift 20s ease-in-out infinite;
}

.esoteric-page-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

@keyframes eso-bg-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* Floating particles for atmosphere */
.esoteric-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.esoteric-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: eso-float 15s infinite;
}

.esoteric-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.esoteric-particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 18s; }
.esoteric-particle:nth-child(3) { left: 40%; top: 40%; animation-delay: 4s; animation-duration: 14s; }
.esoteric-particle:nth-child(4) { left: 60%; top: 10%; animation-delay: 1s; animation-duration: 16s; }
.esoteric-particle:nth-child(5) { left: 80%; top: 60%; animation-delay: 3s; animation-duration: 20s; }
.esoteric-particle:nth-child(6) { left: 90%; top: 30%; animation-delay: 5s; animation-duration: 13s; }
.esoteric-particle:nth-child(7) { left: 30%; top: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.esoteric-particle:nth-child(8) { left: 70%; top: 90%; animation-delay: 4.5s; animation-duration: 15s; }

@keyframes eso-float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

.esoteric-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
    background: rgba(30, 20, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.esoteric-grid-wrapper {
    text-align: center;
    padding: 20px 0;
}

/* Article Card Style Button */
.esoteric-oracle-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    min-height: 210px;
    width: 100%;
    background: rgba(30, 20, 50, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.esoteric-oracle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4a853, #e8c678, #d4a853);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease;
}

.esoteric-oracle-btn:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 83, 0.2);
}

.esoteric-oracle-btn:hover::before {
    transform: scaleX(1);
}

/* Floating animation */
.esoteric-oracle-btn {
    animation: float-subtle 6s ease-in-out infinite;
}

/* Link variant (for tarot, runes, etc) */
.esoteric-oracle-link {
    text-decoration: none !important;
    cursor: pointer;
    background: rgba(30, 20, 50, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.esoteric-oracle-link:hover {
    animation: none;
}

.esoteric-oracle-btn:hover {
    animation: none;
}

/* Icon glow effect */
.esoteric-oracle-btn .oracle-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.5));
    transition: all 0.4s ease;
}

.esoteric-oracle-btn:hover .oracle-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.6));
}

.esoteric-oracle-btn .oracle-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f0f0;
    text-align: center;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}

/* Description under button */
.esoteric-oracle-btn .oracle-desc {
    display: block;
    font-size: 0.85rem;
    color: #a0a0a0;
    text-align: center;
    z-index: 1;
    opacity: 0.8;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-border-flow {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes shadow-pulse {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(233, 69, 96, 0.3), 0 0 40px rgba(123, 44, 191, 0.2);
    }
    50% { 
        box-shadow: 0 0 30px rgba(233, 69, 96, 0.5), 0 0 60px rgba(123, 44, 191, 0.4), 0 0 80px rgba(0, 217, 255, 0.3);
    }
}
    color: var(--eso-text);
    text-align: center;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Category labels */
.esoteric-grid::before {
    content: 'Esoteric';
    display: block;
    grid-column: 1 / -1;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--eso-gold);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--eso-glass-border);
}

/* ============================================
   UNIFIED POPUP SYSTEM
   ============================================ */

.esoteric-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, 0.9);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.esoteric-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Simple Esoteric Gradient Popup */
.esoteric-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(30, 20, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

/* Gold accent line on top */
.esoteric-popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4a853, #e8c678, #d4a853);
}

/* Subtle glow behind popup */
.esoteric-popup-container::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.esoteric-popup-container.active::after {
    opacity: 1;
}

.esoteric-popup-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(233, 69, 96, 0.4),
        0 0 100px rgba(123, 44, 191, 0.3),
        0 0 140px rgba(0, 217, 255, 0.2);
}

/* Simple Close Button */
.esoteric-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(30, 20, 50, 0.8);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 0;
    color: #d4a853;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.esoteric-popup-close:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: #d4a853;
    color: #e8c678;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.3);
}

/* Numerology Grid */
.numerology-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.numerology-grid .esoteric-oracle-btn {
    min-height: 180px;
}

/* Numerology Popup */
#numerology-popup {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, 0.9);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#numerology-popup.active {
    opacity: 1;
    visibility: visible;
}

.numerology-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(30, 20, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: all 0.4s ease;
}

#numerology-popup.active .numerology-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.numerology-title {
    color: #d4a853;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.numerology-form {
    margin-top: 20px;
}

.numerology-result {
    text-align: left;
}

.numerology-result h3 {
    color: #d4a853;
    margin-bottom: 10px;
}

.numerology-result p {
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.esoteric-popup-content {
    padding: 30px 24px 24px;
    text-align: center;
    position: relative;
}

/* Subtle mystical particles in background */
.esoteric-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(233, 69, 96, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 20px;
}

/* Popup header with glass shine */
.oracle-popup-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--eso-glass-border);
}

.oracle-popup-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--eso-gold), transparent);
}

.oracle-popup-header .oracle-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.oracle-popup-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eso-gold);
    margin: 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.oracle-popup-header p {
    font-size: 0.9rem;
    color: var(--eso-text-muted);
    margin: 8px 0 0;
    font-style: italic;
}

/* Popup result */
.oracle-result {
    padding: 30px;
    background: 
        radial-gradient(ellipse at top, rgba(123, 44, 191, 0.2) 0%, transparent 60%),
        var(--eso-glass);
    border-radius: 16px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.oracle-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--eso-cyan), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.oracle-result .answer {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d9ff, #e94560, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.5));
    margin-bottom: 16px;
    animation: answer-glow 2s ease-in-out infinite;
}

@keyframes answer-glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(233, 69, 96, 0.7)); }
}

.oracle-result .description {
    font-size: 1rem;
    color: var(--eso-text);
    line-height: 1.6;
}

/* Simple oracles (yes/no, abc, etc) */
.oracle-simple {
    padding: 20px 10px;
    position: relative;
    z-index: 1;
}

.oracle-simple .big-answer {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d4af37, #e94560, #00d9ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: big-answer-glow 3s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

@keyframes big-answer-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 35px rgba(233, 69, 96, 0.7));
        transform: scale(1.05);
    }
}
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--eso-gold), var(--eso-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s ease-in-out infinite;
}

.oracle-simple .message {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--eso-text);
    line-height: 1.6;
}

/* Number oracle */
.oracle-number .number-display {
    font-size: 6rem;
    font-weight: 900;
    color: var(--eso-cyan);
    text-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
    animation: number-appear 0.5s ease-out;
}

/* Tarot cards */
.oracle-tarot .tarot-card {
    display: inline-block;
    padding: 20px;
    background: linear-gradient(180deg, #2a2a4a, #1a1a2e);
    border: 2px solid var(--eso-gold);
    border-radius: 12px;
    margin: 10px;
}

.oracle-tarot .card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eso-gold);
    margin-bottom: 8px;
}

.oracle-tarot .card-meaning {
    font-size: 0.95rem;
    color: var(--eso-text-muted);
}

.oracle-tarot .tarot-spread {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Runes oracle */
.oracle-runes .rune-symbol {
    font-size: 5rem;
    color: var(--eso-accent);
    text-shadow: 0 0 30px var(--eso-accent);
    animation: rune-appear 0.6s ease-out;
}

.oracle-runes .rune-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--eso-text);
    margin: 16px 0;
}

.oracle-runes .rune-meaning {
    color: var(--eso-text-muted);
    line-height: 1.6;
}

/* Colors oracle */
.oracle-colors .color-display {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px currentColor;
    animation: color-pulse 2s ease-in-out infinite;
}

.oracle-colors .color-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eso-text);
    margin-bottom: 12px;
}

/* 3 cards spread */
.tarot-spread-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tarot-spread-3 .card {
    padding: 16px 12px;
    background: var(--eso-glass);
    border-radius: 12px;
    border: 1px solid var(--eso-glass-border);
}

.tarot-spread-3 .card-position {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--eso-gold);
    margin-bottom: 8px;
}

/* Simple Close button */
.oracle-popup-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(123, 44, 191, 0.2);
}

.oracle-popup-footer button {
    position: relative;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2d1b4e, #1a0a2e);
    border: 1px solid rgba(123, 44, 191, 0.4);
    border-radius: 30px;
    color: var(--eso-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.oracle-popup-footer button::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 ease;
}

.oracle-popup-footer button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #7b2cbf, #e94560);
    border-color: #e94560;
    color: white;
    box-shadow: 
        0 10px 30px rgba(233, 69, 96, 0.3),
        0 0 20px rgba(212, 175, 55, 0.2);
}

.oracle-popup-footer button:hover::before {
    left: 100%;
}

/* Loading state */
.oracle-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.oracle-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--eso-glass-border);
    border-top-color: var(--eso-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   528HZ AUDIO PLAYER MODAL
   ============================================ */

.esoteric-528-overlay {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), #0a0a15 100%);
}

.esoteric-528-player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    padding: 40px;
    background: radial-gradient(circle at 50% 30%, #1a1a3e, #0a0a15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--eso-transition);
}

.esoteric-528-player.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.esoteric-528-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--eso-gold);
    border-radius: 50%;
    color: var(--eso-gold);
    font-size: 20px;
    cursor: pointer;
    transition: var(--eso-transition);
}

.esoteric-528-close:hover {
    background: var(--eso-gold);
    color: var(--eso-primary);
}

/* Visualizer orb */
.esoteric-528-visualizer {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}

.esoteric-528-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #00d9ff, #7b2cbf, transparent);
    border-radius: 50%;
    box-shadow: 0 0 60px #00d9ff, 0 0 100px rgba(123, 44, 191, 0.5);
    animation: orb-pulse 3s ease-in-out infinite;
}

.esoteric-528-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: ring-expand 4s ease-out infinite;
}

.esoteric-528-ring.ring-1 {
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.esoteric-528-ring.ring-2 {
    width: 120px;
    height: 120px;
    animation-delay: 1s;
}

.esoteric-528-ring.ring-3 {
    width: 160px;
    height: 160px;
    animation-delay: 2s;
}

.esoteric-528-ring.ring-1,
.esoteric-528-ring.ring-2,
.esoteric-528-ring.ring-3 {
    opacity: 0;
}

.esoteric-528-player.playing .esoteric-528-ring {
    opacity: 1;
}

.esoteric-528-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--eso-gold);
    margin: 0 0 8px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.esoteric-528-subtitle {
    font-size: 0.9rem;
    color: var(--eso-text-muted);
    margin: 0 0 24px;
}

.esoteric-528-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.esoteric-528-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--eso-cyan), var(--eso-purple));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--eso-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.esoteric-528-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
}

.esoteric-528-timer {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--eso-text-muted);
    font-family: monospace;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
    }
}

@keyframes number-appear {
    0% { 
        opacity: 0;
        transform: scale(0.5);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rune-appear {
    0% { 
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes color-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 40px currentColor;
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 60px currentColor;
    }
}

@keyframes orb-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 60px #00d9ff, 0 0 100px rgba(123, 44, 191, 0.5);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 80px #00d9ff, 0 0 120px rgba(123, 44, 191, 0.7);
    }
}

@keyframes ring-expand {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .esoteric-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        justify-items: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .esoteric-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        justify-items: center;
        padding: 20px;
    }
    
    .esoteric-oracle-btn {
        min-height: 150px;
        padding: 16px 10px;
    }
    
    .esoteric-oracle-btn .oracle-icon {
        font-size: 2.5rem;
    }
    
    .esoteric-oracle-btn .oracle-name {
        font-size: 0.9rem;
    }
    
    .esoteric-oracle-btn .oracle-desc {
        display: block;
        font-size: 0.75rem;
    }
    
    .esoteric-popup-container {
        width: 92%;
        max-height: 85vh;
        padding: 0;
    }
    
    .esoteric-popup-content {
        padding: 24px 16px 16px;
    }
    
    .oracle-simple {
        padding: 16px 8px;
    }
    
    .oracle-simple .big-answer {
        font-size: 2.5rem;
    }
    
    .oracle-popup-header .oracle-icon {
        font-size: 3rem;
    }
    
    .oracle-popup-header h2 {
        font-size: 1.3rem;
    }
    
    .tarot-spread-3 {
        grid-template-columns: 1fr;
    }
    
    .esoteric-popup-container:not(.rune-popup):not(.tarot-popup):not(.angel-popup) {
        overflow-y: hidden !important;
    }
}

@media (max-width: 480px) {
    .esoteric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        justify-items: center;
        padding: 15px;
    }
    
    .esoteric-oracle-btn {
        min-height: 130px;
        padding: 12px 8px;
    }
    
    .esoteric-oracle-btn .oracle-icon {
        font-size: 2rem;
    }
    
    .esoteric-oracle-btn .oracle-name {
        font-size: 0.8rem;
    }
    
    .esoteric-oracle-btn .oracle-desc {
        display: none;
    }
    
    .esoteric-popup-container {
        width: 95%;
        max-height: 80vh;
    }
    
    .esoteric-popup-content {
        padding: 20px 12px 12px;
    }
    
    .oracle-simple .big-answer {
        font-size: 2rem;
    }
    
    .oracle-popup-footer button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ============================================
   RUNES PAGE STYLES
   ============================================ */

.esoteric-runes-tiraje {
    padding: 20px 0;
}

.runes-section-title {
    color: var(--eso-gold);
    font-size: 1.2rem;
    margin: 30px 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #2d1b4e, #1a0a2e);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: 30px;
    padding: 12px 24px;
    display: inline-block;
    width: auto;
}

.runes-tiraje-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.runes-list-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Rune popup with scroll */
.esoteric-popup-container.rune-popup {
    max-height: 85vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e94560 #1a1a2e;
}

.esoteric-popup-container.rune-popup::-webkit-scrollbar {
    width: 8px;
}

.esoteric-popup-container.rune-popup::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.esoteric-popup-container.rune-popup::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e94560, #7b2cbf);
    border-radius: 4px;
}

/* Scroll indicator - bottom (deprecated, kept for compatibility) */
.rune-scroll-indicator {
    display: none;
}

/* Scroll indicator - TOP */
.rune-scroll-indicator-top,
.tarot-scroll-indicator-top {
    display: none;
    position: relative;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
    animation: scroll-bounce-top 2s infinite;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

@keyframes scroll-bounce-top {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(5px); opacity: 1; }
}

.esoteric-popup-container.rune-popup.has-scroll .rune-scroll-indicator-top,
.esoteric-popup-container.tarot-popup.has-scroll .tarot-scroll-indicator-top {
    display: block;
}

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

.esoteric-popup-container.rune-popup .esoteric-popup-content {
    padding: 30px 24px 50px;
    min-height: 200px;
}

.rune-popup-result {
    text-align: center;
}

.rune-symbol-display {
    font-size: 5rem;
    color: var(--eso-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    margin-bottom: 16px;
    animation: rune-appear 0.6s ease-out;
}

.rune-name-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--eso-text);
    margin-bottom: 8px;
}

.rune-position-label {
    font-size: 0.8rem;
    color: var(--eso-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.rune-meaning-display {
    font-size: 1rem;
    color: var(--eso-text-muted);
    line-height: 1.7;
    text-align: left;
    padding: 16px;
    background: var(--eso-glass);
    border-radius: 12px;
    border-left: 3px solid var(--eso-gold);
    margin-top: 16px;
}

.rune-reversed-label {
    color: var(--eso-accent);
    font-style: italic;
    margin-top: 8px;
}

.rune-popup-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--eso-gold), transparent);
    margin: 24px 0;
}

/* ============================================
   TAROT PAGE STYLES
   ============================================ */

.esoteric-tarot-tiraje {
    padding: 20px 0;
}

.tarot-section-title {
    color: var(--eso-gold);
    font-size: 1.2rem;
    margin: 30px 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #2d1b4e, #1a0a2e);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: 30px;
    padding: 12px 24px;
    display: inline-block;
    width: auto;
}

.tarot-tiraje-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tarot popup with scroll */
.esoteric-popup-container.tarot-popup {
    max-height: 85vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #9b59b6 #1a1a2e;
}

.esoteric-popup-container.tarot-popup::-webkit-scrollbar {
    width: 8px;
}

.esoteric-popup-container.tarot-popup::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.esoteric-popup-container.tarot-popup::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9b59b6, #3498db);
    border-radius: 4px;
}

.esoteric-popup-container.tarot-popup .esoteric-popup-content {
    padding: 30px 24px 50px;
    min-height: 200px;
}

.tarot-popup-result {
    text-align: center;
}

.tarot-card-display {
    padding: 16px;
    background: var(--eso-glass);
    border-radius: 12px;
    border-left: 3px solid #9b59b6;
    margin: 12px 0;
    text-align: left;
}

.tarot-position-label {
    font-size: 0.8rem;
    color: #9b59b6;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    margin-top: 16px;
}

.tarot-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--eso-text);
    margin-bottom: 8px;
}

.tarot-card-meaning {
    font-size: 0.95rem;
    color: var(--eso-text-muted);
    line-height: 1.6;
}

.tarot-reversed-label {
    color: var(--eso-accent);
    font-style: italic;
    margin-bottom: 4px;
}

.tarot-popup-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9b59b6, transparent);
    margin: 20px 0;
}

/* ============================================
   ANGELS PAGE STYLES
   ============================================ */

.esoteric-angels-tiraje {
    padding: 20px 0;
}

.angel-section-title {
    color: var(--eso-gold);
    font-size: 1.2rem;
    margin: 30px 0 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #2d1b4e, #1a0a2e);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: 30px;
    padding: 12px 24px;
    display: inline-block;
    width: auto;
}

.angels-tiraje-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.angels-list-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.esoteric-oracle-btn .oracle-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 8px;
}

/* Angel popup with scroll */
.esoteric-popup-container.angel-popup {
    max-height: 85vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #1a1a2e;
}

.esoteric-popup-container.angel-popup::-webkit-scrollbar {
    width: 8px;
}

.esoteric-popup-container.angel-popup::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.esoteric-popup-container.angel-popup::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffd700, #ff8c00);
    border-radius: 4px;
}

.esoteric-popup-container.angel-popup .esoteric-popup-content {
    padding: 30px 24px 50px;
    min-height: 200px;
}

.angel-popup-result {
    text-align: center;
}

.angel-card-display {
    padding: 16px;
    background: var(--eso-glass);
    border-radius: 12px;
    border-left: 3px solid #ffd700;
    margin: 12px 0;
    text-align: left;
}

.angel-position-label {
    font-size: 0.8rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    margin-top: 16px;
}

.angel-name-display {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.angel-domain-display {
    font-size: 0.9rem;
    color: #cc9f75;
    font-style: italic;
    margin-bottom: 8px;
}

.angel-description {
    font-size: 0.95rem;
    color: var(--eso-text);
    line-height: 1.5;
    margin-bottom: 12px;
}

.angel-message {
    font-size: 1rem;
    color: #fff;
    font-style: italic;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border-left: 2px solid #ffd700;
}

.angel-popup-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 20px 0;
}

/* Angel scroll indicator */
.angel-scroll-indicator-top {
    display: none;
    position: relative;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
    animation: scroll-bounce-top 2s infinite;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.esoteric-popup-container.angel-popup.has-scroll .angel-scroll-indicator-top {
    display: block;
}
