:root {
    --bg-color: #050714;
    --bg-gradient: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent-gold: #ffd700;
    --accent-purple: #9d4edd;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.1);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Default Modal Vars */
    --modal-bg: rgba(20, 20, 35, 0.95);
    --modal-text: #e0e0e0;

    --title-gradient-start: #ffffff;
}

/* Light Mode (Solar) */
body.theme-solar {
    --bg-color: #fdf6e3;
    --bg-gradient: linear-gradient(135deg, #fdf6e3 0%, #fae1dd 100%);
    --text-primary: #2c3e50;
    --text-secondary: #586e75;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(44, 62, 80, 0.1);
    --card-hover: rgba(255, 255, 255, 0.8);

    --modal-bg: rgba(255, 255, 255, 0.98);
    --modal-text: #2c3e50;

    --accent-gold: #d4a017;
    --title-gradient-start: #9d4edd;
}

/* High Contrast Mode (Lunar) */
body.theme-lunar {
    --bg-color: #000000;
    --bg-gradient: radial-gradient(circle, #000000 0%, #1a1a1a 100%);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --glass-bg: rgba(0, 0, 0, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --modal-bg: #000000;
    --modal-text: #ffffff;
    --title-gradient-start: #ffffff;
}

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

body {
    /* background-color: var(--bg-color); Removed to show particles background */
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-gradient);
    transition: background 0.5s ease;
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    background: linear-gradient(to right, var(--title-gradient-start), var(--accent-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);

}

.subtitle {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Zodiac Grid */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    width: 100%;
    padding-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.zodiac-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.zodiac-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
}

/* Fix for Find Sign Button */
#find-sign-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-gold));
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

#find-sign-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

/* Accordion Styles (Theme Compatible) */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
    margin-bottom: 0.4rem;
    padding: 0.8rem 1rem;

    /* Dynamic Theme Styles */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;

    font-family: var(--font-heading, "Cinzel", serif);
    /* Keep font if it fits, or fallback */
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;
}

.collapsible-header:hover {
    border-color: var(--accent-gold);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: var(--text-secondary);
}

/* Active State */
.collapsible.active .collapsible-header {
    background: rgba(157, 78, 221, 0.15);
    /* Subtle purple tint compliant with themes */
    border-color: var(--accent-purple);
    color: var(--accent-gold);
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.collapsible.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.5s ease, padding 0.5s ease;
    opacity: 0;

    /* Content Background */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 1rem;
}

.collapsible.active .collapsible-content {
    max-height: 2000px;
    opacity: 1;
    padding: 1.5rem;
}

.zodiac-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

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

.zodiac-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.zodiac-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Insight Card Styles (New Layout) */
.insight-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.insight-card:hover {
    border-color: var(--accent-gold);
    background: var(--card-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.card-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
}

.card-preview {
    padding: 0 1.2rem 1.2rem 1.2rem;
    transition: all 0.3s;
}

.preview-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.read-more:hover {
    transform: translateX(3px);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Content Area */
.card-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.1);
}

/* Active State */
.insight-card.active .card-preview {
    display: none;
}

.insight-card.active .card-content {
    max-height: 1000px;
    /* Large enough */
    opacity: 1;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.insight-card.active .card-header {
    background: rgba(255, 215, 0, 0.05);
}

.insight-card.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

.calculator-link-card {
    margin: 3rem auto;
    max-width: 600px;
    padding: 3rem 2.5rem;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-link-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: rgba(255, 107, 157, 0.5);
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.3);
}

.calculator-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.calculator-link-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    background: linear-gradient(to right, #ff6b9d, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.calculator-link-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Share Buttons */
.share-container {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.share-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    border-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.share-btn.facebook:hover {
    border-color: #4267B2;
    background: rgba(66, 103, 178, 0.1);
}

.share-btn.download:hover {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
}

.share-btn.copy:hover {
    border-color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.1);
}

/* Share Notification */
.share-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.share-notification.success {
    border-color: #4ade80;
}

.share-notification.error {
    border-color: #f87171;
}


/* Modal */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

/* Body fix for double scrollbar */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--modal-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-gold);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
    max-height: 90vh;
    /* Limit height to viewport */
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

#modal-sign-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--modal-text);
    text-align: center;
    min-height: 200px;
    /* Prevent layout jump */
    overflow-y: auto;
    /* Enable scrolling */
    padding-right: 10px;
    /* Space for scrollbar */
    flex: 1;
    /* Consume available space */

    /* Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--glass-bg);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold);
    border-radius: 3px;
}

/* Tabs */
.modal-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn.active {
    color: var(--accent-gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Profile Styles */
.profile-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-family: var(--font-heading);
    color: var(--accent-purple);
    font-size: 1.2rem;
}

.profile-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.keyword-tag {
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid var(--accent-purple);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.profile-traits {
    font-style: italic;
    color: var(--text-secondary);
}

/* Yearly Forecast Styles */
/* Yearly Forecast Styles */
.yearly-forecast-container {
    /* max-height removed to use modal-body scroll */
    /* overflow-y removed */
    padding-right: 1rem;
    text-align: left;
}

.yearly-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--modal-text);
    white-space: pre-wrap;
    /* Preserve formatting */
    text-align: justify;
}

.yearly-text strong {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;
    /* Allows spacing to work better if needed, but safer inline */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}


/* Profile Container - Scrollable like Yearly Forecast */
.profile-container {
    /* max-height: 300px;  Removed to fix double scrollbar */
    /* overflow-y: auto;   Removed to fix double scrollbar */
    padding-right: 1rem;
    text-align: left;
}



/* Profile Section Styling */
.profile-section {
    margin-top: 1.5rem;
    text-align: left;
}

.profile-section h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.trait-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trait-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compatibility-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.compatibility-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive Design */

/* Mobile Devices (Portrait phones, less than 480px) */
@media (max-width: 480px) {
    .app-container {
        padding: 1rem;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    /* 2-column grid like iPad */
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .zodiac-card {
        padding: 1rem;
        min-height: auto;
    }

    .zodiac-icon {
        font-size: 2.5rem;
        margin-bottom: 0.4rem;
    }

    .zodiac-name {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .zodiac-date {
        font-size: 0.75rem;
    }

    /* Modal Responsive Fixes */
    .modal-content {
        padding: 1rem;
        padding-bottom: 100px;
        /* Reduced from 150px */
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
        overflow-y: auto;
    }

    .modal-header {
        margin-bottom: 1rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modal-icon {
        font-size: 2rem;
    }

    .modal-date-range {
        font-size: 0.85rem;
    }

    /* Tabs responsive */
    .modal-tabs {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .tab-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .tab-btn.active::after {
        bottom: -0.75rem;
    }

    /* Profile meta responsive */
    .profile-meta {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .meta-label {
        font-size: 0.75rem;
    }

    .meta-value {
        font-size: 0.9rem;
    }

    /* Keywords responsive */
    .profile-keywords {
        gap: 0.4rem;
    }

    .keyword-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    /* Traits text */
    .profile-traits {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Profile sections */
    .profile-section h4 {
        font-size: 1rem;
    }

    .trait-list {
        gap: 0.4rem;
    }

    .trait-list li {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .compatibility-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Yearly and profile containers */
    .yearly-forecast-container,
    .profile-container {
        max-height: 250px;
        padding-right: 0.5rem;
    }

    .yearly-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }


    /* Close button */
    .close-btn {
        font-size: 2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* --- Traits Grid --- */
    .traits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .trait-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 0.5rem;
    }


    .trait-key {
        color: var(--accent-gold);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.2rem;
    }

    .trait-value {
        color: var(--text-primary);
        font-weight: 500;
    }

    /* --- Zodiac Traits List (Custom Aligned) --- */
    .zodiac-traits-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        /* Reset margin completely */
        text-align: left;
        width: 100%;
        /* Take full width */
    }

    .zodiac-traits-list li {
        margin-bottom: 8px;
        line-height: 1.5;
        font-size: 1rem;
        /* Base font size */
    }

    .trait-label {
        color: var(--accent-gold);
        font-weight: 700;
        margin-right: 5px;
    }

    .trait-content {
        color: var(--text-primary);
    }

    /* --- Finder Modal --- */
    .finder-content {
        max-width: 400px;
        text-align: center;
    }

    .finder-content h3 {
        margin-bottom: 1rem;
        color: var(--accent-gold);
        font-family: 'Cinzel', serif;
    }

    .finder-input-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .date-input {
        padding: 0.8rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(0, 0, 0, 0.3);
        color: white;
        font-family: inherit;
        font-size: 1rem;
        text-align: center;
    }

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

    .finder-note {
        font-size: 0.8rem;
        opacity: 0.7;
        margin-top: 1rem;
    }

    .cta-button {
        margin-top: 1.5rem;
        padding: 0.7rem 1.5rem;
        background: linear-gradient(135deg, var(--accent-gold), #ff8c00);
        color: var(--bg-color);
        border: none;
        border-radius: 30px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        font-size: 1rem;
    }

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }

    .action-btn {
        padding: 0.8rem 1.5rem;
        background: var(--accent-gold);
        color: var(--bg-color);
        border: none;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.2s;
    }

    .action-btn:hover {
        background: #ffecb3;
    }

    /* Love Calculator Link Card Responsive */
    .calculator-link-card {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .calculator-icon {
        font-size: 3rem;
    }

    .calculator-link-title {
        font-size: 1.5rem;
    }

    .calculator-link-subtitle {
        font-size: 0.9rem;
    }

    .zodiac-traits-list li {
        font-size: 0.9rem;
    }
}

/* Tablets (Landscape phones and tablets, 481px to 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .title {
        font-size: 3rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .modal-content {
        max-width: 80%;
    }
}

/* Laptops and Desktops (1025px to 1440px) */
/* Laptops and Desktops (1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .app-container {
        max-width: 1000px;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Know More Button in Modal */
.know-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.know-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Characteristics Page Styles */
.back-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

.result-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #a5a5a5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.result-text {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.result-text p {
    margin-bottom: 1.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    opacity: 0.7;
}

.hidden {
    display: none;
}

/* Smart TVs and Large Screens (1441px and up) */
@media (min-width: 1441px) {
    html {
        font-size: 18px;
        /* Scale up base font size for distance viewing */
    }

    .app-container {
        max-width: 1600px;
        padding: 4rem;
    }

    .title {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .zodiac-card {
        padding: 3rem 2rem;
    }

    .zodiac-icon {
        font-size: 4rem;
    }

    .zodiac-name {
        font-size: 1.5rem;
    }

    .modal-content {
        max-width: 800px;
        padding: 4rem;
    }

    .close-btn {
        font-size: 3rem;
        top: 2rem;
        right: 2rem;
    }
}


/* Know More Button in Modal */
.know-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.know-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Characteristics Page Styles */
.back-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

.result-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, var(--title-gradient-start), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-text {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.result-text p {
    margin-bottom: 1.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    opacity: 0.7;
}

.hidden {
    display: none;
}


.zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* Smart TVs and Large Screens (1441px and up) */
@media (min-width: 1441px) {
    html {
        font-size: 18px;
        /* Scale up base font size for distance viewing */
    }

    .app-container {
        max-width: 1600px;
        padding: 4rem;
    }

    .title {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .zodiac-card {
        padding: 3rem 2rem;
    }

    .zodiac-icon {
        font-size: 4rem;
    }

    .zodiac-name {
        font-size: 1.5rem;
    }

    .modal-content {
        max-width: 800px;
        padding: 2.5rem;
    }

    .close-btn {
        font-size: 3rem;
        top: 2rem;
        right: 2rem;
    }
}

/* --- HTML Data List Styling --- */
.list_style {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

.list_style li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 1rem;
}

/* Ensure bold tags in list are gold */
.list_style li strong {
    color: var(--accent-gold);
}

/* Gender Tabs (Reusing Modal Tabs style structure) */
.gender-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

/* Tag Pill Style for Strengths/Weaknesses */

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-pill {
    background: rgba(157, 78, 221, 0.2);
    /* Low opacity purple */
    border: 1px solid var(--accent-purple);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.2);
}

/* Refined Finder Modal UI */
/* Refined Finder Modal UI */
.finder-input-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: center;
}

#birth-date-input {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--accent-purple);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Ensure icon visibility */
    color-scheme: dark;
}

/* Force light color scheme for input on light theme */
body.theme-solar #birth-date-input {
    color-scheme: light;
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

#birth-date-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

/* Calendar icon tweaks */
#birth-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    /* Invert filter handled by color-scheme property usually, 
       but explicit overrides can help */
}

#birth-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


#calculate-sign-btn {
    width: 100%;
    max-width: 250px;
    padding: 0.8rem 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-gold));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#calculate-sign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

.share-btn.generic:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

/* Mobile Responsiveness for Zodiac Grid */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding-bottom: 2rem;
    }

    .zodiac-card {
        padding: 1rem 0.25rem;
    }

    .zodiac-icon {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    .zodiac-name {
        font-size: 0.85rem;
    }

    .zodiac-date {
        font-size: 0.7rem;
    }

    .title {
        font-size: 2.5rem;
    }
}

.scroll-indicator .arrow {
    font-size: 1.5rem;
    /* Slightly smaller */
    margin-bottom: -2px;
    /* Tighten spacing */
}

.scroll-indicator .text {
    font-size: 0.7rem;
    /* Smaller text */
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Further compact share section on mobile */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        padding-bottom: 6rem;
        /* Safe area for settings button */
    }

    .share-container {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .share-title {
        margin-bottom: 0.3rem;
        font-size: 0.8rem;
    }

    .share-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}