/**
 * Lagna Chakra - Premium Header (loads AFTER app.min.css)
 * Single dark glass header block - beats .navbar { background: #fff }
 */

:root {
    --header-bg: #050510;
    --header-bg-alt: #0A0A1A;
    --header-glass: rgba(10, 10, 26, 0.88);
    --header-glass-nav: rgba(15, 15, 42, 0.82);
    --header-gold: #C9A84C;
    --header-gold-light: #F0D080;
    --header-gold-dark: #a88a3a;
    --header-text: #F5F0FF;
    --header-text-muted: #8B7DB8;
    --header-border: rgba(201, 168, 76, 0.22);
    --header-purple: #7B5EA7;
    --header-purple-glow: rgba(123, 94, 167, 0.35);
    --header-font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --header-font-body: 'Inter', system-ui, sans-serif;
}

/* Kill white navbar backgrounds (app.min.css + newcss.css) */
#lc-v2.premium-active header.lc-premium-header,
#lc-v2.premium-active header.lc-premium-header .lc-header-inner,
#lc-v2.premium-active header.lc-premium-header .lc-header-top,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav,
#lc-v2.premium-active header.lc-premium-header .navbar,
#lc-v2.premium-active header.lc-premium-header nav.navbar {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

#lc-v2.premium-active header.lc-premium-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    height: auto !important;
    background: var(--header-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.55) !important;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#lc-v2.premium-active header.lc-premium-header.lc-header--scrolled {
    background: rgba(5, 5, 16, 0.96) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65) !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Top row: brand left, actions right */
#lc-v2.premium-active header.lc-premium-header .lc-header-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: none !important;
    width: 100%;
}

#lc-v2.premium-active header.lc-premium-header .lc-brand-wrap {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 0 1 auto;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-left: auto;
    flex: 0 0 auto;
}

/* Hamburger — explicit gold bars (Bootstrap icon was invisible on dark header) */
#lc-v2.premium-active header.lc-premium-header .lc-header-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    min-width: 42px;
    min-height: 42px;
    background: rgba(201, 168, 76, 0.12) !important;
    outline: none;
    z-index: 30;
    position: relative;
    flex-shrink: 0;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-toggler .navbar-toggler-icon {
    display: none !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
    height: 14px;
}

#lc-v2.premium-active header.lc-premium-header .lc-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: #e8c878;
    transition: transform 0.2s, opacity 0.2s;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-toggler[aria-expanded="true"] .lc-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#lc-v2.premium-active header.lc-premium-header .lc-header-toggler[aria-expanded="true"] .lc-hamburger span:nth-child(2) {
    opacity: 0;
}
#lc-v2.premium-active header.lc-premium-header .lc-header-toggler[aria-expanded="true"] .lc-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#lc-v2.premium-active header.lc-premium-header .lc-header-toggler:focus {
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.35);
}

/* Brand / logo - single lockup, no duplicate glyph */
#lc-v2.premium-active header.lc-premium-header .lc-brand,
#lc-v2.premium-active header.lc-premium-header .lc-header-brand {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none !important;
    min-width: 0;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-logo {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.45);
    padding: 2px;
    background: rgba(5, 5, 16, 0.5);
    object-fit: cover;
    transition: border-color 0.3s, transform 0.3s;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-brand:hover .lc-header-logo {
    border-color: var(--header-gold);
    transform: rotate(6deg);
}

#lc-v2.premium-active header.lc-premium-header .lc-header-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-title,
#lc-v2.premium-active header.lc-premium-header .astroway-logo-text {
    font-family: var(--header-font-display) !important;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, var(--header-gold-light), var(--header-gold) 55%, var(--header-gold-dark)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    white-space: nowrap;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-tagline,
#lc-v2.premium-active header.lc-premium-header .astroway-logo-subtext {
    font-family: var(--header-font-body) !important;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--header-text) !important;
    opacity: 0.88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Moon phase badge */
#lc-v2.premium-active header.lc-premium-header .lc-moon-badge,
#lc-v2.premium-active header.lc-premium-header .premium-moon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    background: var(--header-purple-glow) !important;
    border: 1px solid rgba(123, 94, 167, 0.55) !important;
    color: #D4C4F0 !important;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(123, 94, 167, 0.25);
}

#lc-v2.premium-active header.lc-premium-header .lc-moon-badge__icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Gold CTA pills */
#lc-v2.premium-active header.lc-premium-header .lc-cta-pill,
#lc-v2.premium-active header.lc-premium-header .premium-btn-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, var(--header-gold-light), var(--header-gold) 45%, var(--header-gold-dark)) !important;
    color: var(--header-bg) !important;
    font-family: var(--header-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#lc-v2.premium-active header.lc-premium-header .lc-cta-pill:hover,
#lc-v2.premium-active header.lc-premium-header .premium-btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: var(--header-bg) !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-cta-pill img,
#lc-v2.premium-active header.lc-premium-header .premium-btn-pill img {
    filter: brightness(0) saturate(100%);
    opacity: 0.85;
}

/* Language selector - dark pill, not white box */
#lc-v2.premium-active header.lc-premium-header .lc-lang-select {
    position: relative;
    min-width: 88px;
    height: 36px;
    display: flex;
    align-items: center;
}

#lc-v2.premium-active header.lc-premium-header .lc-lang-select .goog-te-gadget,
#lc-v2.premium-active header.lc-premium-header #google_translate_button .goog-te-gadget,
#lc-v2.premium-active header.lc-premium-header #google_translate_button .skiptranslate {
    font-size: 0 !important;
    color: transparent !important;
    background: transparent !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-lang-select .goog-te-combo,
#lc-v2.premium-active header.lc-premium-header #google_translate_button .goog-te-combo,
#lc-v2.premium-active header.lc-premium-header #google_translate_button select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(5, 5, 16, 0.85) !important;
    border: 1px solid var(--header-border) !important;
    border-radius: 50px !important;
    color: var(--header-text) !important;
    font-family: var(--header-font-body) !important;
    font-size: 0.78rem !important;
    font-weight: 500;
    padding: 0.45rem 1.75rem 0.45rem 0.85rem !important;
    cursor: pointer;
    min-width: 96px;
    height: 36px;
    line-height: 1.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23C9A84C' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem center !important;
    transition: border-color 0.25s, box-shadow 0.25s;
}

#lc-v2.premium-active header.lc-premium-header .lc-lang-select .goog-te-combo:hover,
#lc-v2.premium-active header.lc-premium-header .lc-lang-select .goog-te-combo:focus,
#lc-v2.premium-active header.lc-premium-header #google_translate_button select:hover,
#lc-v2.premium-active header.lc-premium-header #google_translate_button select:focus {
    border-color: var(--header-gold) !important;
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.2);
    outline: none;
}

#lc-v2.premium-active header.lc-premium-header .lc-lang-select .goog-te-combo option,
#lc-v2.premium-active header.lc-premium-header #google_translate_button select option {
    background: var(--header-bg);
    color: var(--header-text);
}

#lc-v2.premium-active header.lc-premium-header #google_translate_button .skiptranslate span,
#lc-v2.premium-active header.lc-premium-header .goog-te-gadget .goog-te-gadget-icon,
#lc-v2.premium-active header.lc-premium-header .goog-te-banner-frame {
    display: none !important;
}

/* Sign In - gold ghost button */
#lc-v2.premium-active header.lc-premium-header .lc-sign-in,
#lc-v2.premium-active header.lc-premium-header button.lc-sign-in.loginSignUp {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem !important;
    border: 1px solid rgba(201, 168, 76, 0.45) !important;
    border-radius: 50px !important;
    background: rgba(201, 168, 76, 0.08) !important;
    color: var(--header-gold-light) !important;
    font-family: var(--header-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
    white-space: nowrap;
    box-shadow: none !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-sign-in i {
    font-size: 1rem;
    color: var(--header-gold);
}

#lc-v2.premium-active header.lc-premium-header .lc-sign-in:hover,
#lc-v2.premium-active header.lc-premium-header .lc-sign-in:focus,
#lc-v2.premium-active header.lc-premium-header button.lc-sign-in.loginSignUp:hover,
#lc-v2.premium-active header.lc-premium-header button.lc-sign-in.loginSignUp:focus {
    color: var(--header-gold) !important;
    background: rgba(201, 168, 76, 0.18) !important;
    border-color: var(--header-gold) !important;
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.25) !important;
    outline: none;
}

/* Logged-in user actions */
#lc-v2.premium-active header.lc-premium-header .lc-header-user-actions {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-user-actions .btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-user-actions .fa-bell {
    color: var(--header-gold-light);
    font-size: 1.15rem;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-user-actions img.rounded,
#lc-v2.premium-active header.lc-premium-header .lc-header-user-actions .psychic-img {
    border: 2px solid rgba(201, 168, 76, 0.45) !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    object-fit: cover;
}

/* Secondary nav row - dark glass */
#lc-v2.premium-active header.lc-premium-header .lc-header-nav {
    background: var(--header-glass-nav) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--header-border) !important;
    border-bottom: none !important;
    padding: 0.15rem 0 0.35rem;
    width: 100%;
}

#lc-v2.premium-active .navbar-collapse,
#lc-v2.premium-active header.lc-premium-header .navbar-collapse,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .navbar-collapse {
    position: unset !important;
    background: rgba(10, 10, 26, 0.98) !important;
    background-color: rgba(10, 10, 26, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .navbar-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    width: 100%;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.font-weight-semi-bold {
    color: var(--header-text) !important;
    font-family: var(--header-font-body) !important;
    font-weight: 600 !important;
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    position: relative;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--header-gold), var(--header-gold-light));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link:hover::after,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link:focus::after {
    width: 55%;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link:hover,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link:focus {
    color: var(--header-gold-light) !important;
    background: rgba(201, 168, 76, 0.08) !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .lc-nav-icon,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.2) sepia(0.3) saturate(1.5) hue-rotate(5deg);
    transition: transform 0.2s ease, filter 0.2s ease;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link:hover .lc-nav-icon,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link:hover img {
    transform: scale(1.1);
    filter: brightness(1.4) drop-shadow(0 0 6px rgba(201, 168, 76, 0.6));
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.nav-link-premium-active,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.active {
    color: var(--header-gold-light) !important;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.nav-link-premium-active::after,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.active::after {
    width: 55%;
}

#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.nav-link-premium-active .lc-nav-icon,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.nav-link-premium-active img,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.active .lc-nav-icon,
#lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link.active img {
    filter: brightness(1.35) sepia(0.35) saturate(1.6) hue-rotate(5deg) drop-shadow(0 0 8px rgba(201, 168, 76, 0.75));
    transform: scale(1.05);
}

/* Header dropdowns - dark */
#lc-v2.premium-active header.lc-premium-header .dropdown-menu {
    background: rgba(10, 10, 26, 0.98) !important;
    border: 1px solid var(--header-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
    padding: 0.5rem !important;
    margin-top: 8px;
}

#lc-v2.premium-active header.lc-premium-header .dropdown-menu .dropdown-item {
    color: var(--header-text-muted) !important;
    border-radius: 8px;
    padding: 0.55rem 1rem !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s;
}

#lc-v2.premium-active header.lc-premium-header .dropdown-menu .dropdown-item:hover {
    background: rgba(201, 168, 76, 0.12) !important;
    color: var(--header-gold-light) !important;
    padding-left: 1.25rem !important;
}

#lc-v2.premium-active header.lc-premium-header .user-options {
    min-width: 260px;
}

#lc-v2.premium-active header.lc-premium-header .user-options h2 {
    color: var(--header-text) !important;
    font-size: 1.1rem;
}

/* Desktop: always show nav row */
@media (min-width: 992px) {
    #lc-v2.premium-active header.lc-premium-header .lc-header-toggler {
        display: none !important;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-nav .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-nav .navbar-nav {
        flex-direction: row !important;
    }
}

/* Mobile collapse menu */
@media (max-width: 991.98px) {
    #lc-v2.premium-active header.lc-premium-header .lc-header-top {
        flex-wrap: nowrap;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-actions {
        gap: 0.5rem;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-nav {
        background: rgba(5, 5, 16, 0.98) !important;
        padding-bottom: 0.75rem;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-nav .navbar-nav {
        flex-direction: column !important;
        align-items: stretch;
        width: 100%;
        padding-top: 0.5rem;
        gap: 0;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link,
    #lc-v2.premium-active header.lc-premium-header .lc-header-nav .nav-link-mobile {
        width: 100%;
        border-bottom: 1px solid rgba(201, 168, 76, 0.1) !important;
        padding: 0.85rem 1rem !important;
        justify-content: flex-start;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-logo {
        width: 40px;
        height: 40px;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-tagline {
        display: none;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-mobile-ctas {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1rem;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-mobile-ctas .lc-cta-pill {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    #lc-v2.premium-active header.lc-premium-header .lc-sign-in span {
        display: none;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-title {
        font-size: 1.15rem;
    }

    #lc-v2.premium-active header.lc-premium-header .lc-header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
