.close-oroscopo {
    position: absolute; right: 15px; top: 15px;
    font-size: 24px; cursor: pointer; color: #888;
}

/* Corpo e Card */
.modal-astro-body {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.daily-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-title {
    font-weight: bold; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}

.card-meteo {
    font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.1);
}

/* Barre di Energia (Marea) */
.energy-track {
    width: 100%; height: 6px; background: rgba(0,0,0,0.3); border-radius: 3px; margin: 8px 0; overflow: hidden;
}

.energy-fill {
    height: 100%; width: 0%; transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
}

/* Colori dinamici per ambiti */
.cat-amore { color: #ff6b6b; }
.fill-amore { background: linear-gradient(90deg, #ee0979, #ff6b6b); }

.cat-lavoro { color: #4dadf7; }
.fill-lavoro { background: linear-gradient(90deg, #2193b0, #6dd5ed); }

.cat-salute { color: #51cf66; }
.fill-salute { background: linear-gradient(90deg, #11998e, #38ef7d); }

.cat-fortuna { color: #fcc419; }
.fill-fortuna { background: linear-gradient(90deg, #f2994a, #f2c94c); }

/* Testo dell'aspetto */
.aspect-text {
    font-size: 0.85rem; line-height: 1.4; color: #ccc; margin-top: 8px; font-style: italic;
}

/* Form di inserimento (se mancano dati) */
#oroscopo-step-form { padding: 20px; text-align: center; }
#oroscopo-step-form input {
    width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 8px; border: 1px solid #333; background: #000; color: #fff;
}
.astro-submit-btn {
    background: #c9a050; color: #000; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; cursor: pointer;
}

.modal-astro-slim {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
}

.modal-content {
    background: #0a0e17; border: 1px solid #c9a050;
    max-width: 500px; margin: 5% auto; padding: 20px; border-radius: 15px;
}

.daily-card {
    background: rgba(255,255,255,0.05); border-left: 4px solid #c9a050;
    margin-bottom: 15px; padding: 15px; border-radius: 0 10px 10px 0;
}

.energy-bar-container {
    background: #222; height: 8px; border-radius: 4px; margin: 10px 0;
}

.energy-bar-fill {
    height: 100%; border-radius: 4px; transition: width 1s ease-in-out;
    background: linear-gradient(90deg, #c9a050, #fff);
}

/* Nasconde il modal di default */
/* Container del Modal */
.modal-astro-slim {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}


/* Lo mostra solo quando aggiungiamo la classe .active via JS */
.modal-astro-slim.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-astro-slim.active {
    display: flex;
}

/* Contenuto del Pop-up */
.modal-astro-content {
    background: #1a1f2c; /* Sfondo scuro profondo */
    color: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    border: 1px solid rgba(201, 160, 80, 0.3); /* Bordo oro tenue */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.modal-astro-header {
    padding: 20px;
    background: linear-gradient(to bottom, rgba(201, 160, 80, 0.1), transparent);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-astro-header h2 {
    margin: 0; font-size: 1.4rem; color: #c9a050; letter-spacing: 1px;
}

.oroscopo-modal {
    display: none; /* Di base è chiuso, il JS lo aprirà */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* MODIFICA QUI: Abbiamo ridotto l'opacità da 0.9 a 0.7 */
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 999999 !important; /* Mantiene il pop-up sopra tutto */
    justify-content: center;
    align-items: center;
    /* Opzionale: aggiunge un leggero effetto sfocatura allo sfondo */
    backdrop-filter: blur(3px); 
}


.oroscopo-modal-content {
    background: #5e3e93;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid #c9a050;
}