/* ------------------------------------------------------------------
   Astroverse theme: deep navy surfaces, blue-to-violet accents.
   Loaded last (end of <body>) so it wins over the page-level styles.
   The base palette lives in the other stylesheets; this file holds the
   finishing touches. Edit the variables below to retune the accent.
   ------------------------------------------------------------------ */
:root {
    --av-accent: #6b59f8;
    --av-accent-2: #4f8dff;
    --av-accent-3: #a855f7;
    --av-gradient: linear-gradient(135deg, #4f8dff 0%, #6b59f8 52%, #9a5cf6 100%);
    --av-glow: 0 10px 30px -8px rgba(107, 89, 248, 0.65);
    --av-navy: #121526;
    --av-panel: #1e2236;
    --av-panel-2: #262b44;
    --av-line: rgba(160, 170, 255, 0.14);
    --av-text: #eef0ff;
    --av-muted: #a5abc9;
}

/* ---------- Primary actions: gradient fill, white label ---------- */
body:not(#av) .btn-chat,
body:not(#av) .btn-info,
body:not(#av) .btn-read-forecast,
body:not(#av) .btn-more-astrologers,
body:not(#av) .btn-conclusion-chat,
body:not(#av) .btn-hero-cta.btn-chat-now,
body:not(#av) .btn-hero-cta:not(.btn-call-now),
body:not(#av) .theme-toggle-btn.active {
    background: var(--av-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--av-glow);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body:not(#av) .btn-chat *,
body:not(#av) .btn-info *,
body:not(#av) .btn-read-forecast *,
body:not(#av) .btn-more-astrologers *,
body:not(#av) .btn-conclusion-chat *,
body:not(#av) .btn-hero-cta:not(.btn-call-now) * {
    color: #fff !important;
}

body:not(#av) .btn-chat:hover,
body:not(#av) .btn-info:hover,
body:not(#av) .btn-read-forecast:hover,
body:not(#av) .btn-more-astrologers:hover,
body:not(#av) .btn-conclusion-chat:hover,
body:not(#av) .btn-hero-cta:not(.btn-call-now):hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 36px -10px rgba(107, 89, 248, 0.8);
    color: #fff !important;
}

body:not(#av) .theme-toggle-btn.active { box-shadow: none; }

/* Numbered and zodiac badges that sit on the accent colour */
body:not(#av) .step-number-circle,
body:not(#av) .zodiac-symbol-circle {
    background: var(--av-gradient) !important;
    color: #fff !important;
    box-shadow: 0 0 0 6px rgba(107, 89, 248, 0.16), var(--av-glow);
}

body:not(#av) .zodiac-symbol-circle * { color: #fff !important; }

/* Star ratings stay gold: they are a rating, not a brand colour */
body:not(#av) .fa-star,
body:not(#av) .fa-star-half-alt,
body:not(#av) .fa-star-half-stroke,
body:not(#av) .rating-star,
body:not(#av) .star-rating i {
    color: #fbbf24 !important;
}

::selection { background: rgba(107, 89, 248, 0.45); color: #fff; }

/* ------------------------- Night mode ---------------------------- */
body.home-dark-mode {
    background-color: var(--av-navy) !important;
    color: var(--av-text);
    scrollbar-color: #3a4066 var(--av-navy);
}

body.home-dark-mode:not(#av) ::-webkit-scrollbar { width: 10px; height: 10px; }
body.home-dark-mode:not(#av) ::-webkit-scrollbar-track { background: var(--av-navy); }
body.home-dark-mode:not(#av) ::-webkit-scrollbar-thumb { background: #3a4066; border-radius: 10px; }

/* Hero glows: blue and violet instead of rose and green */
body.home-dark-mode:not(#av) .glow-node.pink { background: radial-gradient(circle, #4f8dff 0%, transparent 70%) !important; }
body.home-dark-mode:not(#av) .glow-node.green { background: radial-gradient(circle, #a855f7 0%, transparent 70%) !important; }

/* Secondary hero button: glass instead of solid white */
body.home-dark-mode:not(#av) .btn-hero-cta.btn-call-now {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(180, 188, 255, 0.35) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
}

body.home-dark-mode:not(#av) .btn-hero-cta.btn-call-now * { color: #fff !important; }
body.home-dark-mode:not(#av) .btn-hero-cta.btn-call-now:hover { background: rgba(255, 255, 255, 0.12) !important; transform: translateY(-2px); }

/* Form controls */
body.home-dark-mode:not(#av) .form-control,
body.home-dark-mode:not(#av) select,
body.home-dark-mode:not(#av) textarea,
body.home-dark-mode:not(#av) .select2-container--default .select2-selection--single,
body.home-dark-mode:not(#av) .select2-container--default .select2-selection--multiple {
    background-color: #171b2e !important;
    border: 1px solid var(--av-line) !important;
    color: var(--av-text) !important;
    border-radius: 10px;
}

body.home-dark-mode:not(#av) .form-control:focus,
body.home-dark-mode:not(#av) select:focus,
body.home-dark-mode:not(#av) textarea:focus {
    border-color: var(--av-accent) !important;
    box-shadow: 0 0 0 3px rgba(107, 89, 248, 0.25) !important;
    outline: none;
}

body.home-dark-mode:not(#av) .form-control::placeholder,
body.home-dark-mode:not(#av) textarea::placeholder { color: #7f86a8 !important; }
body.home-dark-mode:not(#av) input[type="date"],
body.home-dark-mode:not(#av) input[type="time"] { color-scheme: dark; }
body.home-dark-mode:not(#av) .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--av-text) !important; }
body.home-dark-mode:not(#av) .select2-dropdown { background: var(--av-panel) !important; border-color: var(--av-line) !important; color: var(--av-text); }
body.home-dark-mode:not(#av) .select2-results__option--highlighted { background: var(--av-accent) !important; }

/* Pop-ups and menus */
body.home-dark-mode:not(#av) .modal-content,
body.home-dark-mode:not(#av) .dropdown-menu {
    background: var(--av-panel) !important;
    border: 1px solid var(--av-line) !important;
    color: var(--av-text) !important;
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

body.home-dark-mode:not(#av) .modal-header,
body.home-dark-mode:not(#av) .modal-footer { border-color: var(--av-line) !important; }
body.home-dark-mode:not(#av) .modal-backdrop.show { background: #070914; opacity: .75; }
body.home-dark-mode:not(#av) .dropdown-item { color: var(--av-text) !important; }
body.home-dark-mode:not(#av) .dropdown-item:hover,
body.home-dark-mode:not(#av) .dropdown-item:focus { background: rgba(107, 89, 248, 0.18) !important; }
body.home-dark-mode:not(#av) .close { color: #fff; text-shadow: none; opacity: .8; }

/* Tables */
body.home-dark-mode:not(#av) table,
body.home-dark-mode:not(#av) .table { color: var(--av-text) !important; }
body.home-dark-mode:not(#av) .table th,
body.home-dark-mode:not(#av) .table td { border-color: var(--av-line) !important; }
body.home-dark-mode:not(#av) .table thead th { background: var(--av-panel-2) !important; color: #fff !important; }

/* Links inside text */
body.home-dark-mode:not(#av) a { text-decoration-color: rgba(160, 170, 255, 0.4); }

/* Soft lift on cards */
body.home-dark-mode:not(#av) .card,
body.home-dark-mode:not(#av) .psychic-card,
body.home-dark-mode:not(#av) .astrologer-card,
body.home-dark-mode:not(#av) .blog-card,
body.home-dark-mode:not(#av) .product-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.home-dark-mode:not(#av) .card:hover,
body.home-dark-mode:not(#av) .psychic-card:hover,
body.home-dark-mode:not(#av) .astrologer-card:hover,
body.home-dark-mode:not(#av) .blog-card:hover,
body.home-dark-mode:not(#av) .product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(140, 150, 255, 0.4) !important;
    box-shadow: 0 22px 50px -24px rgba(107, 89, 248, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .btn-chat, .btn-info, .btn-hero-cta, .card { transition: none !important; }
}

/* Mobile search/filter bar on the astrologer list pages */
body.home-dark-mode:not(#av) .expert-search-section {
    background: var(--av-panel) !important;
    border-color: var(--av-line) !important;
}

/* ---------------------- Astrologer panel -------------------------
   These pages have no day/night switch; they always use the navy look. */
body.av-astro:not(#av) {
    background: var(--av-navy) !important;
    color: var(--av-text) !important;
}

body.av-astro:not(#av) .navbar,
body.av-astro:not(#av) .top-navbar {
    background: #171b2e !important;
    border-bottom: 1px solid var(--av-line) !important;
    box-shadow: none !important;
}

body.av-astro:not(#av) .top-navbar { background: #0f1220 !important; }

body.av-astro:not(#av) .navbar .nav-link,
body.av-astro:not(#av) .navbar .navbar-brand,
body.av-astro:not(#av) .navbar .navbar-brand * {
    color: var(--av-text) !important;
}

body.av-astro:not(#av) .navbar .nav-link:hover,
body.av-astro:not(#av) .navbar .nav-item.active .nav-link { color: #b9b2ff !important; }

body.av-astro:not(#av) .navbar .btn-outline-primary {
    color: #c9c4ff !important;
    border-color: rgba(140, 150, 255, 0.5) !important;
    background: rgba(107, 89, 248, 0.12) !important;
    border-radius: 10px;
}

body.av-astro:not(#av) .card,
body.av-astro:not(#av) .list-group-item,
body.av-astro:not(#av) .status-container,
body.av-astro:not(#av) .bg-white,
body.av-astro:not(#av) .bg-light {
    background: var(--av-panel) !important;
    border-color: var(--av-line) !important;
    color: var(--av-text) !important;
}

body.av-astro:not(#av) .card { border-radius: 18px; overflow: hidden; }

body.av-astro:not(#av) .card-header {
    background: var(--av-panel-2) !important;
    border-bottom: 1px solid var(--av-line) !important;
    color: #fff !important;
}

body.av-astro:not(#av) .card-header *,
body.av-astro:not(#av) h1,
body.av-astro:not(#av) h2,
body.av-astro:not(#av) h3,
body.av-astro:not(#av) h4,
body.av-astro:not(#av) h5,
body.av-astro:not(#av) h6,
body.av-astro:not(#av) label,
body.av-astro:not(#av) .text-dark,
body.av-astro:not(#av) .colorblack,
body.av-astro:not(#av) .colorbrown {
    color: var(--av-text) !important;
}

body.av-astro:not(#av) p,
body.av-astro:not(#av) .text-muted,
body.av-astro:not(#av) small { color: var(--av-muted) !important; }

body.av-astro:not(#av) .nodata { color: #5d6488 !important; }

body.av-astro:not(#av) .status-container {
    border-radius: 16px;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

body.av-astro:not(#av) .nav-tabs { border-color: var(--av-line) !important; }
body.av-astro:not(#av) .nav-tabs a,
body.av-astro:not(#av) .nav-tabs .nav-link { color: var(--av-muted) !important; }
body.av-astro:not(#av) .nav-tabs a.active,
body.av-astro:not(#av) .nav-tabs .nav-link.active { color: #fff !important; background: transparent !important; }

body.av-astro:not(#av) .btn-primary,
body.av-astro:not(#av) .btn-success {
    background: var(--av-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.av-astro:not(#av) input[type="file"] { color: var(--av-muted); }

body.av-astro:not(#av) #footer {
    background: linear-gradient(180deg, #171b2e 0%, #0f1220 100%) !important;
    border-top: 1px solid var(--av-line);
    color: var(--av-muted) !important;
}

body.av-astro:not(#av) #footer + div,
body.av-astro:not(#av) #footer ~ .text-center { background: #0c0e1a !important; color: var(--av-muted) !important; }

/* Astrologer sign-in card */
body.av-astro:not(#av) .login-offer-bg {
    background: var(--av-gradient) !important;
}

body.av-astro:not(#av) .login-offer-bg,
body.av-astro:not(#av) .login-offer-bg * { color: #fff !important; }

/* Header menu: keep each icon beside its label on every page, and give
   the logo room so it does not touch the first menu item. */
@media (min-width: 992px) {
    body:not(#av) .menu-links .nav-link {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
    }

    body:not(#av) .menu-links .nav-link img { display: block; }
    body:not(#av) .navbar-brand-link { display: inline-block; padding-right: 28px !important; }
}

/* ======================= Chat experience ========================= */

/* Chat / Call button on astrologer cards: large, filled, easy to hit */
body:not(#av) .psychic-card .btn-call,
body:not(#av) .responsiveChatBtn .btn-call {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--av-gradient) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
    white-space: nowrap;
    box-shadow: var(--av-glow);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body:not(#av) .psychic-card .btn-call *,
body:not(#av) .responsiveChatBtn .btn-call * { color: #fff !important; fill: #fff !important; }

body:not(#av) .psychic-card .btn-call:hover,
body:not(#av) .responsiveChatBtn .btn-call:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 36px -10px rgba(107, 89, 248, 0.85);
}

body:not(#av) .psychic-card .btn-call:active { transform: translateY(0) scale(.98); }

/* Give the button room in the card */
body:not(#av) .psychic-card .responsiveChatBtn {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    margin-left: auto;
    display: flex;
    align-items: flex-end;
}

@media (max-width: 575px) {
    body:not(#av) .psychic-card .responsiveChatBtn {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 12px;
    }

    body:not(#av) .psychic-card .responsiveChatBtn .btn-call { width: 100%; min-height: 50px; }
}

/* Details form before a chat */
body:not(#av) #intake .modal-header { align-items: flex-start; gap: 12px; }
body:not(#av) #intake .av-intake-title .modal-title { font-size: 22px; font-weight: 800; margin: 0; }
body:not(#av) #intake .av-intake-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--av-muted) !important; }

body:not(#av) .av-modal-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--av-line);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body:not(#av) .av-modal-close:hover { background: rgba(255, 255, 255, 0.14); }
body.home-dark-mode:not(#av) #intake .bg-white { background: transparent !important; }
body:not(#av) #intake #intakeBtn,
body:not(#av) #intake #loaderintakeBtn { min-height: 52px; font-size: 17px; border-radius: 999px; }

/* Waiting for the astrologer */
body:not(#av) .av-waiting { text-align: center; padding: 34px 18px 28px; }
body:not(#av) .av-waiting-title { font-size: 21px; font-weight: 800; margin: 22px 0 8px; }
body:not(#av) .av-waiting-text { font-size: 15px; line-height: 1.5; margin: 0 auto 14px; max-width: 360px; color: var(--av-muted) !important; }
body:not(#av) .av-waiting-timer { font-size: 14px; font-weight: 600; color: #b9b2ff !important; margin-bottom: 20px; }

body:not(#av) .av-waiting-hide {
    border: 1px solid var(--av-line);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

body:not(#av) .av-waiting-hide:hover { background: rgba(107, 89, 248, 0.14); }

body:not(#av) .av-waiting-pulse { position: relative; width: 92px; height: 92px; margin: 0 auto; }

body:not(#av) .av-waiting-pulse span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--av-gradient);
    opacity: .55;
    animation: avPulse 2.1s ease-out infinite;
}

body:not(#av) .av-waiting-pulse span:nth-child(2) { animation-delay: .7s; }
body:not(#av) .av-waiting-pulse span:nth-child(3) { animation-delay: 1.4s; }

@keyframes avPulse {
    0% { transform: scale(.35); opacity: .8; }
    100% { transform: scale(1); opacity: 0; }
}

/* "Your chat is ready" pop-up */
body:not(#av) #chatinfomodal .modal-dialog { max-width: 380px; }
body:not(#av) .av-ready-text { font-size: 16px; margin: 4px 0 6px; }
body:not(#av) .av-ready-count { font-size: 15px; font-weight: 700; color: #b9b2ff !important; margin-bottom: 14px; }
body:not(#av) .av-ready-error { color: #fca5a5 !important; font-weight: 600; margin-bottom: 12px; }

body:not(#av) #chatinfomodal #startchat {
    background: var(--av-gradient) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px;
    min-height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    box-shadow: var(--av-glow);
    cursor: pointer;
}

body:not(#av) #chatinfomodal #rejectchat {
    background: transparent !important;
    border: 0 !important;
    color: var(--av-muted) !important;
    font-size: 14px;
    text-decoration: underline;
    box-shadow: none !important;
    cursor: pointer;
}

/* Always-visible Chat and Call buttons */
body:not(#av) .av-quick {
    position: fixed;
    right: 22px;
    bottom: 100px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

body:not(#av) .av-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 14px 34px -12px rgba(8, 10, 24, 0.9);
    transition: transform .18s ease, filter .18s ease;
}

body:not(#av) .av-quick-btn i { font-size: 18px; color: #fff !important; }
body:not(#av) .av-quick-chat { background: var(--av-gradient); }
body:not(#av) .av-quick-call { background: #1e2236; border: 1px solid rgba(160, 170, 255, 0.35); }
body:not(#av) .av-quick-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

@media (max-width: 767px) {
    /* On phones: a bar across the bottom, thumb height */
    body:not(#av) .av-quick {
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(18, 21, 38, 0.94);
        border-top: 1px solid var(--av-line);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body:not(#av) .av-quick-btn { flex: 1 1 0; justify-content: center; padding: 0 12px; box-shadow: none; }
    body:not(#av) .av-quick-chat { flex-grow: 2; }
    /* keep page content and the helper bot clear of the bar */
    body:not(#av) { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    body:not(#av) .av-waiting-pulse span { animation: none; opacity: .35; }
    body:not(#av) .av-quick-btn, body:not(#av) .psychic-card .btn-call { transition: none; }
}

body:not(.home-dark-mode):not(.av-astro):not(#av) .av-modal-close { color: #191d33; background: rgba(25, 29, 51, 0.06); }
body:not(.home-dark-mode):not(.av-astro):not(#av) .av-quick-call { background: #ffffff; color: #191d33 !important; }
body:not(.home-dark-mode):not(.av-astro):not(#av) .av-quick-call i { color: #191d33 !important; }

/* ------------------------- Chat screen --------------------------- */
body:not(#av) main.content > .container > .h3 { display: none; }

body:not(#av) main.content .card:has(.chat-messages) {
    background: var(--av-panel) !important;
    border: 1px solid var(--av-line) !important;
    border-radius: 22px !important;
    overflow: hidden;
    margin-top: 18px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

/* Header: who you are talking to, time left, end button. Also on phones. */
body:not(#av) main.content .card:has(.chat-messages) .border-bottom {
    display: block !important;
    background: var(--av-panel-2) !important;
    border-bottom: 1px solid var(--av-line) !important;
    padding: 10px 18px !important;
}

body:not(#av) main.content .card:has(.chat-messages) .border-bottom strong { color: #fff !important; font-size: 17px; }
body:not(#av) main.content .card:has(.chat-messages) .border-bottom .d-flex { flex-wrap: wrap; gap: 8px; }
body:not(#av) main.content .card:has(.chat-messages) .text-muted { color: var(--av-muted) !important; }

body:not(#av) main.content #remainingTime {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(107, 89, 248, 0.18);
    color: #cfc9ff !important;
    font-weight: 700;
}

body:not(#av) main.content #endChat {
    background: rgba(248, 113, 113, 0.14) !important;
    border: 1px solid rgba(248, 113, 113, 0.5) !important;
    color: #fca5a5 !important;
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 700;
}

body:not(#av) main.content #addTopupLink {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid var(--av-line) !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 0 !important;
}

/* Message area */
body:not(#av) main.content .chat-messages {
    background: #141829 !important;
    min-height: 52vh;
    max-height: 62vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 20px !important;
}

body:not(#av) main.content .message-user-left-text,
body:not(#av) main.content .message-user-right-text {
    width: auto !important;
    max-width: min(460px, 78vw) !important;
    padding: 11px 16px !important;
    font-size: 15.5px;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.7);
}

body:not(#av) main.content .message-user-left-text {
    background: #262b44 !important;
    color: var(--av-text) !important;
    border-radius: 6px 18px 18px 18px !important;
}

body:not(#av) main.content .message-user-right-text {
    background: var(--av-gradient) !important;
    color: #fff !important;
    border-radius: 18px 6px 18px 18px !important;
}

body:not(#av) main.content .message-user-left-text *,
body:not(#av) main.content .message-user-right-text * { color: inherit !important; }
body:not(#av) main.content .message-user-left-text::before,
body:not(#av) main.content .message-user-right-text::before { display: none !important; }
body:not(#av) main.content .chat-message-left,
body:not(#av) main.content .chat-message-right { gap: 6px !important; margin-bottom: 10px; }
body:not(#av) main.content .chat-messages .text-muted,
body:not(#av) main.content .chat-messages small { color: #7f86a8 !important; }
body:not(#av) main.content .bg-msg { background: rgba(107, 89, 248, 0.18) !important; color: #cfc9ff !important; border-radius: 999px; }

/* Typing bar */
body:not(#av) main.content .card:has(.chat-messages) .border-top {
    background: var(--av-panel) !important;
    border-top: 1px solid var(--av-line) !important;
    padding: 12px 14px !important;
}

body:not(#av) main.content .card:has(.chat-messages) .input-group {
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

body:not(#av) main.content #fileDisplay {
    background: #171b2e !important;
    border: 1px solid var(--av-line) !important;
    color: var(--av-text) !important;
    border-radius: 999px !important;
    min-height: 48px;
    padding: 0 18px;
    font-size: 16px;
}

body:not(#av) main.content #fileDisplay:focus { border-color: var(--av-accent) !important; box-shadow: 0 0 0 3px rgba(107, 89, 248, 0.25) !important; }
body:not(#av) main.content #sendButton { border-radius: 999px !important; min-height: 48px; padding: 0 24px !important; font-weight: 700; }

body:not(#av) main.content .attachment-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

body:not(#av) main.content .attachment-icon i { color: #c9c4ff !important; }

@media (max-width: 767px) {
    body:not(#av) main.content .card:has(.chat-messages) { border-radius: 0 !important; margin-top: 0; border-left: 0 !important; border-right: 0 !important; }
    body:not(#av) main.content .chat-messages { min-height: 58vh; max-height: 64vh; padding: 14px !important; }
    body:not(#av) main.content #sendButton { padding: 0 18px !important; }
}

/* ---------------- Astrologer two-chat workspace ------------------ */
body.av-astro:not(#av) .av-chats-link {
    background: var(--av-gradient) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* A chat page shown inside a workspace pane: just the chat */
body.av-embed:not(#av) { padding: 0 !important; background: #121526 !important; overflow: hidden; }
body.av-embed:not(#av) .navbar,
body.av-embed:not(#av) .top-navbar,
body.av-embed:not(#av) #footer,
body.av-embed:not(#av) #footer + div,
body.av-embed:not(#av) .av-quick,
body.av-embed:not(#av) .status-container,
body.av-embed:not(#av) .breadcrumb,
body.av-embed:not(#av) main.content > .container > .h3 { display: none !important; }
body.av-embed:not(#av) main.content > .container { max-width: none; padding: 0 !important; margin: 0; }
body.av-embed:not(#av) main.content .card:has(.chat-messages) { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none; height: 100vh; display: flex; flex-direction: column; }
body.av-embed:not(#av) main.content .card:has(.chat-messages) > .row { flex: 1; min-height: 0; }
body.av-embed:not(#av) main.content .card:has(.chat-messages) .border-bottom { display: block !important; }
body.av-embed:not(#av) main.content .chat-messages { min-height: 0; max-height: none; height: calc(100vh - 178px); }
body.av-embed:not(#av) > .header { display: none !important; }
body.av-embed:not(#av) > .wrapper { padding-top: 0 !important; margin-top: 0 !important; }
body.av-embed:not(#av) main.content .chat-messages { height: calc(100vh - 150px); }
/* Fill the pane exactly: header on top, typing bar at the bottom, messages in between */
body.av-embed:not(#av) main.content .card:has(.chat-messages) > .row { display: flex; }
body.av-embed:not(#av) main.content .card:has(.chat-messages) > .row > [class*="col-"] { display: flex; flex-direction: column; min-height: 0; height: 100%; }
body.av-embed:not(#av) main.content .card:has(.chat-messages) .position-relative:has(> .chat-messages) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.av-embed:not(#av) main.content .chat-messages { flex: 1 1 auto; height: auto !important; max-height: none !important; min-height: 0 !important; }
@media (max-width: 560px) {
    body.av-embed:not(#av) main.content .card:has(.chat-messages) .input-group { flex-wrap: wrap; row-gap: 8px; }
    body.av-embed:not(#av) main.content #fileDisplay { flex: 1 1 60% !important; min-width: 0; order: 1; }
    body.av-embed:not(#av) main.content #sendButton { order: 2; }
    body.av-embed:not(#av) main.content .card:has(.chat-messages) .input-group > :not(#fileDisplay):not(#sendButton) { order: 3; }
}

/* ==================================================================
   Astrologer panel shell: side menu + top bar (v1.3.0)
   The old header stays in the page (its scripts and pop-ups still run)
   but is hidden; the shell below replaces it visually.
   ================================================================== */
:root { --avs-side: 236px; --avs-top: 64px; }

body.av-shell:not(#av) > .header,
body.av-shell:not(#av) .header.sticky-top { display: none !important; }

.avs-side, .avs-top, .avs-backdrop { display: none; }

body.av-shell:not(#av) .avs-side {
    display: flex; flex-direction: column;
    position: fixed; z-index: 1040; top: 0; left: 0; bottom: 0; width: var(--avs-side);
    background: #0f1220; border-right: 1px solid var(--av-line);
    padding: 16px 12px; overflow-y: auto;
}
body.av-shell:not(#av) .avs-brand {
    display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px;
    color: var(--av-text) !important; font-weight: 700; font-size: 18px; text-decoration: none !important; line-height: 1.1;
}
.avs-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--av-muted); letter-spacing: .08em; text-transform: uppercase; }
.avs-brand-mark {
    width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--av-gradient); color: #fff; box-shadow: var(--av-glow);
}
.avs-nav { flex: 1; }
.avs-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6f76a0; }
body.av-shell:not(#av) .avs-link {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 2px 0;
    border-radius: 12px; border: 0; background: transparent; color: var(--av-muted) !important;
    font-size: 14.5px; font-weight: 500; text-decoration: none !important; cursor: pointer; text-align: left;
    transition: background .15s ease, color .15s ease;
}
.avs-link i { width: 20px; text-align: center; font-size: 15px; }
body.av-shell:not(#av) .avs-link:hover { background: rgba(120, 130, 255, .10); color: var(--av-text) !important; }
body.av-shell:not(#av) .avs-link.is-on {
    background: linear-gradient(135deg, rgba(79,141,255,.22), rgba(154,92,246,.22));
    color: #fff !important; box-shadow: inset 0 0 0 1px rgba(150,140,255,.28);
}
.avs-logout { margin-top: 10px; border-top: 1px solid var(--av-line) !important; border-radius: 0 0 12px 12px !important; padding-top: 14px !important; }

body.av-shell:not(#av) .avs-top {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 1030; height: var(--avs-top);
    margin-left: var(--avs-side); padding: 0 22px;
    background: rgba(15, 18, 32, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--av-line);
}
.avs-top-space { flex: 1; }
.avs-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--av-line); background: var(--av-panel); color: var(--av-text); }
body.av-shell:not(#av) .avs-icon {
    width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--av-panel); color: var(--av-text) !important; border: 1px solid var(--av-line); text-decoration: none !important;
}
body.av-shell:not(#av) .avs-wallet {
    display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 12px;
    background: var(--av-panel); border: 1px solid var(--av-line); color: var(--av-text) !important; font-weight: 700; text-decoration: none !important;
}
.avs-wallet i { color: #8fb3ff; }
body.av-shell:not(#av) .avs-me { display: inline-flex; align-items: center; gap: 9px; color: var(--av-text) !important; text-decoration: none !important; font-weight: 600; font-size: 14px; }
.avs-me img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(150,140,255,.5); }
.avs-me span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Online switch */
.avs-online { display: inline-flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; color: var(--av-text); font-size: 14px; font-weight: 600; }
.avs-online input { position: absolute; opacity: 0; pointer-events: none; }
.avs-switch { width: 46px; height: 26px; border-radius: 13px; background: #3a4060; position: relative; transition: background .2s ease; }
.avs-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.avs-online input:checked + .avs-switch { background: #22c55e; }
.avs-online input:checked + .avs-switch::after { transform: translateX(20px); }
.avs-online input:focus-visible + .avs-switch { outline: 2px solid #8fb3ff; outline-offset: 2px; }

/* Page body sits to the right of the menu */
body.av-shell:not(#av) .wrapper { margin-left: var(--avs-side); }
body.av-shell:not(#av) .avw { height: calc(100vh - var(--avs-top)); min-height: 560px; }
body.av-shell:not(#av) .avw-wallet,
body.av-shell:not(#av) .avw-bar-left .avw-icon-btn,
body.av-shell:not(#av) .avw-bar-right .avw-req-btn.avs-dup { display: none !important; }

@media (max-width: 991px) {
    body.av-shell:not(#av) .avs-side { transform: translateX(-100%); transition: transform .22s ease; width: 270px; }
    body.av-shell.avs-open:not(#av) .avs-side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
    body.av-shell:not(#av) .avs-top { margin-left: 0; padding: 0 12px; gap: 8px; }
    body.av-shell:not(#av) .wrapper { margin-left: 0; }
    .avs-burger { display: inline-flex; align-items: center; justify-content: center; }
    .avs-me span, .avs-online-txt { display: none; }
    body.av-shell.avs-open:not(#av) .avs-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(5,7,16,.6); }
    body.av-shell:not(#av) .avw { height: auto; }
}

/* ==================================================================
   Chat tools: birth details, saved replies, report, reply timer
   ================================================================== */
.avc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-bottom: 1px solid var(--av-line); background: rgba(20, 24, 44, .65); }
.avc-birth { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; min-width: 0; }
.avc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--av-panel-2); border: 1px solid var(--av-line); color: var(--av-text); font-size: 12.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.avc-chip em { font-style: normal; color: var(--av-muted); }
.avc-chip i { color: #8fb3ff; font-size: 11px; }
.avc-chip:hover { border-color: rgba(150, 140, 255, .55); }
.avc-chip.is-copied { background: rgba(34, 197, 94, .2); border-color: #22c55e; }
.avc-chip-muted { cursor: default; color: var(--av-muted); }
.avc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.avc-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--av-line); background: var(--av-panel-2); color: var(--av-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.avc-btn:hover { border-color: rgba(150, 140, 255, .55); }
.avc-btn-warn { color: #ffb4b4; }
.avc-btn-warn:hover { border-color: #ef4444; }
.avc-btn-ico { width: 34px; padding: 0; justify-content: center; }
.avc-timer { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 700; background: rgba(79, 141, 255, .16); color: #b7cdff; border: 1px solid rgba(79, 141, 255, .4); }
.avc-timer.is-soon { background: rgba(245, 158, 11, .16); color: #fcd34d; border-color: rgba(245, 158, 11, .5); }
.avc-timer.is-late { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .5); }
body:not(#av) .avc-bolt { display: inline-flex; align-items: center; justify-content: center; width: 42px; margin-left: 8px; border-radius: 10px; background: var(--av-panel-2) !important; color: #fcd34d !important; border: 1px solid var(--av-line) !important; }

.avc-pop { position: fixed; z-index: 2000; right: 16px; bottom: 80px; width: min(360px, calc(100vw - 32px)); max-height: 60vh; display: flex; flex-direction: column; background: var(--av-panel); border: 1px solid var(--av-line); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); color: var(--av-text); overflow: hidden; }
.avc-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--av-line); }
.avc-x { border: 0; background: transparent; color: var(--av-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.avc-pop-list { overflow-y: auto; padding: 8px; flex: 1; }
.avc-reply { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.avc-reply:hover { background: rgba(120, 130, 255, .12); }
.avc-reply span { flex: 1; }
.avc-empty { padding: 14px; color: var(--av-muted); font-size: 13px; text-align: center; }
.avc-pop-add { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--av-line); }
.avc-pop-add input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--av-line); background: var(--av-navy); color: var(--av-text); }
.avc-modal { position: fixed; inset: 0; z-index: 2100; align-items: center; justify-content: center; background: rgba(5, 7, 16, .65); padding: 16px; }
.avc-modal-box { width: min(420px, 100%); background: var(--av-panel); border: 1px solid var(--av-line); border-radius: 18px; color: var(--av-text); overflow: hidden; }
.avc-reasons { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 4px; font-size: 14px; }
.avc-reasons label { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.avc-modal-box textarea { display: block; width: calc(100% - 28px); margin: 8px 14px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--av-line); background: var(--av-navy); color: var(--av-text); resize: none; }
.avc-note { padding: 0 14px 12px; font-size: 13px; color: #b7cdff; min-height: 18px; }

/* Expanded chat inside the two-chat workspace */
.avw.avw-solo .avw-panes { grid-template-columns: minmax(0, 1fr) !important; }
.avw.avw-solo .avw-pane:not(.avw-solo-on) { display: none !important; }
/* The Kundli button now lives in the tools row */
.avc-tools ~ * #kundaliButton, body:not(#av) .card:has(.avc-tools) #kundaliButton { display: none !important; }

/* Narrow chat panes (phones): keep the tools to one scrolling line so the messages keep their room */
@media (max-width: 640px) {
    .avc-tools { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 6px 10px; scrollbar-width: none; }
    .avc-tools::-webkit-scrollbar { display: none; }
    .avc-birth { flex: 0 0 auto; flex-wrap: nowrap; }
    .avc-actions { flex: 0 0 auto; flex-wrap: nowrap; margin-left: 0; }
    .avc-chip, .avc-btn, .avc-timer { white-space: nowrap; flex: 0 0 auto; }
    body.av-shell:not(#av) .avw-pane { height: calc(100vh - var(--avs-top) - 150px); min-height: 520px; }
}
@media (max-width: 991px) { body.av-shell:not(#av) .wrapper { padding-top: 0 !important; } body.av-shell:not(#av) .avw { padding-top: 8px; } }

/* Horoscope pages: no empty "Lucky colour / number" boxes when the free reading has none */
.lucky-pill-item:has(.val:empty) { display: none !important; }
.lucky-pill-box:not(:has(.lucky-pill-item:not(:has(.val:empty)))) { display: none !important; }

/* ==================================================================
   Support tickets (customer and astrologer): dark panels
   ================================================================== */
body:not(#av) .ticket-card,
body:not(#av) .ticket-form-card,
body:not(#av) .empty-state,
body:not(#av) .chat-footer,
body:not(#av) .info-tip { background: var(--av-panel) !important; border-color: var(--av-line) !important; color: var(--av-text) !important; box-shadow: none; }
body:not(#av) .ticket-card-header { background: transparent !important; border-color: var(--av-line) !important; }
body:not(#av) .ticket-subject, body:not(#av) .empty-state h3, body:not(#av) .form-label-custom { color: var(--av-text) !important; }
body:not(#av) .ticket-desc, body:not(#av) .ticket-meta, body:not(#av) .ticket-meta-item, body:not(#av) .empty-state p, body:not(#av) .char-counter, body:not(#av) .info-tip { color: var(--av-muted) !important; }
body:not(#av) .ticket-number { background: rgba(120,130,255,.18) !important; color: #c7ccff !important; }
body:not(#av) .ticket-status-badge, body:not(#av) .ticket-status-inline { font-weight: 700; }
body:not(#av) .status-WAITING, body:not(#av) .status-inline-WAITING { background: rgba(245,158,11,.2) !important; color: #fcd34d !important; }
body:not(#av) .status-OPEN, body:not(#av) .status-inline-OPEN { background: rgba(56,189,248,.2) !important; color: #7dd3fc !important; }
body:not(#av) .status-CLOSED, body:not(#av) .status-inline-CLOSED { background: rgba(34,197,94,.2) !important; color: #86efac !important; }
body:not(#av) .status-PAUSED, body:not(#av) .status-inline-PAUSED { background: rgba(239,68,68,.2) !important; color: #fca5a5 !important; }
body:not(#av) .form-control-custom, body:not(#av) .chat-input { background: var(--av-navy) !important; color: var(--av-text) !important; border-color: var(--av-line) !important; }
body:not(#av) .chat-body { background: var(--av-navy) !important; border-color: var(--av-line) !important; }
body:not(#av) .chat-msg.received .chat-bubble { background: var(--av-panel-2) !important; color: var(--av-text) !important; border-color: var(--av-line) !important; }
body:not(#av) .chat-empty, body:not(#av) .chat-empty p { color: var(--av-muted) !important; }
body:not(#av) .btn-cancel-ticket { background: var(--av-panel-2) !important; color: var(--av-text) !important; border-color: var(--av-line) !important; }
body:not(#av) .chat-closed-notice { background: rgba(239,68,68,.15) !important; color: #fca5a5 !important; }

/* Help robot: on phones the quick-action bar sits at the bottom, so lift the robot above it and keep it tappable */
@media (max-width: 768px) {
    body:not(#av) .sf_chat_button1 { bottom: 84px !important; right: 12px !important; z-index: 1040 !important; }
}
