/*
 * Astrosaath website design system (v2).
 * Loaded last by front_theme/syniastro/layouts/app.blade.php, so it refines the theme without editing it.
 * Website only: the mobile app's WebView pages (pageApp, invoice) do not load this file.
 *
 * Colours: only the site's original theme palette (theme1-yellow): yellow #FFD101, the yellow-to-peach
 * gradient, light grey #F8F9FA, charcoal #2A2E34 and #040C0C. Type: Poppins headings, Inter text.
 * Rules: text contrast >= 4.5:1, visible keyboard focus, 44px touch targets, reduced motion respected.
 */

:root {
    --as-gold: #FFD101;
    --as-gold-600: #F0C400;
    --as-gold-soft: #FFF6CC;
    --as-gold-text: #6B5400;
    --as-night: #2A2E34;
    --as-night-2: #1F2328;
    --as-night-3: #040C0C;
    --as-ink: #1D1F23;
    --as-muted: #5B5F66;
    --as-bg: #FFFFFF;
    --as-grey: #F8F9FA;
    --as-border: #E7E8EA;
    --as-gradient: linear-gradient(180deg, #FFD101 0%, rgba(255, 182, 122, .42) 50%, rgba(255, 191, 139, .2) 100%);
    /* Colour balance 60/30/10: neutral surfaces, charcoal for depth, brand yellow as the accent.
       Large surfaces use a soft tint of the brand yellow instead of solid yellow. */
    --as-warm: linear-gradient(180deg, #FFF5CC 0%, #FFFBEB 45%, #FFFFFF 100%);
    --as-tint: #FFFAE6;
    --as-tint-border: #F5E4A3;
    --as-online: #16A34A;
    --as-busy: #EA871E;

    --as-radius-sm: 8px;
    --as-radius: 14px;
    --as-radius-lg: 20px;
    --as-pill: 999px;
    --as-shadow-sm: 0 1px 2px rgba(16, 18, 22, .05), 0 2px 6px rgba(16, 18, 22, .05);
    --as-shadow: 0 10px 30px -12px rgba(16, 18, 22, .22);
    --as-shadow-lg: 0 24px 50px -18px rgba(16, 18, 22, .28);

    --as-font-head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
    --as-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
    --as-ease: cubic-bezier(.2, .7, .2, 1);
    --as-section-y: clamp(2.25rem, 4.5vw, 4rem);
}

/* ---------- Base ---------- */
body {
    font-family: var(--as-font-body);
    color: var(--as-ink);
    background: var(--as-bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--as-font-head); color: var(--as-ink); }
a { text-underline-offset: 3px; }
::selection { background: var(--as-gold); color: var(--as-ink); }
:focus-visible { outline: 3px solid var(--as-night) !important; outline-offset: 2px; border-radius: 6px; }

.as-skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--as-night); color: #fff; padding: .75rem 1rem; border-radius: var(--as-radius-sm);
}
.as-skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.as-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .7rem 1.4rem; border-radius: var(--as-pill); border: 2px solid transparent;
    font-family: var(--as-font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--as-ease);
}
.as-btn:hover { text-decoration: none; transform: translateY(-1px); }
.as-btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .9rem; }
.as-btn--gold { background: var(--as-gold); color: var(--as-ink); }
.as-btn--gold:hover { background: var(--as-gold-600); color: var(--as-ink); }
.as-btn--night { background: var(--as-night); color: #fff; }
.as-btn--night:hover { background: var(--as-night-2); color: #fff; box-shadow: var(--as-shadow); }
.as-btn--outline-dark { background: transparent; color: var(--as-ink); border-color: var(--as-night); }
.as-btn--outline-dark:hover { background: var(--as-night); color: #fff; }

/* Existing theme buttons: brand yellow with dark text (white on yellow failed contrast). */
.btnclassforall, .btnclassforall.text-light, .btnclassforall.text-white, a.btnclassforall {
    background-color: var(--as-gold) !important; color: var(--as-ink) !important;
    border: 0; border-radius: var(--as-pill) !important; font-weight: 600; min-height: 44px; padding: .6rem 1.4rem;
}
.btnclassforall:hover { background-color: var(--as-gold-600) !important; }

/* ---------- Forms ---------- */
.form-control, .form-select { min-height: 46px; border-radius: var(--as-radius-sm); border: 1px solid #D5D7DB; color: var(--as-ink); }
.form-control::placeholder { color: #80848B; }
.form-control:focus, .form-select:focus { border-color: var(--as-night); box-shadow: 0 0 0 4px rgba(255, 209, 1, .45); }

/* ---------- Top bar ---------- */
.as-topbar { background: var(--as-night); color: #E6E7E9; font-size: .85rem; }
.as-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.as-topbar-list { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.as-topbar a, .as-topbar-btn { color: #E6E7E9; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.as-topbar a:hover, .as-topbar-btn:hover { color: var(--as-gold); }
.as-topbar i { color: var(--as-gold); font-size: .8rem; }
.as-topbar-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.as-topbar-social { display: inline-flex; gap: .2rem; padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, .15); }
.as-topbar-social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; }
.as-topbar-social a i { color: #E6E7E9; }
.as-topbar-social a:hover { background: rgba(255, 255, 255, .1); }
.as-topbar-social a:hover i { color: var(--as-gold); }

/* ---------- Main header (yellow, sticky) ---------- */
.as-header { position: sticky; top: 0; z-index: 1030; background: var(--as-gold); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.as-header .navbar { padding: .55rem 0; }
.as-brand { padding: 0; margin-right: 1.5rem; }
.as-brand img { height: 52px; width: auto; display: block; }
.as-menu { gap: .15rem; }
.as-menu .nav-link {
    font-family: var(--as-font-head); font-weight: 500; font-size: .95rem; color: var(--as-ink) !important;
    padding: .6rem .85rem !important; border-radius: var(--as-pill); position: relative;
}
.as-menu .nav-link:hover, .as-menu .nav-link:focus-visible, .as-menu .show > .nav-link { background: rgba(255, 255, 255, .55); }
.as-menu .nav-link.active { font-weight: 600; }
.as-menu .nav-link.active::before {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--as-night);
}
.as-header-cta { display: flex; align-items: center; gap: .6rem; }

/* Dropdowns */
.as-dropdown {
    border: 1px solid var(--as-border); border-radius: var(--as-radius); box-shadow: var(--as-shadow-lg);
    padding: .5rem; min-width: 280px; margin-top: .4rem !important;
    visibility: visible; opacity: 1; z-index: 1040; /* theme hides .dropdown-menu by default */
}
.as-dropdown .dropdown-item, .as-dropdown--list .menu-item > a {
    display: flex; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: var(--as-radius-sm);
    color: var(--as-ink); white-space: normal; text-decoration: none; font-weight: 500;
}
.as-dropdown .dropdown-item:hover, .as-dropdown .dropdown-item:focus, .as-dropdown--list .menu-item > a:hover { background: var(--as-gold-soft); color: var(--as-ink); }
.as-dropdown .dropdown-item > i {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--as-gold); color: var(--as-ink); font-size: .95rem;
}
.as-dropdown .dropdown-item strong { display: block; font-weight: 600; font-size: .93rem; line-height: 1.3; }
.as-dropdown .dropdown-item small { display: block; color: var(--as-muted); font-size: .8rem; line-height: 1.3; }
.as-dropdown--list, .as-dropdown--list .menu-item { list-style: none; }
.as-dropdown--list .menu-item .mobile-collapsed { display: none; }
.as-dropdown .as-dropdown-all { font-weight: 600; justify-content: space-between; }
.as-dropdown .as-dropdown-all i { width: auto; height: auto; flex: 0 0 auto; background: none; }

@media (min-width: 1200px) {
    .as-menu .dropdown:hover > .dropdown-menu { display: block; }
    .as-menu .dropdown > .dropdown-menu { margin-top: 0 !important; }
    .as-menu .dropdown > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}

/* Neutralise the theme's old ".navbar .dropdown ul" pattern (always rendered, hidden by opacity, red hover). */
.as-header .navbar .dropdown > ul.as-dropdown {
    display: none; position: absolute; left: 0; top: 100%; margin: .4rem 0 0; padding: .5rem;
    opacity: 1; visibility: visible; transition: none; background: #fff; z-index: 1040;
    border-radius: var(--as-radius); box-shadow: var(--as-shadow-lg); list-style: none;
}
.as-header .navbar .dropdown > ul.as-dropdown.show { display: block; }
.as-header .navbar .as-header-cta .dropdown > ul.as-dropdown { left: auto; right: 0; }
.as-header .navbar .dropdown ul.as-dropdown li { min-width: 0; }
.as-header .navbar .dropdown ul.as-dropdown a,
.as-header .navbar .dropdown ul.as-dropdown a:hover,
.as-header .navbar .dropdown ul.as-dropdown li:hover > a {
    padding: .65rem .75rem; font-size: inherit; font-weight: 500; color: var(--as-ink);
}
.as-header .navbar .dropdown ul.as-dropdown a:hover,
.as-header .navbar .dropdown ul.as-dropdown li:hover > a,
.as-header .navbar .dropdown ul.as-dropdown a:focus-visible { background: var(--as-gold-soft); }
.as-header .navbar .dropdown ul.as-dropdown a i { font-size: .95rem; }
.as-header .navbar .dropdown ul.as-dropdown .as-dropdown-all i { font-size: .85rem; }
@media (min-width: 1200px) {
    .as-header .navbar .as-menu .dropdown:hover > ul.as-dropdown { display: block; margin-top: 0; }
}
@media (max-width: 1199.98px) {
    .as-header .navbar .dropdown > ul.as-dropdown { position: static; box-shadow: none; margin: 0; padding: 0 0 .5rem .5rem; }
}

/* Mobile menu */
.as-toggler { border: 0; padding: .5rem; width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; border-radius: 10px; }
.as-toggler:focus { box-shadow: none; }
.as-toggler span { display: block; height: 2px; width: 24px; background: var(--as-ink); border-radius: 2px; transition: transform .2s, opacity .2s; margin: 0 auto; }
.as-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.as-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.as-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1199.98px) {
    .as-brand img { height: 44px; }
    .as-header .navbar-collapse {
        background: #fff; margin: .6rem -12px -.55rem; padding: .75rem 12px 1rem;
        border-top: 1px solid rgba(0, 0, 0, .06); max-height: calc(100vh - 70px); overflow-y: auto;
    }
    .as-menu .nav-link { padding: .8rem .75rem !important; border-radius: var(--as-radius-sm); }
    .as-menu .nav-link:hover, .as-menu .show > .nav-link { background: var(--as-grey); }
    .as-menu .nav-link.active::before { display: none; }
    .as-dropdown { box-shadow: none; border: 0; padding: 0 0 .5rem .5rem; min-width: 0; }
    .as-header-cta { flex-direction: column; align-items: stretch; margin-top: .75rem; }
    .as-header-cta .as-btn, .as-header-cta .dropdown { width: 100%; }
    .as-menu-contact { display: grid; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--as-border); }
    .as-menu-contact a, .as-menu-contact button { color: var(--as-ink); text-decoration: none; display: inline-flex; gap: .6rem; align-items: center; background: none; border: 0; padding: 0; font: inherit; }
    .as-menu-contact i { color: var(--as-gold-text); }
}

/* Tablets: menu buttons side by side */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .as-header-cta { flex-direction: row; }
    .as-header-cta .as-btn, .as-header-cta .dropdown { flex: 1 1 0; width: auto; }
}

/* ---------- Section scaffolding ---------- */
.as-section { padding: var(--as-section-y) 0; }
.as-section--grey { background: var(--as-grey); }
.as-section--gradient { background: var(--as-warm); }
.as-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.as-head--center { justify-content: center; text-align: center; }
.as-head--center .as-sub { margin-left: auto; margin-right: auto; }
.as-title { font-family: var(--as-font-head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; margin: 0 0 .35rem; letter-spacing: -.01em; }
.as-sub { color: var(--as-muted); margin: 0; max-width: 60ch; line-height: 1.6; }
.as-sub p:last-child { margin-bottom: 0; }
.as-head-link { font-family: var(--as-font-head); font-weight: 600; color: var(--as-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .4rem 0; border-bottom: 2px solid var(--as-gold); }
.as-head-link:hover { color: var(--as-ink); border-bottom-color: var(--as-night); }

/* Older section titles on the theme's inner pages */
.toppro, p.pp.fs-3, .intro-text.fs-3 {
    font-family: var(--as-font-head) !important; font-weight: 700 !important;
    font-size: clamp(1.5rem, 2.6vw, 2rem) !important; text-decoration: none !important; background: none !important;
}

/* ---------- Hero: headline + banner carousel ---------- */
.as-hero2 { background: var(--as-warm); padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(2.5rem, 5vw, 4rem); }
.as-hero2-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--as-gold-text); background: #fff; box-shadow: var(--as-shadow-sm); padding: .35rem .75rem; border-radius: var(--as-pill); }
.as-hero2 h1 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.15; margin: .9rem 0 .8rem; letter-spacing: -.01em; }
.as-hero2-lead { color: #3A3B3E; font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 46ch; }
.as-hero2-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.as-hero2-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; font-size: .92rem; font-weight: 500; }
.as-hero2-points li { display: inline-flex; align-items: center; gap: .45rem; }
.as-hero2-points i { color: var(--as-night); }
.as-hero2-banner { position: relative; border-radius: var(--as-radius-lg); overflow: hidden; box-shadow: var(--as-shadow-lg); background: var(--as-night-3); }
.as-hero2-banner .owl-carousel .owl-stage { height: auto; }
.as-hero2-banner .team-item { margin: 0 !important; } /* theme adds a 30px bottom margin */
.as-hero2-banner .owl-nav { margin: 0 !important; height: 0; } /* Owl theme adds a 10px top margin */
.as-hero2-banner .homeimg { display: block; width: 100%; height: auto; aspect-ratio: 1067 / 500; object-fit: cover; }
.as-hero2-banner .owl-nav [class*="owl-"] {
    position: absolute; top: 50%; transform: translateY(-50%); margin: 0 !important;
    width: 38px; height: 38px; border-radius: 50% !important; display: grid !important; place-items: center;
    background: rgba(255, 255, 255, .88) !important; color: var(--as-ink) !important; border: 0 !important;
    box-shadow: var(--as-shadow-sm); font-size: .8rem; opacity: 0; transition: opacity .2s, background-color .2s;
}
.as-hero2-banner:hover .owl-nav [class*="owl-"], .as-hero2-banner .owl-nav [class*="owl-"]:focus-visible { opacity: 1; }
.as-hero2-banner .owl-nav .owl-prev { left: .75rem; }
.as-hero2-banner .owl-nav .owl-next { right: .75rem; }
.as-hero2-banner .owl-nav [class*="owl-"]:hover { background: var(--as-gold) !important; }
.as-hero2-banner .owl-dots { position: absolute; left: 0; right: 0; bottom: .6rem; margin: 0 !important; }
.as-hero2-banner .owl-theme .owl-dots .owl-dot span { width: 8px; height: 8px; margin: 4px; background: rgba(255, 255, 255, .6); }
.as-hero2-banner .owl-theme .owl-dots .owl-dot.active span { width: 22px; background: var(--as-gold); }
@media (hover: none) { .as-hero2-banner .owl-nav { display: none; } }
@media (max-width: 991.98px) {
    .as-hero2 { padding-top: 1rem; }
    .as-hero2 h1 { margin-top: .75rem; }
}

/* ---------- Quick actions ---------- */
.as-quick { padding: 2rem 0 1rem; }
@media (min-width: 992px) { .as-quick { margin-top: -2.25rem; padding-top: 0; position: relative; z-index: 2; } }
.as-quick-panel { background: #fff; border-radius: var(--as-radius-lg); box-shadow: var(--as-shadow-lg); padding: 1.5rem; border: 1px solid var(--as-border); }
.as-quick-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 2rem; margin: 0 .25rem 1.25rem; }
.as-quick-head h2 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; margin: 0; line-height: 1.3; }
.as-quick-head p { color: var(--as-muted); margin: 0; max-width: 52ch; font-size: .95rem; }
.as-quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.as-quick-grid a {
    height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem;
    padding: 1.1rem .5rem; border-radius: var(--as-radius); border: 1px solid var(--as-border); background: #fff;
    color: var(--as-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--as-ease);
}
.as-quick-grid a:hover { border-color: var(--as-gold); box-shadow: var(--as-shadow); transform: translateY(-2px); color: var(--as-ink); }
.as-quick-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--as-gold); color: var(--as-ink); font-size: 1.3rem; margin-bottom: .45rem; }
.as-quick-grid strong { font-family: var(--as-font-head); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.as-quick-grid small { color: var(--as-muted); font-size: .8rem; }
@media (max-width: 991.98px) { .as-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .as-quick-panel { padding: 1rem; }
    .as-quick-grid { gap: .5rem; }
    .as-quick-grid a { padding: .85rem .25rem; }
    .as-quick-icon { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 14px; }
    .as-quick-grid strong { font-size: .8rem; }
    .as-quick-grid small { display: none; }
}

/* ---------- Cards ---------- */
.as-card {
    display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--as-ink);
    border: 1px solid var(--as-border); border-radius: var(--as-radius); overflow: hidden; text-decoration: none;
    box-shadow: var(--as-shadow-sm); transition: transform .25s var(--as-ease), box-shadow .25s var(--as-ease), border-color .25s;
}
a.as-card:hover { transform: translateY(-3px); box-shadow: var(--as-shadow); border-color: #D9DADD; color: var(--as-ink); }
.as-card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.as-card-title { font-family: var(--as-font-head); font-size: 1.02rem; font-weight: 600; line-height: 1.4; margin: 0; }
.as-card-text { color: var(--as-muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.as-card-cta { margin-top: auto; padding-top: .5rem; font-family: var(--as-font-head); font-weight: 600; font-size: .9rem; color: var(--as-ink); display: inline-flex; align-items: center; gap: .4rem; }
.as-card-cta i { transition: transform .2s; }
a.as-card:hover .as-card-cta i { transform: translateX(3px); }
.as-meta { color: var(--as-muted); font-size: .8rem; font-weight: 500; }
.as-media { aspect-ratio: 16 / 9; background: var(--as-grey); overflow: hidden; }
.as-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--as-ease); }
a.as-card:hover .as-media img { transform: scale(1.04); }
.as-clamp-1, .as-clamp-2, .as-clamp-3 { display: -webkit-box !important; -webkit-box-orient: vertical; overflow: hidden; }
.as-clamp-1 { -webkit-line-clamp: 1; }
.as-clamp-2 { -webkit-line-clamp: 2; }
.as-clamp-3 { -webkit-line-clamp: 3; }

/* Astrologer card */
.as-astro { align-items: center; text-align: center; padding: 1.4rem 1.1rem 1.15rem; gap: .2rem; }
.as-astro-photo { position: relative; width: 96px; height: 96px; margin-bottom: .6rem; }
.as-astro-photo img { width: 96px !important; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--as-gold); }
.as-status { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; }
.as-status--online { background: var(--as-online); }
.as-status--busy { background: var(--as-busy); }
.as-astro-name { font-family: var(--as-font-head); font-size: 1rem; font-weight: 600; margin: 0; max-width: 100%; }
.as-astro-skill { color: var(--as-muted); font-size: .86rem; margin: 0; max-width: 100%; }
.as-astro-facts { list-style: none; padding: 0; margin: .5rem 0 .9rem; display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; max-width: 100%; }
.as-astro-facts li { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 500; background: var(--as-grey); border-radius: var(--as-pill); padding: .3rem .6rem; max-width: 100%; }
.as-astro-facts i { color: var(--as-gold-text); }
.as-astro .as-btn { margin-top: auto; }
a.as-astro:hover .as-btn { background: var(--as-night); color: #fff; }

/* Shop category */
.as-cat { align-items: center; text-align: center; padding: 1rem .85rem 1.1rem; }
.as-cat-img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--as-radius-sm); background: var(--as-grey); display: grid; place-items: center; overflow: hidden; margin-bottom: .75rem; }
.as-cat-img img { width: 82%; height: 82%; object-fit: contain; transition: transform .4s var(--as-ease); }
a.as-cat:hover .as-cat-img img { transform: scale(1.06); }
.as-cat-title { font-family: var(--as-font-head); font-size: .95rem; font-weight: 600; margin: 0 0 .25rem; }
.as-cat-link { font-size: .82rem; font-weight: 600; color: var(--as-gold-text); margin-top: auto; }

/* Stats and steps */
.as-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    background: var(--as-night); border-radius: var(--as-radius-lg); padding: 1.5rem .5rem; margin-bottom: 2.25rem;
}
.as-stat { text-align: center; padding: .5rem 1rem; }
.as-stat + .as-stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.as-stat strong { display: block; font-family: var(--as-font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; color: var(--as-gold); }
.as-stat span { display: block; font-size: .9rem; color: #C9CBCF; margin-top: .25rem; }
.as-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.as-steps > li { display: flex; gap: 1rem; padding: 1.35rem; border: 1px solid var(--as-border); border-radius: var(--as-radius); background: #fff; counter-increment: step; position: relative; }
.as-steps > li::after { content: "0" counter(step); position: absolute; right: 1.1rem; top: .9rem; font-family: var(--as-font-head); font-weight: 700; font-size: 1.6rem; color: #E4E5E8; }
.as-step-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--as-night); color: var(--as-gold); display: grid; place-items: center; font-size: 1.15rem; }
.as-steps h3 { font-size: 1.02rem; font-weight: 600; margin: .1rem 0 .3rem; }
.as-steps p { color: var(--as-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 .4rem; }
.as-steps a { font-weight: 600; color: var(--as-ink); font-size: .9rem; text-decoration-color: var(--as-gold); text-decoration-thickness: 2px; }
@media (max-width: 767.98px) {
    .as-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
    .as-stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 991.98px) { .as-steps { grid-template-columns: 1fr; } }

/* Testimonials */
.as-quote { padding: 1.4rem; }
.as-quote-stars { color: var(--as-gold); font-size: 1.4rem; margin-bottom: .5rem; }
.as-quote-text { color: var(--as-ink); line-height: 1.7; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.as-quote-person { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: 1rem; }
.as-quote-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--as-gold); color: var(--as-ink); display: grid; place-items: center; font-family: var(--as-font-head); font-weight: 700; }
.as-quote-person strong { font-family: var(--as-font-head); font-weight: 600; text-transform: capitalize; }

.astro_rashiphal_section:not(:has(.container)) { display: none; }

/* Today's panchang card (homepage) and page (/panchang) */
.as-tool-panchang .as-panchang { flex: 1; display: flex; flex-direction: column; }
.as-panchang-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.as-panchang-meta span { display: inline-flex; align-items: center; gap: .4rem; background: var(--as-grey); border-radius: var(--as-pill); padding: .35rem .7rem; font-size: .8rem; font-weight: 600; }
.as-panchang-meta i { color: var(--as-gold-text); }
.as-panchang-list { margin: 0 0 1rem; display: grid; gap: .55rem; }
.as-panchang-item { display: grid; grid-template-columns: 40px 1fr; column-gap: .75rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--as-border); border-radius: var(--as-radius-sm); }
.as-panchang-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--as-gold-soft); color: var(--as-ink); display: grid; place-items: center; font-size: .9rem; }
.as-panchang-item dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--as-muted); font-weight: 600; margin: 0; }
.as-panchang-item dd { margin: 0; font-family: var(--as-font-head); font-weight: 600; line-height: 1.35; }
.as-panchang-item dd small { font-family: var(--as-font-body); font-weight: 400; color: var(--as-muted); font-size: .8rem; margin-left: .2rem; }
.as-panchang-times { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.as-panchang-times li { display: flex; align-items: center; gap: .45rem; background: var(--as-grey); border-radius: var(--as-radius-sm); padding: .55rem .7rem; font-size: .82rem; }
.as-panchang-times i { color: #E0A800; }
.as-panchang-times strong { margin-left: auto; font-family: var(--as-font-head); font-weight: 600; white-space: nowrap; }
.as-panchang-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem;
    padding: 1.5rem 1rem; margin-bottom: 1rem; border: 1px dashed #D5D7DB; border-radius: var(--as-radius); color: var(--as-muted); background: var(--as-grey);
}
.as-panchang-empty i { font-size: 1.6rem; color: var(--as-gold-text); }
.as-panchang-empty p { margin: 0; font-size: .9rem; line-height: 1.55; max-width: 32ch; }
.as-panchang--full .as-panchang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.as-panchang--full .as-panchang-item { padding: .9rem 1rem; }
.as-panchang--full .as-panchang-item dd { font-size: 1.05rem; }
.as-panchang--full .as-panchang-times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.as-panchang--full .as-panchang-empty { min-height: 220px; }
@media (max-width: 575.98px) {
    .as-panchang--full .as-panchang-list { grid-template-columns: 1fr; }
    .as-panchang--full .as-panchang-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Carousels (Owl) ---------- */
/* Equal-height cards, only in the redesigned sections (banners and inner pages keep Owl defaults). */
.as-section .owl-carousel .owl-stage { display: flex; height: auto; } /* theme fixes .owl-stage at 400px */
.as-section .owl-carousel .owl-item { display: flex; height: auto; }
.as-section .owl-carousel .owl-item > .as-slide { width: 100%; display: flex; padding: 4px 2px 10px; }
.as-section .owl-carousel .owl-item > .as-slide > * { width: 100%; }
.as-section .owl-theme .owl-nav { position: static !important; display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; transform: none !important; }
.as-section .owl-theme .owl-nav.disabled { display: none; }
.as-section .owl-theme .owl-nav [class*="owl-"] {
    position: static !important; transform: none !important; margin: 0 !important;
    width: 42px; height: 42px; border-radius: 50% !important; display: inline-grid !important; place-items: center;
    background: #fff !important; color: var(--as-ink) !important; border: 1px solid var(--as-border) !important;
}
.as-section .owl-theme .owl-nav [class*="owl-"]:hover { background: var(--as-gold) !important; border-color: var(--as-gold) !important; }

/* Phones: long card lists become a swipeable row */
@media (max-width: 575.98px) {
    .as-row-scroll { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; margin-right: calc(var(--bs-gutter-x) * -.5 - 12px); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .as-row-scroll::-webkit-scrollbar { display: none; }
    .as-row-scroll > .col { flex: 0 0 82%; max-width: 82%; scroll-snap-align: start; }

    /* Homepage blog: a compact list (16:9 thumbnail left, title right) instead of one big card per screen */
    .as-blog-list .as-tile { flex-direction: row; align-items: center; }
    .as-blog-list .as-media { flex: 0 0 auto; width: clamp(120px, 38%, 150px); margin: .65rem 0 .65rem .65rem; border-radius: 10px; }
    .as-blog-list .as-card-body { min-width: 0; padding: .6rem .9rem; gap: .2rem; }
    .as-blog-list .as-card-title { font-size: .94rem; line-height: 1.35; }
    .as-blog-list .as-meta { font-size: .75rem; }
    .as-blog-list .as-card-cta { padding-top: .1rem; font-size: .82rem; }
}

/* ---------- Footer ---------- */
.as-footer { background: var(--as-night); color: #B9BCC2; font-size: .92rem; padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.as-footer a { color: #B9BCC2; text-decoration: none; transition: color .2s; }
.as-footer a:hover { color: #fff; }

/* App panel at the top of the footer (every page) */
.as-footer-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap;
    padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2.25rem); border-radius: 22px;
    background: linear-gradient(135deg, #393F48 0%, #30353C 55%, #2C3036 100%);
    border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6);
}
.as-footer-cta::before {
    content: ""; position: absolute; z-index: -1; left: -90px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0 22px, rgba(255, 209, 1, .09) 22px 23px);
}
.as-footer-cta-icon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: var(--as-gold); color: var(--as-ink); box-shadow: 0 12px 28px -12px rgba(255, 209, 1, .7); }
.as-footer-cta-text { flex: 1 1 320px; min-width: 0; }
.as-footer-cta-text h2 { color: #fff; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; margin: 0 0 .3rem; }
.as-footer-cta-text p { margin: 0 0 .6rem; color: #C9CBCF; }
.as-footer-cta-text ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .85rem; color: #E6E7E9; }
.as-footer-cta-text li { display: inline-flex; align-items: center; gap: .4rem; padding: 0; color: #E6E7E9; } /* beats the theme's "footer li" (yellow text, 4px padding) */
.as-footer-cta-text li i { color: var(--as-gold); }
.as-footer-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.as-store-badge img { height: 48px; width: auto; display: block; border-radius: 9px; }
.as-footer .as-btn--gold, .as-footer .as-btn--gold:hover { color: var(--as-ink); } /* beats the footer link colour */

/* Main columns */
.as-footer-main { padding: clamp(2.25rem, 4.5vw, 3.25rem) 0 clamp(2rem, 4vw, 2.75rem); }
.as-footer-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: .45rem .85rem; margin-bottom: 1rem; }
.as-footer-logo img { height: 44px; width: auto; display: block; }
.as-footer-logo strong { color: var(--as-ink); font-family: var(--as-font-head); font-size: 1.25rem; }
.as-footer-about { color: #A3A7AE; font-size: .88rem; line-height: 1.7; margin: 0 0 1.1rem; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.as-footer-title { position: relative; font-family: var(--as-font-head); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: .35rem 0 1.25rem; padding-bottom: .6rem; }
.as-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--as-gold); }
.as-footer-links, .as-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.as-footer-links li, .as-footer-contact li { list-style: none; padding: 0; }
.as-footer-links li::before, .as-footer-contact li::before { content: none !important; }
.as-footer-links a, .as-footer-link-btn { display: inline-block; padding: .15rem 0; transition: color .2s, transform .2s; }
.as-footer-links a:hover, .as-footer-link-btn:hover { color: #fff; transform: translateX(3px); }
.as-footer-link-btn { background: none; border: 0; color: #B9BCC2; font: inherit; cursor: pointer; text-align: left; }
.as-footer-contact { gap: .65rem; margin-bottom: 1.25rem; }
.as-footer-contact li { display: flex; gap: .7rem; align-items: center; }
.as-footer-contact-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--as-gold); font-size: .8rem; }
.as-footer-contact a, .as-footer-contact span { overflow-wrap: anywhere; }
.as-social { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.as-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.as-social a:hover { background: var(--as-gold); border-color: var(--as-gold); color: var(--as-ink); }

/* Bottom strip */
.as-footer-strip { background: var(--as-night-3); color: #8E929A; font-size: .84rem; }
.as-footer-strip .container { display: flex; justify-content: space-between; align-items: center; gap: .5rem 2rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.as-footer-strip-links { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.25rem; }
.as-footer-strip a { color: #B9BCC2; }
.as-footer-strip a:hover { color: var(--as-gold); }
@media (max-width: 767.98px) {
    .as-footer-cta { text-align: left; }
    .as-footer-cta-actions { width: 100%; }
    .as-footer-cta-actions .as-btn { flex: 1 1 auto; }
    .as-footer-strip .container { justify-content: center; text-align: center; }
}
/* Phones: app panel becomes a centred, stacked card */
@media (max-width: 575.98px) {
    .as-footer-cta { flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 1.75rem 1.25rem 1.5rem; }
    .as-footer-cta::before { left: 50%; top: -110px; transform: translateX(-50%); }
    .as-footer-cta-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; }
    .as-footer-cta-text { flex: 0 0 auto; width: 100%; }
    .as-footer-cta-text h2 { font-size: 1.2rem; margin-bottom: .4rem; text-wrap: balance; }
    .as-footer-cta-text p { font-size: .9rem; margin-bottom: .9rem; }
    .as-footer-cta-text ul { justify-content: center; gap: .45rem; }
    .as-footer-cta-text li { padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
    .as-footer-cta-actions { flex-direction: column; align-items: center; gap: .65rem; }
    .as-store-badge img { height: 52px; }
    .as-footer-cta-actions .as-btn { flex: none; width: 188px; min-height: 52px; padding-inline: .75rem; } /* same width as the store badge */
}

/* =====================================================================
   Inner pages
   ===================================================================== */

/* Page header with breadcrumb */
.as-pagehead { background: var(--as-warm); border-bottom: 1px solid var(--as-border); padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.75rem, 4vw, 2.75rem); }
.as-pagehead h1 { font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; margin: .6rem 0 .4rem; }
.as-pagehead p { color: #3A3B3E; margin: 0; max-width: 70ch; font-size: 1.02rem; line-height: 1.6; }
.as-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: #4A4D52; }
.as-crumbs li + li::before { content: "/"; margin-right: .35rem; color: rgba(29, 31, 35, .4); }
.as-crumbs a { color: var(--as-ink); text-decoration: none; font-weight: 500; }
.as-crumbs a:hover { text-decoration: underline; }
.as-crumbs [aria-current] { color: #4A4D52; }

/* Listing toolbar (chips, search, filters) */
.as-listing { padding-top: 1.5rem; padding-bottom: 3rem; }
.as-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.as-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.as-chip-link {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .45rem 1rem; border-radius: var(--as-pill);
    border: 1px solid var(--as-border); background: #fff; color: var(--as-ink); font-weight: 500; font-size: .9rem; text-decoration: none;
}
.as-chip-link:hover { border-color: var(--as-night); color: var(--as-ink); }
.as-chip-link.is-active { background: var(--as-night); border-color: var(--as-night); color: #fff; }
.as-chip-link i { font-size: .85rem; }
.as-search { position: relative; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.as-search i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--as-muted); }
.as-search .form-control { padding-left: 2.5rem; border-radius: var(--as-pill); min-height: 44px; }
@media (max-width: 767.98px) { .as-search { margin-left: 0; max-width: none; } }

/* Filter panel (offcanvas) */
#offcanvasRight .offcanvas-header { border-bottom: 1px solid var(--as-border); }
#offcanvasRight .offcanvas-title { font-size: 1.15rem; font-weight: 600; margin: 0; }
#offcanvasRight .accordion-item { border: 1px solid var(--as-border); border-radius: var(--as-radius-sm) !important; overflow: hidden; }
#offcanvasRight .accordion-button { font-family: var(--as-font-head); font-weight: 600 !important; text-transform: capitalize; }
#offcanvasRight label { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; font-weight: 500 !important; cursor: pointer; }
#offcanvasRight .dynemic-btn { border-radius: var(--as-pill); min-width: 110px; font-weight: 600; }
#offcanvasRight #filterdata { background: var(--as-night); border-color: var(--as-night); }
#offcanvasRight #reset { background: #fff; color: var(--as-ink); border-color: var(--as-night); }

/* Astrologer result card */
.as-astro-row { padding: 1.1rem; gap: 1rem; }
.as-astro-row-top { display: flex; gap: 1rem; align-items: flex-start; }
.as-astro-row-photo { position: relative; flex: 0 0 84px; width: 84px; height: 84px; }
.as-astro-row-photo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--as-gold); }
.as-astro-row-info { min-width: 0; flex: 1; }
.as-astro-row-name { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .2rem; }
.as-astro-row-name h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.as-astro-row-name a { color: var(--as-ink); text-decoration: none; }
.as-astro-row-name a:hover { text-decoration: underline; }
.as-astro-row-info p { margin: 0 0 .15rem; color: var(--as-muted); font-size: .88rem; }
.as-astro-row-info p i { color: var(--as-gold-text); }
.as-astro-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-top: .35rem; font-size: .82rem; color: var(--as-muted); }
.as-astro-row-meta i { color: var(--as-gold-text); }
.as-astro-row-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--as-border); margin-top: auto; }
.as-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .5rem; border-radius: 6px; background: var(--as-gold); color: var(--as-ink); }
.as-tag--most_choice { background: var(--as-night); color: #fff; }
.as-tag--new { background: var(--as-gold-soft); color: var(--as-gold-text); }
.as-status-text { font-size: .8rem; font-weight: 600; color: var(--as-muted); display: inline-flex; align-items: center; gap: .35rem; }
.as-status-text::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #A3A6AC; }
.as-status-text.is-online { color: #15803D; }
.as-status-text.is-online::before { background: var(--as-online); }
.as-status-text.is-busy { color: #B45309; }
.as-status-text.is-busy::before { background: var(--as-busy); }
.as-rating { display: inline-flex; align-items: center; gap: .3rem; color: #E0A800; white-space: nowrap; }
.as-rating i { font-size: .8rem; }
.as-rating span { color: var(--as-muted); font-size: .85rem; }

/* Price buttons (open the "use the app" modal) */
.as-price {
    flex: 1 1 0; min-width: 0; min-height: 52px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    padding: .4rem .5rem; border-radius: var(--as-radius-sm); border: 1px solid var(--as-night); background: #fff; color: var(--as-ink);
    font-size: .78rem; line-height: 1.25; cursor: pointer; transition: background-color .2s, color .2s;
}
.as-price i { font-size: .85rem; color: var(--as-gold-text); }
.as-price strong { font-family: var(--as-font-head); font-weight: 600; font-size: .9rem; }
.as-price:hover { background: var(--as-night); color: #fff; }
.as-price:hover i { color: var(--as-gold); }
.as-price--lg { flex: 0 0 auto; min-width: 140px; min-height: 64px; font-size: .85rem; border-width: 2px; }
.as-price--lg strong { font-size: 1.02rem; }

/* Astrologer profile */
.as-profile { background: var(--as-warm); padding: 1.5rem 0 2.5rem; }
.as-profile-card { margin-top: 1.25rem; background: #fff; border-radius: var(--as-radius-lg); box-shadow: var(--as-shadow); padding: clamp(1.25rem, 3vw, 2rem); display: flex; gap: 2rem; align-items: center; }
.as-profile-photo { position: relative; flex: 0 0 168px; width: 168px; height: 168px; }
.as-profile-photo img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--as-gold); }
.as-profile-photo .as-status { width: 22px; height: 22px; right: 10px; bottom: 10px; border-width: 4px; }
.as-profile-main { flex: 1; min-width: 0; }
.as-profile-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.as-profile-title h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 0; }
.as-verified { color: #1D9BF0; font-size: 1.2rem; }
.as-profile-skills { color: var(--as-muted); margin: .4rem 0 .75rem; line-height: 1.55; }
.as-profile-facts { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.as-profile-facts li { display: inline-flex; align-items: center; gap: .45rem; background: var(--as-grey); border-radius: var(--as-pill); padding: .4rem .85rem; font-size: .88rem; font-weight: 500; }
.as-profile-facts li > i { color: var(--as-gold-text); }
.as-profile-prices { display: flex; flex-wrap: wrap; gap: .6rem; }
.as-profile-note { margin: .75rem 0 0; font-size: .85rem; color: var(--as-muted); }
.as-profile-note i { color: var(--as-gold-text); margin-right: .25rem; }
@media (max-width: 767.98px) {
    .as-profile-card { flex-direction: column; text-align: center; gap: 1rem; }
    .as-profile-title, .as-profile-facts, .as-profile-prices { justify-content: center; }
    .as-profile-photo { flex-basis: auto; width: 132px; height: 132px; }
    .as-profile-photo img { width: 132px; height: 132px; }
    .as-price--lg { flex: 1 1 0; min-width: 0; }
}

/* Panels and long text */
.as-panel { background: #fff; border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: clamp(1.1rem, 2.5vw, 1.6rem); box-shadow: var(--as-shadow-sm); }
.as-panel + .as-panel { margin-top: 1.5rem; }
.as-panel > h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 1rem; }
.as-panel--gold { background: var(--as-tint); border-color: var(--as-tint-border); box-shadow: inset 4px 0 0 var(--as-gold), var(--as-shadow-sm); }
.as-panel--gold p { color: var(--as-muted); }
.as-panel--gold img { height: 48px; width: auto; }
.as-prose { color: #33363B; line-height: 1.8; font-size: 1rem; overflow-wrap: anywhere; }
.as-prose h2, .as-prose h3, .as-prose h4 { margin: 1.6rem 0 .6rem; font-weight: 600; line-height: 1.35; }
.as-prose h2 { font-size: 1.35rem; } .as-prose h3 { font-size: 1.15rem; } .as-prose h4 { font-size: 1.02rem; }
.as-prose p { margin: 0 0 1rem; }
.as-prose ul, .as-prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.as-prose li { margin-bottom: .35rem; }
.as-prose img { max-width: 100%; height: auto; border-radius: var(--as-radius-sm); }
.as-prose a { color: var(--as-ink); text-decoration: underline; text-decoration-color: var(--as-gold); text-decoration-thickness: 2px; }
.as-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; display: block; overflow-x: auto; }
.as-prose td, .as-prose th { border: 1px solid var(--as-border); padding: .5rem .65rem; }
.as-prose blockquote { border-left: 4px solid var(--as-gold); padding: .25rem 0 .25rem 1rem; color: var(--as-muted); }
.as-prose > *:first-child { margin-top: 0; }

/* Reviews */
.as-reviews-summary { display: flex; gap: 1.5rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--as-border); margin-bottom: 1rem; }
.as-reviews-score { text-align: center; flex: 0 0 130px; }
.as-reviews-score strong { display: block; font-family: var(--as-font-head); font-size: 2.6rem; line-height: 1; margin-bottom: .35rem; }
.as-reviews-score span { color: var(--as-muted); font-size: .85rem; }
.as-reviews-bars { flex: 1; display: grid; gap: .45rem; }
.as-bar-row { display: grid; grid-template-columns: 2.4rem 1fr 2rem; align-items: center; gap: .6rem; font-size: .85rem; }
.as-bar-row i { color: #E0A800; font-size: .7rem; }
.as-bar { height: 8px; border-radius: 99px; background: var(--as-grey); overflow: hidden; }
.as-bar > div { height: 100%; background: var(--as-gold); border-radius: 99px; }
.as-bar-count { text-align: right; color: var(--as-muted); }
.as-review-list .box_reply_review { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--as-border); }
.as-review-list .picture_profile { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; margin: 0 !important; background: var(--as-grey) !important; }
.as-review-list .picture_profile img { width: 42px; height: 42px; object-fit: cover; }
.as-review-list .rate_reply { flex: 1; min-width: 0; }
.as-review-list .review-text { font-weight: 600; }
.as-review-list .ratting { color: #E0A800; font-size: .75rem; }
.as-review-list .date_rate_reply { color: var(--as-muted); font-size: .78rem; margin: .1rem 0 .25rem; }
.as-review-list .comment_rate_reply { color: #33363B; font-size: .93rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .as-reviews-summary { flex-direction: column; align-items: stretch; } .as-reviews-score { flex-basis: auto; } }

/* Compact list (recent articles) */
.as-mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.as-mini-list a { display: flex; gap: .85rem; align-items: center; padding: .6rem; border-radius: var(--as-radius-sm); color: var(--as-ink); text-decoration: none; }
.as-mini-list a:hover { background: var(--as-grey); }
.as-mini-list img { width: 88px; height: 60px; object-fit: cover; border-radius: 8px; flex: 0 0 88px; background: var(--as-grey); }
.as-mini-list strong { font-weight: 600; font-size: .92rem; line-height: 1.4; }
.as-mini-list small { display: block; color: var(--as-muted); font-size: .78rem; margin-top: .2rem; }

/* Blog article */
.as-article-head { background: var(--as-warm); padding: 1.5rem 0 2rem; }
.as-article-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.2; margin: .75rem 0 1rem; max-width: 30ch; }
.as-byline { display: flex; align-items: center; gap: .75rem; }
.as-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.as-byline a { color: var(--as-ink); font-weight: 600; }
.as-byline small { display: block; color: #4A4D52; font-size: .85rem; }
.as-article-body { padding-top: 2rem; padding-bottom: 3.5rem; }
.as-article-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--as-radius); margin-bottom: 1.75rem; display: block; background: var(--as-grey); }
/* Fixed 16:9 frame on every device; "contain" shows the whole picture (many uploads have text in them). */
.as-article .as-prose { font-size: 1.05rem; max-width: 72ch; }
.as-article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: var(--as-radius); background: var(--as-tint); border: 1px solid var(--as-tint-border); box-shadow: inset 4px 0 0 var(--as-gold); }
.as-article-cta strong { display: block; font-family: var(--as-font-head); }
.as-article-cta span { color: var(--as-muted); font-size: .92rem; }
.as-author { display: flex; gap: .9rem; align-items: flex-start; }
.as-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; }
.as-author strong { font-family: var(--as-font-head); font-weight: 600; }
.as-author p { color: var(--as-muted); font-size: .9rem; margin: .3rem 0 .6rem; line-height: 1.55; }
.as-listing-section { background: var(--as-grey); }

/* Shop */
.as-filters h2 { font-size: .95rem; font-weight: 600; margin: 1.4rem 0 .5rem; }
.as-filters .as-search { max-width: none; margin: 0; }
.as-check { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; cursor: pointer; font-size: .93rem; }
.as-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--as-night); }
.as-product { padding: 0; }
.as-product-img { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--as-border); }
.as-product-img img { width: 84%; height: 84%; object-fit: contain; transition: transform .4s var(--as-ease); }
.as-product:hover .as-product-img img { transform: scale(1.05); }
.as-product .as-card-title a { color: var(--as-ink); text-decoration: none; }
.as-product .as-card-title a:hover { text-decoration: underline; }
.as-product-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .5rem; flex-wrap: wrap; }
.as-product-price { font-family: var(--as-font-head); font-weight: 700; font-size: 1.1rem; color: var(--as-ink); }
.as-product-detail { margin-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); background: #fff; border-radius: var(--as-radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--as-shadow-sm); border: 1px solid var(--as-border); }
.as-gallery-main { aspect-ratio: 1 / 1; border-radius: var(--as-radius); background: var(--as-grey); display: grid; place-items: center; overflow: hidden; }
.as-gallery-main img { width: 88%; height: 88%; object-fit: contain; }
.as-gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.as-gallery-thumb { width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--as-border); background: var(--as-grey); padding: 4px; cursor: pointer; }
.as-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.as-gallery-thumb.is-active, .as-gallery-thumb:hover { border-color: var(--as-night); }
.as-product-info h1 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 700; margin: .6rem 0 .75rem; line-height: 1.25; }
.as-product-pricing { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.as-product-pricing strong { font-family: var(--as-font-head); font-size: 1.9rem; font-weight: 700; }
.as-product-pricing s { color: var(--as-muted); }
.as-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.as-share { display: inline-flex; align-items: center; gap: .4rem; }
.as-share > span:first-child { font-size: .85rem; color: var(--as-muted); margin-right: .2rem; }
.as-share a { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--as-grey); color: var(--as-ink); text-decoration: none; }
.as-share a:hover { background: var(--as-gold); }
.as-product-desc { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--as-border); }
@media (max-width: 767.98px) { .as-product-detail { grid-template-columns: 1fr; } }

/* Services */
.as-catnav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.as-catnav a { display: block; padding: .55rem .75rem; border-radius: var(--as-radius-sm); color: var(--as-ink); text-decoration: none; font-weight: 500; }
.as-catnav a:hover { background: var(--as-grey); }
.as-catnav a.is-active { background: var(--as-gold); font-weight: 600; }
.as-booking { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; margin-bottom: 1.5rem; border-radius: var(--as-radius); background: var(--as-grey); }
.as-booking .as-meta { display: block; }
.as-link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.as-link-list a { display: flex; align-items: center; gap: .7rem; padding: .6rem .5rem; border-radius: var(--as-radius-sm); color: var(--as-ink); text-decoration: none; font-weight: 500; }
.as-link-list a:hover { background: var(--as-grey); }
.as-link-list i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--as-gold); font-size: .85rem; }
.as-panel--gold .as-btn--night { margin-top: .25rem; }

/* FAQ */
.as-faq-group + .as-faq-group { margin-top: 2rem; }
.as-faq-group > h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .75rem; }
.as-faq .accordion-item { border: 1px solid var(--as-border); border-radius: var(--as-radius-sm) !important; overflow: hidden; margin-bottom: .6rem; }
.as-faq .accordion-button { font-family: var(--as-font-head); font-weight: 600; font-size: 1rem; padding: 1rem 1.15rem; }
.as-faq .accordion-body { padding: 0 1.15rem 1.1rem; font-size: .97rem; }

/* Long-form pages (policies) */
.as-prose--page { max-width: 820px; margin: 0 auto; }
.as-prose--page p { font-size: 1rem; text-align: left; }

/* About: stacked stats */
.as-stats--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; margin-bottom: 0; }
.as-stats--stack .as-stat:nth-child(3) { border-left: 0; }

/* Forms on tool pages (kundli, matching, panchang, contact, registrations) */
.contact-form-wrapper { border: 1px solid var(--as-border) !important; border-radius: var(--as-radius-lg) !important; box-shadow: var(--as-shadow) !important; max-width: 880px; background: #fff; }
.contact-form-wrapper .card-title { font-family: var(--as-font-head); font-weight: 600; font-size: 1.15rem; margin: 0; }
.contact-form-wrapper .col-form-label { font-weight: 500; }
.contact-form-wrapper button[type="submit"], .contact-form-wrapper input[type="submit"] { border-radius: var(--as-pill); font-weight: 600; min-height: 46px; padding-left: 1.6rem; padding-right: 1.6rem; }
@media (max-width: 575.98px) { .contact-form-wrapper form { padding: 1.25rem !important; } }

/* ---------- Generic polish for inner pages ---------- */
.card { border-radius: var(--as-radius); }
.modal-content { border-radius: var(--as-radius-lg); border: 0; box-shadow: var(--as-shadow-lg); }
.accordion-button:not(.collapsed) { background: var(--as-gold-soft); color: var(--as-ink); }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(255, 209, 1, .45); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Listing area on light grey (the theme painted it yellow) and gold rating stars (theme used red) */
section.Astrologers.orange-astro { background: var(--as-grey) !important; }
.as-rating i, .as-rating .fa-star, .as-rating .fa-star-half-stroke, .as-rating .fa-star-half-alt, .as-review-list .ratting i { color: #E0A800 !important; }

.as-empty { color: var(--as-muted); background: var(--as-grey); border-radius: var(--as-radius-sm); padding: 1rem 1.1rem; margin: 0; }

/* The theme sets overflow-x: hidden on html/body, which turns them into scroll containers and breaks the
   sticky header. "clip" hides sideways overflow the same way without that side effect. */
@supports (overflow: clip) {
    html, body { overflow-x: clip !important; }
}

/* ---------- Tool form pages (/free-kundali, /kundali-matching): existing fields, new layout ---------- */
.as-form-card { padding: clamp(1.25rem, 3vw, 2rem); }
.as-form-head { border-bottom: 1px solid var(--as-border); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.as-form-head h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .3rem; }
.as-form-head p { color: var(--as-muted); margin: 0; font-size: .92rem; }
.as-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.as-form > .form-group.row, .as-form .as-form-person > .form-group.row,
.as-form--match > .row > [class*="col-"] > .form-group.row { display: block; margin: 0 !important; }
.as-form .form-group.row > * { width: 100%; max-width: 100%; flex: none; padding: 0 !important; text-align: left !important; }
.as-form .col-form-label { font-family: var(--as-font-head); font-weight: 600; font-size: .86rem; padding: 0 0 .35rem !important; color: var(--as-ink); }
.as-form .form-control-lg { font-size: 1rem; min-height: 48px; border-radius: var(--as-radius-sm) !important; }
.as-form > .form-group.row:has(.autocomplete) { grid-column: 1 / -1; }
.as-form > #form-hidden-fields:empty { display: none; }
.as-form > .text-right, .as-form > .row:not(.form-group) { grid-column: 1 / -1; }
.as-form .btn-submit {
    width: 100%; min-height: 50px; margin-top: .5rem; border: 0; border-radius: var(--as-pill);
    background: var(--as-night) !important; color: #fff !important; font-family: var(--as-font-head); font-weight: 600; font-size: 1rem;
}
.as-form .btn-submit:hover { background: var(--as-night-2) !important; }
/* Matching: girl and boy as two sub-cards */
.as-form--match > .row:not(.form-group) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.as-form--match > .row:not(.form-group) > [class*="col-"] { width: auto; max-width: none; padding: 1.1rem !important; border: 1px solid var(--as-border); border-radius: var(--as-radius); background: var(--as-grey); }
.as-form--match > .row:not(.form-group) > [class*="col-"] > .form-group.row + .form-group.row { margin-top: .85rem !important; }
.as-legend { display: flex; align-items: center; gap: .6rem; float: none; width: 100%; font-family: var(--as-font-head); font-weight: 600; font-size: 1.02rem; margin: 0 0 .9rem; padding: 0; }
.as-legend i { width: 34px; height: 34px; border-radius: 10px; background: var(--as-gold); color: var(--as-ink); display: grid; place-items: center; font-size: .9rem; }
@media (max-width: 575.98px) {
    .as-form, .as-form--match > .row:not(.form-group) { grid-template-columns: 1fr; }
}
/* Side panels */
.as-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.as-check-list li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; font-size: .95rem; }
.as-check-list i { color: #15803D; margin-top: .25rem; }
.as-check-list--tips i { color: #E0A800; }
.as-steps-mini { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: .9rem; }
.as-steps-mini li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: .75rem; }
.as-steps-mini li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--as-night); color: var(--as-gold); display: grid; place-items: center; font-weight: 700; font-family: var(--as-font-head); }
.as-steps-mini strong { font-family: var(--as-font-head); font-weight: 600; }
.as-steps-mini span { color: var(--as-muted); font-size: .9rem; line-height: 1.5; }

/* Live astrologer cards */
.as-live .as-live-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--as-grey); }
.as-live .as-live-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--as-ease); }
a.as-live:hover .as-live-media img { transform: scale(1.04); }
.as-live-badge { position: absolute; top: .65rem; left: .65rem; display: inline-flex; align-items: center; gap: .35rem; background: #DC2626; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: var(--as-pill); }
.as-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: as-pulse 1.4s ease-in-out infinite; }
@keyframes as-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Empty states */
.as-empty-state { text-align: center; padding: clamp(2rem, 5vw, 3rem) 1.25rem; }
.as-empty-state > i { font-size: 2rem; color: var(--as-gold-text); margin-bottom: .75rem; display: block; }
.as-empty-state h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .4rem; }
.as-empty-state p { color: var(--as-muted); margin: 0 0 1.1rem; }

/* Service astrologer card: price + book */
.as-service-book { align-items: center; justify-content: space-between; }
.as-astro-row-name h2.h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }

/* Contact */
.as-contact-form .form-label { font-family: var(--as-font-head); font-weight: 600; font-size: .86rem; margin-bottom: .35rem; }
.as-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.as-contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.as-contact-list small { display: block; color: var(--as-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.as-contact-list a { color: var(--as-ink); font-weight: 500; overflow-wrap: anywhere; }
.as-contact-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--as-gold); display: grid; place-items: center; }
.as-map-panel { padding: 0 !important; overflow: hidden; }
.as-map-panel:has(#map:empty) { display: none; }

/* ---------- Homepage: free tools (slim band) ---------- */
.as-toolspromo { background: var(--as-warm); padding: clamp(1.75rem, 3.5vw, 2.5rem) 0; }
.as-toolspromo-title { font-family: var(--as-font-head); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; margin: .6rem 0 .3rem; }
.as-toolspromo-sub { color: #3A3B3E; margin: 0; font-size: .95rem; line-height: 1.5; }
.as-pill-label { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--as-ink); padding: .35rem .75rem; border-radius: var(--as-pill); box-shadow: var(--as-shadow-sm); white-space: nowrap; }
.as-pill-label i { color: #E0A800; }
.as-mini-promo {
    --as-ring: rgba(255, 209, 1, .16);
    position: relative; overflow: hidden; isolation: isolate; height: 100%;
    display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; border-radius: 18px;
    text-decoration: none; box-shadow: var(--as-shadow); transition: transform .25s var(--as-ease), box-shadow .25s var(--as-ease);
}
.as-mini-promo:hover { transform: translateY(-3px); box-shadow: var(--as-shadow-lg); text-decoration: none; }
.as-mini-promo::before {
    content: ""; position: absolute; z-index: -1; right: -60px; top: 50%; width: 180px; height: 180px; transform: translateY(-50%); border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0 16px, var(--as-ring) 16px 17px);
}
.as-mini-promo-icon { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: var(--as-gold); color: var(--as-ink); }
.as-mini-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.as-mini-promo-text strong { font-family: var(--as-font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.as-mini-promo-text span { font-size: .86rem; line-height: 1.4; }
.as-mini-promo-cta { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; transition: transform .2s var(--as-ease); }
.as-mini-promo:hover .as-mini-promo-cta { transform: translateX(3px); }
.as-mini-promo--dark { background: linear-gradient(135deg, #353A42 0%, var(--as-night) 60%, #1E2126 100%); color: #fff; }
.as-mini-promo--dark .as-mini-promo-text span { color: #C9CBCF; }
.as-mini-promo--dark .as-mini-promo-cta { background: var(--as-gold); color: var(--as-ink); }
.as-mini-promo--light { --as-ring: rgba(240, 196, 0, .28); background: #fff; color: var(--as-ink); border: 1px solid rgba(29, 31, 35, .06); }
.as-mini-promo--light .as-mini-promo-text span { color: var(--as-muted); }
.as-mini-promo--light .as-mini-promo-cta { background: var(--as-night); color: #fff; }
@media (max-width: 575.98px) {
    .as-mini-promo { padding: .85rem .95rem; border-radius: 16px; }
    .as-mini-promo-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 1.05rem; border-radius: 12px; }
    .as-mini-promo-cta { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ---------- Homepage: compact horizontal cards (astrology solutions) ---------- */
.as-hcard { flex-direction: row; align-items: center; }
/* Thumbnail keeps one shape (4:3) on every screen size; uploads of any shape are cropped from the centre. */
.as-hcard-img { flex: 0 0 auto; width: clamp(112px, 36%, 168px); aspect-ratio: 4 / 3; margin: .75rem 0 .75rem .75rem; border-radius: 10px; background: var(--as-grey); overflow: hidden; }
.as-hcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .5s var(--as-ease); }
a.as-hcard:hover .as-hcard-img img { transform: scale(1.05); }
.as-hcard-body { flex: 1; min-width: 0; padding: .75rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.as-hcard-body .as-card-text { font-size: .86rem; line-height: 1.5; }
.as-hcard-body .as-card-cta { padding-top: .25rem; font-size: .85rem; }

/* ---------- Homepage: shop categories, three across on phones ---------- */
@media (max-width: 575.98px) {
    .as-cat-grid .as-cat { padding: .6rem .45rem .7rem; border-radius: 12px; }
    .as-cat-grid .as-cat-img { margin-bottom: .45rem; border-radius: 8px; }
    .as-cat-grid .as-cat-title { font-size: .78rem; line-height: 1.3; margin: 0; }
    .as-cat-grid .as-cat-link { display: none; }
}

/* ---------- Homepage: tighter blocks on phones ---------- */
@media (max-width: 575.98px) {
    .as-head { margin-bottom: 1.1rem; }
    .as-title { font-size: 1.4rem; }
    .as-sub { font-size: .92rem; }
    /* Top astrologers: two cards per row */
    .astrologer-slider .as-astro { padding: 1rem .7rem .85rem; }
    .astrologer-slider .as-astro-photo, .astrologer-slider .as-astro-photo img { width: 72px !important; height: 72px; }
    .astrologer-slider .as-astro-photo { margin-bottom: .45rem; }
    .astrologer-slider .as-astro-name { font-size: .9rem; }
    .astrologer-slider .as-astro-skill { font-size: .76rem; }
    .astrologer-slider .as-astro-facts { margin: .4rem 0 .6rem; gap: .25rem; }
    .astrologer-slider .as-astro-facts li { font-size: .7rem; padding: .2rem .45rem; }
    .astrologer-slider .as-btn { min-height: 36px; font-size: .78rem; padding: .35rem .6rem; }
    /* Why choose us */
    .as-stats { padding: 1rem .25rem; margin-bottom: 1.25rem; border-radius: 16px; }
    .as-stat { padding: .35rem .5rem; }
    .as-stat strong { font-size: 1.45rem; }
    .as-stat span { font-size: .78rem; }
    .as-steps { gap: .65rem; }
    .as-steps > li { padding: .9rem 1rem; gap: .8rem; }
    .as-steps > li::after { font-size: 1.2rem; top: .7rem; right: .9rem; }
    .as-step-icon { flex-basis: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
    .as-steps p { font-size: .86rem; margin-bottom: .2rem; }
    /* Hero */
    .as-hero2-actions { margin: 1.1rem 0 1rem; }
    .as-hero2-actions .as-btn { flex: 1 1 0; padding-left: .8rem; padding-right: .8rem; }
}

/* ---------- Policy pages (/page/{slug} for Terms, Privacy, Refund, Shipping, Disclaimer, Account Deletion, Astrologer Agreement) ---------- */
.as-policy-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: 0 0 .75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--as-border); scrollbar-width: thin; }
.as-policy-tabs a { flex: none; padding: .45rem .9rem; border-radius: var(--as-pill); border: 1px solid var(--as-border); background: #fff; color: var(--as-ink); font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.as-policy-tabs a:hover { background: var(--as-tint); border-color: var(--as-tint-border); }
.as-policy-tabs a[aria-current="page"] { background: var(--as-gold); border-color: var(--as-gold); font-weight: 600; }
.as-policy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; color: var(--as-muted); font-size: .88rem; margin-bottom: 1.5rem; }
.as-policy-meta i { color: var(--as-gold-text); margin-right: .25rem; }
.as-policy-print { margin-left: auto; border: 1px solid var(--as-border); background: #fff; color: var(--as-ink); border-radius: var(--as-pill); padding: .35rem .85rem; font-size: .85rem; font-weight: 500; }
.as-policy-print:hover { background: var(--as-tint); border-color: var(--as-tint-border); }

.as-policy-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.as-policy-toc { border: 1px solid var(--as-border); border-radius: var(--as-radius); background: var(--as-grey); }
.as-policy-toc summary { cursor: pointer; padding: .85rem 1rem; font-family: var(--as-font-head); font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.as-policy-toc summary::-webkit-details-marker { display: none; }
.as-policy-toc summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75rem; transition: transform .2s; }
.as-policy-toc[open] summary::after { transform: rotate(180deg); }
.as-policy-toc ol { list-style: none; margin: 0; padding: 0 .5rem .75rem; counter-reset: none; }
.as-policy-toc li { margin: 0; }
.as-policy-toc a { display: block; padding: .4rem .6rem; border-radius: var(--as-radius-sm); border-left: 3px solid transparent; color: #3A3B3E; font-size: .88rem; line-height: 1.4; text-decoration: none; }
.as-policy-toc a:hover { background: #fff; color: var(--as-ink); }
.as-policy-toc a.is-active { border-left-color: var(--as-gold); background: #fff; color: var(--as-ink); font-weight: 600; }

.as-policy-body { max-width: 78ch; }
.as-policy-body h2 { scroll-margin-top: 110px; padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--as-border); }
.as-policy-body > h2:first-of-type { border-top: 0; }
.as-policy-body h3 { scroll-margin-top: 110px; }
.as-policy-body .policy-effective { display: none; } /* the "Last updated" line above shows the date on the website */
.as-policy-body .policy-summary { background: var(--as-tint); border: 1px solid var(--as-tint-border); border-left: 4px solid var(--as-gold); border-radius: var(--as-radius); color: var(--as-ink); padding: 1rem 1.25rem .4rem; margin: 0 0 1.5rem; }
.as-policy-body .policy-summary p:first-child { font-family: var(--as-font-head); margin-bottom: .4rem; }
.as-policy-body .policy-summary ul { margin-bottom: .6rem; }
.as-policy-body table { display: table; background: #fff; border: 1px solid var(--as-border); border-radius: var(--as-radius-sm); font-size: .92rem; line-height: 1.5; }
.as-policy-body table > :not(caption) > * > * { background-color: #fff; box-shadow: none; }
.as-policy-body table > thead > tr > th { background: var(--as-grey); font-family: var(--as-font-head); font-weight: 600; text-align: left; }
.as-policy-body td, .as-policy-body th { vertical-align: top; overflow-wrap: normal; word-break: normal; }
.as-policy-body ol { padding-left: 1.4rem; }

.as-policy-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--as-radius-lg); background: var(--as-warm); border: 1px solid var(--as-tint-border); }
.as-policy-help h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .2rem; }
.as-policy-help p { margin: 0; color: #3A3B3E; }
.as-policy-help-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (min-width: 992px) {
    .as-policy-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
    .as-policy-layout--single { grid-template-columns: minmax(0, 1fr); }
    .as-policy-aside { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
    .as-policy-toc summary { cursor: default; pointer-events: none; }
    .as-policy-toc summary::after { display: none; }
}
@media (max-width: 767.98px) {
    .as-policy-body table { display: block; overflow-x: auto; }
    .as-policy-print { margin-left: 0; }
    .as-policy-help { padding: 1.1rem; }
    .as-policy-help-actions, .as-policy-help-actions .as-btn { width: 100%; }
    .as-policy-help-actions .as-btn { justify-content: center; }
}
/* Phones: each policy table row becomes a card with labelled lines (labels come from data-label on the cells) */
@media (max-width: 575.98px) {
    .as-policy-body table, .as-policy-body tbody, .as-policy-body tr, .as-policy-body td { display: block; width: 100%; }
    .as-policy-body table { border: 0; background: transparent; overflow: visible; }
    .as-policy-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .as-policy-body tbody tr { border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: .7rem .95rem .5rem; margin-bottom: .75rem; background: #fff; }
    .as-policy-body table > :not(caption) > * > * { border: 0; padding: .15rem 0 .45rem; overflow-wrap: normal; }
    .as-policy-body td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--as-muted); }
    .as-policy-body td:first-child { font-family: var(--as-font-head); font-weight: 600; color: var(--as-ink); }
    .as-policy-body td:first-child::before { display: none; }
}
@media print {
    .as-topbar, .as-header, footer, .as-footer-cta, .as-policy-tabs, .as-policy-aside, .as-policy-print, .as-policy-help, .as-crumbs { display: none !important; }
    .as-pagehead { background: none; border: 0; padding: 0 0 .5rem; }
    .as-policy-layout { display: block; }
    .as-policy-body { max-width: none; }
    .as-policy-body .policy-effective { display: block; }
    .as-policy-body h2 { break-after: avoid; }
}
