:root {
    --bg-color-1: #0B0B2A;
    --bg-color-2: #1B0F3A;
    --accent-gold: #FFD700;
    --accent-purple: #9D4EDD;
    --text-primary: #F8F9FA;
    --text-secondary: #ADB5BD;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --step-transition: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(ellipse at bottom, var(--bg-color-2) 0%, var(--bg-color-1) 100%);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overscroll-behavior: none;
    position: relative;
}

/* ============================================================
   Cosmic Background
   ============================================================ */
/* 🍰 LAYER 1: The Picture (At the very back) */
body {
    background-color: #050510;
    background-image: url('/assets/widescreen_user_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    margin: 0;
    min-height: 100vh;
}


/* 🍰 LAYER 2: The Moving Stars (Sharp and clear on top of the glass) */
.parallax-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* 🍰 LAYER 3: The Dark Shadow Overlay */
.dashboard-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15), rgba(0, 0, 0, 0.85));
    z-index: 2;
    pointer-events: none;
}

/* ✨ The Sophisticated Glassmorphism Panel ✨ */
.instruction-glass-panel {
    background: rgba(10, 5, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.2);

    /* ✂️ SHRUNK PADDING: from 12px to 6px */
    padding: 6px 20px;
    border-radius: 30px;
    /* Made it more like a "pill" to look sleeker */

    text-align: center;
    max-width: 550px;

    /* ✂️ SHRUNK MARGINS: from 30px to 10px to pull cards up */
    margin: 5px auto 15px auto;
}

/* Also, let's shrink the text size inside slightly */
.instruction-glass-panel .step-desc {
    font-size: 0.9rem !important;
    margin: 0;
    /* Removes extra paragraph spacing */
    line-height: 1.4;
}

/* ============================================================
   Layout Shell
   ============================================================ */
.dashboard-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

/* ============================================================
   Header
   ============================================================ */
.dashboard-header {
    text-align: center;
    padding: 1.1rem 1rem 0.5rem;
    z-index: 10;
    flex-shrink: 0;
    background: linear-gradient(to bottom, rgba(11, 11, 42, 0.9) 70%, transparent);
}

.brand-name {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.85;
}

.dashboard-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 30px rgba(157, 78, 221, 0.8);
    margin: 0.15rem 0;
}

.dashboard-header p {
    color: rgba(224, 224, 224, 0.85);
    font-size: 0.85rem;
    font-weight: 300;
}

/* ============================================================
   Step Progress Indicator
   ============================================================ */
.step-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 2rem 0;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.progress-track {
    width: 100%;
    max-width: 420px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.step-dots {
    display: flex;
    gap: clamp(2rem, 8vw, 5rem);
    align-items: center;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.dot-inner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.dot-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.4s ease;
    white-space: nowrap;
}

.step-dot.active .dot-inner {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.step-dot.active .dot-label {
    color: var(--accent-gold);
}

.step-dot.completed .dot-inner {
    border-color: var(--accent-purple);
    color: #fff;
    background: var(--accent-purple);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.step-dot.completed .dot-label {
    color: var(--accent-purple);
}

/* ============================================================
   Wizard Viewport + Transitions
   ============================================================ */
.wizard-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* ✨ Centers vertically */
    z-index: 5;
    /* ✂️ Removed min-height here to prevent "pushing" it down */
}

.wizard-step {
    position: absolute;
    inset: 0;
    /* 🛑 This is the fix: Hide all steps by default! */
    display: none;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;

    /* Keep your transitions */
    opacity: 0;
    transition: opacity var(--step-transition);
}

/* ✅ Only show the step that is currently active! */
.wizard-step.is-active {
    display: flex;
    /* This brings the current step back to life */
    opacity: 1;
    pointer-events: all;
}

/* --- Step 1: The Golden Kiosk Layout --- */
#selection-step.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    /* 🎯 This pulls your Gold Title up under the dots */
    padding-top: 20px;
    padding-bottom: 120px;
    min-height: 100%;

    /* 🚫 HIDE SCROLLBARS */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* 🚫 HIDE SCROLLBARS (For Chrome/Mac mini) */
#selection-step.is-active::-webkit-scrollbar {
    display: none;
}

/* 🚀 The Gold Title Position */
#selection-step h3.step-title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    text-align: center;
    font-size: 1.76rem;
    color: #f0b429;
    width: 100%;
    display: block;
}

/* 🏁 The Bottom Dock: Now appears naturally at the end of the content */
.selection-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 60px;
}

/* Your Luxury Gold Button */
.selection-footer .primary-btn {
    min-width: 350px;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #f0b429, #d97706);
    color: #000;
    box-shadow: 0 0 25px rgba(240, 180, 41, 0.4);
    border: none;
    cursor: pointer;
}

.instruction-glass-panel {
    margin: 0 auto 20px auto !important;
    /* Tightens the gap to the cards */
    padding: 6px 20px;
}

.wizard-step::-webkit-scrollbar {
    width: 5px;
}

.wizard-step::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.5);
    border-radius: 3px;
}

.wizard-step.is-active {
    opacity: 1;
    pointer-events: all;
}

.wizard-step.is-exiting {
    opacity: 0;
    pointer-events: none;
}

/* Step header area */
.step-header {
    padding-top: 10px !important;
    /* Reduces space at the very top */
    margin-bottom: 5px !important;
}



.step-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.step-desc {
    color: rgba(224, 224, 224, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================================
   Step 1: Selection Cards
   ============================================================ */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 900px;
    margin-bottom: 1.2rem;
}

@media (max-width: 640px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.option-card {
    position: relative;
    background: linear-gradient(145deg, rgba(11, 11, 42, 0.85), rgba(27, 15, 58, 0.7));
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: 18px;
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 155px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(12px);
    outline: none;
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 0%, rgba(157, 78, 221, 0.18) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.option-card:hover .card-glow,
.option-card:focus-visible .card-glow {
    opacity: 1;
}

.option-card:hover,
.option-card:focus-visible {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.12);
}

.option-card.selected {
    background: linear-gradient(145deg, rgba(157, 78, 221, 0.3), rgba(255, 215, 0, 0.12));
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3), inset 0 0 15px rgba(255, 215, 0, 0.05);
    transform: translateY(-3px) scale(1.02);
}

.option-card.selected .card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    opacity: 1;
}

/* ✨ This tames your new giant AI icons! ✨ */
.card-icon-img {
    width: 68px !important;
    height: 68px !important;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
    transition: transform 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Keep the old name too just in case some cards still use it */
.card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.option-card:hover .card-icon {
    transform: scale(1.1);
}

.option-card.selected .card-icon {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
}

.option-card h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.option-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.card-price {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: rgba(255, 215, 0, 0.65);
    letter-spacing: 1px;
}

.card-check {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #0B0B2A;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.option-card.selected .card-check {
    opacity: 1;
    transform: scale(1);
}

/* Selection summary bar */
.selection-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.selection-summary strong {
    color: var(--accent-gold);
}

/* ============================================================
   Step Actions
   ============================================================ */
.step-actions {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}

.dual-actions {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    max-width: 600px;
}

/* ============================================================
   Step 2: Form Styles
   ============================================================ */
/* --- Step 2: The Coordinates Container --- */
#input-step.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;

    /* 🎯 THE FIX: Changed to 180px to clear the header dots */
    padding-top: 15px !important;
    padding-bottom: 80px;

    /* 🚀 This allows you to scroll down to the buttons without seeing a scrollbar */
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* 🚫 HIDE SCROLLBARS (For Chrome/Mac mini) */
#input-step.is-active::-webkit-scrollbar {
    display: none;
}

/* 🏁 TIGHTEN THE FORM: This pulls the buttons UP into view */
.form-section {
    margin-bottom: 0.5rem !important;
    /* Reduced from 1.5rem */
    padding: 1rem !important;
}

/* 🏁 The Buttons: These will now appear naturally at the end of the form */
.step-actions.dual-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding-bottom: 60px;
}

.dashboard-form {
    width: 100%;
    max-width: 560px;
}

.form-section {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(11, 11, 42, 0.8), rgba(27, 15, 58, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.form-section-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.1rem;
}

/* Partner section reveal animation */
.partner-section {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        margin-bottom 0.4s ease,
        padding 0.4s ease,
        border-width 0.4s ease;
}

.partner-section.visible {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-width: 1px;
}

.floating-label {
    font-family: var(--font-heading);
    color: rgba(255, 215, 0, 0.85);
    font-size: 0.78rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    display: block;
}

.floating-label small {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
}

.input-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.datetime-wrapper {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.dashboard-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.dashboard-input::placeholder {
    color: rgba(173, 181, 189, 0.5);
}

.dashboard-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

.dashboard-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
    background: rgba(11, 11, 42, 0.7);
}

/* ============================================================
   Step 3: Payment / Checkout
   ============================================================ */
.payment-card {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.receipt-breakdown {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(27, 15, 58, 0.4));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.checkout-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkout-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-list li:last-child {
    border-bottom: none;
}

.checkout-list li::before {
    content: "✦";
    color: var(--accent-gold);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.receipt-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    margin: 1rem 0;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.price-tag {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(45deg, var(--accent-gold), #c77dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.payment-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

.pay-cta {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.back-btn {
    align-self: center;
    margin-top: 0.2rem;
}

/* ============================================================
   Step 4: Results
   ============================================================ */
.results-step {
    padding: 0.75rem 1rem 1rem;
    align-items: stretch;
}

.results-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    min-height: 0;
}

.results-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.panel-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: clamp(1rem, 3vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.scrollable-results {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-right: 6px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 78, 221, 0.4) transparent;
}

.scrollable-results::-webkit-scrollbar {
    width: 4px;
}

.scrollable-results::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.5);
    border-radius: 3px;
}

/* 🔮 THE GLASS BOX: Darker, blurred, and more readable */
.reading-section {
    /* 1. Darker background to provide contrast for white text */
    background: rgba(10, 5, 25, 0.7) !important;

    /* 2. THE MAGIC: This blurs the busy stars behind the box */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* 3. A subtle glowing border */
    border: 1px solid rgba(157, 78, 221, 0.4);
    border-radius: 14px;
    padding: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 🌟 Make the titles stand out more */
.reading-section h4 {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 0.9rem;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ✍️ TEXT LEGIBILITY: Adding weight and shadow */
.reading-section p {
    font-size: 0.95rem;
    /* Slightly larger */
    line-height: 1.7;
    color: #ffffff !important;
    /* Pure white for maximum contrast */
    font-weight: 500;
    /* Makes the letters a bit thicker */

    /* 4. Protective shadow so text never gets lost in bright stars */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 0;
    position: relative;
}

/* Email capture section */
.email-capture-section {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 0.8rem;
}

.email-capture-label {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0.6rem;
}

.email-capture {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 440px;
    margin: 0 auto;
}

.thin-input {
    border-radius: 25px;
    padding: 0.75rem 3.5rem 0.75rem 1.4rem;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(157, 78, 221, 0.4);
}

.seal-btn {
    position: absolute;
    right: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, #800000 0%, #350000 100%);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.seal-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

.seal-icon {
    font-size: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.primary-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border: none;
    border-radius: 30px;
    padding: 0.9rem 2.5rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.primary-btn:hover::before {
    opacity: 1;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5);
}

.primary-btn:active {
    transform: translateY(1px);
}

.compute-btn {
    animation: button-breathing 4s ease-in-out infinite alternate;
}

@keyframes button-breathing {
    0% {
        box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
    }

    100% {
        box-shadow: 0 4px 35px rgba(255, 215, 0, 0.7);
    }
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.ghost-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.ghost-btn:hover {
    color: var(--text-primary);
}

/* ============================================================
   Utility
   ============================================================ */
.hidden {
    display: none !important;
}

.glowing-text {
    color: var(--accent-gold);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* ============================================================
   Loader Animation
   ============================================================ */
.orbital {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.nebula {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-nebula 1s ease-in-out infinite alternate;
}

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

@keyframes pulse-nebula {
    from {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.5;
    }

    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* ============================================================
   Starburst Overlay
   ============================================================ */
.starburst-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, #fff 0%, var(--accent-gold) 10%, var(--accent-purple) 30%, transparent 70%);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.starburst-overlay.active {
    animation: burst 1.2s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

.option-card {
    position: relative;
    z-index: 10;
    /* This puts the cards in front of the stars */
    cursor: pointer;
    /* This makes the mouse turn into a hand */
}

@keyframes burst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ============================================================
   Insight Cards (Results)
   ============================================================ */
.insight-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.15);
}

.insight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px rgba(157, 78, 221, 0.25);
}

.insight-content p {
    margin: 0;
    line-height: 1.65;
    color: rgba(248, 249, 250, 0.9);
    font-size: 0.9rem;
}

.insight-content strong {
    color: var(--accent-gold);
}

/* Stagger entrance */
.stagger-1 {
    animation: fade-in-up 0.7s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.stagger-2 {
    animation: fade-in-up 0.7s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.stagger-3 {
    animation: fade-in-up 0.7s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Chart tooltip (legacy)
   ============================================================ */
.chart-tooltip {
    position: absolute;
    background: rgba(11, 11, 42, 0.95);
    border: 1px solid var(--accent-gold);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
    z-index: 1000;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    white-space: nowrap;
    font-family: var(--font-body);
}


/* ----------------------------------------------------------------
   REVEAL SCREEN � Rich Results Components
   ---------------------------------------------------------------- */

/* -- Scroll-triggered stagger animations ---------------------- */
.reveal-block {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-block.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- Reading Section ------------------------------------------- */
.reading-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.reading-section h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(157, 78, 221, 0.25);
}

.reading-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* -- Section header (icon + title) ---------------------------- */
.result-section-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.result-section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    margin: 0;
}

.result-section-icon {
    font-size: 1.2rem;
}

/* -- Cosmic Synthesis ------------------------------------------ */
.cosmic-synthesis {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.08), rgba(255, 185, 0, 0.05));
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 12px;
    padding: 1.4rem;
}

.synthesis-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary);
    font-style: italic;
}

/* -- Tarot Card Layout ----------------------------------------- */
.tarot-reveal {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 185, 0, 0.15);
    border-radius: 14px;
    padding: 1.4rem;
}

.tarot-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tarot-card-frame {
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tarot-img-large {
    width: 120px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(157, 78, 221, 0.7);
    box-shadow: 0 0 18px rgba(157, 78, 221, 0.35), 0 0 40px rgba(157, 78, 221, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarot-img-large:hover {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(157, 78, 221, 0.6), 0 0 60px rgba(157, 78, 221, 0.2);
}

.tarot-img-fallback {
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, #180935, #3a1c71);
    border: 2px solid rgba(157, 78, 221, 0.7);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
}

.tarot-fallback-icon {
    font-size: 2rem;
}

.tarot-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    text-align: center;
}

.tarot-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.tarot-section {
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.tarot-section h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.tarot-section p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tarot-symbolism {
    background: rgba(157, 78, 221, 0.08);
    border-left: 3px solid #9D4EDD;
}

.tarot-symbolism h5 {
    color: #c77dff;
}

.tarot-message {
    background: rgba(255, 185, 0, 0.06);
    border-left: 3px solid var(--accent-gold);
}

.tarot-message h5 {
    color: var(--accent-gold);
}

.tarot-shadow {
    background: rgba(255, 80, 80, 0.06);
    border-left: 3px solid #ff6b6b;
}

.tarot-shadow h5 {
    color: #ff8c94;
}

/* -- Vibrational Profile / Numerology ------------------------- */
.vibrational-profile {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 185, 0, 0.15);
    border-radius: 14px;
    padding: 1.4rem;
}

.num-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.num-showcase-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.num-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
    gap: 0.5rem;
}

.num-showcase.primary {
    background: linear-gradient(135deg, rgba(255, 185, 0, 0.08), rgba(157, 78, 221, 0.08));
    border: 1px solid rgba(255, 185, 0, 0.3);
    grid-row: span 1;
}

.num-showcase.secondary {
    background: rgba(157, 78, 221, 0.06);
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.num-big {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Georgia', serif;
}

.num-showcase.secondary .num-big {
    font-size: 2.5rem;
}

.glowing-num {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 185, 0, 0.7), 0 0 40px rgba(255, 185, 0, 0.35);
    animation: numPulse 3s ease-in-out infinite;
}

.glowing-num-purple {
    color: #c77dff;
    text-shadow: 0 0 16px rgba(157, 78, 221, 0.7), 0 0 32px rgba(157, 78, 221, 0.3);
}

@keyframes numPulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 185, 0, 0.7), 0 0 40px rgba(255, 185, 0, 0.35);
    }

    50% {
        text-shadow: 0 0 30px rgba(255, 185, 0, 0.9), 0 0 60px rgba(255, 185, 0, 0.5);
    }
}

.num-label-pill {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 185, 0, 0.2), rgba(157, 78, 221, 0.2));
    border: 1px solid rgba(255, 185, 0, 0.4);
    border-radius: 20px;
    padding: 0.2rem 0.9rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    font-weight: 700;
}

.secondary-pill {
    background: rgba(157, 78, 221, 0.15);
    border-color: rgba(157, 78, 221, 0.4);
    color: #c77dff;
}

.num-calc {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    gap: 0.1rem;
}

.num-calc.small {
    font-size: 0.68rem;
}

.calc-step {
    color: rgba(255, 255, 255, 0.5);
}

.calc-op {
    color: var(--accent-gold);
    margin: 0 0.15rem;
}

.calc-equals {
    color: var(--accent-gold);
}

.num-meaning {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.num-meaning.small {
    font-size: 0.75rem;
}

/* -- Natal Chart Wheel ---------------------------------------- */
.natal-chart-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 14px;
    padding: 1.4rem;
}

.natal-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.natal-wheel-wrap {
    flex: 0 0 300px;
    background: radial-gradient(circle at 50%, #0d0b25 0%, #06070f 100%);
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.natal-table-wrap {
    flex: 1;
    min-width: 220px;
}

.ascendant-label {
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.planet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.planet-table th {
    text-align: left;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.planet-table td {
    padding: 0.35rem 0.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.planet-table tbody tr:hover {
    background: rgba(157, 78, 221, 0.05);
}

/* -- Synastry / Love Match ------------------------------------- */
.synastry-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 100, 150, 0.2);
    border-radius: 14px;
    padding: 1.4rem;
}

.synastry-table {
    margin-top: 1rem;
}

.compat-score {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.score-ring {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(var(--accent-gold) calc(var(--score, 0) * 1%),
            rgba(255, 255, 255, 0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.score-num {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent-gold);
    font-family: 'Georgia', serif;
}

.score-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.score-breakdown {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.72rem;
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-weight: 600;
}

.tag.harmonious {
    background: rgba(255, 185, 0, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 185, 0, 0.3);
}

.tag.tense {
    background: rgba(255, 100, 100, 0.12);
    color: #ff8c94;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* -- Karmic / Reading Rich ------------------------------------ */
.reading-rich {
    padding: 0.2rem 0;
}

.karmic-body {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
}

.karmic-text {
    flex: 1;
    min-width: 200px;
    background-color: rgba(15, 15, 20, 0.85);
    padding: 1.5rem;
    box-sizing: border-box;
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.karmic-text p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* -- Responsive ----------------------------------------------- */
@media (max-width: 640px) {
    .tarot-body {
        flex-direction: column;
        align-items: center;
    }

    .tarot-card-frame {
        flex: 0 0 auto;
    }

    .num-showcase-grid {
        grid-template-columns: 1fr 1fr;
    }

    .num-showcase-grid>.primary {
        grid-column: span 2;
    }

    .natal-layout {
        flex-direction: column;
        align-items: center;
    }

    .natal-wheel-wrap {
        flex: 0 0 260px;
    }
}

/* -- Astrocartography Interactive Map ------------------------- */
/* 1. The main wrapper for the result */
.astro-stack-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* 2. The Text Box - No more absolute positioning! */
.astro-insights-card {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 185, 0, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
}

/* 3. The Map Section - Force it UNDER the text */
.astro-map-container {
    width: 100%;
    height: 500px;
    /* Gives the map its own dedicated room */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 185, 0, 0.3);
}

#leaflet-astro-map {
    width: 100%;
    height: 100% !important;
    background: #0a0519;
}

/* Glassmorphism Narrative Overlay */
.astro-glass-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 380px;
    max-width: calc(100% - 3rem);
    max-height: calc(100% - 3rem);
    overflow-y: auto;
    z-index: 1000;
    /* Above Leaflet */

    background: rgba(10, 5, 25, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 185, 0, 0.25);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(157, 78, 221, 0.1);
}

.astro-glass-overlay::-webkit-scrollbar {
    width: 4px;
}

.astro-glass-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 185, 0, 0.3);
    border-radius: 4px;
}

/* Overlay Typography & Sections */
.astro-golden-city {
    background: linear-gradient(135deg, rgba(255, 185, 0, 0.15), rgba(157, 78, 221, 0.05));
    border-left: 3px solid var(--accent-gold);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.astro-golden-city h5 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.city-name {
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

.astro-golden-city p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.astro-guide-section {
    margin-bottom: 1.5rem;
}

.astro-guide-section h5 {
    color: #c77dff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.astro-guide-section p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.astro-guide-section.karmic h5 {
    color: #ff8c94;
}

.line-label {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.line-label.jupiter {
    background: rgba(255, 179, 71, 0.15);
    color: #FFB347;
    border: 1px solid rgba(255, 179, 71, 0.3);
}

.line-label.venus {
    background: rgba(255, 176, 200, 0.15);
    color: #FFB0C8;
    border: 1px solid rgba(255, 176, 200, 0.3);
}

.line-label.saturn {
    background: rgba(200, 160, 96, 0.15);
    color: #C8A060;
    border: 1px solid rgba(200, 160, 96, 0.3);
}

.line-label.pluto {
    background: rgba(204, 128, 255, 0.15);
    color: #CC80FF;
    border: 1px solid rgba(204, 128, 255, 0.3);
}

.astro-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* Base Leaflet dark theme overrides */
.leaflet-container {
    background: #0b0b1a;
    outline: 0;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(15, 10, 30, 0.95);
    border: 1px solid rgba(157, 78, 221, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(157, 78, 221, 0.2);
    color: var(--text-secondary);
}

.leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
}

/* Responsive Adjustments for Map */
@media (max-width: 640px) {
    .astro-map-wrapper {
        height: 750px;
    }

    .astro-glass-overlay {
        position: static;
        width: auto;
        max-width: none;
        max-height: 400px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        top: auto;
        left: auto;
        background: rgba(10, 5, 25, 0.9);
        z-index: 1000;
        border-top: 1px solid var(--accent-gold);
    }

    #leaflet-astro-map {
        height: 350px;
        position: relative;
    }
}

/* The main wrapper must have a defined height for Leaflet to render */
.astro-map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    /* Adjust this to your desired map height */
    min-height: 50vh;
    border-radius: 12px;
    /* Optional: rounds the corners of the map area */
    overflow: hidden;
}

/* The map takes up 100% of the wrapper and sits at the bottom layer */
#leaflet-astro-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px !important;
    z-index: 1;
    /* Keeps map below the glass overlay */
}

/* The overlay sits on top of the map */
.astro-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow-y: auto;
    /* This allows the main glass box to scroll nicely */
    pointer-events: none;
}

/* Re-enable scrolling and clicking for the text inside the overlay */
.astro-glass-overlay>* {
    pointer-events: auto;
}

/* The main stack */
.astro-stack-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* The card holding all your text blocks */
.astro-insights-card {
    background: rgba(10, 5, 25, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 185, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.astro-guide-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.astro-guide-section h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.astro-guide-section p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* The Map container */
.astro-map-container {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 185, 0, 0.3);
}

#leaflet-astro-map {
    width: 100%;
    height: 100% !important;
}

.map-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 1000;
}

/* This forces the container to be visible and centered */
.astro-stack-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 100;
    /* Keeps it above the stars */
}

/* This makes your text card look like a high-end glass panel */
.astro-insights-card {
    background: rgba(15, 15, 25, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 185, 0, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    color: white;
}

/* Ensure the map has a solid home underneath */
.astro-map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 185, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#leaflet-astro-map {
    width: 100%;
    height: 100% !important;
}

/* 🔮 THE AI COSMIC CARD STYLE */
.cosmic-card {
    background: linear-gradient(135deg, rgba(15, 8, 35, 0.6), rgba(27, 15, 58, 0.4));
    border-left: 4px solid var(--accent-gold, #FFD700);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    border-right: 1px solid rgba(157, 78, 221, 0.2);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.cosmic-card h5 {
    color: var(--accent-gold, #FFD700);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cosmic-card ul {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
}

.cosmic-card li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.95);
}

.cosmic-card p {
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.95);
}