/* ══════════════════════════════════════════════════════════════════════════
   MKPAYZ — GLASS LAYER (v1) · "tech glass" theme
   Linked LAST on every page: after the page's inline <style> and /enhance.css.

   HOW IT WORKS
   • Redefines the surface tokens every page paints with (--card, --surface,
     --subtle, --border …) as translucent values, so components — including
     the hundreds of inline styles generated by JS — turn into glass.
   • The brand hue is never redefined: glows derive from var(--primary) and
     var(--accent), so the admin amber/blue palette and the user-selectable
     accent colours keep working.
   • Anything floating above content (modals, drawers, menus, toasts, sticky
     bars) gets the stronger --gx-strong fill plus backdrop blur.

   SAFETY RULES — keep them when editing this file
   1. backdrop-filter / transform / filter turn an element into the containing
      block of its position:fixed descendants. Use them only on leaf surfaces
      (cards, panels, the modal box itself, header/topbar). Never on html,
      body, .main, .layout, .section, .body-wrap: admin keeps a fixed modal
      inside .main > .section.
   2. No backdrop-filter on repeated items (product cards, rows, list items).
   3. Hover effects sit behind (hover:hover) and (pointer:fine).
   4. Nothing here hides content: reveal states are applied by glass.js only.
   5. Never set `animation` on elements a page hides with opacity:0 and shows
      through its own animation.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ───────────────────────────────────────────────────────────── */
:root{
  /* page tokens, redefined as glass */
  --bg:#05060f;
  --surface:rgba(9,12,25,.58);
  --card:rgba(255,255,255,.055);
  --card2:rgba(255,255,255,.085);
  --subtle:rgba(255,255,255,.075);
  --border:rgba(165,180,255,.14);
  --border2:rgba(165,180,255,.24);

  /* glass system */
  --gx-p:var(--primary,#7c3aed);
  --gx-a:var(--accent,#06b6d4);
  --gx-solid-card:#131729;
  --gx-solid-surface:#0b0e1c;
  --gx-strong:rgba(11,14,28,.84);
  --gx-chrome:rgba(8,10,22,.62);
  --gx-dim:rgba(3,4,12,.62);
  --gx-hair:rgba(255,255,255,.12);
  --gx-hair-hi:rgba(255,255,255,.3);
  --gx-spot:rgba(255,255,255,.1);
  --gx-blur:blur(16px) saturate(165%);
  --gx-blur-strong:blur(24px) saturate(180%);
  --gx-shadow:0 22px 60px -26px rgba(0,0,0,.8),0 3px 12px -6px rgba(0,0,0,.45);
  --gx-shadow-soft:0 14px 34px -22px rgba(0,0,0,.7);
  --gx-inner:inset 0 1px 0 rgba(255,255,255,.09);
  --gx-glow-p:rgba(124,58,237,.4);
  --gx-glow-a:rgba(6,182,212,.32);
  --gx-tint-p:rgba(124,58,237,.15);
  --gx-tint-a:rgba(6,182,212,.11);
  --gx-aur-1:rgba(124,58,237,.36);
  --gx-aur-2:rgba(6,182,212,.24);
  --gx-aur-3:rgba(59,130,246,.2);
  --gx-aur-4:rgba(217,70,239,.14);
  --gx-grid:rgba(160,175,255,.055);
  --gx-ease:cubic-bezier(.22,.8,.26,1);
  --gx-spring:cubic-bezier(.34,1.4,.64,1);
  --gx-display:'Space Grotesk','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --gx-mx:50%;
  --gx-my:0%;
}
/* Brand-following glows (the plain values above are the fallback) */
@supports (color:color-mix(in srgb,red 50%,blue)){
  :root{
    --gx-glow-p:color-mix(in srgb,var(--gx-p) 44%,transparent);
    --gx-glow-a:color-mix(in srgb,var(--gx-a) 36%,transparent);
    --gx-tint-p:color-mix(in srgb,var(--gx-p) 16%,transparent);
    --gx-tint-a:color-mix(in srgb,var(--gx-a) 12%,transparent);
    --gx-aur-1:color-mix(in srgb,var(--gx-p) 40%,transparent);
    --gx-aur-2:color-mix(in srgb,var(--gx-a) 27%,transparent);
    --gx-aur-3:color-mix(in srgb,color-mix(in srgb,var(--gx-a) 45%,#3b82f6) 22%,transparent);
    --gx-aur-4:color-mix(in srgb,color-mix(in srgb,var(--gx-p) 50%,#d946ef) 15%,transparent);
  }
}
/* Light theme (index, dashboard, embed switch data-theme="light") */
:root[data-theme="light"]{
  --bg:#eef1fa;
  --surface:rgba(255,255,255,.68);
  --card:rgba(255,255,255,.54);
  --card2:rgba(255,255,255,.74);
  --subtle:rgba(15,23,42,.055);
  --border:rgba(30,41,90,.13);
  --border2:rgba(30,41,90,.22);
  --text:#0f172a;
  --muted:#55627a;
  --gx-solid-card:#ffffff;
  --gx-solid-surface:#f5f7fd;
  --gx-strong:rgba(255,255,255,.88);
  --gx-chrome:rgba(255,255,255,.66);
  --gx-dim:rgba(15,23,42,.38);
  --gx-hair:rgba(30,41,90,.12);
  --gx-hair-hi:rgba(255,255,255,.95);
  --gx-spot:rgba(124,58,237,.07);
  --gx-shadow:0 22px 50px -28px rgba(30,41,90,.42),0 3px 10px -6px rgba(30,41,90,.2);
  --gx-shadow-soft:0 14px 30px -22px rgba(30,41,90,.36);
  --gx-inner:inset 0 1px 0 rgba(255,255,255,.85);
  --gx-aur-1:rgba(124,58,237,.2);
  --gx-aur-2:rgba(6,182,212,.18);
  --gx-aur-3:rgba(59,130,246,.14);
  --gx-aur-4:rgba(217,70,239,.1);
  --gx-grid:rgba(30,41,90,.05);
}
/* Admin: calmer backdrop behind dense tables; secondary text lifted a little
   so small labels stay readable on translucent panels */
:root[data-gx-page="admin"]{--gx-grid:rgba(160,175,255,.04);--muted:#6f7f9c}
/* No backdrop-filter support: make floating surfaces near-opaque */
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  :root{--gx-strong:rgba(11,14,28,.97);--gx-chrome:rgba(8,10,22,.94);--surface:rgba(11,14,28,.9)}
  :root[data-theme="light"]{--gx-strong:rgba(255,255,255,.98);--gx-chrome:rgba(255,255,255,.95);--surface:rgba(255,255,255,.94)}
}

/* ── 2. BACKDROP: aurora + grid, behind everything ───────────────────────────
   Fixed layers at z-index:-1. html keeps no background so the body colour
   propagates to the canvas and stays underneath these layers. */
body{background-color:var(--bg);background-image:none}
html::before,html::after,body::before{content:"";position:fixed;pointer-events:none;z-index:-1}
html::before,html::after{top:-18%;right:-18%;bottom:-18%;left:-18%;will-change:transform}
html::before{
  background:
    radial-gradient(circle 44vmax at 22% 26%,var(--gx-aur-1),transparent 72%),
    radial-gradient(circle 38vmax at 82% 74%,var(--gx-aur-3),transparent 72%);
  animation:gxDriftA 38s ease-in-out infinite alternate;
}
html::after{
  background:
    radial-gradient(circle 40vmax at 80% 16%,var(--gx-aur-2),transparent 72%),
    radial-gradient(circle 36vmax at 20% 86%,var(--gx-aur-4),transparent 72%);
  animation:gxDriftB 52s ease-in-out infinite alternate;
}
body::before{
  top:0;right:0;bottom:0;left:0;
  background-image:
    linear-gradient(var(--gx-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--gx-grid) 1px,transparent 1px);
  background-size:46px 46px;
  background-position:center top;
  -webkit-mask-image:radial-gradient(ellipse 90% 72% at 50% 22%,#000 10%,transparent 76%);
          mask-image:radial-gradient(ellipse 90% 72% at 50% 22%,#000 10%,transparent 76%);
}
@keyframes gxDriftA{
  0%{transform:translate3d(-3%,-2%,0) rotate(0deg) scale(1)}
  50%{transform:translate3d(4%,3%,0) rotate(8deg) scale(1.1)}
  100%{transform:translate3d(-2%,5%,0) rotate(-6deg) scale(1.04)}
}
@keyframes gxDriftB{
  0%{transform:translate3d(3%,2%,0) rotate(0deg) scale(1.05)}
  50%{transform:translate3d(-5%,-3%,0) rotate(-9deg) scale(1)}
  100%{transform:translate3d(2%,-5%,0) rotate(7deg) scale(1.12)}
}
/* The storefront hero used three blur(90px) orbs; the aurora replaces them. */
.hero-orb,.hero-blob{display:none}

/* Elements injected by glass.js */
.gx-fx{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:0;transition:opacity 1.2s ease}
.gx-fx.gx-on{opacity:.7}
.gx-orb{
  position:fixed;top:0;left:0;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;
  background:radial-gradient(closest-side,var(--gx-glow-a),transparent);
  z-index:-1;pointer-events:none;opacity:0;transition:opacity .6s ease;will-change:transform;
}
.gx-orb.gx-on{opacity:.5}
.gx-progress{
  position:fixed;top:0;left:0;right:0;height:2px;z-index:9998;pointer-events:none;
  background:linear-gradient(90deg,var(--gx-p),var(--gx-a));
  box-shadow:0 0 12px var(--gx-glow-a);
  transform:scaleX(0);transform-origin:0 50%;
}

/* ── 3. BASE ─────────────────────────────────────────────────────────────── */
::selection{background:var(--gx-glow-p);color:#fff}
h1,h2,.logo-text,.card-title,.section-title,.page-title,.faq-section-title,.stat-value,.stat-val,
.hero-stat strong,.number-404,.topbar-logo{font-family:var(--gx-display)}
h1,h2{letter-spacing:-.025em}
input[type="checkbox"],input[type="radio"]{accent-color:var(--primary)}
/* Native option lists cannot be translucent */
select option,select optgroup{background-color:var(--gx-solid-card)!important;color:var(--text)}

/* Brand gradient text gets a slow sheen */
.logo-text,.hero h1 span,.hero h1 .grad{
  background-image:linear-gradient(110deg,#a78bfa 0%,#22d3ee 28%,#a78bfa 52%,#06b6d4 76%,#a78bfa 100%);
  background-size:260% 100%;
  -webkit-background-clip:text;background-clip:text;
  animation:gxSheen 9s linear infinite;
}
@keyframes gxSheen{to{background-position:-260% 0}}
.logo svg,.topbar-logo svg{filter:drop-shadow(0 0 10px var(--gx-glow-p));transition:filter .3s ease}

/* ── 4. CHROME: header, admin top bar and sidebar, footer ────────────────── */
.header,.topbar{
  background:var(--gx-chrome);
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
  border-bottom-color:var(--gx-hair);
  border-image:linear-gradient(90deg,transparent 2%,var(--gx-glow-p) 30%,var(--gx-glow-a) 70%,transparent 98%) 1;
  box-shadow:0 18px 44px -32px rgba(0,0,0,.9);
  transition:background-color .3s ease,box-shadow .3s ease;
}
:root[data-theme="light"] .header{background:var(--gx-chrome)}
.gx-scrolled .header{box-shadow:0 22px 50px -30px rgba(0,0,0,.95),0 1px 0 var(--gx-hair)}
.body-wrap>.sidebar{
  background:rgba(9,12,25,.5);
  -webkit-backdrop-filter:var(--gx-blur);backdrop-filter:var(--gx-blur);
  border-right-color:var(--gx-hair);
}
.mob-search-bar{background:var(--gx-strong)}
.footer{box-shadow:inset 0 1px 0 var(--gx-hair)}

/* ── 5. SURFACES ─────────────────────────────────────────────────────────── */
/* 5a. Film cards: translucent fill comes from the tokens; add glass edges.
       No backdrop-filter here (repeated items). */
.product-card,.stat-card,.order-card,.profile-card,.user-card,.nav-menu,.qaction-card,.dash-stat,
.dash-qa-card,.table-card,.info-block,.value-card,.team-card,.info-card,.vacancy-card,.faq-item,
.how-step,.support-ch,.spend-chart,.rot-table,.summary-box,.toc,.mission-visual,.cta-box,
.general-cta,.sidebar-activity,.dash-welcome,.od-block,.cart-item,.featured-chip,.order-box,
.wg-card,.vacancies-empty{
  box-shadow:var(--gx-inner),var(--gx-shadow-soft);
}
.product-card{animation-fill-mode:backwards} /* release the entrance so hover motion can apply */
.card-img,.modal-brand-img{
  background:radial-gradient(120% 100% at 50% 0%,rgba(255,255,255,.11),transparent 62%),rgba(6,8,18,.38);
}
:root[data-theme="light"] .card-img,:root[data-theme="light"] .modal-brand-img{
  background:radial-gradient(120% 100% at 50% 0%,rgba(255,255,255,.9),transparent 62%),rgba(30,41,90,.06);
}

/* 5b. Hero panels: real frosted glass (one or two per page) */
.card{
  position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.03)),rgba(10,13,28,.5);
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
  border-color:var(--gx-hair);
  box-shadow:var(--gx-inner),var(--gx-shadow),0 0 80px -30px var(--gx-glow-p);
}
:root[data-theme="light"] .card{background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.58))}
.card:hover{box-shadow:var(--gx-inner),var(--gx-shadow),0 0 90px -26px var(--gx-glow-p)}
/* Animated light ring around the hero panel. Only where the mask that cuts
   the ring out is supported, otherwise the gradient would cover the card. */
@property --gx-angle{syntax:'<angle>';inherits:false;initial-value:0deg}
@supports ((-webkit-mask-composite:xor) or (mask-composite:exclude)){
  .card::before{
    content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;padding:1px;pointer-events:none;
    background:conic-gradient(from var(--gx-angle),transparent 0 52%,var(--gx-a) 68%,var(--gx-p) 84%,transparent 100%);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;mask-composite:exclude;
    opacity:.85;
    animation:gxSpin 7s linear infinite;
  }
}
@keyframes gxSpin{to{--gx-angle:360deg}}

.home-hero{
  background:linear-gradient(135deg,var(--gx-tint-p),rgba(10,14,34,.46) 55%,var(--gx-tint-a));
  border-color:var(--gx-hair);
  box-shadow:var(--gx-inner),var(--gx-shadow);
}
.cta-strip{box-shadow:var(--gx-inner),var(--gx-shadow-soft)}
.hero-search input{box-shadow:var(--gx-inner),0 18px 46px -26px var(--gx-glow-p)}
.hero-search input:focus{box-shadow:0 0 0 4px var(--gx-tint-p),0 18px 50px -22px var(--gx-glow-p)}
.hero-stat strong,.stat-value,.stat-val{text-shadow:0 0 26px var(--gx-tint-p)}

@media (min-width:821px){
  .user-card,.nav-menu,.stat-card,.dash-stat,.dash-welcome,.home-hero,.cta-box,.general-cta,
  .mission-visual,.toc,.hero-search input,.trust-bar,.welcome-banner{
    -webkit-backdrop-filter:var(--gx-blur);backdrop-filter:var(--gx-blur);
  }
}

/* ── 6. OVERLAYS: stronger glass so text stays readable ──────────────────── */
.modal-overlay,.order-modal-overlay,.drawer-overlay,.odrawer-overlay,.cart-overlay,.sidebar-overlay,
.mob-drawer-backdrop{
  background:var(--gx-dim);
  -webkit-backdrop-filter:blur(8px) saturate(140%);backdrop-filter:blur(8px) saturate(140%);
}
#bankOverlay,#pawapayOverlay,#overrideModalOverlay,#mk-confirm-backdrop{
  background:var(--gx-dim)!important;
  -webkit-backdrop-filter:blur(8px) saturate(140%);backdrop-filter:blur(8px) saturate(140%);
}
.modal,.order-modal,.drawer,.odrawer,.cart-drawer,.mob-drawer-panel,.dropdown,.cdrop-panel,.toast,
.bottom-tabs,.wg-header{
  background:var(--gx-strong);
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
  border-color:var(--gx-hair);
}
:root[data-theme="light"] .modal{background:var(--gx-strong)}
#notifPanel,#idxNotifPanel,#pwaBar,#overrideModalOverlay>div{
  background:var(--gx-strong)!important;
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
  border-color:var(--gx-hair)!important;
}
/* Dialog boxes that JS builds with inline styles inside a fixed overlay
   (e.g. the dashboard export dialog): same strong glass. */
[style*="position:fixed"]>[style*="background:var(--card"],
[style*="position: fixed"]>[style*="background:var(--card"],
[style*="position:fixed"]>[style*="background:var(--surface"],
[style*="position: fixed"]>[style*="background:var(--surface"]{
  background:var(--gx-strong)!important;
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
}
:root #mk-confirm-box{
  background:var(--gx-strong);
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
  border-color:var(--gx-hair);
  box-shadow:var(--gx-inner),var(--gx-shadow),0 0 70px -30px var(--gx-glow-p);
}
.modal,.order-modal,.drawer,.odrawer,.cart-drawer,.dropdown,.cdrop-panel{
  box-shadow:var(--gx-inner),var(--gx-shadow),0 0 70px -34px var(--gx-glow-p);
}
.toast{box-shadow:var(--gx-inner),var(--gx-shadow)}
.bottom-tabs{border-top-color:var(--gx-hair);box-shadow:0 -14px 36px -22px rgba(0,0,0,.8)}
/* Bars that stay put while content scrolls under them */
.order-modal-head{background:var(--gx-strong);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
:root[data-gx-page="admin"] th{background:rgba(13,17,32,.88)}
/* Entrance for dialogs. No fill-mode: once finished nothing lingers on the box. */
.modal-overlay .modal,.order-modal-overlay .order-modal,:root #mk-confirm-box{
  animation:gxPop .3s var(--gx-ease) backwards;
}
@keyframes gxPop{from{opacity:0;transform:translate3d(0,16px,0) scale(.97)}}

/* ── 7. CONTROLS ─────────────────────────────────────────────────────────── */
/* Primary CTAs: brand gradient with a light sweep. Kept at single-class
   specificity so state rules (:disabled, .loading …) on the pages still win. */
:where(:root:not([data-gx-page="admin"])) .btn-primary,
.btn-submit,.btn-buy,.hero-search-btn,.nav-cta,.cart-checkout-btn,.btn-signin,.btn-apply,.btn-nav,
.save-btn,.od-reveal-btn,.home-hero-cta.primary{
  background-image:
    linear-gradient(110deg,transparent 32%,rgba(255,255,255,.3) 48%,transparent 64%),
    linear-gradient(135deg,var(--primary),var(--accent));
  background-size:260% 100%,100% 100%;
  background-position:150% 0,0 0;
  background-repeat:no-repeat;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 12px 30px -14px var(--gx-glow-p);
}
:root[data-gx-page="admin"] .btn-primary{box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 10px 26px -14px var(--gx-glow-p)}
.btn-ghost,.topbar-btn,.btn-outline,.cat-btn,.status-tab,.filter-btn,.page-btn,.int-tab,.refresh-btn,
.act-btn,.theme-toggle,.cart-btn,.mob-menu-btn,.sort-select,.social-link{
  box-shadow:var(--gx-inner);
}
.tabs{box-shadow:inset 0 1px 3px rgba(0,0,0,.35)}
.tab.active{
  background-image:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 22px -10px var(--gx-glow-p);
}
.cat-btn.active,.status-tab.active,.filter-btn.active{box-shadow:var(--gx-inner),0 8px 24px -12px var(--gx-glow-p)}
.gbtn-wrap:hover .btn-google{background:rgba(255,255,255,.09)}
.nav-item.active{box-shadow:inset 3px 0 0 var(--primary),0 0 26px -12px var(--gx-glow-p)}

/* ── 8. PAGE DETAILS ─────────────────────────────────────────────────────── */
/* Sign-in: the card is the hero object */
:root[data-gx-page="login"] .card{animation:gxRise .7s var(--gx-ease) backwards}
:root[data-gx-page="login"] .header{animation:gxDrop .6s var(--gx-ease) backwards}
@keyframes gxRise{from{opacity:0;transform:translate3d(0,26px,0) scale(.975)}}
@keyframes gxDrop{from{opacity:0;transform:translate3d(0,-14px,0)}}
.verify-icon{animation:gxFloat 4.5s ease-in-out infinite}
@keyframes gxFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-7px,0)}}

/* Storefront + content heroes: staggered entrance of the static headline block */
:root:not([data-gx-page="dash"]):not([data-gx-page="admin"]) .hero h1{animation:gxRise .8s var(--gx-ease) backwards}
:root:not([data-gx-page="dash"]):not([data-gx-page="admin"]) .hero h1+p{animation:gxRise .8s .08s var(--gx-ease) backwards}
.hero-search{animation:gxRise .8s .16s var(--gx-ease) backwards}
.hero-live-badge,.section-badge{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.number-404{filter:drop-shadow(0 0 34px var(--gx-glow-p))}

/* Admin: sidebar items cascade in (opacity only) */
.body-wrap>.sidebar .nav-item{animation:gxFade .5s ease backwards}
.body-wrap>.sidebar .sidebar-section:nth-child(2) .nav-item{animation-delay:.06s}
.body-wrap>.sidebar .sidebar-section:nth-child(3) .nav-item{animation-delay:.12s}
.body-wrap>.sidebar .sidebar-section:nth-child(4) .nav-item{animation-delay:.18s}
.body-wrap>.sidebar .sidebar-section:nth-child(n+5) .nav-item{animation-delay:.24s}
@keyframes gxFade{from{opacity:0}}
:root[data-gx-page="admin"] td{border-bottom-color:rgba(255,255,255,.045)}

/* Embed widget runs inside other sites: keep it quiet */
:root[data-gx-page="embed"]::before,:root[data-gx-page="embed"]::after{animation:none}

/* ── 9. JS-INJECTED WIDGETS ──────────────────────────────────────────────────
   chat-widget.js appends its own <style> after this file, hence :root prefix. */
/* The chat widget is dark in both themes (its text colours are fixed), so
   these use fixed dark glass values instead of the theme tokens. */
:root .mkpayz-chat-panel{
  background:rgba(11,14,28,.86);
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
  border-color:rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 22px 60px -26px rgba(0,0,0,.8),0 0 70px -30px var(--gx-glow-p);
}
:root .mkpayz-chat-header{background:linear-gradient(135deg,var(--gx-tint-p),rgba(8,10,22,.3));border-bottom-color:rgba(255,255,255,.12)}
:root .mkpayz-chat-bubble.bot,:root .mkpayz-chat-option-btn,:root .mkpayz-chat-input,:root .mkpayz-chat-text-input{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);
}
:root .mkpayz-chat-option-btn:hover{background:rgba(255,255,255,.12)}
:root .mkpayz-chat-input-area{background:rgba(6,8,18,.5);border-top-color:rgba(255,255,255,.12)}
:root .mkpayz-chat-reply-bar,:root .mkpayz-chat-att-bar,:root .mkpayz-chat-rate-note{background:rgba(255,255,255,.06)}
:root .mkpayz-chat-btn{box-shadow:0 8px 30px -6px var(--gx-glow-p),inset 0 1px 0 rgba(255,255,255,.3)}

/* ── 10. MOTION UTILITIES (classes are added by glass.js) ────────────────── */
.gx-reveal{opacity:0;transform:translate3d(0,18px,0) scale(.985);transition:opacity .7s var(--gx-ease),transform .7s var(--gx-ease)}
.gx-reveal.gx-in{opacity:1;transform:none}
.gx-float{animation:gxFloat 5s ease-in-out infinite}
.gx-gradient-text{
  background-image:linear-gradient(110deg,#a78bfa,#22d3ee,#a78bfa);background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  animation:gxSheen 8s linear infinite;
}
.gx-glass{
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.03));
  -webkit-backdrop-filter:var(--gx-blur);backdrop-filter:var(--gx-blur);
  border:1px solid var(--gx-hair);box-shadow:var(--gx-inner),var(--gx-shadow-soft);
}
.gx-glass-strong{
  background:var(--gx-strong);
  -webkit-backdrop-filter:var(--gx-blur-strong);backdrop-filter:var(--gx-blur-strong);
  border:1px solid var(--gx-hair);box-shadow:var(--gx-inner),var(--gx-shadow);
}

/* ── 11. POINTER DEVICES: hover light, tilt, sweeps ──────────────────────── */
@media (hover:hover) and (pointer:fine){
  /* light that follows the pointer inside a card (background-image only, so
     the card keeps its own fill and pseudo-elements) */
  .gx-spot:hover{
    background-image:radial-gradient(260px circle at var(--gx-mx) var(--gx-my),var(--gx-spot),transparent 68%);
    border-color:var(--gx-hair-hi);
  }
  .gx-tilt:hover{
    transform:perspective(900px) rotateX(var(--gx-rx,0deg)) rotateY(var(--gx-ry,0deg)) translate3d(0,-5px,0);
    box-shadow:var(--gx-inner),0 26px 60px -24px rgba(0,0,0,.85),0 0 46px -14px var(--gx-glow-p);
  }
  :where(:root:not([data-gx-page="admin"])) .btn-primary:hover,
  .btn-submit:hover,.btn-buy:hover,.hero-search-btn:hover,.nav-cta:hover,.cart-checkout-btn:hover,
  .btn-signin:hover,.btn-apply:hover,.btn-nav:hover,.save-btn:hover,.od-reveal-btn:hover,
  .home-hero-cta.primary:hover{
    background-position:-50% 0,0 0;
    transition:background-position .9s var(--gx-ease),box-shadow .25s ease,filter .16s ease,transform .14s ease,opacity .15s ease;
  }
  .logo:hover svg,.topbar-logo:hover svg{filter:drop-shadow(0 0 16px var(--gx-glow-a))}
  .btn-ghost:hover,.topbar-btn:hover,.cat-btn:hover,.status-tab:hover,.filter-btn:hover{
    box-shadow:var(--gx-inner),0 10px 26px -14px var(--gx-glow-p);
  }
  .nav-item:hover{box-shadow:inset 2px 0 0 var(--gx-glow-p)}
}
/* A light that travels along the bottom edge of the header (wide screens) */
@media (min-width:821px) and (prefers-reduced-motion:no-preference){
  .header,.topbar{
    background-image:linear-gradient(90deg,transparent,var(--gx-glow-a),transparent);
    background-size:28% 1px;
    background-repeat:no-repeat;
    background-position:-40% 100%;
    animation:gxScan 9s linear infinite;
  }
  :root[data-gx-page="login"] .header{animation:gxDrop .6s var(--gx-ease) backwards,gxScan 9s linear infinite}
}
@keyframes gxScan{to{background-position:140% 100%}}
/* Live status dots breathe */
.topbar-user-dot{animation:gxPulse 2.4s ease-out infinite}
@keyframes gxPulse{0%{box-shadow:0 0 0 0 rgba(16,185,129,.55)}70%,100%{box-shadow:0 0 0 7px rgba(16,185,129,0)}}
/* Touch: cards answer a press */
@media (hover:none){
  .product-card:active,.qaction-card:active,.dash-qa-card:active,.vacancy-card:active{
    transform:scale(.985);transition:transform .12s ease;
  }
}

/* ── 12. SMALL SCREENS AND TOUCH ─────────────────────────────────────────── */
@media (max-width:820px){
  :root{--gx-blur:blur(10px) saturate(150%);--gx-blur-strong:blur(12px) saturate(160%)}
  html::before,html::after{top:-12%;right:-12%;bottom:-12%;left:-12%;animation-duration:64s}
  html::after{animation-duration:86s}
  body::before{background-size:38px 38px}
  .modal-overlay,.order-modal-overlay,.drawer-overlay,.odrawer-overlay,.cart-overlay,.sidebar-overlay,
  .mob-drawer-backdrop,#bankOverlay,#pawapayOverlay,#overrideModalOverlay,#mk-confirm-backdrop{
    -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  }
  /* admin sidebar slides over content on phones */
  .body-wrap>.sidebar{background:var(--gx-strong)}
}
/* Storefront header on phones and tablets. Below 900px the page hides the nav
   that carried the auto margin, which left the action buttons bunched beside
   the logo. Pin the logo left and the actions to the right edge, evenly spaced. */
@media (max-width:900px){
  :root[data-gx-page="store"] .header-inner>.logo{margin-right:auto}
}
@media (max-width:640px){
  :root[data-gx-page="store"] .header-inner{gap:10px}
  /* The cart drawer inherits left:0 from the bottom-sheet rule in styles.css
     while the page keeps it a right-hand drawer; between 441 and 640px wide
     that left an 80px sliver of the closed drawer on screen. */
  .cart-drawer{left:auto}
}
@media (max-width:360px){
  :root[data-gx-page="store"] .header-inner{gap:6px}
}
@media (max-width:820px){
  /* paint-driven loops are desktop-only: phones keep the compositor-only aurora */
  .card::before,.logo-text,.hero h1 span,.hero h1 .grad{animation:none}
}
@media (hover:none){
  .card:hover{box-shadow:var(--gx-inner),var(--gx-shadow),0 0 80px -30px var(--gx-glow-p)}
}
/* Weak devices / data saver (class set by glass.js) */
.gx-lite::before,.gx-lite::after{animation:none}
.gx-lite .card::before,.gx-lite .logo-text,.gx-lite .hero h1 span{animation:none}

/* ── 13. PREFERENCES AND PRINT ───────────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  html::before,html::after,.card::before,.logo-text,.hero h1 span,.hero h1 .grad,.gx-float,
  .gx-gradient-text,.verify-icon,.card,.header,.topbar,.hero h1,.hero h1+p,.hero-search,.nav-item,
  .modal,.order-modal,#mk-confirm-box,.topbar-user-dot{animation:none!important}
  .gx-reveal,.gx-reveal.gx-in{opacity:1!important;transform:none!important;transition:none!important}
  .gx-fx,.gx-orb{display:none!important}
}
@media print{
  html::before,html::after,body::before,.gx-fx,.gx-orb,.gx-progress{display:none!important}
  :root{--surface:#fff;--card:#fff;--card2:#fff;--subtle:#f3f4f6;--border:#d1d5db;--border2:#9ca3af;--bg:#fff}
  *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
/* Cross-page view transitions were tried and removed: on the long homepage the
   opt-in is parsed too late and Chrome logs an InvalidStateError on each visit. */
