:root {
    --night-bg: #121019;
    --night-ink: #fff4f5;
    --night-muted: #e1cbd7;
    --night-panel: #231b29;
    --night-line: #705468;
    --night-accent: #ffb7b4;
    --night-core: #ffc68f;
    --night-accent-ink: #2e1724;
    --night-focus: #f7a9bc;
    --night-ease: cubic-bezier(.2,.75,.26,1);
}

html[data-aov-theme="light"] {
    --night-bg: #f6eced;
    --night-ink: #392633;
    --night-muted: #674f5d;
    --night-panel: #fff9f7;
    --night-line: #d7bac6;
    --night-accent: #8c3154;
    --night-core: #b45a3d;
    --night-accent-ink: #fff8f7;
    --night-focus: #8c3154;
}

/* The sky sits under the app. Only the bounded star layers are animated. */
html[data-aov-theme] body.premium-front,
html[data-aov-theme] body.premium-front .content-page {
    background: transparent !important;
}

html:has(body.premium-front) { background: var(--night-bg) !important; }
.aov-sky {
    position: fixed;
    inset: 0;
    overflow: hidden;
    contain: strict;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 85% 15%, #f66a7540, transparent 45%),
        radial-gradient(ellipse at 11% 76%, #8157a64d, transparent 52%),
        radial-gradient(ellipse at 58% -18%, #ffc29231, transparent 56%),
        var(--night-bg);
}
html[data-aov-theme="light"] .aov-sky {
    background:
        radial-gradient(ellipse at 87% 11%, #f3a78e67, transparent 42%),
        radial-gradient(ellipse at 10% 78%, #bd9bca51, transparent 56%),
        radial-gradient(ellipse at 53% 0, #f8c9c470, transparent 52%),
        var(--night-bg);
}
.aov-sky-stars {
    position: absolute;
    inset: -24px;
    opacity: .24;
    background-image:
        radial-gradient(circle at 12% 23%, #ffe4bd 1px, transparent 2px),
        radial-gradient(circle at 73% 64%, #ffd2c5 1px, transparent 2px),
        radial-gradient(circle at 39% 82%, #e7c1ef 1.15px, transparent 2px);
    background-size: 287px 274px, 409px 320px, 359px 251px;
}
.aov-sky-stars + .aov-sky-stars { opacity: .12; background-position: 108px -83px; }
html[data-aov-theme="light"] .aov-sky-stars {
    background-image:
        radial-gradient(circle at 12% 23%, #8d4656 1px, transparent 2px),
        radial-gradient(circle at 73% 64%, #aa574e 1px, transparent 2px),
        radial-gradient(circle at 39% 82%, #7b4396 1px, transparent 2px);
}
@keyframes aov-sky-drift { to { transform: translate3d(19px,-21px,0); } }

html[data-aov-theme] body.premium-front .iq-top-navbar,
html[data-aov-theme] body.premium-front #premium-sidebar {
    background: color-mix(in srgb,var(--night-panel) 92%,var(--night-ink)) !important;
    border-color: var(--night-line) !important;
}
html[data-aov-theme="dark"] body.premium-front :is(.iq-top-navbar,#premium-sidebar) {
    background: color-mix(in srgb,var(--night-panel) 93%,#000) !important;
}
@media (prefers-reduced-motion: no-preference) and (min-width: 600px) {
    html[data-shop-motion="full"]:not([data-shop-paused]) .aov-sky-stars {
        animation: aov-sky-drift 26s ease-in-out infinite alternate;
    }
    html[data-shop-motion="full"]:not([data-shop-paused]) .aov-sky-stars + .aov-sky-stars {
        animation-duration: 39s;
        animation-direction: alternate-reverse;
    }
}

html body.premium-front .aov-home .store-hero {
    border: 1px solid #f4a58c66;
    box-shadow: 0 23px 56px -38px #311321a0, inset 0 1px #ffa89a51;
    isolation: isolate;
}
.premium-front .store-hero::after {
    content:"";
    position:absolute; inset:0; z-index:2; pointer-events:none; border-radius:inherit;
    background:
        radial-gradient(circle at 95% 4%, #ffe8b955, transparent 17%),
        radial-gradient(circle at 2% 95%, #c477ab20, transparent 28%);
    box-shadow: inset 0 0 45px #25132462;
}
.premium-front .store-hero .store-hero-copy h1 { text-wrap: balance; }
.premium-front .store-hero-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.aov-motion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--night-line);
    border-radius: 9px;
    background: var(--night-panel);
    color: var(--night-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.aov-motion-toggle[hidden], .aov-insights[hidden], .aov-motion-toast[hidden] { display:none !important; }
.store-hero .aov-motion-toggle {
    border-color: #ffdac266;
    background: #251c2b;
    color: #fff5f1;
}
.aov-motion-toggle > span { color:var(--night-accent); font-size:16px; line-height:1; }
.store-hero .aov-motion-toggle > span { color:#ffc68f; }
.aov-motion-toggle[aria-pressed="true"] > span { opacity:.55; }

.aov-insights {
    display:grid;
    grid-template-columns: minmax(0,1.08fr) minmax(270px,.92fr);
    margin: 17px 0 23px;
    color: var(--night-ink);
    background: var(--night-panel);
    border: 1px solid var(--night-line);
    border-radius: 17px;
    box-shadow: 0 16px 40px -30px #34152380;
    font-variant-numeric: tabular-nums;
}
.aov-insights-copy, .aov-insights-chart { padding: clamp(16px,2.2vw,24px); margin: 0; min-width:0; }
.aov-insights h2 { margin:0 0 15px; color:inherit; font:inherit; font-size:17px; font-weight:750; }
.aov-insights-metrics {
    display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:9px; margin:0;
}
.aov-insights-metrics > div {
    padding: 9px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb,var(--night-line) 58%,transparent);
    background: color-mix(in srgb,var(--night-accent) 7%,var(--night-panel));
}
.aov-insights dt { font-size: 11px; font-weight:650; color:var(--night-muted); margin:0; line-height:1.45; }
.aov-insights dd { margin:4px 0 0; color:var(--night-ink); font-weight:750; font-size:clamp(15px,2vw,24px); line-height:1.2; overflow-wrap:anywhere; }
.aov-insights-chart { border-left:1px solid var(--night-line); }
.aov-insights-chart figcaption { font-size:13px; font-weight:750; margin-bottom:8px; }
.aov-insight-bars { display:grid; gap:6px; }
.aov-insight-bars > div { display:grid; grid-template-columns: minmax(106px,auto) 1fr 26px; align-items:center; gap:8px; font-size:11px; color:var(--night-muted); }
.aov-insight-bars strong { text-align:right; color:var(--night-ink); }
.aov-bar { height:6px; border-radius:20px; background:color-mix(in srgb,var(--night-line) 36%,transparent); overflow:hidden; }
.aov-bar i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--night-accent),var(--night-core)); transform-origin:left center; transform:scaleX(var(--aov-share,0)); }
html[data-shop-motion="full"] .aov-bar i { transition:transform 360ms var(--night-ease); }

html body.premium-front .aov-home #showProduct .account-v2-card::before {
    background: linear-gradient(145deg,#f5a38f, #ba6b8859 32%, transparent 58%, #a776b2a6 93%) !important;
    opacity:.8 !important;
}
html body.premium-front .aov-home #showProduct .account-v2-card {
    border-color:var(--night-line) !important;
    background:
        linear-gradient(var(--night-panel),var(--night-panel)) padding-box,
        linear-gradient(155deg,var(--night-line),transparent 52%,var(--night-line)) border-box !important;
    transition:transform 200ms var(--night-ease);
}
html body.premium-front .aov-home #showProduct .account-v2-card__body { background:var(--night-panel) !important; }
html body.premium-front .aov-home #showProduct .account-v2-card__cover {
    background:
        radial-gradient(ellipse at 93% 8%,color-mix(in srgb,var(--night-accent) 18%,transparent),transparent 72%),
        color-mix(in srgb,var(--night-panel) 94%,var(--night-ink)) !important;
}
html body.premium-front .aov-home #showProduct .account-v2-card:hover {
    border-color:var(--night-accent) !important;
    box-shadow:0 14px 36px -18px #39132890 !important;
}
html[data-shop-motion="reduced"] body.premium-front #showProduct .account-v2-card:hover,
html[data-shop-motion="reduced"] body.premium-front #showProduct .account-v2-card:hover img,
html[data-shop-motion="reduced"] body.premium-front #showProduct .account-v2-card__buy:hover {
    transform:none !important;
}
html body.premium-front #showProduct .account-v2-card .account-v2-card__buy:not(:disabled):not(.disabled) {
    background:var(--night-accent) !important;
    color:var(--night-accent-ink) !important;
    border-color:transparent !important;
}
html body.premium-front #showProduct .account-v2-card .account-v2-card__buy:not(:disabled):not(.disabled):hover {
    background:color-mix(in srgb,var(--night-accent) 88%,var(--night-ink)) !important;
}
html body.premium-front .premium-card-edge,
html body.premium-front .premium-card-edge::before {
    display:none !important;
    animation:none !important;
}
html body.premium-front .aov-home #showProduct .account-v2-card > .aov-card-light {
    position:absolute; inset:0; z-index:3; border-radius:inherit; padding:1.5px;
    overflow:hidden; pointer-events:none; opacity:0;
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask-composite:exclude;
}
.aov-card-light::after {
    content:""; position:absolute; inset:0;
    background:linear-gradient(110deg,transparent 33%,#fc8f9355 44%,#ffe9bd 50%,#dd89d47a 56%,transparent 68%);
    transform:translateX(-110%);
}
@keyframes aov-card-sweep { to { transform:translateX(110%); } }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    html[data-shop-motion="full"] body.premium-front .aov-home #showProduct
    .account-v2-card:is(:hover,:focus-within) > .aov-card-light { opacity:1; }
    html[data-shop-motion="full"] .account-v2-card:is(:hover,:focus-within) .aov-card-light::after {
        animation:aov-card-sweep 850ms var(--night-ease) both;
    }
}

.premium-front :is(.store-catalog,.premium-no-results,.aov-activity-card) {
    box-shadow:0 14px 30px -26px #391c3b9c;
}
html[data-aov-theme] body.premium-front .aov-home :is(.store-shortcuts > a,.store-notice,.premium-search,.premium-sort,.premium-filter-foot > label) {
    border-color:var(--night-line) !important;
    background:var(--night-panel) !important;
}
.premium-front .aov-home .premium-filter-foot > label:has(input:checked) {
    box-shadow:inset 0 0 0 1px var(--night-accent);
}
.premium-front .aov-activity-card .card-header {
    background: var(--night-panel) !important;
    border-bottom:1px solid var(--night-line);
}
.premium-front .aov-activity-card .card-header .card-title { color:var(--night-ink) !important; }
.premium-front .table tbody tr:hover > td,
.premium-front .table tbody tr:focus-within > td {
    background:color-mix(in srgb,var(--night-accent) 10%,var(--night-panel)) !important;
}
.premium-front :is(.modal-content,.swal2-popup,.aov-insights) {
    box-shadow:0 20px 60px -33px #30142cd9;
}
.premium-front .modal .modal-content { border:1px solid var(--night-line); }
.premium-front .swal2-popup.swal2-toast { border:1px solid var(--night-line); }
html[data-shop-motion="full"] .premium-front :is(.store-hero-cta,.aov-motion-toggle,.account-v2-card__buy,.premium-filter-foot button) {
    transition: transform 155ms var(--night-ease), opacity 160ms ease;
}
html[data-shop-motion="full"] .premium-front :is(.store-hero-cta,.aov-motion-toggle,.account-v2-card__buy,.premium-filter-foot button):active:not(:disabled) {
    transform:translateY(1px) scale(.985);
}
.premium-front :is(.aov-motion-toggle,.store-hero-cta,#premium-search,#premium-sort,.account-v2-card__buy):focus-visible {
    outline:2px solid var(--night-focus) !important;
    outline-offset:3px;
}
.premium-front .store-hero-actions :focus-visible { outline-color:#ffdfb2 !important; }
.premium-front .aov-footer-motion { display:flex; justify-content:flex-end; margin:0 0 16px; }
.aov-motion-toast {
    position:fixed; z-index:1080; inset:auto auto max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    max-width:min(360px,calc(100vw - 24px)); padding:12px 15px;
    color:var(--night-ink); background:var(--night-panel); border:1px solid var(--night-line);
    border-left:3px solid var(--night-accent); border-radius:9px;
    box-shadow:0 15px 30px -20px #241920; font-size:13px; pointer-events:none;
}

html[data-shop-motion="reduced"] .premium-front *,
html[data-shop-motion="reduced"] .premium-front *::before,
html[data-shop-motion="reduced"] .premium-front *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    transition-delay: 0s !important;
    scroll-behavior:auto !important;
}
html[data-shop-motion="reduced"] { scroll-behavior:auto !important; }
html[data-shop-motion="reduced"] .premium-front .aov-sky-stars { opacity:.12; }
@media (max-width:767px) {
    .aov-insights { grid-template-columns:minmax(0,1fr); }
    .aov-insights-chart { border-left:0; border-top:1px solid var(--night-line); }
}
@media (forced-colors:active) {
    .aov-sky,.aov-card-light { display:none !important; }
    .aov-insights,.aov-motion-toggle { border:1px solid CanvasText; }
    .aov-bar { border-bottom:1px solid CanvasText; }
}

/* Scrollable shop navigation and compact brand lockup. */
html[data-aov-theme] body.premium-front #premium-sidebar {
    --side-ink: #fff4f5;
    --side-muted: #d0bcca;
    --side-line: #684d61;
    --side-accent: #ffbfb6;
    --side-fill: #2b2030;
    --side-active: #382638;
    background: #1e1724 !important;
    border-color: var(--side-line) !important;
}
html[data-aov-theme="light"] body.premium-front #premium-sidebar {
    --side-ink: #35242e;
    --side-muted: #664d5d;
    --side-line: #d9bfca;
    --side-accent: #8b3152;
    --side-fill: #f7eded;
    --side-active: #f4e1e6;
    background: #fff9f8 !important;
}
html body.premium-front #premium-sidebar .premium-sidebar-scroll {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    scroll-padding: 8px;
    padding-bottom: 14px !important;
}
html body.premium-front #premium-sidebar :is(.premium-sidebar-scroll,.scroll-content)::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
html body.premium-front #premium-sidebar .premium-sidebar-scroll:focus-visible {
    outline: 2px solid var(--side-accent);
    outline-offset: -2px;
}
html body.premium-front #premium-sidebar .iq-sidebar-logo {
    flex: 0 0 80px;
    height: 80px !important;
    min-height: 80px !important;
    padding: 12px 17px !important;
}
html body.premium-front #premium-sidebar .header-logo {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 10px;
    height: 47px !important;
    min-width: 0 !important;
    color: var(--side-ink) !important;
    text-decoration: none;
}
html body.premium-front #premium-sidebar .header-logo > .aov-sidebar-emblem {
    flex: 0 0 38px !important;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px;
    color: #321725 !important;
    background: linear-gradient(145deg,#ffddbd,#ec9bb9);
    box-shadow: inset 0 1px #fff9;
    font-size: 23px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -.05em !important;
}
html body.premium-front #premium-sidebar .header-logo > .aov-sidebar-wordmark {
    color: var(--side-ink) !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -.035em !important;
    white-space: nowrap;
}
html body.premium-front #premium-sidebar .header-logo .aov-sidebar-wordmark > span {
    color: var(--side-accent) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    letter-spacing: -.015em !important;
}
html body.premium-front #premium-sidebar .side-menu > .aov-sidebar-wallet {
    display: flex;
    min-height: 64px;
    justify-content: space-between;
    align-items: end;
    gap: 6px;
    width: auto;
    margin: 0 13px 12px !important;
    padding: 9px 11px !important;
    border: 1px solid var(--side-line);
    border-radius: 11px;
    background: var(--side-fill) !important;
    color: var(--side-ink);
}
.aov-sidebar-wallet > div { display: grid; gap: 3px; min-width: 0; }
.aov-sidebar-wallet > div > span, .aov-sidebar-wallet-discount { color: var(--side-muted); font-size: 11px; line-height: 1.35; }
.aov-sidebar-wallet [data-wallet-balance] { color: var(--side-ink) !important; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.aov-sidebar-wallet-discount { white-space: nowrap; padding-bottom: 2px; }
.aov-sidebar-wallet-discount b { color: var(--side-accent); }
html body.premium-front #premium-sidebar .side-menu > li > a {
    min-height: 44px !important;
    margin: 1px 12px !important;
    padding: 8px 11px !important;
    border-radius: 8px;
    gap: 10px;
    color: var(--side-ink) !important;
    font-size: 13px !important;
    font-weight: 620 !important;
}
html body.premium-front #premium-sidebar .side-menu > li > a > i:first-child {
    color: var(--side-muted);
    font-size: 15px !important;
}
html[data-aov-theme] body.premium-front #premium-sidebar .side-menu > li > a > .ml-2 { color: var(--side-ink) !important; }
html body.premium-front #premium-sidebar .side-menu > li > a:is(:hover,:focus-visible,[aria-expanded="true"]),
html body.premium-front #premium-sidebar .side-menu > li.active > a {
    background: var(--side-active) !important;
    color: var(--side-ink) !important;
}
html body.premium-front #premium-sidebar .side-menu > li.active > a {
    box-shadow: inset 2px 0 var(--side-accent);
}
html body.premium-front #premium-sidebar :is(a,button):focus-visible {
    outline: 2px solid var(--side-accent) !important;
    outline-offset: -2px;
}
html body.premium-front #premium-sidebar .side-menu > li.px-3:not(.aov-sidebar-wallet) {
    margin: 10px 16px 3px !important;
    padding: 6px 3px 2px !important;
    border-top: 1px solid var(--side-line);
    border-radius: 0 !important;
    color: var(--side-muted) !important;
}
html body.premium-front #premium-sidebar .side-menu > li > a.aov-sidebar-select {
    margin: 1px 12px !important;
    min-height: 44px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}
html body.premium-front #premium-sidebar .side-menu > li > a.aov-sidebar-select:hover {
    background: var(--side-fill) !important;
}
html body.premium-front #premium-sidebar .aov-sidebar-select-copy small { color: var(--side-muted); font-size: 10px !important; }
html body.premium-front #premium-sidebar .aov-sidebar-select-copy b { color: var(--side-ink); font-size: 12px !important; }
html body.premium-front #premium-sidebar .submenu a { color: var(--side-muted) !important; }
html body.premium-front #premium-sidebar .submenu a:hover { color: var(--side-ink) !important; background: var(--side-active) !important; }
html body.premium-front #premium-sidebar .premium-sidebar-close { min-height:44px; min-width:44px; top:17px; }

@media (min-width:1300px) {
    html body.premium-front.premium-rail #premium-sidebar .iq-sidebar-logo { padding: 12px 19px !important; }
    html body.premium-front.premium-rail #premium-sidebar .header-logo { width:38px !important; }
    html body.premium-front.premium-rail #premium-sidebar :is(.aov-sidebar-wordmark,.aov-sidebar-wallet) { display:none !important; }
    html body.premium-front.premium-rail #premium-sidebar .side-menu > li > a { justify-content:center !important; }
}
