/* =============================================
   The Divine Answer — Cosmic Theme
   thedivineanswer.com / freefortune.app
   ============================================= */

/* --- CSS Variables --- */
:root {
    --bg-deep: #050510;
    --bg-card: rgba(15, 12, 30, 0.85);
    --bg-card-solid: #0f0c1e;
    --bg-secondary: rgba(25, 20, 50, 0.7);
    --bg-input: rgba(20, 15, 40, 0.9);
    --border: rgba(139, 92, 246, 0.15);
    --border-gold: rgba(255, 215, 0, 0.25);

    --text-primary: #f0eaf8;
    --text-secondary: #c4b5db;
    --text-muted: #8071a0;
    --text-divine: #ffd700;

    --gold: #ffd700;
    --gold-dim: rgba(255, 215, 0, 0.12);
    --gold-glow: rgba(255, 215, 0, 0.4);
    --purple: #8b5cf6;
    --purple-dim: rgba(139, 92, 246, 0.12);
    --purple-glow: rgba(139, 92, 246, 0.4);
    --cyan: #7dd3fc;
    --rose: #f472b6;

    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
    --font-ui: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;

    --sidebar-width: 240px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.12rem;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

/* --- Starfield Canvas --- */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Fog Overlay --- */
.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        linear-gradient(to top, rgba(5, 5, 16, 0.95) 0%, transparent 40%);
}

.fog-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(8, 5, 20, 0.95);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1.4;
}

.logo-text strong {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    letter-spacing: 3px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--purple-dim);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--gold-dim), var(--purple-dim));
    color: var(--gold);
    font-weight: 500;
    border: 1px solid var(--border-gold);
}

.link-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 16px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    transition: var(--transition);
}

.sound-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.sound-toggle.active {
    color: var(--gold);
    border-color: var(--border-gold);
}

/* --- Mobile Bar --- */
.mobile-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(8, 5, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-bar .nav-logo {
    gap: 8px;
}

.mobile-bar .logo-icon {
    font-size: 1.3rem;
}

.mobile-bar .logo-text {
    font-size: 0.65rem;
}

.mobile-bar .logo-text strong {
    font-size: 0.75rem;
    display: inline;
}

.sound-toggle-mobile {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: var(--transition);
}

.sound-toggle-mobile:hover {
    opacity: 1;
}

/* --- Main Wrapper --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* --- App Sections --- */
.app-section {
    display: none;
    padding: 40px 32px;
    max-width: 900px;
    margin: 0 auto;
    animation: sectionFadeIn 0.5s ease;
}

.app-section.active {
    display: block;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.divine-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 3px;
    text-shadow: 0 0 30px var(--gold-glow);
    margin-bottom: 12px;
}

.divine-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Divine Button --- */
.divine-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.divine-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(139, 92, 246, 0.25));
    transform: scale(1.03);
    box-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(139, 92, 246, 0.15);
}

.btn-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* --- Oracle Section --- */
.oracle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.oracle-eye {
    width: 120px;
    height: 120px;
    position: relative;
}

.eye-outer {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), rgba(255, 215, 0, 0.1), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: eyePulse 4s ease-in-out infinite;
    box-shadow: 0 0 40px var(--purple-glow), 0 0 80px rgba(139, 92, 246, 0.1);
}

.eye-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 20%, var(--purple) 60%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--gold-glow);
}

.eye-pupil {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-deep);
    box-shadow: inset 0 0 8px rgba(139, 92, 246, 0.5);
    animation: pupilLook 6s ease-in-out infinite;
}

@keyframes eyePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--purple-glow);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px var(--purple-glow), 0 0 100px rgba(255, 215, 0, 0.15);
    }
}

@keyframes pupilLook {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(3px, -2px);
    }

    50% {
        transform: translate(-2px, 1px);
    }

    75% {
        transform: translate(1px, 3px);
    }
}

.oracle-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 500px;
}

.oracle-input {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    text-align: center;
    transition: var(--transition);
    outline: none;
}

.oracle-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.oracle-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-dim);
}

/* --- Oracle Answer --- */
.oracle-answer-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: answerReveal 1.5s ease;
}

.answer-aura {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gold-glow), var(--purple-glow), var(--gold-glow));
    background-size: 200% 200%;
    animation: auraShift 4s ease-in-out infinite;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.5;
}

@keyframes auraShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.answer-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
}

.ask-again-btn {
    margin-top: 24px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.ask-again-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@keyframes answerReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }

    50% {
        opacity: 0.5;
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* --- Fortune Section --- */
.fortune-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.fortune-date {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
}

.fortune-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    width: 100%;
}

.fortune-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    animation: cardSlideUp 0.5s ease both;
}

.fortune-card:nth-child(2) {
    animation-delay: 0.1s;
}

.fortune-card:nth-child(3) {
    animation-delay: 0.2s;
}

.fortune-card:nth-child(4) {
    animation-delay: 0.3s;
}

.fortune-card:nth-child(5) {
    animation-delay: 0.4s;
}

.fortune-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fortune-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fortune-card-icon {
    font-size: 1.5rem;
}

.fortune-card-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.fortune-card-stars {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gold);
}

.fortune-card-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.fortune-overall {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.fortune-overall-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.fortune-overall-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
}

/* --- Lucky Numbers --- */
.lucky-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.lucky-type-selector {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.lucky-type-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.lucky-type-btn.active {
    background: linear-gradient(135deg, var(--gold-dim), var(--purple-dim));
    color: var(--gold);
}

.lucky-type-btn:hover:not(.active) {
    color: var(--text-primary);
}

.lucky-numbers-display {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 80px;
    align-items: center;
}

.lucky-ball {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    animation: ballReveal 0.6s ease both;
    position: relative;
}

.lucky-ball::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--purple));
    z-index: -1;
    animation: ballGlow 2s ease-in-out infinite;
}

.lucky-ball.gold {
    background: var(--bg-deep);
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.lucky-ball.purple {
    background: var(--bg-deep);
    color: var(--purple);
    text-shadow: 0 0 10px var(--purple-glow);
}

@keyframes ballReveal {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }

    60% {
        transform: scale(1.2) rotate(-10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes ballGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.lucky-meaning {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    max-width: 600px;
    width: 100%;
}

.lucky-meaning-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.lucky-meaning-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Birth Chart --- */
.birthchart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.birthchart-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.divine-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.divine-date-input {
    padding: 14px 24px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: var(--transition);
    color-scheme: dark;
}

.divine-date-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-dim);
}

.birthchart-result {
    width: 100%;
    animation: answerReveal 1s ease;
}

.zodiac-header {
    text-align: center;
    margin-bottom: 28px;
}

.zodiac-symbol-large {
    font-size: 4rem;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px var(--gold-glow));
}

.zodiac-sign-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 4px;
}

.zodiac-dates {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

.zodiac-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.zodiac-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.zodiac-detail-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.zodiac-detail-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gold);
}

.zodiac-description {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.zodiac-description p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.zodiac-traits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.zodiac-traits-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.zodiac-traits-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.zodiac-traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trait-tag {
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 4px 14px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--gold);
}

.zodiac-traits-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.compatible-sign {
    background: var(--purple-dim);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--purple);
}

/* --- Horoscope Section --- */
.horoscope-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.zodiac-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.zodiac-btn:hover {
    border-color: var(--border-gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.zodiac-btn.active {
    background: linear-gradient(135deg, var(--gold-dim), var(--purple-dim));
    border-color: var(--border-gold);
    color: var(--gold);
}

.zodiac-btn-symbol {
    font-size: 1.6rem;
}

.zodiac-btn-name {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.horoscope-reading {
    width: 100%;
    max-width: 600px;
    animation: answerReveal 0.8s ease;
}

.horoscope-sign-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.horoscope-sign-symbol {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.horoscope-sign-info h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.horoscope-sign-info p {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.horoscope-text {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
}

.horoscope-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--gold);
    line-height: 1.8;
    font-style: italic;
    text-shadow: 0 0 12px var(--gold-glow);
}

.horoscope-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.horoscope-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.horoscope-cat-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.horoscope-cat-bar {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.horoscope-cat-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--purple));
    transition: width 1s ease;
}

/* --- Tarot Section --- */
.tarot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* --- Moon Phase Display --- */
.moon-phase-display {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    width: 100%;
    max-width: 700px;
    animation: answerReveal 0.6s ease;
}

.moon-phase-emoji {
    font-size: 2.4rem;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
    line-height: 1;
}

.moon-phase-info {
    flex: 1;
}

.moon-phase-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.moon-phase-energy {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--purple);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.moon-phase-influence {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

/* --- Reading Type Selector --- */
.reading-type-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 700px;
}

.reading-type-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.reading-type-btn:hover {
    border-color: var(--border-gold);
    color: var(--gold);
}

.reading-type-btn.active {
    background: linear-gradient(135deg, var(--gold-dim), var(--purple-dim));
    border-color: var(--border-gold);
    color: var(--gold);
    box-shadow: 0 0 15px var(--gold-dim);
}

.reading-type-btn .rt-icon {
    font-size: 1.1rem;
}

.reading-type-btn.moon-available {
    border-color: rgba(255, 215, 0, 0.4);
    animation: moonPulse 2s ease-in-out infinite;
}

.reading-type-btn.moon-locked {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.reading-type-btn.moon-locked::after {
    content: ' 🔒';
    font-size: 0.6rem;
}

@keyframes moonPulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }
}

/* --- Spread Description --- */
.spread-description {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: -8px;
}

/* --- Tarot Sign Selector --- */
.tarot-sign-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tarot-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 420px;
}

.tarot-zodiac-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.65rem;
}

.tarot-zodiac-btn:hover {
    border-color: var(--border-gold);
    color: var(--gold);
}

.tarot-zodiac-btn.active {
    background: linear-gradient(135deg, var(--gold-dim), var(--purple-dim));
    border-color: var(--border-gold);
    color: var(--gold);
    box-shadow: 0 0 12px var(--gold-dim);
}

.tarot-zodiac-btn .tz-symbol {
    font-size: 1.2rem;
}

.tarot-zodiac-btn .tz-name {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.3px;
}

/* --- Tarot Sign Reading Insight --- */
.tarot-sign-insight {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 16px;
    width: 100%;
    max-width: 700px;
    text-align: center;
    animation: answerReveal 0.8s ease;
}

.tarot-sign-insight-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tarot-sign-insight-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gold);
    line-height: 1.7;
    font-style: italic;
    text-shadow: 0 0 8px var(--gold-glow);
}

.tarot-spread-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.tarot-spread-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.tarot-spread-btn.active {
    background: linear-gradient(135deg, var(--gold-dim), var(--purple-dim));
    color: var(--gold);
}

.tarot-spread-btn:hover:not(.active) {
    color: var(--text-primary);
}

.tarot-deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.tarot-card-stack {
    position: relative;
    width: 140px;
    height: 200px;
    transition: var(--transition);
}

.tarot-card-stack:hover {
    transform: scale(1.05);
}

.deck-card {
    position: absolute;
    width: 140px;
    height: 200px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1a1040, #0d0820);
    border: 2px solid var(--border-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.deck-card:nth-child(1) {
    transform: rotate(-3deg) translateY(-4px);
}

.deck-card:nth-child(2) {
    transform: rotate(0deg);
}

.deck-card:nth-child(3) {
    transform: rotate(3deg) translateY(-4px);
}

.deck-card::after {
    content: '🔮';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.4;
}

.deck-prompt {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Deck Shuffle Animation ── */
.tarot-deck.shuffling .deck-card:nth-child(1) {
    animation: shuffleLeft 0.4s ease-in-out 0s 3;
}

.tarot-deck.shuffling .deck-card:nth-child(2) {
    animation: shuffleCenter 0.4s ease-in-out 0.1s 3;
}

.tarot-deck.shuffling .deck-card:nth-child(3) {
    animation: shuffleRight 0.4s ease-in-out 0.05s 3;
}

@keyframes shuffleLeft {

    0%,
    100% {
        transform: rotate(-3deg) translateY(-4px);
    }

    50% {
        transform: rotate(-15deg) translateX(-30px) translateY(-10px);
    }
}

@keyframes shuffleCenter {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(8deg) translateX(20px);
    }

    75% {
        transform: rotate(-8deg) translateX(-20px);
    }
}

@keyframes shuffleRight {

    0%,
    100% {
        transform: rotate(3deg) translateY(-4px);
    }

    50% {
        transform: rotate(15deg) translateX(30px) translateY(-10px);
    }
}

.tarot-deck.shuffling .deck-prompt {
    animation: shuffleTextPulse 1.2s ease-in-out;
}

@keyframes shuffleTextPulse {
    0% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    70% {
        opacity: 0;
        content: 'Shuffling...';
    }

    100% {
        opacity: 1;
    }
}

/* ── Card Back Overlay (Flip Mechanic) ── */
.card-back-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: var(--radius-lg);
    cursor: pointer;
    perspective: 800px;
    animation: cardBackAppear 0.5s ease;
}

.card-back-design {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0d0820 0%, #1a1040 40%, #0d0820 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-back-design:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.card-back-design::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
}

.card-back-design::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05), transparent 60%);
    pointer-events: none;
}

.card-back-border {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.card-back-pattern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-back-star {
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.6;
    animation: starTwinkle 2s ease-in-out infinite alternate;
}

.card-back-star:last-child {
    animation-delay: 0.5s;
}

.card-back-symbol {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.5;
    animation: cardBackPulse 3s ease-in-out infinite;
}

.card-back-label {
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: var(--gold);
    opacity: 0.5;
    text-transform: uppercase;
    animation: labelPulse 2s ease-in-out infinite;
}

@keyframes cardBackAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes starTwinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes cardBackPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes labelPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

/* Card flip states */
.card-unflipped .tarot-card-visual,
.card-unflipped .tarot-card-body {
    opacity: 0;
}

.card-flipping {
    animation: cardFlipReveal 0.6s ease forwards;
    perspective: 1000px;
}

@keyframes cardFlipReveal {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(90deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.card-flipping .card-back-overlay {
    animation: cardBackFlipOut 0.6s ease forwards;
}

@keyframes cardBackFlipOut {
    0% {
        opacity: 1;
        transform: rotateY(0deg);
    }

    40% {
        opacity: 1;
        transform: rotateY(90deg);
    }

    100% {
        opacity: 0;
        transform: rotateY(180deg);
    }
}

.card-flipped .tarot-card-visual,
.card-flipped .tarot-card-body {
    opacity: 1;
    animation: cardContentReveal 0.4s ease;
}

/* Enlarged card after flip — show full artwork */
.card-flipped {
    width: 360px;
}

.card-flipped .tarot-card-visual {
    height: 400px;
}

.card-flipped .tarot-card-image {
    object-fit: contain !important;
}

@keyframes cardContentReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tarot-reading-result {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    animation: sectionFadeIn 0.5s ease;
}

/* --- Premium Tarot Card Design --- */
.tarot-drawn-card {
    width: 280px;
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    animation: tarotFlip 0.8s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 1px var(--border-gold);
}

.tarot-drawn-card.moon-favored {
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 25px var(--gold-dim), 0 0 50px rgba(255, 215, 0, 0.1);
}

.tarot-drawn-card.reversed-card {
    border-color: rgba(139, 92, 246, 0.5);
}

@keyframes tarotFlip {
    0% {
        opacity: 0;
        transform: rotateY(90deg) scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: rotateY(0deg) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

/* --- Card Visual (the top art area) --- */
.tarot-card-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 215, 0, 0.15);
}

/* Inner ornate border */
.tarot-card-visual::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    pointer-events: none;
}

/* Corner ornaments */
.tarot-card-visual::after {
    content: '✦';
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.5rem;
    color: rgba(255, 215, 0, 0.3);
    text-shadow:
        0 0 0 transparent,
        /* top-right */
        calc(100% - 24px) 0 0 rgba(255, 215, 0, 0.3);
}

.tarot-card-symbol {
    font-size: 4.5rem;
    filter: drop-shadow(0 0 20px currentColor);
    z-index: 1;
    transition: transform 0.3s ease;
}

.tarot-drawn-card:hover .tarot-card-symbol {
    transform: scale(1.1);
}

.tarot-card-numeral {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.6;
    z-index: 1;
}

.tarot-card-numeral-left {
    position: absolute;
    top: 14px;
    left: 16px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.6;
    z-index: 1;
}

/* Radial light behind the symbol */
.tarot-card-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    z-index: 0;
}

/* --- Card Body (text area) --- */
.tarot-card-body {
    padding: 20px 24px 24px;
}

.tarot-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.tarot-card-position {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.tarot-card-meaning {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.tarot-card-advice {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-primary);
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    line-height: 1.6;
}

.tarot-moon-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--gold);
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--gold-dim);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.tarot-reversed-label {
    color: var(--purple);
    font-size: 0.65rem;
    font-family: var(--font-ui);
    letter-spacing: 0.5px;
}

/* ── Reading Section Structure ── */
.reading-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 24px 0;
    animation: sectionSlideIn 0.6s ease;
}

.reading-section+.reading-section {
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    margin-top: 12px;
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reading-section-header {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-align: center;
    padding: 8px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, rgba(26, 16, 64, 0.6), rgba(13, 8, 32, 0.8));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.section-icon {
    font-size: 1rem;
}

/* ── Oracle Card Type ── */
.oracle-card-visual {
    background: linear-gradient(135deg, #1a0033, #2d0055, #1a0033) !important;
    border-bottom-color: rgba(156, 39, 176, 0.3) !important;
}

.oracle-card-visual::before {
    border-color: rgba(156, 39, 176, 0.25) !important;
}

.oracle-card-type {
    border-color: rgba(156, 39, 176, 0.4);
}

.oracle-card-type:hover {
    border-color: rgba(156, 39, 176, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(156, 39, 176, 0.15);
}

.oracle-symbol {
    font-size: 3.8rem !important;
}

.oracle-theme-label {
    position: absolute;
    bottom: 14px;
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(206, 147, 216, 0.6);
    z-index: 1;
}

/* ── Message Card Type ── */
.message-card-visual {
    background: linear-gradient(135deg, #0d0020, #1a0040, #0d0020) !important;
    border-bottom-color: rgba(225, 190, 231, 0.2) !important;
}

.message-card-visual::before {
    border-color: rgba(225, 190, 231, 0.2) !important;
}

.message-card-type {
    border-color: rgba(225, 190, 231, 0.3);
}

.message-card-type:hover {
    border-color: rgba(225, 190, 231, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(225, 190, 231, 0.1);
}

.message-symbol {
    font-size: 3.8rem !important;
}

.message-energy-label {
    position: absolute;
    bottom: 14px;
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(225, 190, 231, 0.5);
    z-index: 1;
}

/* ── Trinket Card Type ── */
.trinket-card-visual {
    background: linear-gradient(135deg, #1a0d00, #2d1a00, #1a0d00) !important;
    border-bottom-color: rgba(255, 171, 64, 0.3) !important;
}

.trinket-card-visual::before {
    border-color: rgba(255, 171, 64, 0.2) !important;
}

.trinket-card-type {
    border-color: rgba(255, 171, 64, 0.3);
}

.trinket-card-type:hover {
    border-color: rgba(255, 171, 64, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 171, 64, 0.12);
}

.trinket-symbol {
    font-size: 3.8rem !important;
}

.trinket-energy-label {
    position: absolute;
    bottom: 14px;
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(255, 171, 64, 0.5);
    z-index: 1;
}

/* ── Suit Badge (Minor Arcana) ── */
.suit-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.85;
}

/* ── Minor Card Type ── */
.minor-card-type .tarot-card-visual::before {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Deck Breakdown ── */
.tarot-deck-breakdown {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-style: italic;
}

/* ── Real Card Image Styles ── */
.card-has-image {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.tarot-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    animation: cardImageFadeIn 0.5s ease forwards;
    z-index: 2;
}

@keyframes cardImageFadeIn {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reversed-card .tarot-card-image {
    transform: rotate(180deg);
}

.card-has-image .oracle-theme-label,
.card-has-image .message-energy-label,
.card-has-image .trinket-energy-label,
.card-has-image .tarot-card-numeral {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
    text-shadow: 0 0 8px #000, 0 1px 4px #000;
    font-size: 0.7rem;
}

.card-has-image .tarot-card-glow {
    z-index: 4;
    opacity: 0.2;
}

/* ── Mercury Retrograde Banner ── */
.mercury-retro-banner {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
    animation: sectionSlideIn 0.6s ease;
}

.retro-alert-full {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.15), rgba(100, 10, 10, 0.2));
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.retro-alert-shadow {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(120, 60, 10, 0.15));
    border: 1px solid rgba(255, 152, 0, 0.25);
}

.retro-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    animation: retroPulse 2s ease-in-out infinite;
}

@keyframes retroPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.retro-info {
    flex: 1;
}

.retro-status {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #ef5350;
    margin-bottom: 4px;
}

.retro-alert-shadow .retro-status {
    color: #ffb74d;
}

.retro-energy {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.retro-warning {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ── Retro-Affected Card Styling ── */
.retro-affected {
    border-color: rgba(244, 67, 54, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(244, 67, 54, 0.1);
}

.retro-affected:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 25px rgba(244, 67, 54, 0.15);
}

.tarot-retro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: #ef5350;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    font-family: var(--font-ui);
    letter-spacing: 0.5px;
}

/* ── Retrograde Insight in Summary ── */
.tarot-retro-insight {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #ef9a9a;
    line-height: 1.7;
    margin-top: 12px;
    padding: 14px 18px;
    border-left: 3px solid rgba(244, 67, 54, 0.4);
    background: rgba(244, 67, 54, 0.05);
    border-radius: 0 8px 8px 0;
}

.retro-insight-icon {
    font-size: 1.1rem;
    margin-right: 4px;
}

/* ── Mercury Retrograde Dedicated Panel ── */
.mercury-panel {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mercury-status-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px 20px;
}

.mercury-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: orbFloat 4s ease-in-out infinite;
}

.mercury-symbol {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.mercury-orb-direct {
    background: radial-gradient(circle, rgba(68, 255, 136, 0.2), rgba(68, 255, 136, 0.05));
    border: 2px solid rgba(68, 255, 136, 0.3);
    box-shadow: 0 0 40px rgba(68, 255, 136, 0.15), inset 0 0 30px rgba(68, 255, 136, 0.1);
}

.mercury-orb-retro {
    background: radial-gradient(circle, rgba(255, 68, 68, 0.25), rgba(255, 68, 68, 0.05));
    border: 2px solid rgba(255, 68, 68, 0.4);
    box-shadow: 0 0 50px rgba(255, 68, 68, 0.2), inset 0 0 30px rgba(255, 68, 68, 0.15);
    animation: orbFloat 4s ease-in-out infinite, retroPulseOrb 2s ease-in-out infinite;
}

.mercury-orb-shadow {
    background: radial-gradient(circle, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.05));
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.15), inset 0 0 30px rgba(255, 165, 0, 0.1);
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes retroPulseOrb {

    0%,
    100% {
        box-shadow: 0 0 50px rgba(255, 68, 68, 0.2), inset 0 0 30px rgba(255, 68, 68, 0.15);
    }

    50% {
        box-shadow: 0 0 70px rgba(255, 68, 68, 0.35), inset 0 0 40px rgba(255, 68, 68, 0.25);
    }
}

.mercury-status-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 600;
}

.mercury-energy {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-top: 4px;
}

.mercury-sign-badge {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mercury-warning-box {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

/* Countdown */
.mercury-countdown {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mercury-countdown-active {
    border-color: rgba(255, 68, 68, 0.2);
    background: rgba(255, 68, 68, 0.03);
}

.countdown-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 2px;
}

.countdown-txt {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 16px;
}

.countdown-sign {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Section titles */
.mercury-section-title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Guidance Cards */
.guidance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.guidance-card {
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.guidance-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.guidance-card h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}

.guidance-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidance-card li {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.guidance-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.guidance-go {
    border-color: rgba(68, 255, 136, 0.15);
}

.guidance-go h4 {
    color: #44ff88;
}

.guidance-avoid {
    border-color: rgba(255, 68, 68, 0.15);
}

.guidance-avoid h4 {
    color: #ff6b6b;
}

.guidance-embrace {
    border-color: rgba(100, 149, 237, 0.15);
}

.guidance-embrace h4 {
    color: #6495ed;
}

.guidance-tip {
    border-color: rgba(255, 215, 0, 0.15);
}

.guidance-tip h4 {
    color: #ffd700;
}

.guidance-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Timeline */
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-period {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.timeline-period.active {
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.05);
}

.timeline-period.past {
    opacity: 0.4;
}

.period-sign {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-primary);
    min-width: 120px;
    font-weight: 500;
}

.period-dates {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex: 1;
}

.period-badge {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-period.active .period-badge {
    color: #ff6b6b;
    font-weight: 600;
}

/* Sign Warnings */
.sign-warning-card {
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(255, 165, 0, 0.05);
    border: 1px solid rgba(255, 165, 0, 0.15);
    margin-bottom: 10px;
}

.sign-warning-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: #ffb74d;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.sign-warning-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .guidance-grid {
        grid-template-columns: 1fr;
    }

    .countdown-num {
        font-size: 1.6rem;
    }

    .countdown-unit {
        min-width: 44px;
    }

    .mercury-orb {
        width: 90px;
        height: 90px;
    }

    .mercury-symbol {
        font-size: 2.2rem;
    }

    .period-sign {
        min-width: 80px;
        font-size: 0.72rem;
    }

    .period-dates {
        font-size: 0.7rem;
    }

    .timeline-period {
        gap: 10px;
        padding: 10px 12px;
    }

    /* ── Moon Phase & Mercury Retro Mobile Fix ── */
    .moon-phase-display {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 12px;
    }

    .moon-phase-info {
        flex: 1 1 0;
        min-width: 0;
    }

    .moon-phase-name {
        font-size: 0.78rem;
    }

    .moon-phase-influence {
        font-size: 0.78rem;
    }

    .mercury-retro-banner {
        flex: 1 1 100%;
        margin-top: 4px;
    }

    .retro-status {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        word-break: break-word;
    }

    .retro-warning {
        font-size: 0.78rem;
    }
}

/* ── Tarot Reading Result (flex-direction update for sections) ── */
.tarot-reading-result {
    flex-direction: column;
    align-items: center;
}

/* --- Numerology Section --- */
.numerology-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.numerology-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.numerology-result {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: answerReveal 1s ease;
}

.num-life-path {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
    margin-bottom: 8px;
}

.num-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.num-description {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.num-description p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* --- SEO Content Section --- */
.content-section {
    padding: 60px 32px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-hero h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.content-hero p,
.content-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.content-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.footer-brand strong {
    color: var(--gold);
}

.footer-copy {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-bar {
        display: flex;
    }

    .main-wrapper {
        margin-left: 0;
        padding-top: 56px;
    }

    .app-section {
        padding: 24px 16px;
    }

    .divine-title {
        font-size: 1.6rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zodiac-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zodiac-traits-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .horoscope-categories {
        grid-template-columns: 1fr;
    }

    .tarot-drawn-card {
        width: 180px;
    }

    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .lucky-ball {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

/* --- Selection --- */
::selection {
    background: var(--gold-dim);
    color: var(--gold);
}