:root {
    --indigo-900: #140a3d;
    --indigo-700: #2a1a6e;
    --gold: #f4b942;
    --gold-dark: #d99a1f;
    --soft: #f6f4fc;
    --text: #2b2b3a;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
}

h1, h2, h3, .navbar-brand, .brand-text {
    font-family: 'Cinzel', serif;
}

.topbar {
    background: #0c0626;
    color: #cfc8ee;
    font-size: .8rem;
    padding: .35rem 0;
}

.navbar-astro {
    background: linear-gradient(90deg, var(--indigo-900), var(--indigo-700));
    padding: .8rem 0;
}

    .navbar-astro .navbar-brand {
        color: #fff;
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

        .navbar-astro .navbar-brand span {
            color: var(--gold);
        }

    .navbar-astro .nav-link {
        color: #e6e1ff;
        font-weight: 500;
        margin: 0 .35rem;
    }

        .navbar-astro .nav-link:hover {
            color: var(--gold);
        }

.btn-gold {
    background: var(--gold);
    color: #1b1240;
    font-weight: 600;
    border: 0;
}

    .btn-gold:hover {
        background: var(--gold-dark);
        color: #1b1240;
    }

.btn-outline-gold {
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-weight: 500;
}

    .btn-outline-gold:hover {
        background: var(--gold);
        color: #1b1240;
    }

.hero {
    background: radial-gradient(circle at 20% 20%, #3b2a96 0%, var(--indigo-900) 60%);
    color: #fff;
    padding: 6rem 0;
}

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3.4rem);
    }

        .hero h1 span {
            color: var(--gold);
        }

    .hero .lead {
        color: #d9d3f5;
        margin: 1rem 0 2rem;
    }

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--indigo-900);
}

.bg-soft {
    background: var(--soft);
}

.service-card {
    display: block;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    text-decoration: none;
    color: var(--indigo-900);
    transition: .25s;
}

    .service-card i {
        font-size: 2.4rem;
        color: var(--gold-dark);
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 28px rgba(30, 20, 90, .16);
    }

.site-footer {
    background: #0c0626;
    color: #b9b2dd;
    padding: 3rem 0 1.5rem;
}

    .site-footer h5, .site-footer h6 {
        color: #fff;
    }

    .site-footer a {
        color: #b9b2dd;
        text-decoration: none;
    }

        .site-footer a:hover {
            color: var(--gold);
        }

    .site-footer hr {
        border-color: #2a2150;
    }
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: var(--soft);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    padding: 2.2rem;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(30, 20, 90, .12);
}

    .auth-card h2 {
        color: var(--indigo-900);
    }

    .auth-card .form-control:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 .2rem rgba(244, 185, 66, .25);
    }

/* Zodiac cards */
.sign-card {
    display: block;
    text-align: center;
    padding: 1.4rem .8rem;
    border-radius: 16px;
    background: #fff;
    color: var(--indigo-900);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(30, 20, 90, .08);
    transition: .25s;
}

    .sign-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 26px rgba(30, 20, 90, .16);
        color: var(--indigo-900);
    }

.sign-symbol {
    display: block;
    font-size: 2.6rem;
    color: var(--gold-dark);
    line-height: 1.1;
}

.sign-card h6 {
    margin: .5rem 0 0;
    font-weight: 600;
}

.sign-card small {
    color: #7a7396;
}

.sign-range {
    font-size: .75rem;
    color: #9a94b5;
    margin-top: .3rem;
}

/* Sign detail */
.sign-hero {
    background: radial-gradient(circle at 20% 20%, #3b2a96 0%, var(--indigo-900) 65%);
    color: #fff;
    padding: 3.5rem 0;
}

.sign-hero-symbol {
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
}

.sign-hero h1 small {
    font-size: 1.2rem;
    color: #cfc8ee;
}

.chip {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border-radius: 50px;
    padding: .25rem .9rem;
    font-size: .85rem;
    margin: .2rem;
}

.period-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

    .period-tabs a {
        display: block;
        padding: .5rem 1.3rem;
        border-radius: 50px;
        text-decoration: none;
        color: var(--indigo-900);
        background: var(--soft);
        font-weight: 500;
    }

        .period-tabs a.active, .period-tabs a:hover {
            background: var(--gold);
            color: #1b1240;
        }

.reading-card {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    border-top: 4px solid var(--gold);
}

    .reading-card h5 {
        color: var(--indigo-900);
        margin-bottom: .8rem;
    }

        .reading-card h5 i {
            color: var(--gold-dark);
            margin-right: .4rem;
        }

    .reading-card.lucky {
        background: var(--indigo-900);
        color: #fff;
    }

        .reading-card.lucky h5 {
            color: var(--gold);
        }

.other-signs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
}

    .other-signs a {
        padding: .45rem 1rem;
        border-radius: 50px;
        background: #fff;
        color: var(--indigo-900);
        text-decoration: none;
        box-shadow: 0 2px 10px rgba(30, 20, 90, .08);
    }

        .other-signs a span {
            color: var(--gold-dark);
        }

        .other-signs a:hover {
            background: var(--gold);
        }

/* Page banner */
.page-banner {
    background: radial-gradient(circle at 20% 20%, #3b2a96 0%, var(--indigo-900) 65%);
    color: #fff;
    padding: 3rem 0;
}

    .page-banner h1 {
        font-size: clamp(1.6rem, 4vw, 2.6rem);
    }

    .page-banner p {
        color: #d9d3f5;
        margin: .5rem 0 0;
    }

/* Articles */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    transition: .25s;
}

    .article-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 28px rgba(30, 20, 90, .16);
        color: var(--text);
    }

.article-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
    background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
}

.article-body-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .article-body-card h5 {
        color: var(--indigo-900);
        font-size: 1.05rem;
        margin: .6rem 0 .5rem;
    }

    .article-body-card p {
        font-size: .9rem;
        color: #5b5675;
        flex: 1;
    }

.badge-cat {
    display: inline-block;
    background: rgba(244, 185, 66, .2);
    color: #8a5d00;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .7rem;
    border-radius: 50px;
    align-self: flex-start;
}

.page-banner .badge-cat {
    background: var(--gold);
    color: #1b1240;
}

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

    .cat-pills a {
        padding: .4rem 1.1rem;
        border-radius: 50px;
        background: var(--soft);
        color: var(--indigo-900);
        text-decoration: none;
        font-weight: 500;
        font-size: .9rem;
    }

        .cat-pills a.active, .cat-pills a:hover {
            background: var(--gold);
            color: #1b1240;
        }

.article-text {
    font-size: 1.05rem;
    line-height: 1.85;
}

    .article-text p {
        margin-bottom: 1.2rem;
    }

.pagination-astro .page-link {
    color: var(--indigo-900);
}

.pagination-astro .page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: #1b1240;
}

/* Services */
.service-offer {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    border-bottom: 4px solid var(--gold);
}

    .service-offer i {
        font-size: 2.4rem;
        color: var(--gold-dark);
    }

    .service-offer h5 {
        margin: .8rem 0 .5rem;
        color: var(--indigo-900);
    }

    .service-offer p {
        font-size: .9rem;
        color: #5b5675;
    }

    .service-offer .price {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--indigo-900);
    }
/* Panchang */
.panchang-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

    .panchang-head h3 {
        font-family: 'Cinzel', serif;
        color: var(--indigo-900);
    }

.panchang-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 1.3rem;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    border-left: 4px solid var(--gold);
}

    .panchang-item > i {
        font-size: 2rem;
        color: var(--gold-dark);
    }

    .panchang-item .label {
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: #7a7396;
    }

    .panchang-item .value {
        font-weight: 600;
        color: var(--indigo-900);
    }

    .panchang-item.warn {
        border-left-color: #d9534f;
    }

        .panchang-item.warn > i {
            color: #d9534f;
        }
/* Kundli */
.form-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(30, 20, 90, .12);
}

    .form-card .form-control:focus, .form-card .form-select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 .2rem rgba(244, 185, 66, .25);
    }

.summary-box {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    border-top: 4px solid var(--gold);
}

    .summary-box .label {
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: #7a7396;
    }

    .summary-box .value {
        font-weight: 600;
        color: var(--indigo-900);
    }

.panel-public {
    background: #fff;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
}

    .panel-public h5 {
        font-family: 'Cinzel', serif;
        color: var(--indigo-900);
    }

.kundli-svg {
    width: 100%;
    max-width: 440px;
    display: block;
    margin: 0 auto;
}

.kh {
    fill: #fffdf6;
    stroke: var(--indigo-900);
    stroke-width: 1.6;
}

.ksign {
    font-size: 11px;
    fill: #9a94b5;
    text-anchor: middle;
    dominant-baseline: middle;
}

.kplanet {
    font-size: 13px;
    font-weight: 600;
    fill: var(--indigo-900);
    text-anchor: middle;
    dominant-baseline: middle;
}

@media print {
    .topbar, .navbar-astro, .site-footer, .btn {
        display: none !important;
    }
}

/* Matching */
.score-card {
    height: 100%;
    text-align: center;
    color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
    box-shadow: 0 10px 30px rgba(30, 20, 90, .25);
}

.score-num {
    font-family: 'Cinzel', serif;
    font-size: 3.4rem;
    color: var(--gold);
    line-height: 1.1;
}

.score-card .progress {
    height: 10px;
    background: rgba(255, 255, 255, .15);
}

.score-card .progress-bar {
    background: var(--gold);
}

.verdict {
    display: inline-block;
    padding: .35rem 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
}

.verdict-great {
    background: #1f9d57;
    color: #fff;
}

.verdict-good {
    background: #5aa02c;
    color: #fff;
}

.verdict-avg {
    background: var(--gold);
    color: #1b1240;
}

.verdict-bad {
    background: #d9534f;
    color: #fff;
}

/* AI chat */
.chat-side {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
}

.chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .45rem .6rem;
    border-radius: 10px;
}

    .chat-item a {
        flex: 1;
        min-width: 0;
        font-size: .9rem;
        color: var(--indigo-900);
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-item form {
        margin: 0;
    }

    .chat-item button {
        border: 0;
        background: none;
        color: #b04040;
        padding: 0 .2rem;
    }

    .chat-item:hover {
        background: var(--soft);
    }

    .chat-item.active {
        background: rgba(244, 185, 66, .28);
    }

.chat-panel {
    display: flex;
    flex-direction: column;
    height: 72vh;
    min-height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    overflow: hidden;
}

.chat-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #eeeaf8;
}

.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #faf9ff;
}

.msg {
    display: flex;
    margin-bottom: .8rem;
}

    .msg.user {
        justify-content: flex-end;
    }

.bubble {
    max-width: 82%;
    padding: .7rem 1rem;
    border-radius: 16px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.msg.user .bubble {
    background: var(--indigo-700);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg.bot .bubble {
    background: #fff;
    border: 1px solid #e6e1f7;
    border-bottom-left-radius: 4px;
}

.msg.typing .bubble {
    color: #9a94b5;
    font-style: italic;
}

.chat-input {
    display: flex;
    gap: .6rem;
    padding: .8rem 1rem;
    border-top: 1px solid #eeeaf8;
}

    .chat-input textarea {
        resize: none;
    }

        .chat-input textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 .2rem rgba(244, 185, 66, .25);
        }

.chat-chip {
    border: 1px solid var(--gold);
    background: #fff;
    color: var(--indigo-900);
    border-radius: 50px;
    padding: .35rem .9rem;
    font-size: .85rem;
}

    .chat-chip:hover {
        background: var(--gold);
    }

/* Honeypot: invisible to people, still present in the page for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
    background: #0c0626;
    color: #cfc8ee;
    font-size: .8rem;
    padding: .35rem 0;
}

    .topbar a {
        color: #cfc8ee;
        text-decoration: none;
    }

        .topbar a:hover {
            color: var(--gold);
        }

.navbar-astro {
    background: linear-gradient(90deg, var(--indigo-900), var(--indigo-700));
    padding: .8rem 0;
}

    /* Logo: large, white background badge */
    .navbar-astro .navbar-brand.brand-logo {
        display: inline-flex;
        align-items: center;
        gap: .75rem;
        background-color: #ffffff;
        color: var(--indigo-900);
        padding: .6rem 1.5rem;
        margin-right: 2rem;
        border-radius: 14px;
        font-family: 'Cinzel', serif;
        font-size: 2.1rem;
        font-weight: 700;
        letter-spacing: 1px;
        line-height: 1.1;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
    }

        .navbar-astro .navbar-brand.brand-logo i {
            color: var(--gold-dark);
            font-size: 2.4rem;
            line-height: 1;
        }

        .navbar-astro .navbar-brand.brand-logo span {
            color: var(--indigo-900);
        }

        .navbar-astro .navbar-brand.brand-logo img {
            display: block;
            height: 64px;
            max-height: 64px;
            width: auto;
        }

        .navbar-astro .navbar-brand.brand-logo:hover {
            background-color: #ffffff;
            color: var(--indigo-900);
        }

    /* Links */
    .navbar-astro .nav-link {
        color: #e6e1ff;
        font-weight: 500;
        margin: 0 .25rem;
        padding: .5rem .6rem;
        border-bottom: 2px solid transparent;
        transition: color .2s, border-color .2s;
    }

        .navbar-astro .nav-link:hover {
            color: var(--gold);
        }

        .navbar-astro .nav-link.active {
            color: var(--gold);
            border-bottom-color: var(--gold);
        }

    /* Hamburger button: Bootstrap already hides it on desktop (992px and up), so only its look is set here */
    .navbar-astro .navbar-toggler {
        border-color: rgba(255, 255, 255, .45);
        padding: .2rem .5rem;
    }

        .navbar-astro .navbar-toggler:focus {
            box-shadow: 0 0 0 .2rem rgba(244, 185, 66, .35);
        }

/* Account button */
.user-btn {
    max-width: 220px;
}

.user-name {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.dropdown-menu .dropdown-item i {
    color: var(--gold-dark);
}

/* ============================================================
   HEADER: mobile and tablet (below 992px only)
   ============================================================ */
@media (max-width: 991.98px) {

    /* Centred logo: an empty spacer on the left balances the hamburger button on the right */
    .navbar-astro > .container::before {
        content: "";
        flex: 0 0 52px;
        width: 52px;
    }

    .navbar-astro .navbar-brand.brand-logo {
        margin: 0;
        font-size: 1.6rem;
        padding: .45rem 1rem;
        border-radius: 12px;
    }

        .navbar-astro .navbar-brand.brand-logo i {
            font-size: 1.8rem;
        }

        .navbar-astro .navbar-brand.brand-logo img {
            height: 48px;
            max-height: 48px;
        }

    .navbar-astro .navbar-toggler {
        flex: 0 0 52px;
        width: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Opened menu */
    .navbar-astro .navbar-collapse {
        padding: .8rem 0 .4rem;
    }

    .navbar-astro .nav-link {
        margin: 0;
        padding: .6rem .25rem;
        border-bottom: 0;
    }

        .navbar-astro .nav-link.active {
            border-left: 3px solid var(--gold);
            padding-left: .6rem;
        }

    .nav-actions {
        padding-top: .6rem;
        border-top: 1px solid rgba(255, 255, 255, .15);
        margin-top: .4rem;
    }
}

/* ===== Back to top button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2a1a6e, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .35), 0 4px 10px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.85);
    transition: opacity .35s ease, visibility .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        animation: backToTopBounce .5s cubic-bezier(.34, 1.56, .64, 1);
    }

    .back-to-top:hover {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 12px 32px rgba(244, 185, 66, .45), 0 6px 14px rgba(0, 0, 0, .2);
        background: linear-gradient(135deg, #7c3aed, #f4b942);
    }

    .back-to-top:active {
        transform: translateY(-2px) scale(1.02);
    }

    .back-to-top:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 3px;
    }

    .back-to-top .back-to-top-icon {
        position: relative;
        z-index: 2;
        font-size: 1.7rem;
        line-height: 1;
        transition: transform .3s ease;
    }

    .back-to-top:hover .back-to-top-icon {
        transform: translateY(-3px);
        color: #fff;
    }

    /* Progress ring (scales with the button through the SVG viewBox) */
    .back-to-top .progress-ring {
        position: absolute;
        top: 0;
        left: 0;
        transform: rotate(-90deg);
        pointer-events: none;
    }

    .back-to-top .progress-ring__circle-bg {
        fill: transparent;
        stroke: rgba(255, 255, 255, .15);
        stroke-width: 2.5;
    }

    .back-to-top .progress-ring__circle {
        fill: transparent;
        stroke: #f4b942;
        stroke-width: 2.5;
        stroke-linecap: round;
        transition: stroke-dashoffset .15s linear;
        filter: drop-shadow(0 0 4px rgba(244, 185, 66, .8));
    }

@keyframes backToTopBounce {
    0% {
        transform: translateY(20px) scale(.85);
    }

    60% {
        transform: translateY(-6px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 575.98px) {
    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
    }

        .back-to-top .back-to-top-icon {
            font-size: 1.4rem;
        }

        .back-to-top .progress-ring {
            width: 46px;
            height: 46px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top, .back-to-top.visible {
        animation: none;
        transition: opacity .2s, visibility .2s;
    }

        .back-to-top:hover, .back-to-top:hover .back-to-top-icon {
            transform: none;
        }
}

/* ============================================================
   HOROSCOPE INDEX
   ============================================================ */

/* Element colours, shared by sign cards and element panels */
.sz-card, .hz-element {
    --g1: #8b6bff;
    --g2: #5b3bd6;
    --g3: #2a1a6e;
    background: linear-gradient(145deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
}

.el-fire {
    --g1: #ffa03d;
    --g2: #f0453a;
    --g3: #c2185b;
}

.el-earth {
    --g1: #5fcf6f;
    --g2: #2fa36b;
    --g3: #12745a;
}

.el-air {
    --g1: #5ec8ff;
    --g2: #5a7bff;
    --g3: #7a3fd1;
}

.el-water {
    --g1: #2fd6c8;
    --g2: #2a8cff;
    --g3: #3a3fc4;
}

/* Hero */
.hz-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 4.5rem 0 5.5rem;
    background: radial-gradient(circle at 15% 20%, #5b3bd6 0%, transparent 45%), radial-gradient(circle at 85% 30%, #c2358f 0%, transparent 40%), linear-gradient(135deg, #140a3d, #2a1a6e 60%, #4b2a9c);
}

    .hz-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .7;
        pointer-events: none;
        background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 90px 120px, #ffe9a8, transparent), radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent), radial-gradient(2px 2px at 230px 160px, #fff, transparent), radial-gradient(1.5px 1.5px at 300px 90px, #ffe9a8, transparent);
        background-size: 320px 200px;
        animation: hzTwinkle 4s ease-in-out infinite alternate;
    }

    .hz-hero .container {
        position: relative;
        z-index: 1;
    }

    .hz-hero h1 {
        font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    }

        .hz-hero h1 span {
            background: linear-gradient(90deg, var(--gold), #ff8fb8);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

    .hz-hero .lead {
        color: #ddd7f7;
        margin-top: 1rem;
    }

.hz-date {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
}

.hz-symbols {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.1rem;
    margin-top: 2.2rem;
    font-size: 1.7rem;
}

    .hz-symbols span {
        color: var(--gold);
        opacity: .85;
        animation: hzFloat 3.2s ease-in-out infinite;
    }

        .hz-symbols span:nth-child(3n) {
            animation-delay: .6s;
        }

        .hz-symbols span:nth-child(3n + 1) {
            animation-delay: 1.2s;
        }

@keyframes hzTwinkle {
    from {
        opacity: .35;
    }

    to {
        opacity: .9;
    }
}

@keyframes hzFloat {
    50% {
        transform: translateY(-7px);
        opacity: 1;
    }
}

/* Section titles */
.hz-title {
    position: relative;
    padding-bottom: .9rem;
}

    .hz-title::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 70px;
        height: 4px;
        transform: translateX(-50%);
        border-radius: 4px;
        background: linear-gradient(90deg, #5b3bd6, #c2358f, var(--gold));
    }

.hz-sub {
    text-align: center;
    color: #6b668a;
    max-width: 640px;
    margin: -.8rem auto 2rem;
}

/* Finder (overlaps the bottom of the hero) */
.hz-finder-wrap {
    margin-top: -2.8rem;
    position: relative;
    z-index: 3;
}

.hz-finder {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 14px 40px rgba(30, 20, 90, .22);
    border-top: 5px solid var(--gold);
}

    .hz-finder h5 {
        font-family: 'Cinzel', serif;
        color: var(--indigo-900);
        margin: 0;
    }

    .hz-finder .form-select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 .2rem rgba(244, 185, 66, .25);
    }

.hz-result {
    margin-top: 1rem;
}

    .hz-result:empty {
        display: none;
    }

.hz-result-link {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem 1.3rem;
    border-radius: 50px;
    background: linear-gradient(90deg, #5b3bd6, #c2358f);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .hz-result-link:hover {
        color: #fff;
        filter: brightness(1.08);
    }

    .hz-result-link .sym {
        font-size: 1.5rem;
        color: var(--gold);
    }

.hz-result-msg {
    color: #b04040;
    font-weight: 500;
}

/* Filter tabs */
.hz-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: .4rem 0 1.8rem;
}

.hz-tab {
    border: 0;
    padding: .5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
    color: var(--indigo-900);
    box-shadow: 0 2px 10px rgba(30, 20, 90, .12);
    transition: .2s;
}

    .hz-tab:hover {
        transform: translateY(-2px);
    }

    .hz-tab:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 2px;
    }

    .hz-tab.active {
        color: #fff;
    }

    .hz-tab.t-all.active {
        background: linear-gradient(90deg, #5b3bd6, #c2358f);
    }

    .hz-tab.t-fire.active {
        background: linear-gradient(90deg, #ffa03d, #e8344a);
    }

    .hz-tab.t-earth.active {
        background: linear-gradient(90deg, #5fcf6f, #12745a);
    }

    .hz-tab.t-air.active {
        background: linear-gradient(90deg, #5ec8ff, #7a3fd1);
    }

    .hz-tab.t-water.active {
        background: linear-gradient(90deg, #2fd6c8, #3a3fc4);
    }

/* Sign cards */
.sz-card {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    padding: 1.5rem 1.1rem 1.2rem;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    box-shadow: 0 8px 22px rgba(30, 20, 90, .2);
    transition: transform .3s, box-shadow .3s;
}

    .sz-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 16px 34px rgba(30, 20, 90, .34);
        color: #fff;
    }

    .sz-card:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 3px;
    }

.sz-bg {
    position: absolute;
    right: -14px;
    bottom: -34px;
    font-size: 7.5rem;
    line-height: 1;
    opacity: .14;
    pointer-events: none;
    text-shadow: none;
}

.sz-num {
    position: absolute;
    top: .75rem;
    left: .95rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: .8;
}

.sz-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .45);
    font-size: 2.2rem;
    transition: transform .4s;
}

.sz-card:hover .sz-symbol {
    transform: rotate(12deg) scale(1.1);
}

.sz-card h5 {
    margin: .8rem 0 0;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
}

.sz-hindi {
    opacity: .9;
    font-size: .85rem;
}

.sz-range {
    font-size: .78rem;
    opacity: .95;
    margin-top: .5rem;
}

.sz-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .8rem;
}

    .sz-meta span {
        background: rgba(0, 0, 0, .2);
        padding: .15rem .6rem;
        border-radius: 50px;
        font-size: .7rem;
        text-shadow: none;
    }

.sz-go {
    display: inline-block;
    margin-top: .9rem;
    font-size: .8rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, .65);
}

.sz-card.pulse {
    animation: hzPulse 1.2s ease 2;
}

@keyframes hzPulse {
    50% {
        box-shadow: 0 0 0 9px rgba(244, 185, 66, .6);
    }
}

/* Feature cards */
.hz-feature {
    height: 100%;
    text-align: center;
    padding: 1.6rem 1rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(30, 20, 90, .08);
    transition: .25s;
}

    .hz-feature:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(30, 20, 90, .16);
    }

    .hz-feature .ic {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 1.8rem;
        color: #fff;
        margin-bottom: .8rem;
    }

    .hz-feature h6 {
        font-weight: 600;
        color: var(--indigo-900);
    }

    .hz-feature p {
        font-size: .85rem;
        color: #6b668a;
        margin: 0;
    }

.ic-love {
    background: linear-gradient(135deg, #ff6fa5, #e8344a);
}

.ic-career {
    background: linear-gradient(135deg, #4f8cff, #2a4fd6);
}

.ic-money {
    background: linear-gradient(135deg, #3fcf8e, #12945a);
}

.ic-health {
    background: linear-gradient(135deg, #2fd6c8, #13869b);
}

.ic-lucky {
    background: linear-gradient(135deg, #ffd35a, #f4a41f);
}

/* Elements */
.hz-elements {
    padding: 4rem 0;
    color: #fff;
    background: radial-gradient(circle at 80% 10%, #4b2a9c 0%, transparent 50%), linear-gradient(135deg, #140a3d, #2a1a6e);
}

    .hz-elements .section-title {
        color: #fff;
    }

    .hz-elements .hz-sub {
        color: #cfc8ee;
    }

/* ============================================================
   KUNDLI RESULT: numbered sections and detailed report
   ============================================================ */
.kr-heading {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

    .kr-heading h2 {
        margin: 0;
        font-size: 1.6rem;
        color: var(--indigo-900);
    }

.kr-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    background: linear-gradient(135deg, #5b3bd6, #c2358f);
}

/* One accent colour pair per section, used by the tab and by its card */
.kr-desc {
    --ka: #7c5cff;
    --kb: #3b2a96;
}

.kr-pers {
    --ka: #ff6fa5;
    --kb: #e8344a;
}

.kr-phys {
    --ka: #4f8cff;
    --kb: #2a4fd6;
}

.kr-health {
    --ka: #2fd6c8;
    --kb: #13869b;
}

.kr-career {
    --ka: #3fcf8e;
    --kb: #12945a;
}

.kr-rel {
    --ka: #c2358f;
    --kb: #7a3fd1;
}

.kr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.2rem;
    border: 0;
}

    .kr-pills .nav-link {
        border-radius: 50px;
        padding: .55rem 1.2rem;
        font-weight: 600;
        font-size: .92rem;
        background: #fff;
        color: var(--indigo-900);
        box-shadow: 0 2px 10px rgba(30, 20, 90, .12);
        border-bottom: 3px solid var(--ka);
        transition: transform .2s;
    }

        .kr-pills .nav-link i {
            margin-right: .35rem;
            color: var(--kb);
        }

        .kr-pills .nav-link:hover {
            transform: translateY(-2px);
        }

        .kr-pills .nav-link:focus-visible {
            outline: 3px solid var(--gold);
            outline-offset: 2px;
        }

        .kr-pills .nav-link.active {
            color: #fff;
            background: linear-gradient(90deg, var(--ka), var(--kb));
            border-bottom-color: transparent;
        }

            .kr-pills .nav-link.active i {
                color: #fff;
            }

.kr-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(30, 20, 90, .14);
}

.kr-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.5rem;
    color: #fff;
    background: linear-gradient(120deg, var(--ka), var(--kb));
}

    .kr-head .ic {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 14px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, .22);
    }

    .kr-head h4 {
        margin: 0;
        font-family: 'Cinzel', serif;
    }

.kr-body {
    padding: 1.5rem;
}

    .kr-body p {
        line-height: 1.85;
        color: #3b3752;
        margin-bottom: 1rem;
    }

        .kr-body p:last-child {
            margin-bottom: 0;
        }

.kr-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .7rem;
    margin-bottom: 1.3rem;
}

.kr-chip {
    background: var(--soft);
    border-left: 4px solid var(--ka);
    border-radius: 10px;
    padding: .55rem .9rem;
}

    .kr-chip span {
        display: block;
        font-size: .7rem;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: #7a7396;
    }

    .kr-chip strong {
        color: var(--indigo-900);
        font-size: .95rem;
    }

@media (max-width: 575.98px) {
    .kr-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .4rem;
    }

        .kr-pills .nav-link {
            white-space: nowrap;
        }

    .kr-body {
        padding: 1.1rem;
    }
}

/* Printing shows every section of the report, one after another */
@media print {
    .kr-pills {
        display: none !important;
    }

    .kr-content > .tab-pane {
        display: block !important;
        opacity: 1 !important;
        margin-bottom: 1rem;
    }

    .kr-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .kr-head {
        background: #eee !important;
        color: #000 !important;
    }

        .kr-head .ic {
            display: none;
        }
}

/* ============================================================
   REMEDIES: gemstones and Rudraksha
   ============================================================ */
.kr-gem {
    --ka: #b15cff;
    --kb: #6a2fd1;
}

.kr-rud {
    --ka: #e0a35a;
    --kb: #8b4a1f;
}

.rem-card {
    height: 100%;
    background: #fff;
    border: 1px solid #ece8f8;
    border-top: 4px solid var(--ka);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 4px 16px rgba(30, 20, 90, .07);
}

.rem-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: .2rem .8rem;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(90deg, var(--ka), var(--kb));
}

.rem-card h5 {
    font-family: 'Cinzel', serif;
    color: var(--indigo-900);
    margin: .7rem 0 .1rem;
}

.rem-sub {
    color: #7a7396;
    font-size: .85rem;
    margin-bottom: .7rem;
}

.kr-body .rem-card p {
    font-size: .92rem;
    line-height: 1.7;
}

.rem-facts {
    display: grid;
    gap: .35rem;
    margin: 0;
}

    .rem-facts > div {
        display: flex;
        gap: .6rem;
        font-size: .85rem;
        border-top: 1px dashed #e4dff5;
        padding-top: .35rem;
    }

    .rem-facts dt {
        flex: 0 0 38%;
        color: #7a7396;
        font-weight: 500;
    }

    .rem-facts dd {
        margin: 0;
        color: var(--indigo-900);
        font-weight: 600;
    }

.rem-caution {
    margin-top: .8rem;
    padding: .6rem .8rem;
    border-radius: 10px;
    background: #fff6e0;
    color: #7a5200;
    font-size: .82rem;
    line-height: 1.5;
}

.rem-avoid {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: #fff1f1;
    border: 1px solid #f3cccc;
}

    .rem-avoid h6 {
        color: #a13a3a;
        font-weight: 600;
    }

    .rem-avoid ul {
        margin: 0;
        padding-left: 1.1rem;
        font-size: .9rem;
        color: #5b3a3a;
    }

.rem-notes {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: var(--soft);
    border-left: 4px solid var(--gold);
}

    .rem-notes h6 {
        color: var(--indigo-900);
        font-weight: 600;
    }

    .rem-notes ul {
        margin: 0;
        padding-left: 1.1rem;
        font-size: .88rem;
        color: #5b5675;
        line-height: 1.65;
    }

    .rem-notes li + li {
        margin-top: .35rem;
    }

@media (max-width: 575.98px) {
    .rem-facts > div {
        flex-direction: column;
        gap: 0;
    }

    .rem-facts dt {
        flex: none;
    }
}

@media print {
    .rem-card, .rem-avoid, .rem-notes {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* ============================================================
   DOSHA ANALYSIS
   ============================================================ */
.kr-rahu {
    --ka: #7b6cf6;
    --kb: #2a1a6e;
}

.kr-ketu {
    --ka: #8fa6b8;
    --kb: #425466;
}

.kr-mangal {
    --ka: #ff7a45;
    --kb: #d6291f;
}

.kr-other {
    --ka: #f4b942;
    --kb: #c2358f;
}

/* Status colours: --sc is the strong colour, --sb a soft background */
.ds-none {
    --sc: #1f9d57;
    --sb: #e8f7ee;
}

.ds-mild {
    --sc: #d99a1f;
    --sb: #fff6e0;
}

.ds-moderate {
    --sc: #e8731f;
    --sb: #fff0e3;
}

.ds-pronounced {
    --sc: #d6291f;
    --sb: #fdeaea;
}

.ds-reduced {
    --sc: #2a7fd1;
    --sb: #e8f2fc;
}

.ds-info {
    --sc: #7a3fd1;
    --sb: #f1eafc;
}

.ds-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .6rem;
    margin-bottom: 1.3rem;
}

.ds-pill {
    background: var(--sb);
    border-left: 4px solid var(--sc);
    border-radius: 10px;
    padding: .5rem .8rem;
}

    .ds-pill span {
        display: block;
        font-size: .75rem;
        color: #5b5675;
    }

    .ds-pill strong {
        color: var(--sc);
        font-size: .9rem;
    }

.ds-finding {
    background: #fff;
    border: 1px solid #ece8f8;
    border-left: 5px solid var(--sc);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-top: 1rem;
}

    .ds-finding.ds-none {
        background: #fbfefc;
    }

.ds-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .4rem;
}

    .ds-top h5 {
        margin: 0;
        font-family: 'Cinzel', serif;
        color: var(--indigo-900);
    }

.ds-badge {
    background: var(--sc);
    color: #fff;
    padding: .2rem .85rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
}

.ds-finding h6 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #7a7396;
    margin: .9rem 0 .3rem;
}

.ds-finding ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .9rem;
    line-height: 1.65;
    color: #3b3752;
}

.kr-body .ds-finding p {
    font-size: .93rem;
    line-height: 1.75;
    margin-bottom: .4rem;
}

@media print {
    .ds-finding, .ds-pill {
        break-inside: avoid;
    }
}