/*
 * AstroSaathi UI - the website's design system (day and night).
 *
 * Every colour is a token on :root; [data-theme="dark"] swaps them. The theme is
 * set on <html> by the inline script in layout/master.blade.php before this file
 * paints, so a page never flashes the wrong colours. Components are prefixed
 * "as-" so they never collide with the legacy stylesheets still loaded around
 * them (app.css, newcss.css, Bootstrap).
 *
 * Browsers: current Chrome, Edge, Firefox and Safari (macOS and iOS 15+). Safari
 * needs the -webkit- prefixes kept below (backdrop-filter, background-clip:text,
 * details markers) and 16 px inputs so iOS does not zoom on focus.
 */

/* Outfit (SIL Open Font License, fonts/OFL.txt), served from this site: one static file per
   weight, so every browser - Safari included - draws the weight it is asked for. */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/outfit-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/outfit-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/outfit-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/outfit-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/outfit-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/outfit-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/outfit-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/outfit-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/outfit-800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/outfit-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens */
:root {
    color-scheme: light;
    --as-font-head: 'Outfit', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* Outfit throughout: the legacy newcss.css forces it on text with !important anyway. */
    --as-font-body: 'Outfit', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --as-font-sym: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'DejaVu Sans', sans-serif;

    --as-radius-xs: 8px;
    --as-radius-sm: 10px;
    --as-radius: 14px;
    --as-radius-lg: 20px;
    --as-radius-xl: 28px;
    --as-pill: 999px;

    --as-container: 1240px;
    --as-gutter: clamp(16px, 4vw, 32px);
    --as-header-h: 72px;
    --as-section-y: clamp(48px, 7vw, 88px);

    --as-fs-hero: clamp(2.3rem, 1.35rem + 3.8vw, 4.3rem);
    --as-fs-h1: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
    --as-fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
    --as-fs-h3: clamp(1.1rem, 1rem + .45vw, 1.35rem);
    --as-fs-lead: clamp(1rem, .95rem + .3vw, 1.15rem);

    /* day */
    --as-bg: #fffaf2;
    --as-bg-2: #fff4e3;
    --as-surface: #ffffff;
    --as-surface-2: #fff8ef;
    --as-surface-3: #fdefd9;
    --as-border: #f0e3cf;
    --as-border-2: #e6d3b5;
    --as-text: #1d1546;
    --as-text-2: #474066;
    --as-muted: #78728f;
    --as-faint: #a9a3bb;

    --as-primary: #ffb300;
    --as-primary-2: #ff9900;
    --as-primary-ink: #2a1a00;
    --as-primary-soft: #fff1cf;
    --as-btn-grad: linear-gradient(180deg, #ffcd40 0%, #ffaa00 100%);
    --as-btn-glow: 0 10px 24px -10px rgba(255, 153, 0, .75);
    /* --as-hl colours text and icons (5.2:1 on white); headings' highlight words are
       --as-hl-grad, art uses --as-hl-bright. */
    --as-hl: #c2410c;
    --as-hl-bright: #ff6a13;
    --as-hl-grad: linear-gradient(92deg, #ff9500 0%, #ff4f1d 100%);
    --as-eyebrow-grad: linear-gradient(92deg, #7c3aed 0%, #ff7a00 100%);
    --as-violet: #6b3bef;
    --as-violet-2: #8b5cf6;
    --as-violet-soft: #f0e9ff;
    --as-violet-ink: #4c1fd1;
    --as-violet-solid: #6b3bef;
    /* Text on --as-primary-soft (the gold badges). */
    --as-gold-ink: #8a4f00;

    --as-online: #16a34a;
    --as-online-soft: #dcfce7;
    --as-busy: #f97316;
    --as-busy-soft: #ffedd5;
    --as-offline: #9ca3af;
    --as-danger: #e5484d;
    --as-danger-soft: #ffe4e6;
    --as-info: #2563eb;
    --as-star: #ffb400;

    --as-header-bg: rgba(255, 250, 242, .86);
    --as-overlay: rgba(23, 14, 46, .55);
    --as-shadow-sm: 0 1px 2px rgba(80, 50, 0, .06);
    --as-shadow: 0 1px 2px rgba(80, 50, 0, .05), 0 10px 28px -14px rgba(80, 50, 0, .18);
    --as-shadow-lg: 0 24px 60px -24px rgba(80, 50, 0, .28);
    --as-focus: 0 0 0 3px rgba(255, 170, 0, .38);
    --as-hero-bg:
        radial-gradient(1100px 520px at 88% 0%, rgba(255, 186, 73, .30), transparent 62%),
        radial-gradient(800px 520px at 100% 100%, rgba(139, 92, 246, .18), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(255, 140, 50, .12), transparent 60%),
        linear-gradient(180deg, #fff7ea 0%, #fffaf2 100%);
    --as-band-bg: linear-gradient(180deg, #fffdf8 0%, #fff6e8 100%);
    --as-art-filter: none;
    --as-wheel-stroke: rgba(214, 140, 20, .55);
    --as-wheel-glyph: #b8650a;
    --as-sparkle: rgba(255, 170, 40, .9);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --as-bg: #0b0a08;
    --as-bg-2: #100e0b;
    --as-surface: #16130f;
    --as-surface-2: #1c1914;
    --as-surface-3: #241f18;
    --as-border: rgba(247, 196, 64, .13);
    --as-border-2: rgba(247, 196, 64, .26);
    --as-text: #f7f2e7;
    --as-text-2: #d8cfbd;
    --as-muted: #a69d8a;
    --as-faint: #776f60;

    --as-primary: #f7c440;
    --as-primary-2: #f2a90d;
    --as-primary-ink: #1a1200;
    --as-primary-soft: rgba(247, 196, 64, .12);
    --as-btn-grad: linear-gradient(180deg, #ffd65a 0%, #f2a90d 100%);
    --as-btn-glow: 0 10px 28px -10px rgba(242, 169, 13, .65);
    --as-hl: #f7c440;
    --as-hl-bright: #f7c440;
    --as-hl-grad: linear-gradient(92deg, #ffe07a 0%, #f2a90d 100%);
    --as-eyebrow-grad: linear-gradient(92deg, #f7c440 0%, #ff8a3d 100%);
    --as-violet: #a78bfa;
    --as-violet-2: #8b5cf6;
    --as-violet-soft: rgba(139, 92, 246, .16);
    --as-violet-ink: #c4b5fd;
    --as-violet-solid: #7c3aed;
    --as-gold-ink: #f7c440;

    --as-online-soft: rgba(22, 163, 74, .18);
    --as-busy-soft: rgba(249, 115, 22, .18);
    --as-danger-soft: rgba(229, 72, 77, .16);

    --as-header-bg: rgba(11, 10, 8, .80);
    --as-overlay: rgba(0, 0, 0, .7);
    --as-shadow-sm: 0 1px 0 rgba(255, 255, 255, .03) inset;
    --as-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px -18px rgba(0, 0, 0, .9);
    --as-shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, .95);
    --as-focus: 0 0 0 3px rgba(247, 196, 64, .35);
    --as-hero-bg:
        radial-gradient(900px 520px at 82% 18%, rgba(242, 169, 13, .20), transparent 60%),
        radial-gradient(700px 480px at 100% 100%, rgba(139, 92, 246, .14), transparent 60%),
        radial-gradient(600px 400px at 0% 80%, rgba(255, 120, 40, .08), transparent 60%),
        linear-gradient(180deg, #0d0b08 0%, #0b0a08 100%);
    --as-band-bg: linear-gradient(180deg, #13110d 0%, #0f0d0a 100%);
    --as-art-filter: brightness(.62) saturate(1.05) contrast(1.05);
    --as-wheel-stroke: rgba(247, 196, 64, .45);
    --as-wheel-glyph: #f7c440;
    --as-sparkle: rgba(255, 214, 110, .95);
}

/* No script (or before it ran): follow the system. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --as-bg: #0b0a08;
        --as-bg-2: #100e0b;
        --as-surface: #16130f;
        --as-surface-2: #1c1914;
        --as-surface-3: #241f18;
        --as-border: rgba(247, 196, 64, .13);
        --as-border-2: rgba(247, 196, 64, .26);
        --as-text: #f7f2e7;
        --as-text-2: #d8cfbd;
        --as-muted: #a69d8a;
        --as-primary: #f7c440;
        --as-primary-ink: #1a1200;
        --as-btn-grad: linear-gradient(180deg, #ffd65a 0%, #f2a90d 100%);
        --as-hl: #f7c440;
        --as-hl-bright: #f7c440;
        --as-hl-grad: linear-gradient(92deg, #ffe07a 0%, #f2a90d 100%);
        --as-violet-solid: #7c3aed;
        --as-gold-ink: #f7c440;
        --as-header-bg: rgba(11, 10, 8, .80);
        --as-hero-bg: linear-gradient(180deg, #0d0b08 0%, #0b0a08 100%);
        --as-band-bg: linear-gradient(180deg, #13110d 0%, #0f0d0a 100%);
    }
}

/* -------------------------------------------------------------------- base */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--as-header-h) + 12px);
}

body.as-ui {
    margin: 0;
    background: var(--as-bg);
    color: var(--as-text);
    font-family: var(--as-font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* app.min.css pads .wrapper (this <main>) by 38px on phones for the old fixed header; the header
   here is sticky and takes its own room, so that padding was only a gap under it. */
body.as-ui main.as-main { padding-top: 0 !important; }

/* Form controls take the page's font. Pages built on the old layout get this from Bootstrap;
   the standalone pages (astrologer sign-in) load no Bootstrap. No specificity, so any page rule wins. */
:where(body.as-ui) :where(input, button, select, textarea) { font-family: inherit; }

body.as-ui.as-no-scroll {
    overflow: hidden;
}

.as-ui img,
.as-ui svg,
.as-ui video {
    max-width: 100%;
}

.as-ui img {
    height: auto;
}

.as-ui :focus-visible {
    outline: none;
    box-shadow: var(--as-focus);
    border-radius: 6px;
}

.as-skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--as-radius-sm);
    background: var(--as-primary);
    color: var(--as-primary-ink);
    font-weight: 600;
    text-decoration: none;
}

.as-skip-link:focus {
    top: 12px;
}

.as-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Zodiac glyphs. "el-symbol" is the class the legacy global font rule (newcss.css) leaves alone. */
.as-sym,
.el-symbol.as-sym {
    font-family: var(--as-font-sym);
    font-weight: 400;
}

/* ----------------------------------------------------------------- layout */
.as-container {
    width: 100%;
    max-width: var(--as-container);
    margin-inline: auto;
    padding-inline: var(--as-gutter);
    box-sizing: border-box;
}

.as-container--wide {
    max-width: 1360px;
}

.as-container--narrow {
    max-width: 920px;
}

.as-section {
    padding-block: var(--as-section-y);
    position: relative;
}

.as-section--tight {
    padding-block: clamp(32px, 5vw, 56px);
}

.as-section--band {
    background: var(--as-band-bg);
    border-block: 1px solid var(--as-border);
}

.as-stack > * + * {
    margin-top: var(--as-stack, 16px);
}

.as-grid {
    display: grid;
    gap: var(--as-gap, clamp(14px, 2vw, 22px));
}

.as-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.as-grid--auto { grid-template-columns: repeat(auto-fill, minmax(var(--as-min, 240px), 1fr)); }

@media (max-width: 1100px) {
    .as-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .as-grid--3,
    .as-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .as-grid--2,
    .as-grid--3,
    .as-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .as-grid--keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.as-row {
    display: flex;
    align-items: center;
    gap: var(--as-gap, 12px);
    flex-wrap: wrap;
}

.as-row--between { justify-content: space-between; }
.as-row--center { justify-content: center; }
.as-row--nowrap { flex-wrap: nowrap; }

/* ------------------------------------------------------------- typography */
.as-ui h1,
.as-ui h2,
.as-ui h3,
.as-ui h4,
.as-ui h5,
.as-ui .as-h {
    font-family: var(--as-font-head);
    color: var(--as-text);
    letter-spacing: -.015em;
    line-height: 1.15;
    margin: 0;
}

.as-hero-title {
    font-size: var(--as-fs-hero);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.04;
}

.as-h1 { font-size: var(--as-fs-h1); font-weight: 800; letter-spacing: -.025em; }
.as-h2 { font-size: var(--as-fs-h2); font-weight: 800; letter-spacing: -.02em; }
.as-h3 { font-size: var(--as-fs-h3); font-weight: 700; }
/* Headings break evenly (no word left alone on the last line on a phone); lead text avoids a lone last word. */
.as-h1, .as-h2, .as-h3, .as-ui h1, .as-ui h2 { text-wrap: balance; }
.as-lead, .as-chat__lead { text-wrap: pretty; }
.as-section-head p, .as-pagehero p { text-wrap: balance; }
/* A heading's leading icon: a word space is too tight at heading sizes. */
.as-h2 > i:first-child, .as-h3 > i:first-child { margin-right: .3em; }

.as-hl {
    color: var(--as-hl);
    background: var(--as-hl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.as-eyebrow {
    display: inline-block;
    font-family: var(--as-font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--as-hl);
    background: var(--as-eyebrow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.as-lead {
    font-size: var(--as-fs-lead);
    color: var(--as-text-2);
    line-height: 1.65;
    margin: 0;
}

.as-muted { color: var(--as-muted); }
.as-small { font-size: .875rem; }
.as-xs { font-size: .78rem; }
.as-strong { font-weight: 700; }
.as-center { text-align: center; }
.as-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.as-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.as-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.as-section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.as-section-head p {
    margin: 8px 0 0;
    color: var(--as-muted);
}

.as-divider-orn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--as-primary);
    margin-top: 10px;
}

.as-divider-orn::before,
.as-divider-orn::after {
    content: "";
    width: 46px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--as-primary));
}

.as-divider-orn::after {
    background: linear-gradient(90deg, var(--as-primary), transparent);
}

.as-link {
    color: var(--as-hl);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.as-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--as-hl);
}

/* ---------------------------------------------------------------- buttons */
.as-btn {
    --as-btn-h: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--as-btn-h);
    padding: 0 22px;
    border-radius: var(--as-radius-sm);
    border: 1px solid transparent;
    font-family: var(--as-font-head);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    box-sizing: border-box;
}

/* Bootstrap gives every label a bottom margin: a label drawn as a button (panchang "Pick a date") sat 4px high. */
label.as-btn { margin-bottom: 0; }

.as-btn:hover { text-decoration: none; transform: translateY(-1px); }
.as-btn:active { transform: translateY(0); }
.as-btn[disabled],
.as-btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

.as-btn--primary {
    background: var(--as-btn-grad);
    color: var(--as-primary-ink) !important;
    box-shadow: var(--as-btn-glow);
}

.as-btn--primary:hover { color: var(--as-primary-ink); filter: saturate(1.08); }

.as-btn--outline {
    background: transparent;
    color: var(--as-text) !important;
    border-color: var(--as-border-2);
}

.as-btn--outline:hover { border-color: var(--as-primary); color: var(--as-text); }

.as-btn--violet {
    background: var(--as-violet-soft);
    color: var(--as-violet-ink) !important;
    border-color: transparent;
}

.as-btn--dark {
    background: #111;
    color: #fff !important;
}

.as-btn--light {
    background: #fff;
    color: #111 !important;
    border-color: rgba(0, 0, 0, .08);
}

.as-btn--ghost {
    background: transparent;
    color: var(--as-text-2) !important;
}

.as-btn--danger-outline {
    background: transparent;
    color: var(--as-danger) !important;
    border-color: color-mix(in srgb, var(--as-danger) 55%, transparent);
    border-color: rgba(229, 72, 77, .55);
}

.as-btn--pill { border-radius: var(--as-pill); }
.as-btn--sm { --as-btn-h: 36px; padding: 0 14px; font-size: .86rem; }
.as-btn--lg { --as-btn-h: 54px; padding: 0 28px; font-size: 1.04rem; }
.as-btn--block { display: flex; width: 100%; }

.as-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--as-border);
    background: var(--as-surface);
    color: var(--as-text);
    cursor: pointer;
    padding: 0;
    transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
    position: relative;
    flex: none;
}

.as-icon-btn:hover { border-color: var(--as-primary); }
.as-icon-btn svg { width: 20px; height: 20px; }

.as-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 16px 0 14px;
    border-radius: 12px;
    background: #0b0b0b;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, .14);
    font-family: var(--as-font-head);
    transition: transform .15s ease, border-color .2s ease;
}

.as-store-badge:hover { transform: translateY(-1px); border-color: var(--as-primary); }
.as-store-badge svg { width: 24px; height: 24px; flex: none; }
.as-store-badge small { display: block; font-size: .7rem; letter-spacing: .04em; opacity: .85; line-height: 1.1; text-transform: uppercase; }
.as-store-badge strong { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.15; }

/* ------------------------------------------------------------- surfaces */
.as-card {
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-lg);
    box-shadow: var(--as-shadow);
    box-sizing: border-box;
}

.as-card--pad { padding: clamp(16px, 2.4vw, 26px); }
.as-card--soft { background: var(--as-surface-2); }
.as-card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.as-card--hover:hover { transform: translateY(-3px); border-color: var(--as-border-2); box-shadow: var(--as-shadow-lg); }

.as-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--as-pill);
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    color: var(--as-text-2);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.2;
}

.as-chip i,
.as-chip svg { color: var(--as-primary-2); }

.as-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.as-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    font-weight: 500;
    color: var(--as-text-2);
}

.as-trust__item i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--as-primary-soft);
    color: var(--as-primary-2);
    font-size: .7rem;
}

.as-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--as-pill);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.as-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.as-badge--plain::before { display: none; }
.as-badge--online { background: var(--as-online); color: #fff; }
.as-badge--busy { background: var(--as-busy); color: #fff; }
.as-badge--offline { background: rgba(100, 100, 110, .85); color: #fff; }
.as-badge--new { background: var(--as-violet-soft); color: var(--as-violet-ink); }
.as-badge--gold { background: var(--as-primary-soft); color: var(--as-gold-ink); }

/* The AI chip (plan 8.2; partials/as-ai-chip): beside an AI astrologer's name, or on its picture's corner. One
   colour by day and by night - its two tokens are defined here and never redefined for the dark theme - white on
   deep violet (about 15:1), with a fixed border that shows on dark surfaces. As tall and wide as the Online badge:
   the 1 px border comes off the padding. No dot: it is a label, not a status. Its ink is also its text fill: gradient
   text (.as-eyebrow, .as-hl) sets -webkit-text-fill-color to transparent, which children inherit, and would leave an
   empty pill wherever the chip sits inside it (the retired page's eyebrow). */
:root {
    --as-ai-chip-bg: #2e1065;
    --as-ai-chip-ink: #ffffff;
}
.as-badge.as-badge--ai {
    padding: 2px 9px;
    border: 1px solid #8b5cf6;
    background: var(--as-ai-chip-bg);
    color: var(--as-ai-chip-ink);
    -webkit-text-fill-color: var(--as-ai-chip-ink);
    letter-spacing: .04em;
}
.as-badge.as-badge--ai::before { display: none; }
.as-badge.as-badge--ai.as-ai-chip--corner { position: absolute; top: 8px; right: 8px; bottom: auto; left: auto; z-index: 2; transform: none; }

.as-icon-tile {
    --as-tile: #8b5cf6;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .45), transparent 45%),
        linear-gradient(145deg, var(--as-tile), color-mix(in srgb, var(--as-tile) 70%, #000));
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .45), transparent 45%),
        var(--as-tile);
    box-shadow: 0 10px 22px -12px var(--as-tile), inset 0 -3px 0 rgba(0, 0, 0, .12);
}

.as-icon-tile img { width: 60%; height: 60%; object-fit: contain; }
.as-tile--violet { --as-tile: #7c4dff; }
.as-tile--green { --as-tile: #22a559; }
.as-tile--red { --as-tile: #e5484d; }
.as-tile--orange { --as-tile: #ff7a1a; }
.as-tile--amber { --as-tile: #f5a400; }
.as-tile--blue { --as-tile: #2f7bf6; }
.as-tile--pink { --as-tile: #ec4899; }
.as-tile--teal { --as-tile: #0ea5a4; }
.as-tile--indigo { --as-tile: #4f46e5; }

.as-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: var(--as-surface-3);
}

.as-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-family: var(--as-font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(145deg, var(--as-primary), var(--as-hl-bright));
}

.as-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--as-star);
    font-size: .8rem;
}

.as-stars .is-off { color: var(--as-border-2); }

/* ------------------------------------------------------------------ forms */
.as-field { display: grid; gap: 6px; align-content: start; }
.as-label { font-size: .86rem; font-weight: 600; color: var(--as-text-2); }

.as-input,
.as-select,
.as-textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: var(--as-radius-sm);
    border: 1px solid var(--as-border-2);
    background: var(--as-surface);
    color: var(--as-text);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.as-input,
.as-select { height: 48px; }
.as-input[type="date"],
.as-input[type="time"] { padding-top: 0; padding-bottom: 0; line-height: 46px; }
.as-textarea { min-height: 120px; resize: vertical; }

.as-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.as-input::placeholder,
.as-textarea::placeholder { color: var(--as-muted); opacity: 1; }

.as-input:focus,
.as-select:focus,
.as-textarea:focus {
    outline: none;
    border-color: var(--as-primary);
    box-shadow: var(--as-focus);
}

.as-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .92rem;
    color: var(--as-text-2);
}

.as-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--as-violet);
}

/* The visible checkboxes and radios, drawn on the theme: Safari kept the native ones white at night. */
:is(.as-check, .as-seg, .as-join__choice) input:is([type="checkbox"], [type="radio"]) {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    display: inline-grid;
    place-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid var(--as-border-2);
    border-radius: 5px;
    background: var(--as-surface);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
:is(.as-check, .as-seg, .as-join__choice) input[type="radio"] { border-radius: 50%; }
:is(.as-check, .as-seg, .as-join__choice) input:is([type="checkbox"], [type="radio"])::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #fff;
    transform: scale(0);
    transition: transform .12s ease;
}
:is(.as-check, .as-seg, .as-join__choice) input[type="checkbox"]::before { clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
:is(.as-check, .as-seg, .as-join__choice) input[type="radio"]::before { width: 8px; height: 8px; border-radius: 50%; }
:is(.as-check, .as-seg, .as-join__choice) input:is([type="checkbox"], [type="radio"]):checked { border-color: var(--as-violet-solid); background: var(--as-violet-solid); }
:is(.as-check, .as-seg, .as-join__choice) input:is([type="checkbox"], [type="radio"]):checked::before { transform: scale(1); }
:is(.as-check, .as-seg, .as-join__choice) input:is([type="checkbox"], [type="radio"]):focus-visible { outline: 2px solid var(--as-primary); outline-offset: 2px; }
:is(.as-check, .as-seg, .as-join__choice) input:is([type="checkbox"], [type="radio"]):disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------- accordion */
.as-acc {
    display: grid;
    gap: 12px;
}

.as-acc details {
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    overflow: hidden;
}

.as-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    font-family: var(--as-font-head);
    font-weight: 600;
    color: var(--as-text);
}

.as-acc summary::-webkit-details-marker { display: none; }
.as-acc summary::marker { content: ""; }

.as-acc summary::after {
    content: "+";
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--as-border-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--as-muted);
    transition: transform .2s ease;
}

.as-acc details[open] summary::after { content: "\2212"; color: var(--as-primary-2); border-color: var(--as-primary); }
.as-acc details > div { padding: 0 18px 18px; color: var(--as-text-2); line-height: 1.7; }
.as-acc details > div > *:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- breadcrumb */
.as-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: .84rem;
    color: var(--as-muted);
}

.as-crumbs a { color: var(--as-muted); text-decoration: none; }
.as-crumbs a:hover { color: var(--as-hl); }
.as-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.as-crumbs li:last-child { color: var(--as-text); font-weight: 600; }
/* One line on a phone: the last item (a product's name) gives way and ends in "...", instead of wrapping
   under a "/"; the steps before it keep their width up to a cap. */
.as-crumbs { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.as-crumbs li { flex: none; max-width: min(14em, 35vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-crumbs li:last-child { flex: 0 1 auto; min-width: 0; max-width: none; }

/* ------------------------------------------------------------- pagination */
.as-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.as-pager a,
.as-pager span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--as-border);
    background: var(--as-surface);
    color: var(--as-text-2);
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

/* The current page as the other picked states (date tabs, category chips): the gold button, dark ink. */
.as-pager .is-current { background: var(--as-btn-grad); border-color: transparent; color: var(--as-primary-ink); }
.as-pager .is-disabled { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- empty */
.as-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 36px 20px;
    text-align: center;
    color: var(--as-muted);
}

/* The card's own icon (not the ones inside its buttons). */
.as-empty > i { font-size: 1.8rem; color: var(--as-violet); }

/* =========================================================== DECORATION (sky, orbs, zodiac wheel) */
.as-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.as-sky::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.2px 1.2px at 22px 34px, var(--as-sparkle), transparent 60%),
        radial-gradient(1px 1px at 132px 86px, var(--as-sparkle), transparent 60%),
        radial-gradient(1.6px 1.6px at 210px 160px, var(--as-sparkle), transparent 60%),
        radial-gradient(1px 1px at 70px 190px, var(--as-sparkle), transparent 60%),
        radial-gradient(1.3px 1.3px at 260px 40px, var(--as-sparkle), transparent 60%),
        radial-gradient(.9px .9px at 170px 240px, var(--as-sparkle), transparent 60%);
    background-size: 290px 270px;
    opacity: .35;
}

:root[data-theme="dark"] .as-sky::before { opacity: .75; }

.as-sky__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
}

.as-sky__glow--a { width: 420px; height: 420px; right: 6%; top: -80px; background: rgba(255, 176, 40, .45); }
.as-sky__glow--b { width: 360px; height: 360px; right: -60px; bottom: -120px; background: rgba(139, 92, 246, .38); }
:root[data-theme="dark"] .as-sky__glow--a { background: rgba(242, 169, 13, .32); }
:root[data-theme="dark"] .as-sky__glow--b { background: rgba(124, 58, 237, .25); }

.as-orb {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -10px -12px 22px rgba(0, 0, 0, .35), 0 0 30px rgba(255, 170, 60, .25);
}

.as-orb--amber { background: radial-gradient(circle at 32% 30%, #ffe2a8, #f0a43a 45%, #8a4b12 100%); }
.as-orb--violet { background: radial-gradient(circle at 32% 30%, #e9ddff, #8b6cf6 45%, #3a1f86 100%); }
.as-orb--blue { background: radial-gradient(circle at 32% 30%, #d9f0ff, #4b8ff0 45%, #1c3a8f 100%); }
.as-orb--rust { background: radial-gradient(circle at 32% 30%, #ffd1b0, #c9692f 45%, #5a2a10 100%); }

.as-wheel {
    position: absolute;
    width: min(560px, 100%);
    aspect-ratio: 1 / 1;
    height: auto;
    color: var(--as-wheel-stroke);
    animation: as-spin 160s linear infinite;
    opacity: .9;
}

.as-wheel text {
    fill: var(--as-wheel-glyph);
    font-family: var(--as-font-sym);
    font-size: 30px;
}

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


/* =========================================================== HEADER */
.as-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--as-header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.as-header.is-scrolled {
    border-bottom-color: var(--as-border);
    box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35);
}

.as-header__in {
    height: var(--as-header-h);
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 22px);
}

.as-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex: none;
}

.as-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}

.as-brand__name {
    font-family: var(--as-font-head);
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--as-text);
    white-space: nowrap;
}

.as-brand__name b {
    font-weight: 800;
    color: var(--as-hl);
    background: var(--as-hl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.as-nav { flex: 1; min-width: 0; }

.as-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.as-nav__item { position: relative; }

.as-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: none;
    border: 0;
    font-family: var(--as-font-head);
    font-size: .95rem;
    font-weight: 600;
    color: var(--as-text-2) !important;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color .2s ease, background-color .2s ease;
}

.as-nav__link:hover { color: var(--as-text) !important; background: var(--as-primary-soft); }

.as-nav__link.is-active { color: var(--as-hl) !important; }

.as-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--as-hl-grad);
}

.as-nav__link .as-caret {
    width: 10px;
    height: 10px;
    transition: transform .2s ease;
}

.as-nav__item.is-open > .as-nav__link .as-caret { transform: rotate(180deg); }

.as-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    box-shadow: var(--as-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1040;
}

.as-menu--right { left: auto; right: 0; }

.is-open > .as-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.as-menu a,
.as-menu button.as-menu__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 0;
    background: none;
    color: var(--as-text-2) !important;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none !important;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.as-menu a:hover,
.as-menu button.as-menu__btn:hover { background: var(--as-primary-soft); color: var(--as-text) !important; }
.as-menu a i { width: 18px; color: var(--as-primary-2); text-align: center; }
.as-menu hr { border: 0; border-top: 1px solid var(--as-border); margin: 6px 4px; }

.as-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.as-translate {
    height: 38px;
    min-width: 86px;
    display: flex;
    align-items: center;
}

.as-translate .goog-te-gadget { font-size: 0 !important; color: transparent !important; }
.as-translate .goog-te-gadget .goog-te-combo {
    height: 38px;
    margin: 0 !important;
    padding: 0 30px 0 12px;
    border-radius: 10px;
    border: 1px solid var(--as-border);
    background-color: var(--as-surface);
    color: var(--as-text);
    font-family: var(--as-font-body);
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
}

.as-theme-toggle .as-ico-moon { display: none; }
:root[data-theme="dark"] .as-theme-toggle .as-ico-sun { display: none; }
:root[data-theme="dark"] .as-theme-toggle .as-ico-moon { display: inline; }

.as-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--as-danger);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

.as-count:empty,
.as-count[data-zero="1"] { display: none; }

.as-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 3px;
    border-radius: var(--as-pill);
    border: 1px solid var(--as-border);
    background: var(--as-surface);
    color: var(--as-text);
    cursor: pointer;
    font-family: var(--as-font-head);
    font-weight: 600;
    font-size: .9rem;
}

.as-user-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.as-user-btn span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.as-menu--user { min-width: 260px; max-height: min(70vh, 560px); overflow: auto; }
.as-menu__head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--as-border); margin-bottom: 6px; }
.as-menu__head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.as-menu__head strong { display: block; font-family: var(--as-font-head); color: var(--as-text); }
.as-menu__wallet { margin-left: auto; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: var(--as-pill); background: var(--as-primary-soft); color: var(--as-primary-2); }

.as-menu--notify { width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 480px); overflow: auto; }
.as-menu--notify ul { list-style: none; margin: 0; padding: 0; }
.as-menu--notify li.bg-pink a { background: var(--as-primary-soft); }

.as-burger { display: none; }

.as-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 14px 0 18px;
    background: var(--as-header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--as-border);
    box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .45);
}

.as-search-panel form { display: flex; gap: 10px; }
.as-search-panel .as-input { flex: 1; }

/* drawer (phones and small tablets) */
.as-drawer {
    position: fixed;
    inset: 0;
    z-index: 1060;
    visibility: hidden;
    pointer-events: none;
}

.as-drawer.is-open { visibility: visible; pointer-events: auto; }

.as-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: var(--as-overlay);
    opacity: 0;
    transition: opacity .25s ease;
}

.as-drawer.is-open .as-drawer__backdrop { opacity: 1; }

.as-drawer__panel:focus { outline: none; box-shadow: var(--as-shadow-lg); }

.as-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 88vw);
    display: flex;
    flex-direction: column;
    background: var(--as-bg);
    border-left: 1px solid var(--as-border);
    box-shadow: var(--as-shadow-lg);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.as-drawer.is-open .as-drawer__panel { transform: translateX(0); }

.as-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.as-drawer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 6px 0 18px;
}

.as-drawer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--as-border);
    background: var(--as-surface);
    color: var(--as-text) !important;
    font-family: var(--as-font-head);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none !important;
    box-sizing: border-box;
}

.as-drawer__link i { color: var(--as-primary-2); width: 18px; text-align: center; }
.as-drawer__link.is-active { border-color: var(--as-primary); background: var(--as-primary-soft); }
.as-drawer__label { margin: 8px 2px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--as-muted); }
.as-drawer__list { display: grid; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; }
.as-drawer__list a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; color: var(--as-text-2) !important; text-decoration: none !important; font-weight: 500; }
.as-drawer__list a:hover { background: var(--as-primary-soft); }
.as-drawer__list a i { width: 18px; text-align: center; color: var(--as-primary-2); }
.as-drawer__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }

@media (max-width: 1240px) {
    .as-nav__link { padding: 0 9px; font-size: .9rem; }
    .as-brand__name { font-size: 1.2rem; }
}

@media (max-width: 1100px) {
    .as-translate { display: none; }
}

@media (max-width: 991.98px) {
    :root { --as-header-h: 64px; }
    .as-nav,
    .as-header__actions .as-hide-sm { display: none !important; }
    .as-burger { display: inline-flex; }
    .as-header__actions { margin-left: auto; gap: 8px; }
    .as-brand img { width: 38px; height: 38px; }
}

@media (max-width: 380px) {
    .as-brand__name { font-size: 1.08rem; }
    .as-icon-btn { width: 38px; height: 38px; }
}

/* =========================================================== FOOTER */
.as-footer {
    position: relative;
    margin-top: 0;
    background: var(--as-bg-2);
    border-top: 1px solid var(--as-border);
    color: var(--as-text-2);
    font-size: .92rem;
}

.as-footer__top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 1.1fr;
    gap: clamp(20px, 3vw, 40px);
    padding-block: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 40px);
}

.as-footer__brand p { margin: 12px 0 18px; color: var(--as-muted); max-width: 340px; line-height: 1.6; }

/* The company behind the site, and how to reach it. */
.as-footer__brand .as-footer__company { margin: -6px 0 14px; font-size: .88rem; }
.as-footer__company a { color: var(--as-text); font-weight: 600; font-size: inherit; } /* legacy app.css: p a { 18px } */
.as-footer .as-footer__contact { gap: 8px; margin: 0 0 18px; max-width: 340px; font-size: .88rem; }
.as-footer__contact li { display: flex; align-items: baseline; gap: 10px; line-height: 1.5; color: var(--as-muted); }
.as-footer__contact i { flex: none; width: 16px; text-align: center; font-size: .82rem; color: var(--as-hl); }
.as-footer__contact a, .as-footer__contact span { min-width: 0; overflow-wrap: anywhere; }

.as-footer h3 {
    font-family: var(--as-font-head);
    font-size: .98rem;
    font-weight: 700;
    color: var(--as-text);
    margin: 4px 0 14px;
}

.as-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.as-footer a { color: var(--as-text-2); text-decoration: none; }
.as-footer a:hover { color: var(--as-hl); }

.as-social { display: flex; flex-wrap: wrap; gap: 10px; }

.as-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    color: var(--as-text-2);
    font-size: 1rem;
    transition: transform .15s ease, border-color .2s ease, color .2s ease;
}

.as-social a:hover { transform: translateY(-2px); border-color: var(--as-primary); color: var(--as-hl); }

.as-footer__apps { display: grid; gap: 10px; justify-items: start; }

.as-footer__bottom {
    border-top: 1px solid var(--as-border);
    padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    flex-wrap: wrap;
    font-size: .84rem;
    color: var(--as-muted);
}

.as-footer .as-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; }
.as-footer__legal a { color: var(--as-muted); }

@media (max-width: 1100px) {
    .as-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .as-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .as-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .as-footer__apps { grid-column: 1 / -1; }
    .as-footer__bottom { justify-content: center; text-align: center; }
    .as-footer__legal { justify-content: center; }
}

/* =========================================================== LOGIN MODAL */
.as-login .modal-dialog { max-width: 460px; margin: 1.25rem auto; padding-inline: 12px; }

.as-login .modal-content {
    position: relative;
    border: 1px solid var(--as-border) !important;
    border-radius: 24px !important;
    overflow: hidden;
    background:
        radial-gradient(420px 220px at 50% -40px, rgba(255, 184, 64, .35), transparent 70%),
        radial-gradient(300px 200px at 0% 100%, rgba(255, 160, 60, .12), transparent 70%),
        var(--as-surface) !important;
    color: var(--as-text);
    box-shadow: var(--as-shadow-lg);
}

.as-login .modal-body { padding: 28px 28px 24px !important; }
.as-login__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.as-login__brand { display: grid; justify-items: center; gap: 6px; text-align: center; }
.as-login__brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; }
.as-login__title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); font-weight: 800; margin-top: 4px; }
.as-login__sub { color: var(--as-muted); margin: 0; font-size: .95rem; }

:is(.as-login, .as-join) .as-tel {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--as-border-2);
    border-radius: 14px;
    background: var(--as-surface);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

:is(.as-login, .as-join) .as-tel:focus-within { border-color: var(--as-primary); box-shadow: var(--as-focus); }
:is(.as-login, .as-join) .as-tel select,
:is(.as-login, .as-join) .as-tel input {
    border: 0 !important;
    background: transparent !important;
    color: var(--as-text) !important;
    font-size: 16px !important;
    height: 52px;
    box-shadow: none !important;
    outline: none;
}

:is(.as-login, .as-join) .as-tel select { width: 112px; flex: none; padding: 0 8px 0 12px; border-right: 1px solid var(--as-border) !important; }
:is(.as-login, .as-join) .as-tel input { flex: 1; min-width: 0; padding: 0 14px; }

.as-login .as-otp-input { letter-spacing: .5em; text-align: center; font-weight: 700; font-size: 20px !important; }
.as-login__msg { min-height: 18px; margin: 6px 2px 0; font-size: .82rem; color: var(--as-danger); }
.as-login__terms { margin: 14px 0 0; font-size: .8rem; color: var(--as-muted); text-align: center; }
.as-login__terms a { color: var(--as-hl) !important; font-weight: 600; }
.as-login__or { display: flex; align-items: center; gap: 10px; color: var(--as-muted); font-size: .8rem; margin: 18px 0 12px; }
.as-login__or::before,
.as-login__or::after { content: ""; flex: 1; height: 1px; background: var(--as-border); }
.as-login__apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.as-login__trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--as-border); }
.as-login__trust div { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .74rem; font-weight: 600; color: var(--as-text-2); }
.as-login__trust i { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--as-primary-soft); color: var(--as-primary-2); }

/* The country code picker (as-ui.js): the flag and code button in the phone field, and
   the searchable list that opens under it. The select it dresses up stays, hidden. */
.as-tel .as-cc-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.as-tel { position: relative; }
/* The flag's box (its picture comes with as-flags.css, which loads later): no shift when it arrives. */
.as-flag { display: inline-block; flex: 0 0 auto; width: 20px; height: 15px; border-radius: 3px; vertical-align: middle; }
.as-cc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    height: 52px;
    margin: 0;
    padding: 0 10px 0 14px;
    border: 0;
    border-right: 1px solid var(--as-border);
    border-radius: 0;
    background: transparent;
    color: var(--as-text);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color .15s ease;
}
.as-cc:hover:not(:disabled) { background: var(--as-surface-2); }
.as-cc:focus-visible { outline: 2px solid var(--as-primary); outline-offset: -2px; }
.as-cc:disabled { cursor: default; opacity: .7; }
.as-cc__chev { width: 16px; height: 16px; color: var(--as-muted); transition: transform .2s ease; }
.as-cc[aria-expanded="true"] .as-cc__chev { transform: rotate(180deg); }

.as-cc-pop {
    margin-top: 8px;
    border: 1px solid var(--as-border);
    border-radius: 16px;
    background: var(--as-surface);
    box-shadow: var(--as-shadow-lg);
    overflow: hidden;
    text-align: left;
}
.as-cc-pop__search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--as-border); }
.as-cc-pop__search svg { width: 18px; height: 18px; flex: none; color: var(--as-muted); }
.as-cc-pop__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--as-border-2);
    border-radius: 10px;
    background: var(--as-surface-2);
    color: var(--as-text);
    font: inherit;
    font-size: 16px;
    outline: none;
}
.as-cc-pop__input:focus { border-color: var(--as-primary); box-shadow: var(--as-focus); }
.as-cc-pop__list { position: relative; list-style: none; margin: 0; padding: 6px; max-height: min(264px, 42vh); overflow-y: auto; overscroll-behavior: contain; }
.as-cc-pop__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--as-text-2);
    cursor: pointer;
}
.as-cc-pop__list li[hidden] { display: none; }
.as-cc-pop__list li.is-active { background: var(--as-primary-soft); color: var(--as-text); }
.as-cc-pop__list li[aria-selected="true"] { color: var(--as-text); font-weight: 700; }
.as-cc-pop__list li[aria-selected="true"] .as-cc-pop__code { color: var(--as-hl); }
.as-cc-pop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-cc-pop__code { color: var(--as-muted); font-variant-numeric: tabular-nums; }
.as-cc-pop__none { margin: 0; padding: 16px; color: var(--as-muted); text-align: center; }
/* A narrower code button on small phones (iPhone SE), so the number keeps its room. */
@media (max-width: 360px) {
    .as-cc { gap: 6px; padding: 0 6px 0 10px; }
}
body.as-ui .select2-dropdown {
    background: var(--as-surface);
    border-color: var(--as-border);
    color: var(--as-text);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--as-shadow-lg);
    z-index: 2000;
}
body.as-ui .select2-search--dropdown .select2-search__field {
    background: var(--as-surface-2);
    border: 1px solid var(--as-border-2);
    color: var(--as-text);
    border-radius: 8px;
    font-size: 16px;
    padding: 6px 10px;
}
body.as-ui .select2-results__option { color: var(--as-text-2); padding: 8px 12px; }
body.as-ui .select2-container--default .select2-results__option--highlighted[aria-selected],
body.as-ui .select2-container--default .select2-results__option--highlighted { background: var(--as-primary-soft); color: var(--as-text); }
body.as-ui .select2-container--default .select2-results__option[aria-selected="true"] { background: var(--as-surface-3); color: var(--as-text); }

/* Bootstrap's modal backdrop and the legacy modals on the theme's surfaces */
body.as-ui .modal-backdrop.show { opacity: .62; }
body.as-page .modal-content { background: var(--as-surface); color: var(--as-text); border-color: var(--as-border); }
body.as-page .modal-header,
body.as-page .modal-footer { border-color: var(--as-border); }
body.as-page .modal .close { color: var(--as-text); text-shadow: none; opacity: .8; }

/* The pay box (partials/purchase-pay): Bootstrap's .d-flex comes after .d-none, so a row the
   script hides (no wallet dues) showed anyway. */
.purchase-pay .d-none { display: none !important; }

/* =========================================================== ASK AI BUTTON */
/* The AI guide (footer): a pill with the guide's picture and "Ask AI", a round one on a phone. */
.as-aifab {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    margin: 0;
    padding: 5px 20px 5px 5px;
    border: 1px solid color-mix(in srgb, var(--as-primary) 55%, transparent);
    border-radius: 999px;
    background: var(--as-surface);
    color: var(--as-text);
    font-family: var(--as-font-head);
    box-shadow: var(--as-shadow-lg), 0 0 0 4px color-mix(in srgb, var(--as-primary) 14%, transparent);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.as-aifab:hover { transform: translateY(-2px); box-shadow: var(--as-shadow-lg), 0 0 0 6px color-mix(in srgb, var(--as-primary) 20%, transparent); }
.as-aifab:focus-visible { outline: 3px solid var(--as-primary); outline-offset: 3px; }
.as-aifab__img { position: relative; flex: none; width: 46px; height: 46px; }
.as-aifab__img img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--as-primary-soft); }
.as-aifab__img::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--as-surface);
    border-radius: 50%;
    background: var(--as-online);
}
.as-aifab__text { display: grid; gap: 3px; font-size: .98rem; font-weight: 800; line-height: 1; text-align: left; white-space: nowrap; }
.as-aifab__text small { font-family: var(--as-font-body); font-size: .7rem; font-weight: 600; color: var(--as-muted); }
@media (max-width: 575.98px) {
    .as-aifab { width: 58px; padding: 5px; justify-content: center; }
    .as-aifab__text { display: none; }
}

/* SweetAlert2 pop-ups (confirmations across the site) on the theme's surfaces. */
body.as-ui .swal2-popup {
    border: 1px solid var(--as-border);
    border-radius: 22px;
    background: var(--as-surface);
    color: var(--as-text);
    font-family: var(--as-font-body);
    box-shadow: var(--as-shadow-lg);
}
body.as-ui .swal2-title { color: var(--as-text); font-family: var(--as-font-head); font-weight: 800; }
body.as-ui .swal2-html-container { color: var(--as-text-2); }
body.as-ui .swal2-styled { border-radius: 999px; font-weight: 700; }
body.as-ui .swal2-styled.swal2-confirm { background: var(--as-btn-grad); color: var(--as-primary-ink); box-shadow: var(--as-btn-glow); }
body.as-ui .swal2-styled.swal2-cancel,
body.as-ui .swal2-styled.swal2-deny { border: 1px solid var(--as-border-2); background: var(--as-surface); color: var(--as-text); }
body.as-ui .swal2-styled:focus-visible { box-shadow: var(--as-focus); }
body.as-ui .swal2-container.swal2-backdrop-show { background: var(--as-overlay); }

/* =========================================================== MOTION */
.as-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.as-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .as-ui *,
    .as-ui *::before,
    .as-ui *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .as-reveal { opacity: 1; transform: none; }
}
