/* ════════════════════════════════════════════════════════════════
   B-EASY brand (Brand Sheet v1, Nov 2026). Loaded LAST, after till.css.
   Electric Violet #834DFB · Turbo #F0E100 · Haiti #18102B · Blue Chalk #F5F3FF
   DM Sans for everything, Noto Sans Khmer for Khmer, the slab face only
   for the B-EASY wordmark. A shop's own colour (Settings) still drives
   --brand; these are the grounds and fonts around it.
   ════════════════════════════════════════════════════════════════ */

:root { --be-violet:#834DFB; --be-turbo:#F0E100; --be-haiti:#18102B; --be-chalk:#F5F3FF; --be-line:#E3DFF5; --be-soft:#5A5368; }

/* ── dark screen: Haiti ground ───────────────────────────────── */
html[data-theme=dark] {
  --nx-bg:#18102B; --nx-s1:#211838; --nx-s2:#291F44; --nx-s3:#332852;
  --nx-line:rgba(245,243,255,.08); --nx-line2:rgba(245,243,255,.14);
  --nx-ink:#F5F3FF; --nx-mute:rgba(245,243,255,.6);
  --dv2:#F59E0B;
  --bx-bg:#18102B; --bx-surface:#211838; --bx-surface2:#291F44; --bx-ink:#F5F3FF;
  --bx-mute:rgba(245,243,255,.6); --bx-line:rgba(245,243,255,.09); --bx-shadow:0 8px 28px rgba(8,4,20,.5);
}
html[data-theme=dark] body::before {
  background: radial-gradient(900px 520px at 12% -10%, rgb(var(--brand) / .14), transparent 60%) !important;
}
html[data-theme=dark] select option { background:#211838; }
html[data-theme=dark] #beLoading, #beLoading { background:#18102B !important; }

/* ── light screen: Blue Chalk ground, Haiti ink ──────────────── */
html[data-theme=light] {
  --bx-bg:#F5F3FF; --bx-surface:#FFFFFF; --bx-surface2:#EEEAFB; --bx-ink:#18102B;
  --bx-mute:rgba(24,16,43,.6); --bx-line:rgba(24,16,43,.08); --bx-shadow:0 8px 28px rgba(24,16,43,.1);
}
html[data-theme=light], html[data-theme=light] body { background:#F5F3FF; }
html[data-theme=light] body { color:#18102B; }

/* ── type: DM Sans everywhere, Khmer in Noto Sans Khmer ──────── */
body, html[data-theme=dark] body { font-family:"DM Sans","Noto Sans Khmer",system-ui,sans-serif; }
.font-display, html[data-theme=dark] .font-display,
#storeName, html[data-theme=dark] #storeName,
html[data-theme=dark] #completeSale {
  font-family:"DM Sans","Noto Sans Khmer",system-ui,sans-serif !important; font-weight:700; letter-spacing:-.01em;
}
:lang(km), [lang=km] { line-height:1.7; }
.be-wordmark { font-family:ChunkFive,"Alfa Slab One",Georgia,serif; font-weight:400; letter-spacing:.16em; }

/* Gate title: plain, no gradient text */
html[data-theme=dark] #gate h1 { background:none !important; color:#F5F3FF !important; -webkit-text-fill-color:currentColor; }
html[data-theme=dark] #gate { background:#18102B !important; }

/* Main buttons: flat brand colour (no gradient glow) */
html[data-theme=dark] .bg-gold:not(.bg-gold\/15):not(.bg-gold\/10),
html[data-theme=dark] #completeSale, html[data-theme=dark] #loginGo, html[data-theme=dark] #ownerGo {
  background: rgb(var(--brand)) !important;
}

/* ── B-EASY logo pieces ──────────────────────────────────────── */
.be-mark.hidden { display:none !important; }
.be-mark { display:block; height:64px; width:auto; margin:0 auto 14px; }
.be-powered { display:inline-flex; align-items:center; gap:6px; }
.be-powered img { height:14px; width:auto; }
.be-powered .be-wordmark { font-size:11px; letter-spacing:.14em; }

/* Desktop side menu: the real mark + wordmark on flat Haiti */
@media (min-width: 1024px) {
  html[data-theme=dark] #tabs { background:#18102B !important; }
  html[data-theme=dark] #tabs::before {
    content:"B-EASY"; padding-left:44px; height:40px;
    font:400 17px/1 ChunkFive,"Alfa Slab One",Georgia,serif !important; letter-spacing:.16em; color:#F5F3FF;
    background:url("img/b-easy-mark.svg") left center / auto 36px no-repeat !important; border-radius:0;
  }
  html[data-theme=dark] #tabs::after { content:none !important; display:none !important; }
}

/* Login screen on the light setting: Blue Chalk, not the old beige */
html[data-theme=light] #gate { background-color:#F5F3FF !important; }
