/* 18.1 "Oltin shu'la" — the chosen background for the whole site and the app (the app shows the site).
   A warm base, a slow golden aurora band at the top of the screen, and a soft light that passes over
   the main yellow buttons now and then. Yellow, the logo and the button colours stay as they were.
   Cheap on phones: no filter blur, only gradients moved with transform; stopped for reduced motion. */
:root,html[data-theme=light],html[data-theme=system]{
 --g18-base:#fbf8ef;
 --g18-top:#fff3c4;
 --g18-a:rgba(255,206,20,.62);--g18-b:rgba(255,150,60,.42);--g18-c:rgba(255,226,120,.66);--g18-d:rgba(110,210,195,.26);
 --g18-shine:rgba(255,255,255,.55);--g18-aurora-op:.9;
}
html[data-theme=dark]{
 --g18-base:#14120d;--g18-top:#1d190f;
 --g18-a:rgba(255,196,30,.34);--g18-b:rgba(255,130,40,.24);--g18-c:rgba(255,215,110,.20);--g18-d:rgba(80,200,175,.14);
 --g18-shine:rgba(255,214,90,.18);--g18-aurora-op:.75;
}
@media(prefers-color-scheme:dark){html[data-theme=system]{
 --g18-base:#14120d;--g18-top:#1d190f;
 --g18-a:rgba(255,196,30,.34);--g18-b:rgba(255,130,40,.24);--g18-c:rgba(255,215,110,.20);--g18-d:rgba(80,200,175,.14);
 --g18-shine:rgba(255,214,90,.18);--g18-aurora-op:.75;
}}
html{background:linear-gradient(180deg,var(--g18-top) 0,var(--g18-base) 460px) no-repeat,var(--g18-base);background-color:var(--g18-base)}
/* body stays see-through: a body background would paint over the aurora that sits behind it */
html body,html body.chat-screen{background:transparent!important}
/* the aurora: fixed behind everything, drifts and turns slowly */
html::before{content:"";position:fixed;z-index:-1;view-transition-name:xb-aurora;left:-45vw;right:-45vw;top:-14vh;height:72vh;pointer-events:none;opacity:var(--g18-aurora-op);
 background:
  radial-gradient(38% 46% at 32% 58%,var(--g18-a),transparent 70%),
  radial-gradient(30% 40% at 60% 48%,var(--g18-b),transparent 70%),
  radial-gradient(34% 44% at 46% 66%,var(--g18-c),transparent 72%),
  radial-gradient(26% 36% at 72% 62%,var(--g18-d),transparent 72%);
 transform-origin:50% 60%;will-change:transform;animation:g18aurora 16s ease-in-out infinite alternate;animation-delay:var(--g18-t,0s)}
@keyframes g18aurora{0%{transform:translateX(-4%) rotate(-6deg) scale(1)}50%{transform:translateX(3%) rotate(4deg) scale(1.08)}100%{transform:translateX(6%) rotate(9deg) scale(.96)}}
/* the top bar is glass, so the golden light shows through it (it turns solid again once the page scrolls) */
html body .topbar{background:color-mix(in srgb,var(--surface) 62%,transparent)!important;backdrop-filter:saturate(1.4) blur(16px);-webkit-backdrop-filter:saturate(1.4) blur(16px);border-bottom-color:color-mix(in srgb,var(--line) 60%,transparent)!important}
/* the dashboard hero and the sticky bar sit on the aurora instead of hiding it */
body.u5-hero-page .u5-hero,body .u5-hero{background:transparent!important}
/* a soft light passes over the main yellow buttons every few seconds */
.btn-primary,.u5-btn{position:relative;overflow:hidden;isolation:isolate}
.btn-primary::after,.u5-btn::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 35%,var(--g18-shine) 50%,transparent 65%);transform:translateX(-130%);animation:g18sweep 6s ease-in-out infinite}
@keyframes g18sweep{0%,62%{transform:translateX(-130%)}88%,100%{transform:translateX(130%)}}
/* chat screens keep a calm, plain background so messages stay easy to read */
html:has(body.c7-chat-page)::before,html:has(body.chat-screen)::before{opacity:.35}
@media (prefers-reduced-motion:reduce){html::before,.btn-primary::after,.u5-btn::after{animation:none}}
@media print{html::before{display:none}}

/* page to page: only the page content slides; the golden light, the top bar and the bottom bar stay put */
::view-transition-old(root),::view-transition-new(root){animation:none}
#mainContent{view-transition-name:xb-main}
::view-transition-old(xb-main){animation:xb31-vt-out .16s ease both}
::view-transition-new(xb-main){animation:xb31-vt-in .24s ease both}
::view-transition-old(xb-aurora),::view-transition-new(xb-aurora){animation:none}
::view-transition-old(xb-aurora){display:none}
/* one warm page colour everywhere (no grey bands lower down the page) */
:root,html[data-theme=light],html[data-theme=system]{--bg:var(--g18-base);--page-base:var(--g18-base)}
html[data-theme=dark]{--bg:var(--g18-base);--page-base:var(--g18-base)}
@media(prefers-color-scheme:dark){html[data-theme=system]{--bg:var(--g18-base);--page-base:var(--g18-base)}}
/* the top bar is glass only at the very top; as soon as the page moves it turns solid, so no words show through */
html.is-scrolled body .topbar{background:var(--surface)!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 6px 18px rgba(40,28,0,.08)!important;border-bottom-color:var(--line)!important}
/* white cards on the warm page: a clear edge and a soft shadow so they never melt into each other or the page */
:root{--g18-card-edge:rgba(120,90,10,.10);--g18-card-shadow:0 1px 2px rgba(60,40,0,.05),0 8px 22px rgba(60,40,0,.06)}
html[data-theme=dark]{--g18-card-edge:rgba(255,230,160,.08);--g18-card-shadow:0 1px 2px rgba(0,0,0,.4)}
@media(prefers-color-scheme:dark){html[data-theme=system]{--g18-card-edge:rgba(255,230,160,.08);--g18-card-shadow:0 1px 2px rgba(0,0,0,.4)}}
.card,.u5-card,.kw-card,.n18-item,.ct18-dirs,.ct18-sort,.c7-row,.order-card,.o14-offer,.settings-panel{border-color:var(--g18-card-edge)!important;box-shadow:var(--g18-card-shadow)}
/* 18.4: sign-in / reset / code pages — clear, readable secondary actions and a real countdown */
.auth-secondary-actions{margin-top:14px;gap:10px}
.auth-secondary-actions>a,.auth-secondary-actions>button,.auth-secondary-actions .btn-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text)!important;font-size:15px!important;font-weight:700;text-decoration:none}
.auth-secondary-actions>a:hover,.auth-secondary-actions>button:hover{background:var(--surface2)}
.auth-switch{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:14.5px;text-align:center}
.auth-switch>span{color:var(--muted);font-weight:600}
.auth-switch>a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);color:var(--text)!important;font-size:15.5px;font-weight:800;text-decoration:none}
.auth-switch>a:hover{background:var(--surface2)}
.auth-help>summary{font-size:15px;font-weight:700;min-height:44px;display:flex;align-items:center}
.auth-email-summary>a{font-size:14.5px!important;font-weight:700}
/* the resend timer */
.auth-resend-form{margin-top:12px}
.auth-resend-form .btn-link.at18{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 16px 0 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:15px;font-weight:700;text-decoration:none;line-height:1}
.auth-resend-form .btn-link.at18:not(.is-wait){padding:0 18px;background:#ffd21f;border-color:#ffd21f;color:#15171a;cursor:pointer}
.auth-resend-form .btn-link.at18.is-wait{color:var(--muted);cursor:default;opacity:1}
.at18-ring{position:relative;width:34px;height:34px;display:grid;place-items:center;flex:none}
.at18-ring svg{position:absolute;inset:0;width:34px;height:34px;transform:rotate(-90deg)}
.at18-ring circle{fill:none;stroke-width:3}
.at18-ring circle.t{stroke:var(--surface2)}
.at18-ring circle.p{stroke:#ffd21f;stroke-linecap:round;stroke-dasharray:97.4;transition:stroke-dashoffset .9s linear}
.at18-ring b{position:relative;font-size:12px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums}
/* the skip link shows only for keyboard users, never after a tap */
.skip-link:focus:not(:focus-visible){transform:translateY(-190%);outline:0}
/* 22.0: the keyboard opens without a stall — no smooth scrolling of the focused field (it fought the keyboard
   animation), and the golden light / shine / glass blur rest while typing */
html,html:focus-within{scroll-behavior:auto!important}
html.xb-typing::before,html.xb-typing .btn-primary::after,html.xb-typing .u5-btn::after{animation-play-state:paused!important}
html.xb-typing body .topbar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:var(--surface)!important}
html::before{height:72lvh;top:-14lvh}
@supports not (height:1lvh){html::before{height:72vh;top:-14vh}}
