:root {
    --bg-color: #0b0514;
    --card-bg: rgba(20, 10, 45, 0.5);
    --card-border: rgba(180, 130, 255, 0.15);
    --text-primary: #f4efff;
    --text-secondary: rgba(244, 239, 255, 0.6);
    --accent-gold: #e2baff;
    --accent-glow: #a855f7;
    --gradient-mystic: linear-gradient(135deg, #a855f7, #6366f1);
    --glass-blur: 35px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Fundo Galáxia Épico --- */
.mystical-bg { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; 
    background-color: #0b0514;
    overflow: hidden;
}

/* Imagem da galáxia de fundo com movimento suave */
.galaxy-layer {
    position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    background-image: url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?q=80&w=2048&auto=format&fit=crop');
    background-size: cover; background-position: center;
    opacity: 0.35; mix-blend-mode: screen;
    animation: galaxy-drift 120s linear infinite alternate;
}
@keyframes galaxy-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -2%); } }

/* Gradiente para escurecer as bordas e dar foco no centro */
.dark-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(21, 9, 48, 0.4) 0%, rgba(11, 5, 20, 0.95) 100%);
}

.stars { position: absolute; width: 100%; height: 100%; background: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 0.4; animation: pulse-stars 6s infinite alternate; }
@keyframes pulse-stars { from { opacity: 0.2; } to { opacity: 0.6; } }

.nebula { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.25; mix-blend-mode: screen; }
.nebula-1 { width: 800px; height: 800px; top: -200px; right: -200px; background: #8b5cf6; animation: float-1 25s infinite alternate; }
.nebula-2 { width: 700px; height: 700px; bottom: -150px; left: -150px; background: #c026d3; animation: float-2 30s infinite alternate-reverse; }
.nebula-3 { width: 600px; height: 600px; top: 40%; left: 30%; background: #4f46e5; animation: float-3 35s infinite alternate; opacity: 0.15; }
@keyframes float-1 { from { transform: translate(0,0) scale(1); } to { transform: translate(80px,-80px) scale(1.1); } }
@keyframes float-2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-80px,80px) scale(1.1); } }
@keyframes float-3 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.2); } }

/* --- Header --- */
header { padding: 2.5rem 0; }
nav { display: flex; justify-content: space-between; align-items: center; }
.date-display { color: var(--accent-gold); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 6px; text-align: right; }
#greeting { font-style: italic; opacity: 0.6; font-weight: 300; font-size: 0.9rem; text-align: right; }

/* --- Logo CSS Puro --- */
.css-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}
.logo-icon {
    font-size: 2rem;
    background: var(--gradient-mystic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
    animation: logo-pulse 3s ease-in-out infinite alternate;
}
@keyframes logo-pulse { from { filter: drop-shadow(0 0 10px rgba(168,85,247,0.4)); } to { filter: drop-shadow(0 0 25px rgba(168,85,247,0.8)); } }
.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
}
.logo-highlight {
    font-weight: 600;
    background: var(--gradient-mystic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero --- */
.hero { text-align: center; padding: 2rem 1rem; }
.mystic-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 10vw, 5rem); font-weight: 300; }
.solar-gradient { background: var(--gradient-mystic); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; letter-spacing: 2px; }

/* --- Cards --- */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 3rem; margin-bottom: 6rem; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 40px;
    padding: 2.5rem;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
}
.card:hover { border-color: rgba(180,130,255,0.4); transform: translateY(-8px); }

.card-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* --- Mensagens --- */
.inspiration-card { text-align: center; }
#main-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-style: italic;
    line-height: 1.25;
    margin: 2rem 0;
    transition: opacity 0.4s;
}
.mystic-btn {
    background: var(--gradient-mystic);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 100px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(168,85,247,0.3);
}
.mystic-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(168,85,247,0.5); filter: brightness(1.15); }

/* --- Horóscopo --- */
.zodiac-card { grid-column: 1 / -1; text-align: center; }
.zodiac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 15px; margin-bottom: 2rem; }
.sign-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    aspect-ratio: 1;
    font-size: 1.6rem;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    display: flex; align-items: center; justify-content: center;
}
.sign-btn:hover, .sign-btn.active { background: var(--gradient-mystic); border-color: transparent; box-shadow: 0 0 20px var(--accent-glow); transform: scale(1.1); }
.reading-box {
    background: rgba(0,0,0,0.15);
    padding: 2.5rem;
    border-radius: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    line-height: 1.6;
    min-height: 130px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.4s;
}
.reading-box b { color: var(--accent-gold); }

/* --- Rádio Astral (YouTube compacto) --- */
.radio-card {
    text-align: center;
}
.aura-selector { display: flex; justify-content: center; gap: 14px; margin-bottom: 2rem; }
.aura-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 60px; height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.35s;
    display: flex; align-items: center; justify-content: center;
}
.aura-btn:hover, .aura-btn.active { background: var(--gradient-mystic); border-color: transparent; box-shadow: 0 0 20px var(--accent-glow); transform: scale(1.12); }

/* Player YouTube compacto */
.yt-music-bar {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    width: 250px;
    height: 250px;
    margin: 0 auto;
}
.yt-music-bar iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.radio-hint { font-size: 0.78rem; color: var(--text-secondary); font-style: italic; margin-top: 1rem; }

/* Mixer Astral */
.mixer-controls { display: flex; justify-content: center; gap: 15px; }
.mixer-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 50px; height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.mixer-btn:hover, .mixer-btn.active {
    background: rgba(168,85,247,0.3);
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

/* Fase da Lua */
.moon-card { text-align: center; }
.moon-display { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 1rem; }
#moon-image-container {
    width: 100px; height: 100px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(200, 200, 255, 0.4);
    animation: moon-float 4s ease-in-out infinite alternate;
    overflow: hidden;
}
#moon-visual {
    width: 100%; height: 100%; object-fit: cover;
}
@keyframes moon-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
#moon-name { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; }
#moon-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

/* --- Timer --- */
.timer-card { text-align: center; }
.timer-display { font-family: 'Cormorant Garamond', serif; font-size: 5.5rem; font-weight: 300; margin-bottom: 1rem; }
.timer-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.gold-btn { background: var(--gradient-mystic); color: white; border: none; padding: 18px; border-radius: 100px; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; cursor: pointer; transition: 0.4s; font-size: 0.85rem; }
.gold-btn:hover { box-shadow: 0 12px 35px rgba(168,85,247,0.4); }
.text-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; text-decoration: underline; font-size: 0.85rem; padding: 8px; }

/* --- Respiração --- */
.breathing-card { text-align: center; }
.breathing-container { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.breathing-circle { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, #c026d3, #6366f1); box-shadow: 0 0 60px rgba(168,85,247,0.3); transition: transform 4s ease-in-out; }
.breathing-circle.inhale { transform: scale(1.7); box-shadow: 0 0 100px rgba(168,85,247,0.5); }
.ethereal-btn { background: rgba(138,43,226,0.15); color: white; border: 1px solid rgba(138,43,226,0.4); padding: 14px 28px; border-radius: 100px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.4s; font-size: 0.9rem; }
.ethereal-btn:hover { background: rgba(138,43,226,0.3); }

/* --- Animações --- */
.animate-in { animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) forwards; }
.animate-in-delay-1 { opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 0.1s forwards; }
.animate-in-delay-2 { opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 0.2s forwards; }
.animate-in-delay-3 { opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 0.3s forwards; }
.animate-in-delay-4 { opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 0.4s forwards; }
.animate-in-delay-5 { opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 0.5s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

footer { padding: 4rem 0; text-align: center; color: var(--text-secondary); font-size: 0.7rem; letter-spacing: 5px; text-transform: uppercase; opacity: 0.4; }

@media (max-width: 600px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .card { padding: 1.8rem; border-radius: 30px; }
    .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
    #main-quote { font-size: 1.8rem; }
    .logo-text { font-size: 1.6rem; }
}
