/* Cosmic Theme CSS for AstroTools */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Cosmic Light Palette */
    --bg-dark: #f4f4fa;
    --bg-deep: #ffffff;
    --primary-color: #c59b27;
    /* Richer Starlight Gold for contrast */
    --primary-glow: rgba(197, 155, 39, 0.15);
    --secondary-color: #7b2cb6;
    /* Nebula Purple */
    --secondary-glow: rgba(123, 44, 182, 0.15);
    --accent-color: #0077b6;
    /* Cosmic Blue */

    /* Text */
    --text-main: #1e1e2f;
    --text-muted: #64748b;
    --text-dark: #f4f4fa;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(123, 44, 182, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(123, 44, 182, 0.06);
    --glass-blur: blur(10px);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    --gradient-cosmic: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(157, 78, 221, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.10) 0%, transparent 25%);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Stars Background Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20px 30px, var(--secondary-color), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 40px 70px, var(--primary-color), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 160px, var(--secondary-color), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 80px 120px, var(--primary-color), rgba(0, 0, 0, 0)),
        radial-gradient(1.2px 1.2px at 110px 140px, var(--accent-color), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 130px 180px, var(--primary-color), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: -1;
    opacity: 0.25;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.3;
    }
}

/* Common Components */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Navbar Updates */
.navbar {
    background: rgba(244, 244, 250, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--gradient-main);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: var(--text-main);
}

.dropdown-item:hover {
    background: rgba(123, 44, 182, 0.05);
    color: var(--secondary-color);
}

.navbar-toggler {
    border-color: var(--glass-border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 30, 47, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #1e1e2f, var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a239ca 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(123, 44, 182, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 182, 0.3);
    color: #ffffff;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* Glass Panels & Cards */
.glass-panel,
.tool-card,
.result-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(123, 44, 182, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-content {
    background: #ffffff;
    border: 1px solid rgba(123, 44, 182, 0.12);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(123, 44, 182, 0.05);
    padding: 3.5rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

/* Tool Cards Grid */
.tool-card {
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.tool-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Forms */
.form-label {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 12px;
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    background: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--secondary-glow);
    color: var(--text-main);
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Fix for date inputs */
::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.6;
}

/* Tool Specifics */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.tool-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    margin: 1rem auto 0;
    border-radius: 3px;
}

.tool-header h2 {
    font-size: 2.5rem;
}

/* Results Area */
.result-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    margin-top: 1rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--glass-shadow);
}

.result-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.result-card h6 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Accordion */
.accordion-item {
    background: transparent;
    border: 1px solid var(--glass-border);
    margin-bottom: 0.5rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-main);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(123, 44, 182, 0.08);
    color: var(--secondary-color);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-muted);
}

/* Perfect Navigation Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(123, 44, 182, 0.02);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(123, 44, 182, 0.06);
    padding: 0.75rem 0;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Perfect Footer Styles */
footer {
    background: linear-gradient(to bottom, #ffffff 0%, #f5f6fa 100%);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.footer-brand h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.25rem;
}

.social-link {
    background: rgba(123, 44, 182, 0.05);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(123, 44, 182, 0.1);
}

.social-link:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--secondary-glow);
    border-color: var(--secondary-color);
}

.footer-section h6 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.footer-links a i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.footer-links a:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Newsletter Styles */
.newsletter-form {
    display: flex;
    background: rgba(123, 44, 182, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.newsletter-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-btn {
    border-radius: 50px;
    background: var(--gradient-main);
    border: none;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image i {
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

/* Loading Spinners */
.loading {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 2rem auto;
}

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

/* Utility */
.text-primary {
    color: var(--primary-color) !important;
}

.text-warning {
    color: #FFA500 !important;
}

.text-info {
    color: #00D2FF !important;
}

.text-success {
    color: #00FF9D !important;
}

.text-danger {
    color: #FF4B4B !important;
}

/* Scroll to top */
.scroll-to-top {
    background: var(--gradient-main);
    color: var(--text-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary-glow);
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}

/* Tool Specific: Lucky Numbers */
.lucky-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(123, 44, 182, 0.08);
    display: inline-block;
    color: var(--text-main);
    font-weight: bold;
    margin: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.lucky-number.core {
    background: var(--gradient-main);
    color: var(--text-dark);
}

/* Tool Specific: Moon Phase */
.moon-phase-display {
    background: radial-gradient(circle at center, #eaeaf5, #b8b8d0);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(123, 44, 182, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Specific: Zoning */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.zodiac-card,
.zodiac-animal-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.zodiac-card:hover,
.zodiac-card.active,
.zodiac-animal-card:hover {
    background: rgba(123, 44, 182, 0.08);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.number-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem 1rem;
    height: 100%;
    transition: all 0.3s;
}

.number-card:hover {
    background: rgba(123, 44, 182, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.number-circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.lucky-color {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Newsletter Input */
.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    width: 100%;
}

.newsletter-btn {
    border-radius: 50px;
    background: var(--gradient-main);
    border: none;
    color: #000;
    padding: 0 20px;
    font-weight: bold;
}

/* Subpage Hero Styles */
.sub-hero {
    padding-top: 130px;
    padding-bottom: 40px;
    position: relative;
    text-align: center;
    background: radial-gradient(circle at center, rgba(123, 44, 182, 0.05) 0%, transparent 70%);
}

.sub-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(to right, #1e1e2f, var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.sub-hero .lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Interactive Zodiac Selection Grid */
.interactive-zodiac-selector {
    margin-bottom: 1.5rem;
}

.interactive-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Custom Scrollbar for Zodiac Grid */
.interactive-zodiac-grid::-webkit-scrollbar {
    width: 6px;
}

.interactive-zodiac-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.interactive-zodiac-grid::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.interactive-zodiac-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.interactive-zodiac-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.interactive-zodiac-card i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.25s;
}

.interactive-zodiac-card span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.interactive-zodiac-card small {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.interactive-zodiac-card:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.interactive-zodiac-card:hover i {
    color: var(--primary-color);
}

.interactive-zodiac-card.active {
    background: rgba(157, 78, 221, 0.25);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.interactive-zodiac-card.active i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 3px var(--primary-glow));
}

/* Animations */
.slide-up {
    animation: slideUp 0.5s ease forwards;
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Contact Page Enhancements */
.contact-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.contact-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Modality/Element Card Info style */
.info-guide-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.info-guide-card h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
}

/* Interactive Zodiac Wheel SVG mockup style */
.zodiac-wheel-svg {
    max-width: 280px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(123, 44, 182, 0.15));
    animation: spin-slow 60s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.heart-rating i {
    font-size: 1.5rem;
    margin: 0 3px;
    transition: transform 0.2s ease;
}

.heart-rating .heart-filled {
    color: #FF4B4B;
    filter: drop-shadow(0 0 3px rgba(255, 75, 75, 0.5));
}



/* Mobile Responsiveness Overrides */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero-section .row {
        min-height: auto !important;
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .sub-hero {
        padding-top: 110px;
        padding-bottom: 30px;
    }

    .sub-hero h1 {
        font-size: 2.2rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .tool-header h2 {
        font-size: 1.8rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .result-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .sub-hero {
        padding-top: 95px;
        padding-bottom: 25px;
    }

    .sub-hero h1 {
        font-size: 1.8rem;
    }

    .sub-hero .lead {
        font-size: 0.95rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .tool-header {
        margin-bottom: 2rem;
    }

    .tool-header h2 {
        font-size: 1.5rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
        gap: 10px;
    }

    .zodiac-card,
    .zodiac-animal-card {
        padding: 1rem 0.5rem;
        border-radius: 12px;
    }

    .zodiac-card span,
    .zodiac-animal-card span {
        font-size: 0.85rem;
    }

    .zodiac-card small,
    .zodiac-animal-card small {
        font-size: 0.7rem;
    }

    .interactive-zodiac-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        max-height: 220px;
    }

    .interactive-zodiac-card {
        padding: 0.5rem;
    }

    .interactive-zodiac-card i {
        font-size: 1.25rem;
    }

    .interactive-zodiac-card span {
        font-size: 0.7rem;
    }

    .interactive-zodiac-card small {
        font-size: 0.55rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.95rem;
    }

    /* Make tables responsive */
    .table {
        font-size: 0.85rem;
    }
}

/* Homepage Wrapper & Tool UI Upgrades */
@media (min-width: 992px) {
    .bottom-content-wrapper {
        max-width: 60%;
        margin: 0 auto;
    }
}

/* Accessible High-Contrast Form Spacings */
.form-label {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background-color: #fbfbfe !important;
    border: 1.5px solid rgba(123, 44, 182, 0.28) !important;
    color: var(--text-main) !important;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.25s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 4px rgba(123, 44, 182, 0.15) !important;
}

/* Premium Horizontal Tool Cards */
.horizontal-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.25rem;
    width: 100%;
}

.horizontal-card:hover {
    transform: translateX(4px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 30px rgba(123, 44, 182, 0.08);
}

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(123, 44, 182, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-wrapper i {
    font-size: 1.6rem !important;
    margin: 0 !important;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text-wrapper {
    flex-grow: 1;
}

.card-text-wrapper h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-text-wrapper p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.card-arrow-wrapper {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.horizontal-card:hover .card-arrow-wrapper {
    transform: translateX(4px);
    color: var(--secondary-color);
}

@media (max-width: 576px) {
    .horizontal-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    .card-icon-wrapper {
        margin: 0 auto;
    }
    .card-arrow-wrapper {
        display: none;
    }
}

/* Rotating Zodiac Wheel Animation */
@keyframes rotateWheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.zodiac-wheel-svg,
.spinning-mandala {
    animation: rotateWheel 180s linear infinite;
    transform-origin: center;
}

/* Tarot 3D Card Animation Styles */
.tarot-card-3d {
    perspective: 1000px;
    width: 180px;
    height: 300px;
    margin: 0 auto;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.tarot-card-inner.flipped {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(123, 44, 182, 0.12);
    border: 3px solid #dfc785;
}

.tarot-card-back {
    background: linear-gradient(135deg, #1e1e2f 0%, #3e1b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarot-card-back::after {
    content: "✨";
    font-size: 3rem;
    color: #dfc785;
}

.tarot-card-front {
    background: #ffffff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #1e1e2f;
}

.tarot-card-front i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.tarot-card-front h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tarot-card-front span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tarot-card-front.reversed-card i {
    transform: rotate(180deg);
}

/* Custom progress bars for elements */
.element-progress-container {
    margin-bottom: 1.25rem;
}

.element-progress-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.element-progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.element-progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-fire { background: linear-gradient(90deg, #f56565 0%, #e53e3e 100%); }
.bg-earth { background: linear-gradient(90deg, #48bb78 0%, #38a169 100%); }
.bg-air { background: linear-gradient(90deg, #4299e1 0%, #3182ce 100%); }
.bg-water { background: linear-gradient(90deg, #0bc5ea 0%, #00a3c4 100%); }

/* Responsive adjustments */
@media (max-width: 991px) {
    .tool-content {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .tool-content {
        padding: 1.5rem 1rem;
    }
}