/* ======================================================================
   AMPOLSHOP V10.1 — secure auth, Solar theme and final contrast contract
   Loaded after every legacy stylesheet.
   ====================================================================== */

:root[data-theme="solar"] {
    color-scheme: dark;
    --theme-page: #171a1f;
    --theme-page-alt: #22272e;
    --theme-panel: rgba(38, 43, 50, .96);
    --theme-panel-strong: #2d333b;
    --theme-panel-soft: #343a43;
    --theme-text: #f8fafc;
    --theme-muted: #d3d8df;
    --theme-faint: #aab2bd;
    --theme-line: rgba(248, 250, 252, .14);
    --theme-line-strong: rgba(250, 204, 21, .48);
    --theme-accent: #facc15;
    --theme-accent-2: #eab308;
    --theme-accent-3: #fde047;
    --theme-accent-soft: rgba(250, 204, 21, .14);
    --theme-accent-contrast: #171a1f;
    --theme-accent-text: #fde768;
    --theme-action-from: #eab308;
    --theme-action-to: #fde047;
    --theme-action-text: #171a1f;
    --theme-dark: #111318;
    --theme-dark-2: #20242a;
    --theme-on-dark: #ffffff;
    --theme-on-dark-muted: #d6dbe1;
    --theme-header: rgba(27, 30, 35, .94);
    --theme-shadow: rgba(0, 0, 0, .38);
    --theme-hero-glow: rgba(250, 204, 21, .23);
}

/* Dark themes use one explicit surface/foreground contract on every route. */
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app {
    color: var(--theme-text) !important;
    color-scheme: dark;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    .premium-panel,.glass-panel,.metric-card,.admin-surface,.admin-order-row,
    .ticket-row,.account-recent,.account-support,.account-activity,
    .ampol-product-permission-card,.checkout-card,.cart-summary,
    .product-info-panel,.product-support-panel,.ampol-mobile-order-card
) {
    color: var(--theme-text) !important;
    border-color: var(--theme-line) !important;
    background: linear-gradient(150deg, var(--theme-panel-strong), var(--theme-panel)) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    .text-white,.text-slate-900,.text-slate-800,.text-slate-700,
    .text-gray-900,.text-gray-800,.text-gray-700,
    .text-zinc-900,.text-zinc-800,.text-zinc-700,.text-zinc-100,.text-zinc-200
) {
    color: var(--theme-text) !important;
    -webkit-text-fill-color: var(--theme-text) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    .text-slate-600,.text-slate-500,.text-slate-400,
    .text-gray-600,.text-gray-500,.text-gray-400,
    .text-zinc-300,.text-zinc-400,.text-zinc-500,.text-zinc-600
) {
    color: var(--theme-muted) !important;
    -webkit-text-fill-color: var(--theme-muted) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(input,select,textarea,option) {
    color: var(--theme-text) !important;
    -webkit-text-fill-color: var(--theme-text) !important;
    border-color: var(--theme-line) !important;
    background-color: var(--theme-panel-strong) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(input,textarea)::placeholder {
    color: var(--theme-faint) !important;
    -webkit-text-fill-color: var(--theme-faint) !important;
    opacity: 1 !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .admin-table th {
    color: var(--theme-muted) !important;
    background: var(--theme-panel-soft) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .admin-table td {
    color: var(--theme-text) !important;
    background: transparent !important;
}

/* Semantic colors survive the broad dark-theme contract. */
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .status-green { color: #9be4be !important; -webkit-text-fill-color: #9be4be !important; }
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .status-yellow { color: #fcd66d !important; -webkit-text-fill-color: #fcd66d !important; }
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .status-red { color: #fda4af !important; -webkit-text-fill-color: #fda4af !important; }
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .status-blue { color: #8ed8ff !important; -webkit-text-fill-color: #8ed8ff !important; }
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .status-purple { color: #d8b4fe !important; -webkit-text-fill-color: #d8b4fe !important; }

/* Checkout and product pages must not retain hard-coded light backgrounds. */
html[data-theme] body.ampol-app.is-checkout-route .ampol-checkout-page {
    color: var(--theme-text) !important;
    background: linear-gradient(150deg, var(--theme-page), var(--theme-page-alt)) !important;
}
html[data-theme] body.ampol-app.is-checkout-route .ampol-checkout-page > .page-shell > header :is(h1,p,span) { color: var(--theme-text) !important; }
html[data-theme] body.ampol-app.is-product-route .product-rich-content,
html[data-theme] body.ampol-app.is-product-route .product-purchase-steps,
html[data-theme] body.ampol-app.is-product-route .product-feature-item { color: var(--theme-text) !important; }

/* Auth experience. */
.ampol-auth-body { min-height: 100vh; background: #0f1318 !important; }
.auth-page { overflow: hidden; background: radial-gradient(circle at 15% 5%,rgba(250,204,21,.12),transparent 25rem),radial-gradient(circle at 90% 85%,rgba(125,211,168,.10),transparent 25rem),linear-gradient(145deg,#0d1116,#171c23) !important; }
.auth-page::before { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom,#000,transparent 90%); }
.auth-main-card { border-color: rgba(255,255,255,.12) !important; background: linear-gradient(145deg,rgba(37,44,53,.94),rgba(22,27,34,.96)) !important; box-shadow: 0 32px 110px rgba(0,0,0,.52),0 0 60px rgba(125,211,168,.07) !important; }
.auth-card-content { position: relative; }
.auth-heading h1 { margin-top: .75rem; color: #f8fafc; font-size: clamp(1.65rem,5vw,2.35rem); font-weight: 1000; line-height: 1.35; letter-spacing: -.035em; }
.auth-heading h1 span { color: #9be4be; }
.auth-heading > p:last-child { margin-top: .65rem; color: #b8c2ca; font-size: .78rem; font-weight: 600; line-height: 2; }
.auth-status { margin-top: 1rem; border: 1px solid rgba(125,211,168,.24); border-radius: .9rem; padding: .75rem; color: #9be4be !important; background: rgba(125,211,168,.08); font-size: .72rem; font-weight: 800; }
.auth-mode-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .35rem; margin-top: 1.25rem; padding: .3rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; background: rgba(0,0,0,.2); }
.auth-mode-tabs button { min-height: 2.8rem; border-radius: .75rem; color: #aab5be; font-size: .72rem; font-weight: 900; transition: .2s ease; }
.auth-mode-tabs button.is-active { color: #102019; background: linear-gradient(120deg,#7dd3a8,#b3ebce); box-shadow: 0 10px 28px rgba(125,211,168,.16); }
.auth-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.auth-form .field { margin-top: .45rem; min-height: 3.3rem; border-color: rgba(255,255,255,.12) !important; color: #f8fafc !important; background: rgba(9,12,16,.58) !important; }
.auth-field-wrap { position: relative; }
.auth-field-wrap > i { position: absolute; z-index: 2; inset-inline-start: .9rem; top: 50%; transform: translateY(-38%); color: #7dd3a8; font-size: .7rem; font-style: normal; font-weight: 1000; pointer-events: none; }
.auth-field-wrap .field { padding-inline-start: 2.45rem; }
.auth-error { display: block; margin-top: .4rem; color: #fda4af !important; font-size: .68rem; font-weight: 800; line-height: 1.7; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-form-row > a,.auth-switch a,.auth-back,.otp-resend button { color: #9be4be; font-size: .7rem; font-weight: 900; }
.auth-remember { display: inline-flex; align-items: center; gap: .5rem; color: #b8c2ca !important; font-size: .7rem; font-weight: 700; }
.auth-remember input { width: 1rem; height: 1rem; border-radius: .3rem; accent-color: #7dd3a8; }
.auth-submit { width: 100%; min-height: 3.25rem; }
.auth-submit > span:last-child { margin-inline-start: auto; }
.auth-submit:disabled { filter: saturate(.2); opacity: .55; }
.auth-security-note { display: flex; align-items: center; gap: .7rem; border: 1px solid rgba(125,211,168,.18); border-radius: 1rem; padding: .75rem; background: rgba(125,211,168,.06); }
.auth-security-note > span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: .65rem; color: #102019; background: #7dd3a8; font-weight: 1000; }
.auth-security-note b,.auth-security-note small { display: block; }
.auth-security-note b { color: #eef5f1; font-size: .7rem; }
.auth-security-note small { margin-top: .15rem; color: #aab5be; font-size: .58rem; line-height: 1.7; }
.auth-switch { margin-top: 1.25rem; text-align: center; color: #87939e !important; font-size: .72rem; }

/* OTP entry inspired by the supplied compact mobile interaction. */
.otp-card .auth-heading { margin-top: 1rem; }
.otp-card .eyebrow { justify-content: center; }
.otp-icon { position: relative; display: grid; width: 4.4rem; height: 4.4rem; margin-inline: auto; place-items: center; border: 1px solid rgba(125,211,168,.28); border-radius: 1.35rem; color: #b3ebce; background: rgba(125,211,168,.09); box-shadow: 0 0 45px rgba(125,211,168,.13); }
.otp-icon span { position: absolute; inset: .55rem; border: 1px dashed rgba(125,211,168,.35); border-radius: 1rem; animation: ampolOtpSpin 8s linear infinite; }
.otp-icon b { letter-spacing: .13rem; }
.otp-inputs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(.3rem,2vw,.55rem); }
.otp-inputs input { width: 100%; min-width: 0; aspect-ratio: .84; border: 1px solid rgba(255,255,255,.13) !important; border-radius: .85rem; color: #f8fafc !important; background: #10151b !important; text-align: center; font-size: clamp(1.15rem,5vw,1.6rem); font-weight: 1000; caret-color: #7dd3a8; outline: none; transition: .18s ease; }
.otp-inputs input:is(:focus,:not(:placeholder-shown)) { border-color: #7dd3a8 !important; box-shadow: 0 0 0 3px rgba(125,211,168,.12),0 0 22px rgba(125,211,168,.12); transform: translateY(-2px); }
.otp-timer { display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.09); border-radius: .9rem; padding: .7rem .85rem; background: rgba(0,0,0,.18); }
.otp-timer span { color: #b3ebce; font-family: monospace; font-size: 1rem; font-weight: 1000; direction: ltr; }
.otp-timer small { color: #9ca8b2; font-size: .62rem; }
.otp-timer.is-expired span { color: #fda4af; }
.otp-resend { margin-top: 1rem; text-align: center; }
.otp-resend button:disabled { color: #6f7c87; cursor: not-allowed; }
.auth-back { display: block; margin-top: .85rem; text-align: center; color: #9ca8b2; }
@keyframes ampolOtpSpin { to { transform: rotate(360deg); } }

/* Account phone is never requested again inside product forms. */
.account-phone-notice { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--theme-line-strong); border-radius: 1rem; padding: .8rem; color: var(--theme-text); background: var(--theme-accent-soft); }
.account-phone-notice > span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: .65rem; color: var(--theme-accent-contrast); background: var(--theme-accent); font-weight: 1000; }
.account-phone-notice b,.account-phone-notice small { display: block; }
.account-phone-notice b { font-size: .7rem; font-weight: 950; }
.account-phone-notice small { margin-top: .15rem; color: var(--theme-muted); font-size: .58rem; }
.account-identity-lock { border: 1px solid var(--theme-line); border-radius: 1rem; padding: 1rem; background: var(--theme-panel-soft); }
.account-identity-lock span,.account-identity-lock b,.account-identity-lock small { display: block; }
.account-identity-lock span { color: var(--theme-muted); font-size: .62rem; font-weight: 900; }
.account-identity-lock b { margin-top: .45rem; color: var(--theme-text); font-size: .86rem; font-weight: 1000; }
.account-identity-lock small { margin-top: .4rem; color: var(--theme-faint); font-size: .58rem; }

/* Order center: clicking the value itself copies it. */
.ampol-quick-data > div.is-copyable span[role="button"] { cursor: copy; border-radius: .65rem; outline: 1px dashed color-mix(in srgb,var(--theme-accent) 38%,transparent); outline-offset: .25rem; transition: .18s ease; }
.ampol-quick-data > div.is-copyable span[role="button"]:is(:hover,:focus-visible) { color: var(--theme-accent-text) !important; background: var(--theme-accent-soft); outline-color: var(--theme-accent); }
.ampol-quick-data > div > i { align-self: center; color: var(--theme-faint); font-size: .5rem; font-style: normal; font-weight: 800; }
.ampol-quick-copy-value { width: fit-content; max-width: 100%; cursor: copy; border-radius: .45rem; outline: 1px dashed transparent; outline-offset: .18rem; }
.ampol-quick-copy-value:is(:hover,:focus-visible) { color: var(--theme-accent-text) !important; outline-color: var(--theme-line-strong); }
.ampol-quick-secrets { margin-top: .65rem; }
.ampol-quick-data > div.is-sensitive { border-color: color-mix(in srgb,#f59e0b 32%,var(--theme-line)); background: color-mix(in srgb,#f59e0b 7%,var(--theme-panel-soft)); }
.ampol-quick-data > div.is-sensitive > small { color: #fcd66d !important; }
.ampol-quick-data > div.is-sensitive span[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* Every long admin dialog remains usable on mobile. */
.ampol-issue-modal,.ampol-dialog-panel { max-height: min(88vh,52rem); overflow: hidden; }
.ampol-issue-modal__body,.ampol-dialog-panel__body { overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 640px) {
    .auth-page { align-items: flex-start; }
    .auth-main-card { border-radius: 1.45rem !important; padding: 1.1rem !important; }
    .auth-heading h1 { font-size: 1.65rem; }
    .auth-form { gap: .8rem; }
    .otp-inputs { gap: .28rem; }
    .otp-inputs input { border-radius: .65rem; }
    .ampol-quick-data > div.is-copyable span[role="button"] { display: flex; min-height: 2.75rem; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    .otp-icon span,.otp-inputs input,.ampol-quick-data > div.is-copyable span[role="button"] { animation: none !important; transition: none !important; }
}

/* ======================================================================
   AMPOLSHOP V10.2 — dark-theme surface closure and theme-aware loader
   ====================================================================== */

/* A dark theme is a complete page contract, not only a body background. */
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    .site-canvas,.storefront-page,.product-service-page,.dashboard-shell,
    .ampol-orders-page,.ampol-admin-ui,.ampol-checkout-page
) {
    color: var(--theme-text) !important;
    background:
        radial-gradient(circle at 8% 0%,var(--theme-accent-soft),transparent 29rem),
        linear-gradient(150deg,var(--theme-page),var(--theme-page-alt)) !important;
}

/* Legacy utility cards used a light gradient; replacing background-color
   alone cannot remove that image, so the complete background is reset. */
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    [class~="bg-white"],[class~="bg-white/5"],[class~="bg-white/10"],
    [class~="bg-white/70"],[class~="bg-white/75"],[class~="bg-white/85"],
    [class~="bg-white/90"],[class~="bg-white/95"],
    [class~="bg-white/[.02]"],[class~="bg-white/[.025]"],
    [class~="bg-white/[.03]"],[class~="bg-white/[.035]"],
    [class~="bg-white/[.04]"],[class~="bg-white/[.05]"],
    [class~="bg-slate-50"],[class~="bg-gray-50"],
    [class~="bg-emerald-50"],[class~="bg-emerald-50/40"],
    [class~="bg-emerald-50/50"],[class~="bg-emerald-50/60"],
    [class~="bg-emerald-50/70"],[class~="bg-emerald-50/90"]
):not(.btn-primary):not(.status-pill):not(.ampol-brand__mark) {
    color: var(--theme-text) !important;
    border-color: var(--theme-line) !important;
    background: var(--theme-panel-soft) !important;
}

/* Storefront hero, statistics, service cards and products. */
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    .storefront-hero,.storefront-hero__stats,.store-search-box form,
    .store-search-results,.service-category-card,.store-filter-panel,
    .store-empty-state,.store-product-card,.product-package-chip
) {
    color: var(--theme-text) !important;
    border-color: var(--theme-line) !important;
    background: linear-gradient(150deg,var(--theme-panel-strong),var(--theme-panel)) !important;
    box-shadow: 0 18px 48px var(--theme-shadow) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .storefront-hero {
    background:
        radial-gradient(circle at 82% 42%,var(--theme-hero-glow),transparent 25rem),
        linear-gradient(145deg,var(--theme-panel-strong),var(--theme-page-alt)) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    .storefront-hero h1,.storefront-hero__core b,.storefront-hero__stats b,
    .service-category-card strong,.store-product-card h3,
    .store-product-card__title,.product-package-chip strong
) {
    color: var(--theme-text) !important;
    -webkit-text-fill-color: var(--theme-text) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app :is(
    .storefront-hero__copy > p,.storefront-trust-row span,
    .storefront-hero__stats small,.service-category-card small,
    .service-category-card > span:last-child > span,
    .store-product-card p,.product-package-chip small
) {
    color: var(--theme-muted) !important;
    -webkit-text-fill-color: var(--theme-muted) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .service-category-card__icon,
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .service-category-card__badge {
    color: var(--theme-accent-text) !important;
    border-color: var(--theme-line-strong) !important;
    background: var(--theme-accent-soft) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .service-category-card svg {
    color: var(--theme-accent-text) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .storefront-hero__core {
    color: var(--theme-text) !important;
    border-color: var(--theme-line-strong) !important;
    background: linear-gradient(145deg,var(--theme-panel-soft),var(--theme-panel-strong)) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .store-product-card__visual-bottom {
    background: linear-gradient(to top,var(--theme-panel-strong),transparent) !important;
}

/* Dashboard table product links and support tickets had a legacy white
   background-image. Reset the shorthand so no pale rectangle survives. */
:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .account-recent table td > :is(a,div,span) {
    color: var(--theme-text) !important;
    background: transparent !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .account-support a {
    color: var(--theme-text) !important;
    border-color: var(--theme-line) !important;
    background: var(--theme-panel-soft) !important;
}

:root:is([data-theme="graphite"],[data-theme="solar"]) body.ampol-app .account-support a :is(p,b,strong) {
    color: var(--theme-text) !important;
    -webkit-text-fill-color: var(--theme-text) !important;
}

/* The navigation loader follows every selected theme, including live theme
   previews in the dashboard. No fixed emerald color remains in its chrome. */
html[data-theme] #ampol-page-loader {
    color: var(--theme-text) !important;
    background: color-mix(in srgb,var(--theme-page) 90%,transparent) !important;
}

html[data-theme] .ampol-v8-loader::before {
    border-color: var(--theme-line-strong) !important;
    box-shadow:
        inset 0 0 60px color-mix(in srgb,var(--theme-accent) 5%,transparent),
        0 0 70px color-mix(in srgb,var(--theme-accent) 10%,transparent) !important;
}

html[data-theme] .ampol-v8-loader__ring {
    border-color: var(--theme-line-strong) !important;
}

html[data-theme] .ampol-v8-loader__ring.is-inner {
    border-color: var(--theme-line) !important;
}

html[data-theme] .ampol-v8-loader__token {
    color: var(--theme-accent-text) !important;
    border-color: var(--theme-line-strong) !important;
    background: linear-gradient(145deg,var(--theme-panel-soft),var(--theme-panel-strong)) !important;
    box-shadow: 0 10px 30px var(--theme-shadow),0 0 25px var(--theme-accent-soft) !important;
}

html[data-theme] .ampol-v8-loader__inner-token {
    color: var(--theme-accent-text) !important;
    background: var(--theme-accent-soft) !important;
    box-shadow: 0 0 25px var(--theme-accent-soft) !important;
}

html[data-theme] .ampol-v8-loader__core {
    color: var(--theme-text) !important;
    border-color: var(--theme-line-strong) !important;
    background: linear-gradient(155deg,var(--theme-panel-strong),var(--theme-panel)) !important;
    box-shadow: 0 25px 80px var(--theme-shadow),0 0 45px var(--theme-accent-soft) !important;
}

html[data-theme] .ampol-v8-loader__mark {
    color: var(--theme-action-text) !important;
    background: linear-gradient(145deg,var(--theme-accent),var(--theme-accent-2)) !important;
    box-shadow: 0 0 28px var(--theme-accent-soft) !important;
}

html[data-theme] .ampol-v8-loader__core b { color: var(--theme-text) !important; }
html[data-theme] .ampol-v8-loader__core small { color: var(--theme-muted) !important; }
html[data-theme] .ampol-v8-loader__dots i { background: var(--theme-accent) !important; }


/* ======================================================================
   AMPOLSHOP V10.3 — premium auth scene and server-driven OTP verification
   ====================================================================== */
.ampol-auth-body {
    min-height: 100vh;
    background: #070a0d !important;
}

.auth-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: auto;
    padding: clamp(1rem,3vw,2.5rem);
    isolation: isolate;
    background:
        radial-gradient(circle at 8% 8%,rgba(33,238,139,.14),transparent 30rem),
        radial-gradient(circle at 92% 88%,rgba(16,94,62,.18),transparent 34rem),
        linear-gradient(145deg,#050709 0%,#0a0e12 46%,#08130f 100%) !important;
}

.auth-page::before {
    display: none;
}

.auth-page__mesh {
    position: fixed;
    z-index: -3;
    inset: 0;
    opacity: .26;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center,#000,transparent 82%);
}

.auth-page__glow {
    position: fixed;
    z-index: -2;
    width: min(38vw,34rem);
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(100px);
    opacity: .18;
    pointer-events: none;
    animation: ampolAuthGlow 8s ease-in-out infinite alternate;
}

.auth-page__glow.is-start { top: -16%; left: -10%; background: #17dc80; }
.auth-page__glow.is-end { right: -12%; bottom: -20%; background: #08744b; animation-delay: -4s; }

.auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.06fr) minmax(25rem,.94fr);
    width: min(100%,74rem);
    min-height: min(48rem,calc(100vh - 3rem));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 2.4rem;
    background: rgba(12,16,20,.88);
    box-shadow: 0 42px 140px rgba(0,0,0,.62),0 0 0 1px rgba(26,232,133,.025);
    backdrop-filter: blur(24px);
}

.auth-showcase {
    position: relative;
    display: flex;
    min-height: 43rem;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(1.4rem,3vw,2.7rem);
    border-inline-end: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 52% 43%,rgba(31,235,137,.18),transparent 18rem),
        linear-gradient(150deg,rgba(20,34,28,.98),rgba(7,12,11,.98));
}

.auth-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(115deg,transparent 0 48%,rgba(255,255,255,.045) 49% 50%,transparent 51%),
        radial-gradient(circle at 50% 45%,transparent 0 13rem,rgba(34,239,143,.09) 13.05rem 13.15rem,transparent 13.2rem);
    background-size: 11rem 11rem,auto;
}

.auth-showcase__top {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #94a39c;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.auth-showcase__top b { margin-inline-start: auto; color: #4d5e55; font-family: monospace; }
.auth-live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #28e98d; box-shadow: 0 0 0 5px rgba(40,233,141,.09),0 0 24px rgba(40,233,141,.65); animation: ampolLiveDot 1.8s ease-in-out infinite; }

.auth-motion-scene {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 27rem;
    place-items: center;
    perspective: 1000px;
}

.auth-motion-scene__orbit {
    position: absolute;
    border: 1px solid rgba(53,239,149,.16);
    border-radius: 50%;
    pointer-events: none;
}

.auth-motion-scene__orbit.is-outer { width: 24rem; height: 24rem; animation: ampolAuthOrbit 24s linear infinite; }
.auth-motion-scene__orbit.is-inner { width: 18.2rem; height: 18.2rem; border-style: dashed; animation: ampolAuthOrbit 17s linear infinite reverse; }

.auth-motion-scene__orbit::before,.auth-motion-scene__orbit::after {
    content: '';
    position: absolute;
    width: .7rem;
    height: .7rem;
    border: 2px solid #8cf5be;
    border-radius: 50%;
    background: #0b1510;
    box-shadow: 0 0 20px rgba(56,239,151,.7);
}

.auth-motion-scene__orbit::before { top: 13%; left: 13%; }
.auth-motion-scene__orbit::after { right: 7%; bottom: 25%; }

.auth-motion-scene__particle {
    position: absolute;
    width: .32rem;
    height: .32rem;
    border-radius: 50%;
    background: #baf9d5;
    box-shadow: 0 0 18px rgba(100,246,169,.8);
    animation: ampolAuthParticle 4s ease-in-out infinite alternate;
}

.auth-motion-scene__particle.is-one { top: 12%; left: 22%; }
.auth-motion-scene__particle.is-two { right: 16%; bottom: 18%; animation-delay: -1.4s; }
.auth-motion-scene__particle.is-three { top: 44%; right: 7%; animation-delay: -2.7s; }

.auth-verify-device {
    position: relative;
    width: min(19.5rem,82%);
    padding: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 2rem;
    background: linear-gradient(155deg,rgba(23,31,28,.97),rgba(8,12,12,.98));
    box-shadow: 0 30px 90px rgba(0,0,0,.55),0 0 55px rgba(31,232,137,.12);
    transform: rotateY(-6deg) rotateX(3deg);
    animation: ampolAuthDevice 5.5s ease-in-out infinite alternate;
}

.auth-verify-device::after {
    content: '';
    position: absolute;
    inset: -60% -20%;
    pointer-events: none;
    background: linear-gradient(105deg,transparent 42%,rgba(255,255,255,.08) 49%,transparent 56%);
    transform: translateX(-55%);
    animation: ampolDeviceSheen 5.5s ease-in-out infinite;
}

.auth-verify-device__head { display: flex; align-items: center; gap: .65rem; }
.auth-verify-device__head > div { min-width: 0; }
.auth-verify-device__head b,.auth-verify-device__head small { display: block; }
.auth-verify-device__head b { color: #f4fbf7; font-size: .72rem; letter-spacing: .025em; }
.auth-verify-device__head small { margin-top: .15rem; color: #687870; font-size: .5rem; }
.auth-verify-device__head > i { width: .45rem; height: .45rem; margin-inline-start: auto; border-radius: 50%; background: #35ee98; box-shadow: 0 0 15px rgba(53,238,152,.8); }

.auth-mini-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .75rem;
    color: #031009;
    background: linear-gradient(145deg,#57f4a7,#1bbd6e);
    font-size: .9rem;
    font-weight: 1000;
    box-shadow: 0 10px 26px rgba(30,222,128,.2);
}

.auth-verify-device__shield {
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    margin: 1.35rem auto .8rem;
    place-items: center;
    border: 1px solid rgba(49,238,147,.18);
    border-radius: 1.75rem;
    color: #82f3b8;
    background: rgba(38,220,128,.07);
    box-shadow: inset 0 0 34px rgba(30,222,128,.06),0 0 42px rgba(30,222,128,.08);
}

.auth-verify-device__shield svg { width: 3.45rem; height: 3.45rem; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-verify-device > p { color: #7d8b84; text-align: center; font-size: .56rem; font-weight: 800; }

.auth-demo-code { display: grid; grid-template-columns: repeat(6,1fr); gap: .38rem; margin-top: .8rem; }
.auth-demo-code span { display: grid; aspect-ratio: .82; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: .65rem; color: #ecfff5; background: rgba(0,0,0,.3); font-family: monospace; font-size: .9rem; font-weight: 1000; }
.auth-demo-code i { opacity: 0; font-style: normal; transform: translateY(100%) scale(.7); animation: ampolDemoDigit 5.6s ease-in-out infinite; }
.auth-demo-code span:nth-child(2) i { animation-delay: .12s; }
.auth-demo-code span:nth-child(3) i { animation-delay: .24s; }
.auth-demo-code span:nth-child(4) i { animation-delay: .36s; }
.auth-demo-code span:nth-child(5) i { animation-delay: .48s; }
.auth-demo-code span:nth-child(6) i { animation-delay: .60s; }

.auth-demo-verify {
    position: relative;
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .9rem;
    overflow: hidden;
    border: 1px solid rgba(45,232,141,.18);
    border-radius: .8rem;
    color: #baf8d4;
    background: rgba(34,208,119,.07);
    font-size: .55rem;
    letter-spacing: .12em;
}

.auth-demo-verify::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(67,243,156,.12),transparent); transform: translateX(-100%); animation: ampolDemoScan 5.6s ease-in-out infinite; }
.auth-demo-verify__loader { width: .9rem; height: .9rem; border: 2px solid rgba(90,241,164,.18); border-top-color: #65f2aa; border-radius: 50%; animation: ampolDemoLoader 5.6s linear infinite; }
.auth-demo-verify svg { position: absolute; width: 1.1rem; height: 1.1rem; opacity: 0; stroke: #07120c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; border-radius: 50%; background: #4ff09e; padding: .15rem; animation: ampolDemoCheck 5.6s ease-in-out infinite; }

.auth-showcase__copy { position: relative; z-index: 3; }
.auth-showcase__copy > span { color: #55efa2; font-size: .64rem; font-weight: 950; letter-spacing: .04em; }
.auth-showcase__copy h2 { margin-top: .55rem; color: #f4faf7; font-size: clamp(1.7rem,3.2vw,3rem); font-weight: 1000; line-height: 1.15; letter-spacing: -.04em; }
.auth-showcase__copy h2 strong { color: #4ce99a; font-weight: inherit; }
.auth-showcase__copy p { max-width: 29rem; margin-top: .8rem; color: #8b9992; font-size: .7rem; font-weight: 650; line-height: 2; }

.auth-panel-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.2rem,3vw,2.7rem);
    background:
        radial-gradient(circle at 90% 5%,rgba(41,227,137,.07),transparent 18rem),
        linear-gradient(150deg,rgba(20,25,30,.98),rgba(12,16,20,.98));
}

.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.4rem,3vh,2.5rem); }
.auth-brand { display: inline-flex; align-items: center; gap: .7rem; color: #f4f8f6; font-size: 1rem; font-weight: 1000; letter-spacing: -.02em; }
.auth-brand b { color: #59eaa3; }
.auth-brand__mark { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 1px solid rgba(103,242,170,.35); border-radius: .9rem; color: #04130b; background: linear-gradient(145deg,#6af2ad,#20bd71); box-shadow: 0 12px 28px rgba(31,213,124,.17); }
.auth-language { display: inline-flex; min-height: 2.5rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.1); border-radius: .8rem; padding: 0 .8rem; color: #a8b4ae; background: rgba(255,255,255,.035); font-size: .62rem; font-weight: 900; transition: .2s ease; }
.auth-language:hover { color: #dffbed; border-color: rgba(82,238,157,.3); background: rgba(48,224,137,.07); }

.auth-main-card {
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.auth-heading h1 { font-size: clamp(1.7rem,4vw,2.35rem); }
.auth-heading h1 span { color: #5bedaa; }
.auth-heading > p:last-child { color: #9facb5; }
.auth-mode-tabs { border-color: rgba(255,255,255,.09); background: rgba(0,0,0,.25); }
.auth-mode-tabs button.is-active { color: #04130b; background: linear-gradient(120deg,#61efa8,#28c779); box-shadow: 0 10px 32px rgba(36,215,126,.16); }
.auth-form .field { border-color: rgba(255,255,255,.105) !important; border-radius: .9rem; background: rgba(5,8,10,.56) !important; }
.auth-form .field:focus { border-color: rgba(82,239,161,.7) !important; box-shadow: 0 0 0 4px rgba(61,228,145,.09) !important; }
.auth-security-note { border-color: rgba(68,235,151,.17); background: rgba(47,216,132,.055); }
.auth-security-note > span { color: #04130b; background: #50e99d; }

.auth-copyright { margin-top: clamp(1.2rem,3vh,2rem); color: #52605a !important; text-align: center; font-size: .56rem; font-weight: 750; }

/* Real OTP result animation: server response controls every state. */
.otp-verification {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 6.1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 1.25rem;
    padding: .85rem 1rem;
    background: linear-gradient(145deg,rgba(4,8,9,.52),rgba(24,31,29,.55));
    transition: border-color .28s ease,background .28s ease,box-shadow .28s ease;
}

.otp-verification__orb {
    position: relative;
    display: grid;
    width: 4.4rem;
    height: 4.4rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 1.35rem;
    color: #7deeb4;
    background: rgba(53,224,140,.065);
    box-shadow: inset 0 0 28px rgba(38,215,129,.05),0 0 30px rgba(38,215,129,.05);
}

.otp-verification__ring { position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .18; }
.otp-verification__ring.is-one { inset: .38rem; border-style: dashed; }
.otp-verification__ring.is-two { inset: .78rem; opacity: .11; }
.otp-verification__symbol { position: absolute; width: 2.65rem; height: 2.65rem; opacity: 0; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transform: scale(.65); transition: opacity .24s ease,transform .34s cubic-bezier(.2,.8,.2,1); }
.otp-verification.is-idle .otp-verification__symbol.is-idle,
.otp-verification.is-checking .otp-verification__symbol.is-checking,
.otp-verification.is-success .otp-verification__symbol.is-success,
.otp-verification.is-error .otp-verification__symbol.is-error { opacity: 1; transform: scale(1); }

.otp-verification__copy { min-width: 0; }
.otp-verification__copy b,.otp-verification__copy small { display: block; }
.otp-verification__copy b { color: #eef8f3; font-size: .78rem; font-weight: 1000; transition: color .2s ease; }
.otp-verification__copy small { margin-top: .35rem; color: #8c9a93; font-size: .59rem; font-weight: 650; line-height: 1.85; }

.otp-verification.is-checking { border-color: rgba(84,237,161,.24); box-shadow: 0 0 36px rgba(45,224,137,.065); }
.otp-verification.is-checking .otp-verification__ring.is-one { opacity: .58; animation: ampolOtpOrbit .8s linear infinite; }
.otp-verification.is-checking .otp-verification__ring.is-two { opacity: .28; animation: ampolOtpOrbit 1.25s linear infinite reverse; }
.otp-verification.is-checking .otp-verification__symbol.is-checking { animation: ampolOtpBreathe .85s ease-in-out infinite alternate; }

.otp-verification.is-success { border-color: rgba(52,238,146,.4); background: linear-gradient(145deg,rgba(18,89,57,.26),rgba(13,42,31,.56)); box-shadow: 0 0 45px rgba(44,228,139,.11); }
.otp-verification.is-success .otp-verification__orb { color: #71f2ad; background: rgba(46,225,137,.13); animation: ampolOtpSuccessPop .55s cubic-bezier(.18,.89,.32,1.28); }
.otp-verification.is-success .otp-verification__copy b { color: #8af4ba; }
.otp-verification.is-success .otp-verification__symbol.is-success path:last-child { stroke-dasharray: 32; stroke-dashoffset: 32; animation: ampolOtpDraw .5s .16s ease forwards; }

.otp-verification.is-error { border-color: rgba(251,92,113,.42); background: linear-gradient(145deg,rgba(92,20,32,.27),rgba(42,13,20,.56)); box-shadow: 0 0 38px rgba(246,65,93,.1); animation: ampolOtpShake .42s ease; }
.otp-verification.is-error .otp-verification__orb { color: #ff7186; background: rgba(244,63,94,.12); }
.otp-verification.is-error .otp-verification__copy b { color: #ff91a2; }

.otp-card .auth-heading { margin-top: 1.15rem; }
.otp-inputs { gap: clamp(.3rem,1.3vw,.55rem); }
.otp-inputs input { aspect-ratio: .9; border-radius: .75rem; transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease; }
.otp-inputs input:disabled { cursor: wait; opacity: .78; }
.otp-inputs.is-checking input { border-color: rgba(77,234,155,.3) !important; background: rgba(36,115,77,.13) !important; animation: ampolOtpCell 1s ease-in-out infinite alternate; }
.otp-inputs.is-checking input:nth-child(2) { animation-delay: .08s; }
.otp-inputs.is-checking input:nth-child(3) { animation-delay: .16s; }
.otp-inputs.is-checking input:nth-child(4) { animation-delay: .24s; }
.otp-inputs.is-checking input:nth-child(5) { animation-delay: .32s; }
.otp-inputs.is-checking input:nth-child(6) { animation-delay: .4s; }
.otp-inputs.is-success input { border-color: rgba(69,240,151,.72) !important; color: #8ff5bd !important; background: rgba(30,150,89,.15) !important; box-shadow: 0 0 22px rgba(47,226,137,.09); }
.otp-inputs.is-error input { border-color: rgba(251,88,111,.64) !important; color: #ff97a7 !important; background: rgba(120,24,40,.14) !important; }

.otp-submit { position: relative; gap: .55rem; overflow: hidden; }
.otp-submit__spinner { width: 1rem; height: 1rem; flex: 0 0 auto; border: 2px solid rgba(2,20,11,.24); border-top-color: #02150b; border-radius: 50%; animation: ampolOtpOrbit .65s linear infinite; }
.otp-submit.is-success { color: #02150b !important; background: linear-gradient(120deg,#6ef2ad,#26cd79) !important; box-shadow: 0 14px 35px rgba(46,223,133,.18) !important; }
.otp-submit:disabled { pointer-events: none; }

@keyframes ampolAuthGlow { from { transform: translate3d(-3%,0,0) scale(.9); } to { transform: translate3d(7%,5%,0) scale(1.12); } }
@keyframes ampolLiveDot { 50% { opacity: .48; box-shadow: 0 0 0 9px rgba(40,233,141,0),0 0 30px rgba(40,233,141,.8); } }
@keyframes ampolAuthOrbit { to { transform: rotate(360deg); } }
@keyframes ampolAuthParticle { to { transform: translate3d(1rem,-1.4rem,0) scale(1.6); opacity: .35; } }
@keyframes ampolAuthDevice { to { transform: rotateY(5deg) rotateX(-2deg) translateY(-.65rem); } }
@keyframes ampolDeviceSheen { 0%,25% { transform: translateX(-60%); } 55%,100% { transform: translateX(58%); } }
@keyframes ampolDemoDigit { 0%,8% { opacity: 0; transform: translateY(100%) scale(.7); } 18%,73% { opacity: 1; transform: translateY(0) scale(1); } 83%,100% { opacity: 0; transform: translateY(-100%) scale(.7); } }
@keyframes ampolDemoScan { 0%,38% { transform: translateX(-110%); } 68%,100% { transform: translateX(110%); } }
@keyframes ampolDemoLoader { 0%,40% { opacity: 0; transform: rotate(0); } 46%,66% { opacity: 1; transform: rotate(420deg); } 72%,100% { opacity: 0; transform: rotate(600deg); } }
@keyframes ampolDemoCheck { 0%,66% { opacity: 0; transform: scale(.2); } 73%,84% { opacity: 1; transform: scale(1.15); } 91%,100% { opacity: 0; transform: scale(.7); } }
@keyframes ampolOtpOrbit { to { transform: rotate(360deg); } }
@keyframes ampolOtpBreathe { to { opacity: .5; transform: scale(.86) rotate(22deg); } }
@keyframes ampolOtpSuccessPop { 0% { transform: scale(.65); } 70% { transform: scale(1.09); } 100% { transform: scale(1); } }
@keyframes ampolOtpDraw { to { stroke-dashoffset: 0; } }
@keyframes ampolOtpShake { 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
@keyframes ampolOtpCell { to { transform: translateY(-3px); box-shadow: 0 0 24px rgba(45,227,139,.13); } }

@media (max-width: 900px) {
    .auth-page { display: block; padding: .75rem; }
    .auth-shell { grid-template-columns: 1fr; width: min(100%,36rem); min-height: auto; margin-inline: auto; border-radius: 1.8rem; }
    .auth-showcase { min-height: 15rem; padding: 1.2rem; border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .auth-motion-scene { min-height: 11.5rem; }
    .auth-motion-scene__orbit.is-outer { width: 17rem; height: 17rem; }
    .auth-motion-scene__orbit.is-inner { width: 13rem; height: 13rem; }
    .auth-verify-device { width: 18rem; padding: .9rem; border-radius: 1.5rem; transform: scale(.7) rotateY(-4deg); animation-name: ampolAuthDeviceCompact; }
    .auth-verify-device__shield { width: 4rem; height: 4rem; margin: .8rem auto .5rem; border-radius: 1.2rem; }
    .auth-verify-device__shield svg { width: 2.5rem; height: 2.5rem; }
    .auth-showcase__copy { display: none; }
    .auth-panel-column { padding: clamp(1.1rem,5vw,2rem); }
    .auth-topbar { margin-bottom: 1.5rem; }
    @keyframes ampolAuthDeviceCompact { to { transform: scale(.73) rotateY(4deg) translateY(-.35rem); } }
}

@media (max-width: 520px) {
    .auth-page { padding: 0; }
    .auth-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .auth-showcase { min-height: 11.25rem; padding: .9rem 1rem; }
    .auth-showcase__top { font-size: .52rem; }
    .auth-motion-scene { min-height: 8.6rem; }
    .auth-motion-scene__orbit.is-outer { width: 13.5rem; height: 13.5rem; }
    .auth-motion-scene__orbit.is-inner { width: 10.5rem; height: 10.5rem; }
    .auth-motion-scene__particle { display: none; }
    .auth-verify-device { width: 17rem; transform: scale(.52); animation-name: ampolAuthDevicePhone; }
    .auth-panel-column { justify-content: flex-start; padding: 1rem; }
    .auth-topbar { margin-bottom: 1.25rem; }
    .auth-brand { font-size: .85rem; }
    .auth-brand__mark { width: 2.25rem; height: 2.25rem; border-radius: .72rem; }
    .auth-language { min-height: 2.25rem; }
    .auth-heading h1 { font-size: 1.55rem; }
    .auth-heading > p:last-child { font-size: .7rem; }
    .auth-form { gap: .78rem; }
    .auth-form .field { min-height: 3.15rem; }
    .otp-verification { min-height: 5.15rem; gap: .7rem; padding: .65rem .72rem; border-radius: 1rem; }
    .otp-verification__orb { width: 3.65rem; height: 3.65rem; border-radius: 1.05rem; }
    .otp-verification__symbol { width: 2.25rem; height: 2.25rem; }
    .otp-verification__copy b { font-size: .68rem; }
    .otp-verification__copy small { font-size: .53rem; }
    .otp-inputs { gap: .28rem; }
    .otp-inputs input { min-height: 3.15rem; aspect-ratio: auto; border-radius: .62rem; font-size: 1.2rem; }
    .auth-copyright { padding-bottom: .5rem; }
    @keyframes ampolAuthDevicePhone { to { transform: scale(.55) translateY(-.25rem); } }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page__glow,.auth-live-dot,.auth-motion-scene__orbit,.auth-motion-scene__particle,
    .auth-verify-device,.auth-verify-device::after,.auth-demo-code i,.auth-demo-verify::after,
    .auth-demo-verify__loader,.auth-demo-verify svg,.otp-verification__ring,
    .otp-verification__symbol,.otp-verification,.otp-inputs input,.otp-submit__spinner {
        animation: none !important;
        transition: none !important;
    }
    .auth-demo-code i { opacity: 1; transform: none; }
    .auth-demo-verify__loader { display: none; }
    .auth-demo-verify svg { position: static; opacity: 1; transform: none; }
}

/* ======================================================================
   AMPOLSHOP V10.4 — theme-aware auth, cinematic OTP and reliable slot flow
   ====================================================================== */
html[data-theme] body.ampol-auth-body {
    --auth-accent: var(--theme-accent);
    --auth-accent-2: var(--theme-accent-2);
    --auth-accent-3: var(--theme-accent-3);
    --auth-accent-soft: var(--theme-accent-soft);
    --auth-line: var(--theme-line);
    --auth-line-strong: var(--theme-line-strong);
    --auth-text: var(--theme-text);
    --auth-muted: var(--theme-muted);
    --auth-faint: var(--theme-faint);
    --auth-panel: var(--theme-panel);
    --auth-panel-strong: var(--theme-panel-strong);
    --auth-panel-soft: var(--theme-panel-soft);
    min-height: 100vh;
    color: var(--auth-text) !important;
    background: var(--theme-page) !important;
}

html[data-theme] .auth-page {
    background:
        radial-gradient(circle at 7% 7%,var(--theme-hero-glow),transparent 31rem),
        radial-gradient(circle at 94% 88%,var(--auth-accent-soft),transparent 34rem),
        linear-gradient(145deg,var(--theme-page),var(--theme-page-alt)) !important;
}
html[data-theme] .auth-page__glow.is-start { background: var(--auth-accent); }
html[data-theme] .auth-page__glow.is-end { background: var(--auth-accent-2); }
html[data-theme] .auth-page__mesh {
    opacity: .22;
    background-image:
        linear-gradient(color-mix(in srgb,var(--auth-text) 7%,transparent) 1px,transparent 1px),
        linear-gradient(90deg,color-mix(in srgb,var(--auth-text) 7%,transparent) 1px,transparent 1px);
}

html[data-theme] .auth-shell {
    color: var(--auth-text);
    border-color: var(--auth-line);
    background: color-mix(in srgb,var(--auth-panel-strong) 94%,transparent);
    box-shadow: 0 42px 140px var(--theme-shadow),0 0 0 1px color-mix(in srgb,var(--auth-accent) 6%,transparent);
}
html[data-theme] .auth-showcase {
    border-color: color-mix(in srgb,var(--theme-on-dark) 10%,transparent);
    background:
        radial-gradient(circle at 52% 43%,color-mix(in srgb,var(--auth-accent) 24%,transparent),transparent 18rem),
        linear-gradient(150deg,var(--theme-dark-2),var(--theme-dark));
}
html[data-theme] .auth-showcase::before {
    background-image:
        linear-gradient(115deg,transparent 0 48%,color-mix(in srgb,var(--theme-on-dark) 7%,transparent) 49% 50%,transparent 51%),
        radial-gradient(circle at 50% 45%,transparent 0 13rem,color-mix(in srgb,var(--auth-accent) 16%,transparent) 13.05rem 13.15rem,transparent 13.2rem);
}
html[data-theme] .auth-showcase__top { color: var(--theme-on-dark-muted); }
html[data-theme] .auth-showcase__top b { color: color-mix(in srgb,var(--theme-on-dark-muted) 55%,transparent); }
html[data-theme] .auth-live-dot {
    background: var(--auth-accent-3);
    box-shadow: 0 0 0 5px var(--auth-accent-soft),0 0 24px var(--auth-accent);
}
html[data-theme] .auth-motion-scene__orbit { border-color: color-mix(in srgb,var(--auth-accent) 28%,transparent); }
html[data-theme] .auth-motion-scene__orbit::before,
html[data-theme] .auth-motion-scene__orbit::after {
    border-color: var(--auth-accent-3);
    background: var(--theme-dark);
    box-shadow: 0 0 20px var(--auth-accent);
}
html[data-theme] .auth-motion-scene__particle {
    background: var(--auth-accent-3);
    box-shadow: 0 0 18px var(--auth-accent);
}
.auth-motion-scene__beam {
    position: absolute;
    z-index: 4;
    inset: 8% 12%;
    overflow: hidden;
    border-radius: 50%;
    pointer-events: none;
}
.auth-motion-scene__beam::before {
    content: '';
    position: absolute;
    inset: -30% 0 auto;
    height: 28%;
    opacity: .38;
    background: linear-gradient(to bottom,transparent,color-mix(in srgb,var(--auth-accent) 34%,transparent),transparent);
    filter: blur(5px);
    animation: ampolAuthBeam 5.8s ease-in-out infinite;
}

html[data-theme] .auth-verify-device {
    border-color: color-mix(in srgb,var(--theme-on-dark) 15%,transparent);
    background: linear-gradient(155deg,color-mix(in srgb,var(--theme-dark-2) 90%,var(--auth-accent) 10%),var(--theme-dark));
    box-shadow: 0 30px 90px rgba(0,0,0,.5),0 0 58px color-mix(in srgb,var(--auth-accent) 17%,transparent);
}
html[data-theme] .auth-mini-mark {
    color: var(--theme-action-text);
    background: linear-gradient(145deg,var(--auth-accent-3),var(--auth-accent-2));
    box-shadow: 0 10px 26px color-mix(in srgb,var(--auth-accent) 23%,transparent);
}
html[data-theme] .auth-verify-device__head b { color: var(--theme-on-dark); }
html[data-theme] .auth-verify-device__head small,
html[data-theme] .auth-verify-device > p { color: var(--theme-on-dark-muted); }
html[data-theme] .auth-verify-device__head > i { background: var(--auth-accent-3); box-shadow: 0 0 15px var(--auth-accent); }
html[data-theme] .auth-verify-device__shield {
    position: relative;
    color: var(--auth-accent-3);
    border-color: color-mix(in srgb,var(--auth-accent) 28%,transparent);
    background: var(--auth-accent-soft);
    box-shadow: inset 0 0 34px var(--auth-accent-soft),0 0 42px var(--auth-accent-soft);
}
.auth-verify-device__shield svg {
    position: absolute;
    opacity: 0;
}
.auth-verify-device__shield svg.is-shield { animation: ampolDemoShieldStage 6.6s ease-in-out infinite; }
.auth-verify-device__shield svg.is-checking { animation: ampolDemoCheckingStage 6.6s ease-in-out infinite; }
.auth-verify-device__shield svg.is-success { animation: ampolDemoSuccessStage 6.6s ease-in-out infinite; }
html[data-theme] .auth-demo-code span {
    color: var(--theme-on-dark);
    border-color: color-mix(in srgb,var(--theme-on-dark) 14%,transparent);
    background: color-mix(in srgb,var(--theme-dark) 72%,transparent);
}
.auth-demo-code i { animation-duration: 6.6s; }
html[data-theme] .auth-demo-verify {
    color: var(--auth-accent-3);
    border-color: color-mix(in srgb,var(--auth-accent) 30%,transparent);
    background: var(--auth-accent-soft);
}
.auth-demo-verify b { position: relative; min-width: 8.4rem; min-height: 1rem; text-align: center; }
.auth-demo-verify b span { position: absolute; inset: 0; display: grid; place-items: center; }
.auth-demo-verify b span:first-child { animation: ampolDemoVerifyLabel 6.6s ease-in-out infinite; }
.auth-demo-verify b span:last-child { opacity: 0; animation: ampolDemoVerifiedLabel 6.6s ease-in-out infinite; }
.auth-demo-verify::after,
.auth-demo-verify__loader,
.auth-demo-verify svg { animation-duration: 6.6s; }
html[data-theme] .auth-demo-verify__loader { border-color: var(--auth-accent-soft); border-top-color: var(--auth-accent-3); }
html[data-theme] .auth-demo-verify svg { stroke: var(--theme-action-text); background: var(--auth-accent-3); }
html[data-theme] .auth-showcase__copy > span,
html[data-theme] .auth-showcase__copy h2 strong { color: var(--auth-accent-3); }
html[data-theme] .auth-showcase__copy h2 { color: var(--theme-on-dark); }
html[data-theme] .auth-showcase__copy p { color: var(--theme-on-dark-muted); }

html[data-theme] .auth-panel-column {
    background:
        radial-gradient(circle at 90% 5%,var(--auth-accent-soft),transparent 18rem),
        linear-gradient(150deg,var(--auth-panel-strong),var(--auth-panel));
}
html[data-theme] .auth-brand { color: var(--auth-text); }
html[data-theme] .auth-brand b,
html[data-theme] .auth-heading h1 span,
html[data-theme] .auth-form-row > a,
html[data-theme] .auth-switch a,
html[data-theme] .auth-back,
html[data-theme] .otp-resend button { color: var(--theme-accent-text); }
html[data-theme] .auth-brand__mark {
    color: var(--theme-action-text);
    border-color: var(--auth-line-strong);
    background: linear-gradient(145deg,var(--auth-accent-3),var(--auth-accent-2));
    box-shadow: 0 12px 28px var(--auth-accent-soft);
}
html[data-theme] .auth-language {
    color: var(--auth-muted);
    border-color: var(--auth-line);
    background: var(--auth-panel-soft);
}
html[data-theme] .auth-language:hover { color: var(--theme-accent-text); border-color: var(--auth-line-strong); background: var(--auth-accent-soft); }
html[data-theme] .auth-heading h1,
html[data-theme] .auth-heading > p:last-child b { color: var(--auth-text); }
html[data-theme] .auth-heading > p:last-child,
html[data-theme] .auth-remember,
html[data-theme] .auth-switch { color: var(--auth-muted) !important; }
html[data-theme] .auth-mode-tabs { border-color: var(--auth-line); background: var(--auth-panel-soft); }
html[data-theme] .auth-mode-tabs button { color: var(--auth-muted); }
html[data-theme] .auth-mode-tabs button.is-active {
    color: var(--theme-action-text);
    background: linear-gradient(120deg,var(--theme-action-from),var(--theme-action-to));
    box-shadow: 0 10px 32px var(--auth-accent-soft);
}
html[data-theme] .auth-form .field {
    color: var(--auth-text) !important;
    -webkit-text-fill-color: var(--auth-text) !important;
    border-color: var(--auth-line) !important;
    background: var(--auth-panel-soft) !important;
}
html[data-theme] .auth-form .field::placeholder { color: var(--auth-faint) !important; -webkit-text-fill-color: var(--auth-faint) !important; }
html[data-theme] .auth-form .field:focus {
    border-color: var(--auth-accent) !important;
    box-shadow: 0 0 0 4px var(--auth-accent-soft) !important;
}
html[data-theme] .auth-field-wrap > i { color: var(--theme-accent-text); }
html[data-theme] .auth-security-note { border-color: var(--auth-line-strong); background: var(--auth-accent-soft); }
html[data-theme] .auth-security-note > span { color: var(--theme-action-text); background: var(--auth-accent); }
html[data-theme] .auth-security-note b { color: var(--auth-text); }
html[data-theme] .auth-security-note small,
html[data-theme] .auth-copyright { color: var(--auth-muted) !important; }

/* The real verification animation uses the submitted digits. */
.otp-cinematic {
    display: grid;
    grid-template-columns: 9.5rem minmax(0,1fr);
    align-items: center;
    gap: 1.25rem;
    min-height: 10.5rem;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 1.55rem;
    padding: 1rem 1.15rem;
    background:
        radial-gradient(circle at 18% 50%,var(--auth-accent-soft),transparent 8rem),
        var(--auth-panel-soft);
    transition: border-color .3s ease,background .3s ease,box-shadow .3s ease;
}
.otp-cinematic__visual {
    position: relative;
    display: grid;
    width: 9rem;
    height: 9rem;
    place-items: center;
}
.otp-cinematic__ring {
    position: absolute;
    border: 1px solid var(--auth-line-strong);
    border-radius: 50%;
    opacity: .28;
}
.otp-cinematic__ring.is-outer { inset: .2rem; border-style: dashed; }
.otp-cinematic__ring.is-inner { inset: 1.45rem; opacity: .18; }
.otp-cinematic__orbit { position: absolute; inset: 0; opacity: .34; transition: opacity .25s ease,transform .4s ease; }
.otp-cinematic__orbit span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    margin: -.775rem;
    border: 1px solid var(--auth-line-strong);
    border-radius: .5rem;
    color: var(--theme-accent-text);
    background: var(--auth-panel-strong);
    box-shadow: 0 7px 20px var(--theme-shadow);
    font-family: monospace;
    font-size: .68rem;
    font-weight: 1000;
    transform: rotate(calc(var(--otp-index) * 60deg)) translateY(-3.45rem) rotate(calc(var(--otp-index) * -60deg));
}
.otp-cinematic__core {
    position: relative;
    z-index: 3;
    display: grid;
    width: 4.8rem;
    height: 4.8rem;
    place-items: center;
    border: 1px solid var(--auth-line-strong);
    border-radius: 1.5rem;
    color: var(--theme-accent-text);
    background: var(--auth-panel-strong);
    box-shadow: inset 0 0 28px var(--auth-accent-soft),0 0 35px var(--auth-accent-soft);
}
.otp-cinematic__symbol {
    position: absolute;
    width: 3rem;
    height: 3rem;
    opacity: 0;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scale(.55);
    transition: opacity .22s ease,transform .36s cubic-bezier(.18,.89,.32,1.28);
}
.otp-cinematic.is-idle .otp-cinematic__symbol.is-idle,
.otp-cinematic.is-checking .otp-cinematic__symbol.is-checking,
.otp-cinematic.is-success .otp-cinematic__symbol.is-success,
.otp-cinematic.is-error .otp-cinematic__symbol.is-error { opacity: 1; transform: scale(1); }
.otp-cinematic__copy { min-width: 0; }
.otp-cinematic__copy b,
.otp-cinematic__copy small { display: block; }
.otp-cinematic__copy b { color: var(--auth-text); font-size: .86rem; font-weight: 1000; }
.otp-cinematic__copy small { margin-top: .4rem; color: var(--auth-muted); font-size: .62rem; font-weight: 700; line-height: 1.9; }

.otp-cinematic.is-checking {
    border-color: var(--auth-line-strong);
    box-shadow: 0 0 46px var(--auth-accent-soft);
}
.otp-cinematic.is-checking .otp-cinematic__ring.is-outer { opacity: .65; animation: ampolOtpOrbit 1.35s linear infinite; }
.otp-cinematic.is-checking .otp-cinematic__ring.is-inner { opacity: .42; animation: ampolOtpOrbit .85s linear infinite reverse; }
.otp-cinematic.is-checking .otp-cinematic__orbit { opacity: 1; animation: ampolOtpDigitOrbit .95s linear infinite; }
.otp-cinematic.is-checking .otp-cinematic__core { animation: ampolOtpCorePulse .75s ease-in-out infinite alternate; }

.otp-cinematic.is-success {
    border-color: rgba(34,197,94,.52);
    background: linear-gradient(145deg,rgba(34,197,94,.14),var(--auth-panel-soft));
    box-shadow: 0 0 48px rgba(34,197,94,.12);
}
.otp-cinematic.is-success .otp-cinematic__core { color: #16a35a; border-color: rgba(34,197,94,.5); animation: ampolOtpResultPop .6s cubic-bezier(.18,.89,.32,1.28); }
.otp-cinematic.is-success .otp-cinematic__orbit { opacity: 0; transform: scale(1.25); }
.otp-cinematic.is-success .otp-cinematic__copy b { color: #168249; }
.otp-cinematic.is-success .otp-cinematic__symbol.is-success path:last-child { stroke-dasharray: 36; stroke-dashoffset: 36; animation: ampolOtpDraw .52s .12s ease forwards; }

.otp-cinematic.is-error {
    border-color: rgba(244,63,94,.52);
    background: linear-gradient(145deg,rgba(244,63,94,.12),var(--auth-panel-soft));
    box-shadow: 0 0 45px rgba(244,63,94,.1);
    animation: ampolOtpShake .42s ease;
}
.otp-cinematic.is-error .otp-cinematic__core { color: #e11d48; border-color: rgba(244,63,94,.46); animation: ampolOtpResultPop .5s cubic-bezier(.18,.89,.32,1.28); }
.otp-cinematic.is-error .otp-cinematic__orbit { opacity: 0; transform: scale(.72); }
.otp-cinematic.is-error .otp-cinematic__copy b { color: #d51d45; }
.otp-cinematic.is-error .otp-cinematic__symbol.is-error path:last-child { stroke-dasharray: 58; stroke-dashoffset: 58; animation: ampolOtpDraw .42s .08s ease forwards; }

.otp-entry { position: relative; cursor: text; }
.otp-entry__capture {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .001;
    border: 0 !important;
    padding: 0 !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: transparent !important;
    caret-color: transparent;
    outline: none !important;
}
.otp-inputs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(.3rem,1.3vw,.55rem); pointer-events: none; }
.otp-inputs span {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    aspect-ratio: .9;
    place-items: center;
    border: 1px solid var(--auth-line);
    border-radius: .78rem;
    color: var(--auth-text);
    background: var(--auth-panel-soft);
    box-shadow: inset 0 1px 0 color-mix(in srgb,var(--auth-text) 5%,transparent);
    font-family: monospace;
    font-size: clamp(1.15rem,5vw,1.55rem);
    font-weight: 1000;
    transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease;
}
.otp-inputs span.is-active {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-soft),0 0 24px var(--auth-accent-soft);
    transform: translateY(-2px);
}
.otp-inputs span.is-active::after {
    content: '';
    position: absolute;
    bottom: .42rem;
    width: .32rem;
    height: 2px;
    border-radius: 99px;
    background: var(--auth-accent);
    animation: ampolOtpCaret .8s steps(1) infinite;
}
.otp-inputs span.is-filled { color: var(--theme-accent-text); border-color: var(--auth-line-strong); background: var(--auth-accent-soft); }
.otp-entry.is-checking .otp-inputs span { border-color: var(--auth-line-strong); background: var(--auth-accent-soft); animation: ampolOtpSlotWave .8s ease-in-out infinite alternate; }
.otp-entry.is-checking .otp-inputs span:nth-child(2) { animation-delay: .08s; }
.otp-entry.is-checking .otp-inputs span:nth-child(3) { animation-delay: .16s; }
.otp-entry.is-checking .otp-inputs span:nth-child(4) { animation-delay: .24s; }
.otp-entry.is-checking .otp-inputs span:nth-child(5) { animation-delay: .32s; }
.otp-entry.is-checking .otp-inputs span:nth-child(6) { animation-delay: .4s; }
.otp-entry.is-success .otp-inputs span { color: #168249; border-color: rgba(34,197,94,.54); background: rgba(34,197,94,.1); }
.otp-entry.is-error .otp-inputs span { color: #d51d45; border-color: rgba(244,63,94,.54); background: rgba(244,63,94,.09); }

html[data-theme] .otp-timer { border-color: var(--auth-line); background: var(--auth-panel-soft); }
html[data-theme] .otp-timer span { color: var(--theme-accent-text); }
html[data-theme] .otp-timer small { color: var(--auth-muted); }
html[data-theme] .otp-submit.is-success {
    color: #fff !important;
    background: linear-gradient(120deg,#168249,#22c55e) !important;
    box-shadow: 0 14px 35px rgba(34,197,94,.18) !important;
}

@keyframes ampolAuthBeam { 0%,12% { transform: translateY(-120%); opacity: 0; } 35%,70% { opacity: .55; } 88%,100% { transform: translateY(560%); opacity: 0; } }
@keyframes ampolDemoShieldStage { 0%,32% { opacity: 1; transform: scale(1); } 40%,100% { opacity: 0; transform: scale(.65); } }
@keyframes ampolDemoCheckingStage { 0%,30% { opacity: 0; transform: scale(.55) rotate(0); } 40%,65% { opacity: 1; transform: scale(1) rotate(220deg); } 72%,100% { opacity: 0; transform: scale(.65) rotate(420deg); } }
@keyframes ampolDemoSuccessStage { 0%,66% { opacity: 0; transform: scale(.5); } 76%,92% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0; transform: scale(.75); } }
@keyframes ampolDemoVerifyLabel { 0%,35% { opacity: 0; } 44%,68% { opacity: 1; } 76%,100% { opacity: 0; } }
@keyframes ampolDemoVerifiedLabel { 0%,68% { opacity: 0; } 77%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ampolOtpDigitOrbit { to { transform: rotate(360deg); } }
@keyframes ampolOtpCorePulse { to { transform: scale(.88); box-shadow: inset 0 0 34px var(--auth-accent-soft),0 0 48px var(--auth-accent-soft); } }
@keyframes ampolOtpResultPop { 0% { transform: scale(.55); } 72% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ampolOtpCaret { 0%,48% { opacity: 1; } 49%,100% { opacity: 0; } }
@keyframes ampolOtpSlotWave { to { transform: translateY(-4px); box-shadow: 0 0 24px var(--auth-accent-soft); } }

@media (max-width: 560px) {
    .otp-cinematic { grid-template-columns: 7.3rem minmax(0,1fr); gap: .8rem; min-height: 8.5rem; padding: .72rem; border-radius: 1.15rem; }
    .otp-cinematic__visual { width: 7rem; height: 7rem; }
    .otp-cinematic__orbit span { width: 1.25rem; height: 1.25rem; margin: -.625rem; border-radius: .4rem; font-size: .58rem; transform: rotate(calc(var(--otp-index) * 60deg)) translateY(-2.7rem) rotate(calc(var(--otp-index) * -60deg)); }
    .otp-cinematic__core { width: 3.8rem; height: 3.8rem; border-radius: 1.15rem; }
    .otp-cinematic__symbol { width: 2.4rem; height: 2.4rem; }
    .otp-cinematic__copy b { font-size: .72rem; }
    .otp-cinematic__copy small { font-size: .54rem; line-height: 1.75; }
    .otp-inputs { gap: .28rem; }
    .otp-inputs span { min-height: 3.15rem; aspect-ratio: auto; border-radius: .62rem; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-motion-scene__beam::before,
    .auth-verify-device__shield svg,
    .auth-demo-verify b span,
    .otp-cinematic__ring,
    .otp-cinematic__orbit,
    .otp-cinematic__core,
    .otp-cinematic,
    .otp-inputs span,
    .otp-inputs span::after { animation: none !important; transition: none !important; }
    .auth-verify-device__shield svg.is-shield { opacity: 1; transform: none; }
    .auth-verify-device__shield svg.is-checking,
    .auth-verify-device__shield svg.is-success { display: none; }
    .auth-demo-verify b span:first-child { position: static; opacity: 1; }
    .auth-demo-verify b span:last-child { display: none; }
}


/* ======================================================================
   AMPOLSHOP V10.5 — secure cancellation, live operations and theme closure
   ====================================================================== */
html[data-theme] body.ampol-app .ampol-theme-panel{color:var(--theme-text)!important;border-color:var(--theme-line)!important;background:linear-gradient(150deg,var(--theme-panel),var(--theme-panel-soft))!important}
html[data-theme] body.ampol-app .ampol-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
html[data-theme] body.ampol-app .ampol-theme-choice{position:relative;display:grid;min-height:5.25rem;cursor:pointer;grid-template-columns:3rem minmax(0,1fr) 1.7rem;align-items:center;gap:.7rem;border:1px solid var(--theme-line)!important;border-radius:1rem;padding:.7rem;color:var(--theme-text)!important;background:var(--theme-panel-strong)!important;transition:.2s ease}
html[data-theme] body.ampol-app .ampol-theme-choice input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
html[data-theme] body.ampol-app .ampol-theme-choice:is(:hover,:focus-within){border-color:var(--theme-line-strong)!important;transform:translateY(-1px)}
html[data-theme] body.ampol-app .ampol-theme-choice:has(input:checked){border-color:var(--theme-accent)!important;background:var(--theme-accent-soft)!important;box-shadow:0 0 0 3px var(--theme-accent-soft)!important}
html[data-theme] body.ampol-app .ampol-theme-choice__copy b{display:block;color:var(--theme-text)!important;font-size:.72rem;font-weight:950}
html[data-theme] body.ampol-app .ampol-theme-choice__copy small{display:block;margin-top:.18rem;color:var(--theme-muted)!important;font-size:.55rem;line-height:1.65}
html[data-theme] body.ampol-app .ampol-theme-choice__check{display:grid;width:1.55rem;height:1.55rem;place-items:center;border:1px solid var(--theme-line);border-radius:999px;color:transparent;background:var(--theme-panel-soft)}
html[data-theme] body.ampol-app .ampol-theme-choice:has(input:checked) .ampol-theme-choice__check{color:var(--theme-action-text)!important;border-color:transparent!important;background:linear-gradient(120deg,var(--theme-action-from),var(--theme-action-to))!important}
html[data-theme] body.ampol-app .ampol-theme-current{color:var(--theme-muted)!important;border:1px solid var(--theme-line);border-radius:999px;padding:.55rem .75rem;background:var(--theme-panel-strong);font-size:.62rem;font-weight:850}
html[data-theme] body.ampol-app .ampol-theme-current b{color:var(--theme-accent-text)!important}
html[data-theme] body.ampol-app .ampol-order-detail-page{color:var(--theme-text)!important;background:radial-gradient(circle at 8% 12%,var(--theme-hero-glow),transparent 32%),radial-gradient(circle at 92% 68%,color-mix(in srgb,var(--theme-accent-2) 18%,transparent),transparent 36%),linear-gradient(135deg,var(--theme-page),var(--theme-page-alt))!important}
html[data-theme] body.ampol-app .ampol-order-detail-page .ampol-order-detail-orb.is-start{background:var(--theme-accent)!important;opacity:.28}
html[data-theme] body.ampol-app .ampol-order-detail-page .ampol-order-detail-orb.is-end{background:var(--theme-accent-2)!important;opacity:.24}
html[data-theme] body.ampol-app .ampol-order-detail-page header h1{color:var(--theme-text)!important}
html[data-theme] body.ampol-app .ampol-order-detail-page header p{color:var(--theme-muted)!important}
html[data-theme] body.ampol-app .ampol-order-detail-page header p:first-of-type{color:var(--theme-accent-text)!important}
html[data-theme] body.ampol-app .ampol-order-detail-page header .bg-emerald-500{background:var(--theme-accent)!important}
.ampol-user-cancel-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid color-mix(in srgb,#f43f5e 30%,var(--theme-line));border-radius:1.35rem;padding:1rem;color:var(--theme-text);background:color-mix(in srgb,#f43f5e 7%,var(--theme-panel-strong));box-shadow:0 18px 48px var(--theme-shadow)}
.ampol-user-cancel-card h2{color:var(--theme-text)!important;font-size:1rem;font-weight:950}
.ampol-user-cancel-card p{margin-top:.35rem;color:var(--theme-muted)!important;font-size:.7rem;line-height:1.9}
.ampol-user-cancel-card p b{color:#e11d48!important}.ampol-user-cancel-card.is-locked{border-color:var(--theme-line);background:var(--theme-panel-soft)}
.ampol-order-sync-bar{display:flex;min-height:2.85rem;align-items:center;gap:.55rem;border:1px solid var(--theme-line);border-radius:1rem;padding:.5rem .6rem;color:var(--theme-muted);background:var(--theme-panel);box-shadow:0 12px 32px var(--theme-shadow);font-size:.62rem;font-weight:850}
.ampol-order-sync-dot{width:.48rem;height:.48rem;flex:0 0 auto;border-radius:999px;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.11),0 0 14px rgba(34,197,94,.45)}
.ampol-order-sync-bar [data-order-sync-status][data-state=offline]{color:#e11d48!important}.ampol-order-sync-bar:has([data-state=offline]) .ampol-order-sync-dot{background:#f43f5e;box-shadow:0 0 0 5px rgba(244,63,94,.11)}
.ampol-order-sync-bar button{margin-inline-start:auto;border:1px solid var(--theme-line-strong);border-radius:.72rem;padding:.45rem .7rem;color:var(--theme-accent-text);background:var(--theme-accent-soft);font-size:.6rem;font-weight:950}.ampol-order-sync-bar button:disabled{cursor:wait;opacity:.55}
.ampol-order-sync-toast{position:fixed;z-index:300;inset-inline-start:50%;top:max(1rem,env(safe-area-inset-top));display:flex;width:min(calc(100vw - 1.5rem),34rem);align-items:center;gap:.7rem;transform:translate(-50%,-1rem);border:1px solid var(--theme-line-strong);border-radius:1rem;padding:.8rem .9rem;color:var(--theme-text);background:var(--theme-panel-strong);box-shadow:0 22px 70px var(--theme-shadow);opacity:0;pointer-events:none;transition:.22s ease}
.ampol-order-sync-toast.is-visible{transform:translate(-50%,0);opacity:1}.ampol-order-sync-toast>span{display:grid;width:2rem;height:2rem;flex:0 0 auto;place-items:center;border-radius:.65rem;color:var(--theme-action-text);background:var(--theme-accent);font-weight:1000}.ampol-order-sync-toast b{color:var(--theme-text)!important;font-size:.7rem;line-height:1.8}.ampol-order-sync-toast.is-danger{border-color:rgba(244,63,94,.38);background:color-mix(in srgb,#f43f5e 8%,var(--theme-panel-strong))}.ampol-order-sync-toast.is-danger>span{color:#fff;background:#e11d48}
@media (min-width:900px){html[data-theme] body.ampol-app .ampol-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){html[data-theme] body.ampol-app .ampol-theme-grid{grid-template-columns:minmax(0,1fr)}html[data-theme] body.ampol-app .ampol-theme-choice{min-height:4.4rem;grid-template-columns:2.5rem minmax(0,1fr) 1.5rem;padding:.58rem}.ampol-user-cancel-card{align-items:stretch;flex-direction:column}.ampol-user-cancel-card form,.ampol-user-cancel-card button{width:100%}.ampol-order-sync-bar{position:sticky;z-index:35;top:.5rem}}
