/* ==========================================================================
   BEST GAINS GHANA — THEME 4 · "STUDIO"
   A self-contained design system. Loaded ONLY by the front_studio / user_studio
   layouts, so nothing here can leak into Themes 1–3 or the Professional theme.
   Sections: 1 Tokens · 2 Base · 3 Shell · 4 Controls · 5 Forms · 6 Surfaces
             7 Data · 8 Overlays · 9 Pages · 10 Legacy bridge · 11 Motion/print
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  --font-ui: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: var(--font-display);

  /* Type scale */
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14.5px; --fs-lg: 16px;
  --fs-xl: 18px; --fs-2xl: 22px; --fs-3xl: 28px; --fs-4xl: 36px; --fs-5xl: 52px;

  /* Spacing (4px grid) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;

  /* Radii: deliberately varied — small for controls, medium for panels, soft for festive shapes */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 22px; --r-pill: 999px;

  /* Layout */
  --sb-w: 256px; --sb-w-min: 72px; --topbar-h: 62px; --tab-h: 64px;
  --content-max: 1200px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 110ms; --t-base: 180ms;

  /* ===== Christmas · Light: warm cream, evergreen, Christmas red, gold ===== */
  --bg: #fbf4e6;
  --bg-sunk: #f3e8d2;
  --surface: #ffffff;
  --surface-2: #fdf9f0;
  --surface-hover: #faf1df;
  --raised: #ffffff;
  --line: #eadbbf;
  --line-strong: #d8c4a0;
  --text: #1c2a24;
  --text-2: #43544b;
  --text-3: #5b6c63;

  --forest: #0e4a38;          /* evergreen: navigation, bands */
  --forest-2: #136049;
  --forest-deep: #082f24;
  --forest-soft: #dcebdf;
  --on-forest: #f8f0de;
  --red: #c4112f;             /* Christmas red: primary actions */
  --red-hover: #a30e27;
  --berry: #7e1431;           /* cranberry: depth */
  --red-soft: #fbe4e4;
  --cta: var(--red);
  --cta-hover: var(--red-hover);
  --on-cta: #ffffff;

  --ink: #0e4a38;             /* "selected / strong" fill (evergreen) */
  --ink-hover: #136049;
  --on-ink: #f8f0de;
  --gold: #e0a43a;
  --gold-text: #86550a;
  --gold-soft: #fbebc1;
  --gold-line: #ebcb86;
  --focus: #0e6b4e;
  --scrim: rgba(8, 47, 36, .5);
  --snow: #ffffff;

  --ok: #1b7a4a;   --ok-soft: #dff3e6;   --ok-line: #b2dcc2;
  --warn: #9a5a06; --warn-soft: #fcefd0; --warn-line: #efd29a;
  --bad: #b3261e;  --bad-soft: #fbe5e2;  --bad-line: #efb8b2;
  --info: #1f5f9e; --info-soft: #e2edf8; --info-line: #b6cfe9;
  --mute: #55625b; --mute-soft: #efe9db; --mute-line: #ddd3bd;

  --shadow-1: 0 1px 2px rgba(60, 40, 10, .06);
  --shadow-menu: 0 14px 34px -10px rgba(8, 47, 36, .28), 0 2px 6px rgba(8, 47, 36, .08);
  --shadow-modal: 0 30px 70px -18px rgba(8, 47, 36, .4), 0 4px 14px rgba(8, 47, 36, .1);
  --shadow-pop: 0 10px 0 -4px rgba(8, 47, 36, .14);

  color-scheme: light;
}

/* ===== Christmas · Dark: a winter evening — deep evergreen planes, cranberry, brass ===== */
:root[data-mode="dark"] {
  --bg: #0b1914;
  --bg-sunk: #07110d;
  --surface: #12261f;
  --surface-2: #16302a;
  --surface-hover: #1b3a32;
  --raised: #1b3a32;
  --line: #244238;
  --line-strong: #356052;
  --text: #f6eedd;
  --text-2: #c5d3c7;
  --text-3: #93aa9b;

  --forest: #0a3b2c;
  --forest-2: #0f5240;
  --forest-deep: #051f17;
  --forest-soft: rgba(47, 138, 102, .18);
  --on-forest: #f6eedd;
  --red: #d92d45;
  --red-hover: #ea4a5f;
  --berry: #8e1b3a;
  --red-soft: rgba(217, 45, 69, .16);
  --on-cta: #ffffff;

  --ink: #2a7f5e;
  --ink-hover: #349670;
  --on-ink: #ffffff;
  --gold: #ebb649;
  --gold-text: #ecb94f;
  --gold-soft: rgba(235, 182, 73, .13);
  --gold-line: rgba(235, 182, 73, .34);
  --focus: #ecb94f;
  --scrim: rgba(0, 0, 0, .64);
  --snow: #ffffff;

  --ok: #55cf95;   --ok-soft: rgba(85, 207, 149, .13);   --ok-line: rgba(85, 207, 149, .32);
  --warn: #e8aa48; --warn-soft: rgba(232, 170, 72, .13); --warn-line: rgba(232, 170, 72, .32);
  --bad: #f58a83;  --bad-soft: rgba(245, 138, 131, .13); --bad-line: rgba(245, 138, 131, .32);
  --info: #7cb4f3; --info-soft: rgba(124, 180, 243, .13);--info-line: rgba(124, 180, 243, .32);
  --mute: #a7b8ad; --mute-soft: rgba(167, 184, 173, .1); --mute-line: rgba(167, 184, 173, .24);

  --shadow-1: 0 1px 0 rgba(0, 0, 0, .35);
  --shadow-menu: 0 18px 42px -10px rgba(0, 0, 0, .75), 0 0 0 1px var(--line);
  --shadow-modal: 0 30px 80px -16px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-strong);
  --shadow-pop: 0 10px 0 -4px rgba(0, 0, 0, .35);

  color-scheme: dark;
}

/* ---------- 2. BASE ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.sg-theming * { transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), fill var(--t-base) var(--ease) !important; }
body.sg {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: var(--fs-md); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(.sg) :is(h1, h2, h3, h4, h5, h6) { margin: 0; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--text); }
:where(.sg) :is(h1, h2) { font-family: var(--font-display); }
:where(.sg) p { margin: 0; }
:where(.sg) a { color: inherit; text-decoration: none; }
:where(.sg) a:hover { color: inherit; text-decoration: none; }
:where(.sg) :is(img, svg) { max-width: 100%; }
:where(.sg) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.sg) button { font: inherit; color: inherit; }
.sg ::selection { background: var(--gold-soft); color: var(--text); }
.sg :focus { outline: none; }
.sg :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.sg input:focus-visible, .sg select:focus-visible, .sg textarea:focus-visible { outline-offset: 0; }
.sg-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sg [hidden] { display: none !important; }
.sg-mono { font-family: var(--font-mono); font-feature-settings: "zero"; letter-spacing: -.01em; }
.sg-num { font-variant-numeric: tabular-nums lining-nums; }
.sg-serif { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.sg-muted { color: var(--text-3); }
.sg-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sg-skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-md); font-weight: 600; }
.sg-skip:focus { top: 12px; }

/* Icons (Lucide sprite; stroke set here because <use> inherits from the <svg>) */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.i--sm { width: 15px; height: 15px; } .i--lg { width: 22px; height: 22px; } .i--xl { width: 28px; height: 28px; }
.sg-only-dark { display: none; } .sg-only-light { display: inline-block; }
:root[data-mode="dark"] .sg-only-dark { display: inline-block; } :root[data-mode="dark"] .sg-only-light { display: none; }

/* Thin scrollbars */
.sg * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sg *::-webkit-scrollbar { width: 10px; height: 10px; }
.sg *::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.sg *::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. SHELL ----------------------------------------------------- */
.sg-app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
:root[data-sb="collapsed"] .sg-app { grid-template-columns: var(--sb-w-min) minmax(0, 1fr); }

.sg-sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 60;
  display: flex; flex-direction: column; background: var(--forest); color: var(--on-forest);
  --text: #f8f0de; --text-2: rgba(248, 240, 222, .82); --text-3: rgba(248, 240, 222, .58); --line: rgba(255, 255, 255, .13); --surface-hover: rgba(255, 255, 255, .08); --surface-2: rgba(255, 255, 255, .07); --line-strong: rgba(255, 255, 255, .24); --focus: #ffd36b;
  overflow: hidden;
}
.sg-brand { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 16px; flex: none; border-bottom: 1px solid var(--line); min-width: 0; }
.sg-brand__mark { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #231a05; display: grid; place-items: center; flex: none; overflow: hidden; }
.sg-brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-brand__mark .i { width: 17px; height: 17px; stroke-width: 2.2; }
.sg-brand__name { font-family: var(--font-display); font-weight: 750; font-size: 17px; letter-spacing: -.02em; line-height: 1.1; min-width: 0; }
.sg-brand__name small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.sg-iconbtn.sg-brand__close { margin-left: auto; display: none; }

.sg-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 14px 10px 10px; }
.sg-nav__label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 6px; white-space: nowrap; }
.sg-nav__label:first-child { padding-top: 2px; }
.sg-nav a {
  position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; margin: 1px 0;
  border-radius: var(--r-md); color: var(--text-2); font-weight: 500; font-size: var(--fs-md); white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sg-nav a .i { color: var(--text-3); transition: color var(--t-fast) var(--ease); }
.sg-nav a:hover { background: var(--surface-hover); color: #fff; }
.sg-nav a:hover .i { color: #ffe3a1; }
.sg-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; }
.sg-nav a[aria-current="page"] .i { color: #ffd36b; }
.sg-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #ffd36b; }
.sg-nav__count { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--gold-soft); color: var(--gold-text); border: 1px solid var(--gold-line); padding: 0 6px; border-radius: var(--r-pill); line-height: 18px; }

.sg-sidebar__foot { flex: none; padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sg-balance-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px 4px 12px 4px; background: rgba(255, 255, 255, .09); border: 1px dashed rgba(255, 255, 255, .3); min-width: 0; }
.sg-balance-chip__k { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.sg-balance-chip__v { font-family: var(--font-display); font-weight: 750; color: #fff; font-size: var(--fs-md); line-height: 1.25; }
.sg-balance-chip:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.sg-collapse-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; background: transparent; border-radius: var(--r-md); color: var(--text-3); cursor: pointer; font-size: var(--fs-sm); }
.sg-collapse-btn:hover { background: var(--surface-hover); color: var(--text); }

/* Collapsed rail (desktop only) */
@media (min-width: 1024px) {
  :root[data-sb="collapsed"] .sg-brand { padding: 0 19px; }
  :root[data-sb="collapsed"] .sg-brand__name,
  :root[data-sb="collapsed"] .sg-nav__label,
  :root[data-sb="collapsed"] .sg-nav a > span,
  :root[data-sb="collapsed"] .sg-nav__count,
  :root[data-sb="collapsed"] .sg-balance-chip > div,
  :root[data-sb="collapsed"] .sg-collapse-btn > span { display: none; }
  :root[data-sb="collapsed"] .sg-nav { padding-inline: 12px; }
  :root[data-sb="collapsed"] .sg-nav a { justify-content: center; padding: 0; }
  :root[data-sb="collapsed"] .sg-nav a[aria-current="page"]::before { left: -12px; }
  :root[data-sb="collapsed"] .sg-nav a:hover::after {
    content: attr(data-label); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
    background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: var(--r-sm); z-index: 80; pointer-events: none;
  }
  :root[data-sb="collapsed"] .sg-sidebar { overflow: visible; }
  :root[data-sb="collapsed"] .sg-nav { overflow: visible; }
  :root[data-sb="collapsed"] .sg-balance-chip { justify-content: center; padding: 10px 0; }
  :root[data-sb="collapsed"] .sg-collapse-btn { justify-content: center; padding: 0; }
  :root[data-sb="collapsed"] .sg-collapse-btn .i { transform: rotate(180deg); }
}

.sg-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.sg-topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 clamp(14px, 3vw, 40px);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.sg-iconbtn.sg-topbar__menu { display: none; }
.sg-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-sm); color: var(--text-3); }
.sg-crumb strong { color: var(--text); font-weight: 600; font-size: var(--fs-md); }
.sg-crumb .i { width: 14px; height: 14px; opacity: .6; }
.sg-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sg-iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md);
  background: transparent; border: 1px solid transparent; color: var(--text-2); cursor: pointer; padding: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.sg-iconbtn:hover { background: var(--surface); border-color: var(--line); color: var(--text); }
.sg-iconbtn[aria-expanded="true"] { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.sg-dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.sg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; flex: none; }
.sg-userbtn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 4px; border-radius: var(--r-pill); background: transparent; border: 1px solid transparent; cursor: pointer; }
.sg-userbtn:hover, .sg-userbtn[aria-expanded="true"] { background: var(--surface); border-color: var(--line); }
.sg-userbtn__name { font-weight: 550; font-size: var(--fs-sm); max-width: 130px; }
.sg-topbar-balance { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: var(--fs-sm); }
.sg-topbar-balance:hover { border-color: var(--line-strong); }
.sg-topbar-balance .i { color: var(--gold-text); width: 16px; height: 16px; }
.sg-currency { height: 36px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: var(--fs-xs); font-weight: 600; padding: 0 10px; }

.sg-content { width: 100%; max-width: calc(var(--content-max) + 80px); margin: 0 auto; padding: clamp(18px, 3vw, 36px) clamp(14px, 3vw, 40px) 72px; flex: 1 0 auto; }
.sg-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.5vw, 28px); }
.sg-page-head__title { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.sg-page-head__sub { color: var(--text-3); margin-top: 4px; font-size: var(--fs-md); max-width: 60ch; }
.sg-page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-footer { padding: 18px clamp(14px, 3vw, 40px) 24px; color: var(--text-3); font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); }
.sg-footer a:hover { color: var(--text); }

/* Mobile bottom tab bar */
.sg-tabbar { display: none; }
.sg-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 55; opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease), visibility var(--t-base); }

@media (max-width: 1023.98px) {
  .sg-app { grid-template-columns: minmax(0, 1fr) !important; }
  .sg-sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-102%); transition: transform 240ms var(--ease); box-shadow: var(--shadow-modal); visibility: hidden; padding-bottom: env(safe-area-inset-bottom); }
  .sg-nav-open .sg-sidebar { transform: none; visibility: visible; }
  .sg-nav-open .sg-scrim { opacity: 1; visibility: visible; }
  .sg-nav-open { overflow: hidden; }
  .sg-brand { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .sg-iconbtn.sg-brand__close { display: inline-grid; }
  .sg-collapse-btn { display: none; }
  .sg-iconbtn.sg-topbar__menu { display: inline-grid; margin-left: -6px; }
  .sg-topbar { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .sg-userbtn__name, .sg-userbtn > .i, .sg-topbar-balance span.sg-hide-sm { display: none; }
  .sg-userbtn { padding: 0 4px; }
  .sg-content { padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); }
  .sg-footer { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) { .sg-topbar-balance { padding: 0 10px; } .sg-crumb .sg-crumb__root, .sg-crumb > .i { display: none; } }

/* ---------- 4. CONTROLS -------------------------------------------------- */
.sg-btn {
  --b-bg: var(--cta); --b-fg: var(--on-cta); --b-bd: var(--cta); --b-bg-h: var(--cta-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  font-family: inherit; font-size: var(--fs-md); font-weight: 700; letter-spacing: -.005em; line-height: 1; white-space: nowrap;
  border-radius: var(--r-pill); box-shadow: 0 3px 0 rgba(0, 0, 0, .2); border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg); cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none; text-decoration: none !important;
}
.sg-btn:hover { background: var(--b-bg-h); color: var(--b-fg); }
.sg-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.sg-btn--secondary { --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--line-strong); --b-bg-h: var(--surface-hover); box-shadow: 0 3px 0 var(--line); }
.sg-btn--forest { --b-bg: var(--forest); --b-fg: var(--on-forest); --b-bd: var(--forest); --b-bg-h: var(--forest-2); }
.sg-btn--ghost { --b-bg: transparent; --b-fg: var(--text-2); --b-bd: transparent; --b-bg-h: var(--surface-hover); box-shadow: none; }
.sg-btn--ghost:hover { color: var(--text); }
.sg-btn--gold { --b-bg: var(--gold); --b-fg: #231a05; --b-bd: var(--gold); --b-bg-h: color-mix(in srgb, var(--gold) 88%, white); }
.sg-btn--danger { --b-bg: var(--bad-soft); --b-fg: var(--bad); --b-bd: var(--bad-line); --b-bg-h: color-mix(in srgb, var(--bad) 18%, var(--surface)); }
.sg-btn--danger-solid { --b-bg: var(--bad); --b-fg: #fff; --b-bd: var(--bad); --b-bg-h: color-mix(in srgb, var(--bad) 86%, black); }
.sg-btn--sm { height: 34px; padding: 0 14px; font-size: var(--fs-sm); gap: 6px; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.sg-btn--lg { height: 48px; padding: 0 22px; font-size: var(--fs-lg); }
.sg-btn--block { width: 100%; }
.sg-btn[disabled], .sg-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.sg-btn.is-loading { pointer-events: none; position: relative; color: transparent !important; }
.sg-btn.is-loading > * { visibility: hidden; }
.sg-btn.is-loading::after { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--b-fg); border-right-color: transparent; animation: sg-spin .7s linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-link { color: var(--text); font-weight: 550; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.sg-link:hover { text-decoration-color: var(--gold); color: var(--text); }

/* Segmented control (appearance, filters) */
.sg-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--r-md); }
.sg-seg__btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 28px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.sg-seg__btn:hover { color: var(--text); }
.sg-seg__btn[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }

/* Tooltips (CSS only; keyboard + hover) */
[data-tip] { position: relative; }
@media (hover: hover) {
  [data-tip]:not(.sg-nav a):hover::after, [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 90; pointer-events: none;
    background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: var(--r-sm);
  }
}

/* ---------- 5. FORMS ----------------------------------------------------- */
.sg-field { display: grid; align-content: start; gap: 6px; margin-bottom: 18px; min-width: 0; }
.sg-field:last-child { margin-bottom: 0; }
.sg-label { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-sm); font-weight: 580; color: var(--text); }
.sg-label em, .sg-label > a { margin-left: auto; font-style: normal; font-weight: 500; color: var(--text-3); font-size: var(--fs-xs); }
.sg-label .req { color: var(--bad); margin-left: -4px; }
.sg-help { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.sg-error { font-size: var(--fs-xs); color: var(--bad); display: flex; gap: 6px; align-items: flex-start; font-weight: 500; }
.sg-input, .sg-select, .sg-textarea {
  width: 100%; min-width: 0; height: 44px; padding: 0 14px; font-family: inherit; font-size: var(--fs-md); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.sg-input::placeholder, .sg-textarea::placeholder { color: var(--text-3); opacity: .8; }
.sg-input:hover, .sg-select:hover, .sg-textarea:hover { border-color: color-mix(in srgb, var(--line-strong) 60%, var(--text-3)); }
.sg-input:focus, .sg-select:focus, .sg-textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.sg-input[readonly] { background: var(--surface-2); color: var(--text-2); }
.sg-input:disabled, .sg-select:disabled { opacity: .55; cursor: not-allowed; }
.sg-textarea { height: auto; padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.55; }
.sg-select { padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.sg-input.is-invalid, .sg-select.is-invalid, .sg-textarea.is-invalid { border-color: var(--bad); }
.sg-input.is-invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); border-color: var(--bad); }
.sg-input--mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
.sg-input--lg { height: 52px; font-size: var(--fs-lg); }
@media (max-width: 767.98px) { .sg-input, .sg-select, .sg-textarea { font-size: 16px; } }

.sg-affix { position: relative; display: block; }
.sg-affix > .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.sg-affix > .sg-input { padding-left: 40px; }
.sg-affix__end { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.sg-affix > .sg-input.has-end { padding-right: 46px; }
.sg-inline { display: flex; gap: 8px; }
.sg-inline > .sg-input { flex: 1; }
.sg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 575.98px) { .sg-grid-2 { grid-template-columns: minmax(0, 1fr); } }

.sg-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); min-height: 32px; }
.sg-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin: 0; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-content: center; cursor: pointer; transition: all var(--t-fast); }
.sg-check input:checked { background: var(--ink); border-color: var(--ink); }
.sg-check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-ink); border-bottom: 2px solid var(--on-ink); transform: rotate(-45deg) translate(1px, -1px); }
.sg-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sg-switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; }
.sg-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sg-switch span { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--line-strong); transition: background var(--t-base); }
.sg-switch span::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; top: 3px; left: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform var(--t-base) var(--ease); }
.sg-switch input:checked + span { background: var(--ok); }
.sg-switch input:checked + span::after { transform: translateX(16px); }
.sg-switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 6. SURFACES -------------------------------------------------- */
.sg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.sg-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); min-height: 58px; }
.sg-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sg-card__title .i { color: var(--text-3); }
.sg-card__sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; font-weight: 450; }
.sg-card__body { padding: 20px; }
.sg-card__foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.sg-card--flush .sg-card__body { padding: 0; }
@media (max-width: 575.98px) { .sg-card__head { padding: 14px 16px; } .sg-card__body { padding: 16px; } .sg-card__foot { padding: 12px 16px; } }
.sg-grid { display: grid; gap: 20px; min-width: 0; }
.sg-split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .sg-split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); } .sg-split--2-1 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } .sg-split--eq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sg-divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.sg-kv { display: grid; gap: 0; }
.sg-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-md); }
.sg-kv > div:last-child { border-bottom: 0; }
.sg-kv dt, .sg-kv .k { color: var(--text-3); }
.sg-kv dd, .sg-kv .v { margin: 0; font-weight: 550; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* Status chips: dot + label (readable without colour alone) */
.sg-chip { --c: var(--mute); --c-bg: var(--mute-soft); --c-bd: var(--mute-line); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--c); background: var(--c-bg); border: 1px solid var(--c-bd); white-space: nowrap; line-height: 1; }
.sg-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.sg-chip--ok { --c: var(--ok); --c-bg: var(--ok-soft); --c-bd: var(--ok-line); }
.sg-chip--warn { --c: var(--warn); --c-bg: var(--warn-soft); --c-bd: var(--warn-line); }
.sg-chip--bad { --c: var(--bad); --c-bg: var(--bad-soft); --c-bd: var(--bad-line); }
.sg-chip--info { --c: var(--info); --c-bg: var(--info-soft); --c-bd: var(--info-line); }
.sg-chip--gold { --c: var(--gold-text); --c-bg: var(--gold-soft); --c-bd: var(--gold-line); }
.sg-chip--plain::before { display: none; }
.sg-tag-new { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; margin-right: 8px; border-radius: 4px; background: var(--gold); color: #1a1405; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }

/* Alerts / banners */
.sg-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--info-line); background: var(--info-soft); color: var(--text); font-size: var(--fs-sm); line-height: 1.5; }
.sg-banner > .i { margin-top: 1px; color: var(--info); }
.sg-banner--ok { border-color: var(--ok-line); background: var(--ok-soft); } .sg-banner--ok > .i { color: var(--ok); }
.sg-banner--bad { border-color: var(--bad-line); background: var(--bad-soft); } .sg-banner--bad > .i { color: var(--bad); }
.sg-banner--warn { border-color: var(--warn-line); background: var(--warn-soft); } .sg-banner--warn > .i { color: var(--warn); }
.sg-banner ul { display: grid; gap: 2px; }

/* Empty state */
.sg-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: clamp(28px, 6vw, 56px) 20px; color: var(--text-3); }
.sg-empty__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3); margin-bottom: 6px; }
.sg-empty h3 { font-size: var(--fs-lg); color: var(--text); }
.sg-empty p { max-width: 42ch; font-size: var(--fs-sm); }
.sg-empty .sg-btn { margin-top: 12px; }

/* Skeleton */
.sg-skel { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-hover) 25%, var(--line) 37%, var(--surface-hover) 63%); background-size: 400% 100%; animation: sg-skel 1.4s ease infinite; min-height: 14px; }
@keyframes sg-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 7. DATA ------------------------------------------------------ */
.sg-tablewrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-md); }
.sg-table th { position: sticky; top: 0; text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.sg-table th.is-num, .sg-table td.is-num { text-align: right; }
.sg-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sg-table tbody tr { transition: background var(--t-fast); }
.sg-table tbody tr:hover { background: var(--surface-hover); }
.sg-table tbody tr:last-child td { border-bottom: 0; }
.sg-table .sg-cell-main { font-weight: 550; max-width: 380px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-table .sg-cell-sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.sg-idtag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; padding: 3px 8px; border-radius: var(--r-sm); background: var(--bg-sunk); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: border-color var(--t-fast); }
.sg-idtag:hover { border-color: var(--line-strong); color: var(--text); }
.sg-idtag .i { width: 13px; height: 13px; opacity: .6; }
.sg-linkchip { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; font-size: var(--fs-sm); color: var(--text-2); }
.sg-linkchip:hover { color: var(--text); }
.sg-linkchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-amount { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; white-space: nowrap; }
.sg-amount--in { color: var(--ok); } .sg-amount--out { color: var(--text); }

/* Record list (mobile replacement for dense tables) */
.sg-records { display: grid; }
.sg-record { display: grid; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.sg-record:last-child { border-bottom: 0; }
.sg-record__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-record__title { font-weight: 580; line-height: 1.4; overflow-wrap: anywhere; }
.sg-record__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.sg-record__meta dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.sg-record__meta dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.sg-record__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-only-sm { display: none; } .sg-only-lg { display: block; }
@media (max-width: 899.98px) { .sg-only-sm { display: block; } .sg-only-lg { display: none !important; } }
@media (max-width: 575.98px) { .sg-record { padding: 14px 16px; } }

/* Filter tabs: scrollable pills */
.sg-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sg-tabs::-webkit-scrollbar { display: none; }
.sg-tabs a, .sg-tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 550; cursor: pointer; transition: all var(--t-fast) var(--ease); white-space: nowrap; }
.sg-tabs a:hover, .sg-tabs button:hover { border-color: var(--line-strong); color: var(--text); }
.sg-tabs a[aria-current="page"], .sg-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sg-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sg-toolbar .sg-tabs { flex: 1 1 420px; min-width: 0; }
.sg-searchbox { position: relative; flex: 0 1 320px; min-width: min(100%, 240px); }
.sg-searchbox .sg-input { padding-left: 38px; height: 40px; }
.sg-searchbox > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }

/* Pagination (Laravel's Bootstrap-4 paginator markup) */
.sg .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 16px; margin: 0; list-style: none; }
.sg .page-item .page-link, .sg .page-item span.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 550; margin: 0; line-height: 1; }
.sg .page-item .page-link:hover { background: var(--surface-hover); color: var(--text); border-color: var(--line-strong); }
.sg .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sg .page-item.disabled .page-link { opacity: .45; background: transparent; }
.sg nav[aria-label="Pagination Navigation"] > div:first-child, .sg nav .d-flex.justify-content-between.flex-fill.d-sm-none { display: none; }
.sg .d-none.flex-sm-fill > div:first-child { display: none; }
.sg .small.text-muted { color: var(--text-3) !important; font-size: var(--fs-xs); }
.sg-pager { padding: 4px 8px; }
.sg-pager p.small { text-align: center; margin: 8px 0 0; }

/* ---------- 8. OVERLAYS -------------------------------------------------- */
.sg-menu-wrap { position: relative; }
.sg-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; max-width: calc(100vw - 24px); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-menu); padding: 6px; z-index: 70; transform-origin: top right; animation: sg-pop var(--t-base) var(--ease); }
@keyframes sg-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.sg-menu--notes { width: 360px; padding: 0; overflow: hidden; }
.sg-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sg-menu__scroll { max-height: min(60vh, 420px); overflow-y: auto; }
.sg-note { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.sg-note:last-child { border-bottom: 0; }
.sg-note:hover { background: var(--surface-hover); }
.sg-note__ico { width: 28px; height: 28px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; flex: none; }
.sg-note__body { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-sm); color: var(--text-2); }
.sg-note__body strong { color: var(--text); font-weight: 600; }
.sg-note__body time { font-size: var(--fs-xs); color: var(--text-3); }
.sg-menu__who { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.sg-menu__item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r-md); color: var(--text-2); font-weight: 500; font-size: var(--fs-md); }
.sg-menu__item .i { color: var(--text-3); }
.sg-menu__item:hover { background: var(--surface-hover); color: var(--text); }
.sg-menu__item--danger { color: var(--bad); } .sg-menu__item--danger .i { color: var(--bad); }
.sg-menu__row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
@media (max-width: 575.98px) {
  .sg-menu-wrap { position: static; }
  .sg-menu { position: fixed; left: 12px; right: 12px; width: auto; max-width: none; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 6px); }
}

/* Native <dialog> modal */
.sg-dialog { border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--raised); color: var(--text); box-shadow: var(--shadow-modal); overflow: auto; }
.sg-dialog::backdrop { background: var(--scrim); }
.sg-dialog[open] { animation: sg-pop 200ms var(--ease); }
.sg-dialog__head { padding: 20px 22px 6px; display: flex; gap: 14px; align-items: flex-start; }
.sg-dialog__icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); }
.sg-dialog__title { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -.02em; }
.sg-dialog__body { padding: 4px 22px 18px 76px; color: var(--text-2); font-size: var(--fs-md); }
.sg-dialog__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .sg-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sg-dialog__body { padding-left: 22px; }
  .sg-dialog__foot .sg-btn { flex: 1; }
}

/* Toasts */
.sg-toasts { position: fixed; z-index: 120; right: 16px; top: calc(var(--topbar-h) + 12px); display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.sg-toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line-strong); border-left: 3px solid var(--info); border-radius: var(--r-md); box-shadow: var(--shadow-menu); font-size: var(--fs-sm); animation: sg-toast-in 260ms var(--ease); }
.sg-toast.is-out { opacity: 0; transform: translateY(-6px); transition: all 200ms ease; }
.sg-toast--ok { border-left-color: var(--ok); } .sg-toast--ok > .i { color: var(--ok); }
.sg-toast--bad { border-left-color: var(--bad); } .sg-toast--bad > .i { color: var(--bad); }
.sg-toast--warn { border-left-color: var(--warn); } .sg-toast--warn > .i { color: var(--warn); }
.sg-toast > .i { margin-top: 1px; color: var(--info); }
.sg-toast__body { flex: 1; min-width: 0; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.sg-toast__x { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 2px; border-radius: 4px; }
.sg-toast__x:hover { color: var(--text); }
@keyframes sg-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1023.98px) { .sg-toasts { right: 12px; left: 12px; width: auto; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px); } }

/* Disclosure (FAQ etc.) */
.sg-acc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.sg-acc details { border-bottom: 1px solid var(--line); }
.sg-acc details:last-child { border-bottom: 0; }
.sg-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 580; font-size: var(--fs-lg); letter-spacing: -.01em; }
.sg-acc summary::-webkit-details-marker { display: none; }
.sg-acc summary:hover { background: var(--surface-hover); }
.sg-acc summary .i { color: var(--text-3); transition: transform var(--t-base) var(--ease); }
.sg-acc details[open] summary .i { transform: rotate(180deg); }
.sg-acc__body { padding: 0 20px 20px; color: var(--text-2); max-width: 72ch; line-height: 1.65; }
.sg-prose { color: var(--text-2); line-height: 1.7; max-width: 72ch; overflow-wrap: anywhere; }
.sg-prose h1, .sg-prose h2, .sg-prose h3, .sg-prose h4 { margin: 1.6em 0 .5em; color: var(--text); }
.sg-prose p { margin: 0 0 1em; } .sg-prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; } .sg-prose ol { list-style: decimal; padding-left: 1.3em; margin: 0 0 1em; }
.sg-prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.sg-prose img { height: auto; border-radius: var(--r-md); }
.sg-prose pre, .sg-prose code { font-family: var(--font-mono); font-size: .92em; background: var(--bg-sunk); border-radius: 6px; }
.sg-prose pre { padding: 14px; overflow-x: auto; } .sg-prose code { padding: 2px 5px; }
.sg-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; } .sg-prose th, .sg-prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }


/* ---------- 9. PAGES ----------------------------------------------------- */
.sg-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
:root[data-mode="dark"] .sg-eyebrow { color: var(--gold); }
.sg-eyebrow--on { color: color-mix(in srgb, var(--hero-fg, #ecebe6) 62%, transparent); margin-bottom: 0; }
.sg-hide-xs { display: inline-flex; }
@media (max-width: 520px) { .sg-hide-xs { display: none; } }

/* Generic list rows (recent orders, transactions, quick actions) */
.sg-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); min-width: 0; transition: background var(--t-fast); }
a.sg-row:hover { background: var(--surface-hover); }
.sg-row:last-child { border-bottom: 0; }
.sg-row__main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sg-row__title { font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row__sub { font-size: var(--fs-xs); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row__end { display: grid; justify-items: end; gap: 6px; flex: none; }
.sg-row__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--text-2); flex: none; }
.sg-row__ico--in { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.sg-row__ico--gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }
.sg-row--action:hover .sg-row__ico { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }
@media (max-width: 575.98px) { .sg-row { padding: 12px 16px; gap: 12px; } }

/* ---- Festive details shared across the app ---- */
/* String of lights: two interleaved bulb sets that take turns glowing */
/* (Christmas lights: see "STRING LIGHTS" at the end of this file; the strand is generated by lights.js) */

/* ---- Dashboard ---- */
.sg-welcome { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 26px; }
.sg-welcome__hi { font-family: var(--font-display); font-weight: 750; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.sg-welcome__hi mark { background: none; color: var(--red); }
:root[data-mode="dark"] .sg-welcome__hi mark { color: var(--gold); }
.sg-welcome__sub { color: var(--text-3); margin-top: 8px; }

.sg-dash { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1080px) { .sg-dash { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .sg-dash__wide { grid-column: 1 / -1; } }

/* Wallet "gift ticket": red, notched, perforated */
.sg-ticket {
  position: relative; color: #fff; background: var(--red); border-radius: 10px; padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px) 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='%23ffffff' fill-opacity='.09'%3E%3Cpath d='M18 10l1.6 4.4 4.7.2-3.7 2.9 1.3 4.5-3.9-2.6-3.9 2.6 1.3-4.5-3.7-2.9 4.7-.2z'/%3E%3Ccircle cx='54' cy='46' r='2.2'/%3E%3Ccircle cx='62' cy='14' r='1.4'/%3E%3Ccircle cx='24' cy='58' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask: radial-gradient(circle 11px at 0 var(--notch, 64%), #0000 97%, #000) 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--notch, 64%), #0000 97%, #000) 100% / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--notch, 64%), #0000 97%, #000) 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--notch, 64%), #0000 97%, #000) 100% / 51% 100% no-repeat;
  display: flex; flex-direction: column; min-height: 260px;
}
:root[data-mode="dark"] .sg-ticket { background-color: #b3203a; }
.sg-ticket__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sg-ticket__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.sg-ticket__link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 650; color: #fff; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); }
.sg-ticket__link:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.sg-ticket__amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 68px); line-height: 1; letter-spacing: -.035em; margin: 18px 0 22px; overflow-wrap: anywhere; }
.sg-ticket__stats { margin: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px dashed rgba(255, 255, 255, .42); padding: 16px 0 20px; }
.sg-ticket__stats > div { padding: 0 14px; min-width: 0; }
.sg-ticket__stats > div:first-child { padding-left: 0; }
.sg-ticket__stats dt { font-size: 11.5px; color: rgba(255, 255, 255, .78); font-weight: 600; margin-bottom: 3px; }
.sg-ticket__stats dd { margin: 0; font-weight: 750; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.sg-ticket__cta { position: absolute; right: clamp(18px, 3vw, 30px); top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) {
  .sg-ticket { --notch: 100%; min-height: 0; }
  .sg-ticket__stats { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .sg-ticket__stats > div { padding: 9px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed rgba(255, 255, 255, .28); }
  .sg-ticket__stats > div:first-child { border-top: 0; }
  .sg-ticket__stats dt { margin: 0; }
}

/* Order pipeline: an evergreen block with its own typography */
.sg-pipe { background: var(--forest); color: var(--on-forest); border-radius: 22px 6px 22px 6px; padding: 24px; }
:root[data-mode="dark"] .sg-pipe { background: var(--forest); outline: 1px solid var(--line-strong); }
.sg-pipe__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sg-pipe__head h2 { color: var(--on-forest); font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sg-pipe__head p { font-size: var(--fs-xs); color: rgba(248, 240, 222, .7); margin-top: 2px; }
.sg-pipe__head a { font-size: var(--fs-sm); font-weight: 650; color: var(--gold); white-space: nowrap; }
.sg-pipe__total { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 12px; }
.sg-pipe__total b { font-family: var(--font-display); font-size: 54px; line-height: 1; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.sg-pipe__total span { color: rgba(248, 240, 222, .75); }
.sg-pipe .sg-bar { background: rgba(255, 255, 255, .1); margin-bottom: 16px; height: 12px; }
.sg-pipe .sg-legend a { color: rgba(248, 240, 222, .86); }
.sg-pipe .sg-legend a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sg-pipe .sg-legend b { color: #fff; }
.sg-pipe .sg-empty { color: rgba(248, 240, 222, .75); padding: 22px 0 6px; }
.sg-pipe .sg-empty h3 { color: #fff; } .sg-pipe .sg-empty__icon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: var(--gold); }
.sg-pipe .sg-empty .sg-btn { --b-bg: var(--gold); --b-fg: #231a05; --b-bd: var(--gold); }
.sg-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; gap: 2px; background: var(--bg-sunk); }
.sg-bar span { min-width: 6px; border-radius: 2px; }
.sg-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sg-legend a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; margin: 0 -8px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-2); }
.sg-legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sg-legend b { margin-left: auto; font-weight: 700; }
.sg-legend .is-zero { opacity: .5; }

/* Quick actions as colour-blocked tiles, not a list of identical rows */
.sg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-tile { display: grid; gap: 14px; align-content: space-between; min-height: 112px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.sg-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.sg-tile__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sunk); color: var(--forest); }
.sg-tile b { display: block; font-size: var(--fs-md); line-height: 1.25; }
.sg-tile span { font-size: var(--fs-xs); color: var(--text-3); }
.sg-tile--red { background: var(--red); border-color: var(--red); color: #fff; border-radius: 12px 28px 12px 12px; } .sg-tile--red .sg-tile__ico { background: rgba(255, 255, 255, .2); color: #fff; } .sg-tile--red span { color: rgba(255, 255, 255, .82); }
.sg-tile--forest { background: var(--forest); border-color: var(--forest); color: var(--on-forest); border-radius: 28px 12px 12px 12px; } .sg-tile--forest .sg-tile__ico { background: rgba(255, 255, 255, .12); color: var(--gold); } .sg-tile--forest span { color: rgba(248, 240, 222, .72); }
.sg-tile--gold { background: var(--gold-soft); border-color: var(--gold-line); } .sg-tile--gold .sg-tile__ico { background: var(--gold); color: #2a1d02; }
.sg-tile:hover.sg-tile--red, .sg-tile:hover.sg-tile--forest { color: inherit; }
.sg-tile--red:hover { color: #fff; } .sg-tile--forest:hover { color: var(--on-forest); }

/* Panels without the heavy card chrome: a coloured marker and a quiet header */
.sg-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.sg-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.sg-panel__head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.sg-panel__head h2::before { content: ""; width: 8px; height: 22px; border-radius: 4px; background: var(--red); }
.sg-panel--green .sg-panel__head h2::before { background: var(--forest-2); } .sg-panel--gold .sg-panel__head h2::before { background: var(--gold); }
.sg-panel__sub { font-size: var(--fs-xs); color: var(--text-3); padding: 0 20px 6px 38px; margin-top: -8px; }
.sg-dash-spend { background: var(--surface-2); }
.sg-spend-total { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--red); }
:root[data-mode="dark"] .sg-spend-total { color: var(--gold); }
.sg-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 170px; align-items: end; border-bottom: 2px solid var(--forest); margin: 0 20px 34px; }
.sg-chart__col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.sg-chart__bar { width: 100%; max-width: 26px; background: var(--forest-2); border-radius: 8px 8px 0 0; transition: background var(--t-fast); }
:root[data-mode="dark"] .sg-chart__bar { background: var(--ink); }
.sg-chart__bar.is-empty { background: var(--line-strong); opacity: .6; }
.sg-chart__col:hover .sg-chart__bar:not(.is-empty) { background: var(--red); }
.sg-chart__x { position: absolute; bottom: -22px; font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .sg-chart { gap: 3px; margin-inline: 16px; } .sg-chart__col:nth-child(even) .sg-chart__x { display: none; } }
.sg-news { padding: 14px 20px; border-top: 1px dashed var(--line-strong); }
.sg-news time { font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: .04em; }
:root[data-mode="dark"] .sg-news time { color: var(--gold); }
.sg-news h3 { font-size: var(--fs-md); margin: 2px 0 3px; }
.sg-news p { font-size: var(--fs-sm); color: var(--text-2); }
.sg-referral { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px 12px 12px 28px; padding: 18px 20px; }
.sg-referral__head { display: flex; gap: 12px; align-items: center; }
.sg-referral h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.sg-referral .sg-input { background: var(--surface); }
.sg-referral .sg-card__sub { font-size: var(--fs-xs); color: var(--text-2); }

/* ---- Authentication: an evergreen night scene, the form hangs from the lights as a gift tag ---- */
.sg-auth-body { background: var(--forest-deep); }
.sg-auth { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--forest-deep); overflow: hidden; isolation: isolate; }
.sg-auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 108%, #0f5a43 0, rgba(15, 90, 67, 0) 60%), var(--forest-deep); }
:root[data-mode="dark"] .sg-auth::before { background: radial-gradient(120% 70% at 50% 108%, #0d4333 0, rgba(13, 67, 51, 0) 60%), #04170f; }
.sg-auth__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: env(safe-area-inset-top) clamp(16px, 4vw, 40px) 0; color: var(--on-forest); position: relative; z-index: 3; }
.sg-auth__bar-right { display: flex; align-items: center; gap: 6px; }
.sg-auth__bar .sg-iconbtn { color: var(--on-forest); } .sg-auth__bar .sg-iconbtn:hover { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.sg-auth__bar .sg-btn--ghost { --b-fg: var(--on-forest); } .sg-auth__bar .sg-btn--ghost:hover { --b-bg-h: rgba(255, 255, 255, .1); color: #fff; }
.sg-auth__wordmark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 750; font-size: 19px; letter-spacing: -.02em; color: inherit; }
.sg-auth__lights { position: absolute; left: 0; right: 0; top: 56px; z-index: 2; }

.sg-auth__stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: center; padding: 38px clamp(14px, 4vw, 48px) 0; position: relative; z-index: 3; }
.sg-auth__tagwrap { position: relative; width: 100%; max-width: 430px; padding-top: 52px; margin-bottom: 40px; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .35)); }
.sg-auth__string { position: absolute; left: 50%; top: -34px; width: 60px; height: 100px; transform: translateX(-50%); color: var(--gold); pointer-events: none; }
.sg-auth__card {
  position: relative; background: var(--bg); color: var(--text); padding: clamp(24px, 4vw, 36px);
  clip-path: polygon(0 34px, 34px 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  padding-top: clamp(44px, 6vw, 56px);
}
.sg-auth__hole { position: absolute; left: 50%; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--forest-deep); transform: translateX(-50%); z-index: 4; box-shadow: inset 0 0 0 2px var(--gold); }
.sg-auth__head { margin-bottom: 22px; text-align: center; }
.sg-auth__season { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-bottom: 12px; }
:root[data-mode="dark"] .sg-auth__season { color: #ff9aa6; }
.sg-auth__head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 32px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.sg-auth__head p { color: var(--text-3); font-size: var(--fs-md); line-height: 1.5; }
.sg-auth__badge { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--forest-soft); color: var(--forest); margin: 0 auto 14px; }
:root[data-mode="dark"] .sg-auth__badge { color: var(--gold); }
.sg-auth .sg-banner { margin-bottom: 18px; }
.sg-auth__alt { text-align: center; margin-top: 20px; color: var(--text-3); font-size: var(--fs-md); }
.sg-auth__alt .sg-link { display: inline-flex; align-items: center; gap: 6px; }
.sg-auth__foot { position: relative; z-index: 3; margin-top: auto; }
.sg-auth__art { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; pointer-events: none; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 clamp(8px, 5vw, 90px); }
.sg-auth__art svg { height: clamp(170px, 30vw, 360px); width: auto; display: block; }
.sg-auth__art .sg-auth__art-r { transform: scaleX(-1); opacity: .92; }
.sg-auth__art .sg-auth__art-r svg { height: clamp(120px, 20vw, 250px); }
.sg-auth__drift { position: relative; z-index: 2; height: 52px; color: var(--bg); margin-bottom: -1px; }
.sg-auth__drift svg { width: 100%; height: 100%; display: block; }
.sg-auth__legal { text-align: center; font-size: var(--fs-xs); color: var(--text-2); padding: 6px 16px calc(14px + env(safe-area-inset-bottom)); position: relative; z-index: 3; background: var(--bg); }
.sg-auth__legal a:hover { color: var(--text); }
.sg-auth__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--line-strong); }
.sg-auth__chips li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: var(--forest-soft); font-size: 12px; font-weight: 650; color: var(--forest); }
:root[data-mode="dark"] .sg-auth__chips li { color: var(--text-2); }
.sg-auth__chips .i { color: var(--red); }
.sg-auth .sg-field { margin-bottom: 16px; }
@media (max-width: 767.98px) {
  .sg-auth__art { display: none; }
  .sg-auth__art-r { display: none; }
  .sg-auth__stage { padding-top: 26px; }
  .sg-auth__tagwrap { margin-bottom: 28px; }
  .sg-auth__drift { height: 34px; }
}
@media (min-width: 768px) and (max-width: 1100px) { .sg-auth__art svg { opacity: .55; } }

/* ---- New order · the Christmas order studio ---- */
.sg .hidden { display: none !important; }
.sg .dropdown-menu { display: none; }
.sg .dropdown-menu.show { display: block; }

.so { display: grid; gap: 18px; min-width: 0; }
.so-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.so-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
:root[data-mode="dark"] .so-kicker { color: var(--gold); }
.so-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; letter-spacing: -.03em; }
.so-modes { flex: none; }

/* progress: four thin segments; the current stage is red */
.so-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.so-steps li { display: flex; align-items: center; gap: 7px; padding-top: 8px; border-top: 3px solid var(--line-strong); font-size: 12px; font-weight: 700; color: var(--text-3); min-width: 0; transition: border-color var(--t-base), color var(--t-base); }
.so-steps li span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-sunk); font-size: 10.5px; flex: none; }
.so-steps li.is-done { border-top-color: var(--forest-2); color: var(--text); } .so-steps li.is-done span { background: var(--forest-2); color: #fff; }
.so-steps li.is-current { border-top-color: var(--red); color: var(--text); } .so-steps li.is-current span { background: var(--red); color: #fff; }
:root[data-mode="dark"] .so-steps li.is-done { border-top-color: var(--ink); } :root[data-mode="dark"] .so-steps li.is-done span { background: var(--ink); }
@media (max-width: 399.98px) { .so-steps li span { display: none; } .so-steps { gap: 6px; } }
.so[data-mode="bulk"] .so-steps, .so[data-mode="bulk"] .so-sum, .so[data-mode="bulk"] .so-band { display: none; }

.so-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .so-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; } }
.so-main { display: grid; gap: 18px; min-width: 0; }
#orderForm { display: grid; gap: 18px; min-width: 0; }

.so-stagehead { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.so-stagehead h2 { font-family: var(--font-display); font-size: 19px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.so-stagehead p { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.so-n { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.so-stagehead--on-dark h2 { color: #fff; } .so-stagehead--on-dark p { color: rgba(248, 240, 222, .72); }
.so-stagehead--on-dark .so-n { background: var(--gold); color: #231a05; }

/* Stage 1: frosted tiles on an evergreen band */
.so-band { background: var(--forest); color: var(--on-forest); border-radius: 16px; padding: clamp(16px, 2.4vw, 24px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
:root[data-mode="dark"] .so-band { outline: 1px solid var(--line-strong); }
/* Platform grid: 15 tiles divide evenly into 5 columns x 3 rows (wide) or 3 x 5 (narrower). On phones it becomes
   a two-row strip that scrolls sideways, with the next column peeking in to show there is more (see the phone block below). */
.so-band { container-type: inline-size; }
.op-platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 720px) { .op-platform-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.platform-btn { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .17); background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f8f0de; font-family: inherit; font-size: 13.5px; font-weight: 650; text-align: left; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); -webkit-tap-highlight-color: transparent; }
.platform-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); transform: translateY(-1px); }
.platform-btn:focus-visible { outline: 2px solid #ffd36b; outline-offset: 2px; }
.pt-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--pc, #fff) 20%, transparent); color: var(--pc, #fff); transition: background var(--t-fast), color var(--t-fast); }
.pt-ico i { font-size: 18px; line-height: 1; width: 1em; text-align: center; }
.pt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-check { position: absolute; right: 8px; top: 7px; width: 14px; height: 14px; color: var(--forest); opacity: 0; transform: scale(.5); transition: opacity var(--t-fast), transform var(--t-base) var(--ease); stroke-width: 3; }
.platform-btn.active { background: #fff8e6; border-color: #ffd36b; color: #0a2f24; box-shadow: 0 0 0 2px rgba(255, 211, 107, .5); transform: none; }
.platform-btn.active .pt-ico { background: var(--pb, #0e4a38); color: #fff; }
.platform-btn.active .pt-check { opacity: 1; transform: none; }
.platform-btn[data-p="all"] { --pc: #ffd36b; --pb: #b8820a; }
.platform-btn[data-p="instagram"] { --pc: #ff7aa8; --pb: #d62976; } .platform-btn[data-p="facebook"] { --pc: #6aa8ff; --pb: #1877f2; }
.platform-btn[data-p="youtube"] { --pc: #ff6b63; --pb: #e62117; } .platform-btn[data-p="tiktok"] { --pc: #7ff0ea; --pb: #111; }
.platform-btn[data-p="telegram"] { --pc: #62c4f5; --pb: #1d9bd8; } .platform-btn[data-p="twitter"] { --pc: #f3f3f3; --pb: #111; }
.platform-btn[data-p="threads"] { --pc: #f3f3f3; --pb: #111; } .platform-btn[data-p="spotify"] { --pc: #4be584; --pb: #169c46; }
.platform-btn[data-p="whatsapp"] { --pc: #4be07f; --pb: #1faa54; } .platform-btn[data-p="linkedin"] { --pc: #6fb0ee; --pb: #0a66c2; }
.platform-btn[data-p="google"] { --pc: #ff8a80; --pb: #d93025; } .platform-btn[data-p="twitch"] { --pc: #b794ff; --pb: #7c4dff; }
.platform-btn[data-p="music"] { --pc: #ffc46b; --pb: #e07a10; } .platform-btn[data-p="website"] { --pc: #7fe0cc; --pb: #0f8f7a; }
@media (max-width: 599.98px) {
  .op-platform-grid { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 82px; gap: 8px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -6px; padding: 2px 6px 6px; scroll-padding-inline: 6px; }
  .op-platform-grid::-webkit-scrollbar { display: none; }
  .platform-btn { flex-direction: column; justify-content: center; gap: 6px; min-height: 78px; padding: 9px 3px 8px; text-align: center; scroll-snap-align: start; }
  .pt-ico { width: 36px; height: 36px; }
  .pt-name { max-width: 100%; font-size: 12px; }
  .pt-check { right: 5px; top: 5px; }
}

/* Stages 2 + 3: one calm surface; the tonal shift (not a rule) separates the stages */
.so-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.so-stage { padding: clamp(18px, 2.6vw, 28px); min-width: 0; }
.so-stage + .so-stage { background: var(--surface-2); border-radius: 0 0 16px 16px; }
.so-selectors { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.so-selectors .sg-field, .so-stage .sg-field { margin-bottom: 14px; }
.so-hint { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunk); color: var(--text-3); font-size: var(--fs-sm); margin: 0 0 14px; }

/* Selectors: a two-line control — tiny caps label above the live value */
.op-service-dropdown { position: relative; }
.op-service-btn { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; text-align: left; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; color: var(--text); font-family: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.so-stage + .so-stage .op-service-btn, .so-stage + .so-stage .sg-input { background: var(--surface); }
.op-service-btn:hover { border-color: var(--forest-2); }
.op-service-btn[aria-expanded="true"], .op-service-btn:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); outline: none; }
.op-sel__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--forest-soft); color: var(--forest); }
:root[data-mode="dark"] .op-sel__ico { color: var(--gold); }
.op-sel__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.op-sel__k { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); line-height: 1.2; }
.op-service-btn__text { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; flex-wrap: wrap; font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
.op-sel__chev { color: var(--text-3); flex: none; transition: transform var(--t-base) var(--ease); }
.op-service-btn[aria-expanded="true"] .op-sel__chev { transform: rotate(180deg); }
.op-cat-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-right: 9px; background: var(--bg-sunk); color: var(--text-2); font-size: 11px; flex: none; }
.op-service-menu { position: absolute; top: calc(100% + 6px) !important; left: 0 !important; right: 0; width: 100%; transform: none !important; z-index: 40; margin: 0; padding: 6px; max-height: 400px; overflow-y: auto; overflow-x: hidden; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-menu); }
.op-service-menu .dropdown-item { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--text); cursor: pointer; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; font-size: var(--fs-md); font-family: inherit; transition: background var(--t-fast); }
.op-service-menu .dropdown-item + .dropdown-item { margin-top: 2px; }
.op-service-menu .dropdown-item:hover, .op-service-menu .dropdown-item:focus-visible { background: var(--surface-hover); outline: none; }
.op-service-menu .dropdown-item.selected-service { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.op-service-menu .d-flex { display: flex; } .op-service-menu .flex-column { flex-direction: column; }
.op-service-menu .justify-content-between { justify-content: space-between; } .op-service-menu .align-items-center { align-items: center; }
.op-service-menu .mt-1 { margin-top: 4px; } .op-service-menu .fw-bold { font-weight: 600; }
.op-service-menu .d-flex.justify-content-between { gap: 4px 12px; flex-wrap: wrap; }
.op-service-menu .text-primary { color: var(--gold-text) !important; font-weight: 750; font-variant-numeric: tabular-nums; }
.op-service-menu .small, .op-service-menu .smallest { font-size: var(--fs-xs); } .op-service-menu .text-muted { color: var(--text-3) !important; } .op-service-menu .text-danger { color: var(--bad) !important; }
.op-service-menu .fa-spin, .op-service-btn__text .fa-spin { margin-right: 8px; }
.op-menu-note, .op-service-menu .px-3 { padding: 14px 12px; font-size: var(--fs-sm); color: var(--text-3); }
.new-service-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; margin-right: 8px; border-radius: 4px; background: var(--red); color: #fff !important; font-size: 9.5px !important; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; line-height: 1; }
.op-service-id-badge { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 11.5px; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--text-2); font-weight: 500; }

.op-search-wrapper { position: relative; }
.search-results-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-menu); max-height: 330px; overflow-y: auto; padding: 6px; }
.search-result-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background var(--t-fast); }
.search-result-item:hover, .search-result-item:focus-visible { background: var(--surface-hover); }
.search-result-item .service-name { font-size: var(--fs-md); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; color: var(--text); }
.search-result-item .service-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: var(--fs-xs); }
.service-price { font-weight: 750; color: var(--gold-text); font-variant-numeric: tabular-nums; } .service-category { color: var(--text-3); overflow-wrap: anywhere; }
.no-results { padding: 18px 12px; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }

/* Selected-service facts + description */
.so-facts { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.so-fact { display: grid; gap: 3px; padding: 12px 14px; min-width: 0; border-left: 1px solid var(--line); }
.so-fact:first-child { border-left: 0; }
.so-fact > span { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.so-fact b { font-family: var(--font-display); font-size: clamp(14px, 4.2vw, 18px); white-space: nowrap; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.so-fact--rate { background: var(--gold-soft); } .so-fact--rate b { color: var(--text); }
@media (max-width: 479.98px) { .so-fact { padding: 10px; } .so-fact b { font-size: 15px; } .so-fact span { font-size: 9.5px; letter-spacing: .05em; } }
.so-desc { margin-bottom: 4px; }
.so-desc__k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.op-service-desc { padding: 13px 16px; border-radius: 4px 12px 12px 4px; background: var(--surface-2); border-left: 3px solid var(--gold); font-size: var(--fs-sm); line-height: 1.65; color: var(--text-2); min-height: 56px; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; }
.so-stage + .so-stage .op-service-desc { background: var(--surface); }
.sg-switchrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sg-switchrow > div:first-child { display: grid; gap: 2px; }
.op-quantity-error:empty { display: none; }
.op-service-form:not(:empty) { margin-bottom: 4px; }

/* Review: an evergreen ticket that follows you on desktop */
.so-rail { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 1100px) { .so-rail { position: sticky; top: calc(var(--topbar-h) + 24px); max-height: calc(100vh - var(--topbar-h) - 48px); overflow-y: auto; scrollbar-width: none; } .so-rail::-webkit-scrollbar { display: none; } }
.so-sum { background: var(--forest); color: var(--on-forest); border-radius: 16px 16px 16px 4px; padding: clamp(18px, 2.4vw, 24px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); display: grid; gap: 14px; }
:root[data-mode="dark"] .so-sum { outline: 1px solid var(--line-strong); }
.so-sum .so-stagehead { margin-bottom: 0; }
.so-sum__svc { font-size: var(--fs-md); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; color: rgba(248, 240, 222, .62); padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.so-sum__svc.is-set { color: #fff; }
.so-sum__rows { margin: 0; display: grid; }
.so-sum__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-sm); }
.so-sum__rows > div:last-child { border-bottom: 0; }
.so-sum__rows dt { color: rgba(248, 240, 222, .68); flex: none; } .so-sum__rows dd { margin: 0; font-weight: 650; text-align: right; min-width: 0; overflow-wrap: anywhere; color: #fff; }
.so-sum__link { font-weight: 500 !important; font-size: 12.5px; color: rgba(248, 240, 222, .85) !important; max-width: 240px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.so-sum__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 4px; }
.so-sum__total span { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: rgba(248, 240, 222, .72); }
.so-sum__total b { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; line-height: 1.05; color: #ffd36b; text-align: right; overflow-wrap: anywhere; }
.so-warn { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; background: rgba(255, 211, 107, .14); border: 1px solid rgba(255, 211, 107, .4); color: #ffe7b0; font-size: var(--fs-sm); line-height: 1.45; }
.so-warn a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.so-warn .i { margin-top: 2px; flex: none; }
.so-sum__note { font-size: 12px; color: rgba(248, 240, 222, .6); text-align: center; margin: -4px 0 0; }
.so-place { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--red); color: #fff; font-family: inherit; font-size: 17px; font-weight: 800; letter-spacing: -.005em; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .2); transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); -webkit-tap-highlight-color: transparent; }
.so-place:hover { background: var(--red-hover); color: #fff; }
.so-place:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.so-place:focus-visible { outline: 3px solid #ffd36b; outline-offset: 3px; }
.so-place[disabled] { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); box-shadow: none; cursor: not-allowed; transform: none; }
.so-place.is-loading { pointer-events: none; color: transparent !important; } .so-place.is-loading > * { visibility: hidden; }
.so-place.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; border-right-color: transparent; animation: sg-spin .7s linear infinite; }
#bulk-order-form .so-place { width: 100%; }

/* Announcements: quiet, collapsible, compact when empty */
.so-news { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.so-news summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.so-news summary::-webkit-details-marker { display: none; }
.so-news summary > span { display: inline-flex; align-items: center; gap: 8px; flex: 1; } .so-news summary b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bg-sunk); display: grid; place-items: center; font-size: 11px; }
.so-news summary .i:last-child { transition: transform var(--t-base) var(--ease); } .so-news[open] summary .i:last-child { transform: rotate(180deg); }
.so-news__item { padding: 12px 16px; border-top: 1px dashed var(--line-strong); }
.so-news__item time { font-size: 11px; font-weight: 700; color: var(--red); } :root[data-mode="dark"] .so-news__item time { color: var(--gold); }
.so-news__item h3 { font-size: var(--fs-md); margin: 2px 0; } .so-news__item p { font-size: var(--fs-sm); color: var(--text-2); }
.so-news__empty { padding: 0 16px 14px; margin: 0; font-size: var(--fs-sm); color: var(--text-3); }

/* Bulk */
.bulk-links-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 10px; }
.bulk-row { margin-bottom: 10px; }
.bulk-row .row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; margin: 0; }
.bulk-row .row:has(.col-2), .bulk-row .row:has(.col-3) { grid-template-columns: minmax(0, 1fr) 112px 44px; }
.bulk-remove-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--bad-line); background: var(--bad-soft); color: var(--bad); cursor: pointer; }
.bulk-row .bulk-link-input { height: 44px; }
.bulk-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* ---- Orders history (Christmas edition) ---- */
.sg-oh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.sg-oh__text { min-width: 0; flex: 1 1 320px; }
.sg-oh__kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
:root[data-mode="dark"] .sg-oh__kicker { color: var(--gold); }
.sg-oh__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; letter-spacing: -.03em; }
.sg-oh__sub { margin-top: 8px; color: var(--text-2); font-size: var(--fs-md); line-height: 1.5; max-width: 62ch; }
.sg-oh__cta { flex: none; }
@media (max-width: 575.98px) { .sg-oh__cta { width: 100%; } }

/* Filter + search: one tidy block. Search gets its own row; every status filter stays visible. */
.sg-ofilter { display: grid; gap: 12px; margin-bottom: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.sg-ofilter__search { position: relative; display: flex; gap: 8px; align-items: center; }
.sg-ofilter__search > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; z-index: 1; }
.sg-ofilter__search .sg-input { height: 44px; padding-left: 42px; flex: 1; min-width: 0; }
.sg-ofilter__search .sg-btn { height: 44px; padding: 0 20px; flex: none; }
.sg-ofilter__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-ofilter__tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 15px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-size: var(--fs-sm); font-weight: 650; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.sg-ofilter__tabs a b { min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--bg-sunk); color: var(--text-2); font-size: 11.5px; font-weight: 700; }
.sg-ofilter__tabs a:hover { border-color: var(--forest-2); color: var(--text); background: var(--surface-hover); }
.sg-ofilter__tabs a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--on-forest); box-shadow: 0 3px 0 rgba(0, 0, 0, .16); }
.sg-ofilter__tabs a[aria-current="page"] b { background: var(--gold); color: #231a05; }
:root[data-mode="dark"] .sg-ofilter__tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); }
.sg-ofilter__search { max-width: 600px; } .sg-ofilter { padding: 16px; gap: 14px; }
@media (max-width: 899.98px) {
  /* narrow: tabs scroll sideways in one row (nothing hidden), with a fade hint at the edge */
  .sg-ofilter__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); scroll-padding: 14px; }
  .sg-ofilter__tabs::-webkit-scrollbar { display: none; }
  .sg-ofilter__tabs a { flex: none; }
}
@media (max-width: 420px) { .sg-ofilter__search .sg-btn { display: none; } .sg-ofilter { padding: 12px; } .sg-ofilter__tabs { margin: 0 -12px; padding-inline: 12px; } }
.sg-ocount { font-size: var(--fs-xs); color: var(--text-3); margin: 0 4px 8px; font-weight: 600; }

/* Shared atoms */
.sg-oid { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.sg-oid:hover { border-color: var(--forest-2); background: var(--forest-soft); }
.sg-oid .i { width: 13px; height: 13px; color: var(--text-3); }
.sg-oid.is-copied { border-color: var(--ok); background: var(--ok-soft); } .sg-oid.is-copied .i { color: var(--ok); }
.sg-odate { display: block; margin-top: 7px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 550; white-space: nowrap; }
.sg-odate span { margin-left: 6px; opacity: .85; }
.sg-oprice { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg-oreorder { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: var(--r-pill); border: 1.5px solid var(--forest-2); color: var(--forest); background: transparent; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.sg-oreorder:hover { background: var(--forest); color: var(--on-forest); }
:root[data-mode="dark"] .sg-oreorder { border-color: var(--line-strong); color: var(--text); } :root[data-mode="dark"] .sg-oreorder:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Progress: bar + the numbers it stands for */
.sg-oprog { display: grid; gap: 6px; min-width: 0; --pc: var(--forest-2); }
.sg-oprog--ok { --pc: var(--ok); } .sg-oprog--live { --pc: var(--info); } .sg-oprog--warn { --pc: var(--gold); } .sg-oprog--off { --pc: var(--text-3); } .sg-oprog--idle { --pc: var(--line-strong); }
.sg-oprog__nums { display: flex; align-items: baseline; gap: 5px; font-size: var(--fs-sm); }
.sg-oprog__nums b { font-weight: 800; font-size: var(--fs-md); } .sg-oprog__nums span { color: var(--text-3); font-weight: 550; }
.sg-oprog__nums em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sg-oprog__bar { height: 7px; border-radius: 7px; background: var(--bg-sunk); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.sg-oprog__bar i { display: block; height: 100%; min-width: 0; border-radius: 7px; background: var(--pc); transition: width .5s var(--ease); }
.sg-oprog small { font-size: 11.5px; color: var(--text-3); font-weight: 550; }
.sg-oprog--off .sg-oprog__bar i { background: repeating-linear-gradient(135deg, var(--text-3) 0 4px, transparent 4px 8px); }

/* Status chips with icons */
.sg-chip--ico::before { display: none; } .sg-chip--ico { padding-left: 8px; gap: 5px; height: 26px; font-size: 12px; } .sg-chip--ico .i { width: 14px; height: 14px; }

/* Wide: a quiet table — evergreen header, hairline rows, no per-cell cards */
.sg-ord-wide { display: none; } .sg-ord-narrow { display: grid; }
@media (min-width: 1280px) { .sg-ord-wide { display: block; } .sg-ord-narrow { display: none; } }
.sg-otable { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; overflow: hidden; }
.sg-otable table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sg-otable .c-order { width: 148px; } .sg-otable .c-prog { width: 196px; } .sg-otable .c-price { width: 104px; } .sg-otable .c-status { width: 138px; } .sg-otable .c-act { width: 116px; }
.sg-otable thead th { background: var(--forest); color: rgba(248, 240, 222, .88); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 13px 14px; white-space: nowrap; }
.sg-otable thead th.is-num, .sg-otable td.is-num { text-align: right; }
.sg-otable thead th:first-child, .sg-otable td:first-child { padding-left: 20px; } .sg-otable thead th:last-child, .sg-otable td:last-child { padding-right: 20px; }
.sg-otable tbody td { padding: 16px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.sg-otable tbody tr:last-child td { border-bottom: 0; }
.sg-otable tbody tr { transition: background var(--t-fast); } .sg-otable tbody tr:hover { background: var(--surface-hover); }
.sg-otable td:nth-child(4), .sg-otable td:nth-child(5), .sg-otable td:nth-child(6) { padding-top: 18px; }
.sg-osvc { font-weight: 650; font-size: var(--fs-md); line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sg-ometa { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 5px; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.sg-olink { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; color: var(--text-3); } .sg-olink:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.sg-olink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-ostart { white-space: nowrap; font-weight: 600; }

/* Narrow: structured order summaries; secondary facts live in a disclosure */
.sg-olist { gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .sg-olist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.sg-oc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 4px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.sg-oc:nth-child(odd) { border-radius: 12px 12px 12px 4px; } .sg-oc:nth-child(even) { border-radius: 12px 12px 4px 12px; }
.sg-oc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sg-oc__id { min-width: 0; } .sg-oc__id .sg-odate { margin-top: 6px; }
.sg-oc__svc { font-family: var(--font-ui); font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-oc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.sg-oc__more { margin: 0 -16px; border-top: 1px solid var(--line); }
.sg-oc__more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; cursor: pointer; font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); }
.sg-oc__more summary::-webkit-details-marker { display: none; }
.sg-oc__more summary:hover { color: var(--text); background: var(--surface-hover); }
.sg-oc__more summary .i { transition: transform var(--t-base) var(--ease); } .sg-oc__more[open] summary .i { transform: rotate(180deg); }
.sg-oc__more dl { margin: 0; padding: 4px 16px 14px; display: grid; gap: 0; }
.sg-oc__more dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.sg-oc__more dl > div:last-child { border-bottom: 0; }
.sg-oc__more dt { color: var(--text-3); flex: none; } .sg-oc__more dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sg-oc__more dd a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

/* ---- Services catalogue ---- */
.sg-cat { margin-bottom: 20px; }
.sg-cat__head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.sg-cat__head h2 { font-size: var(--fs-md); letter-spacing: -.01em; min-width: 0; overflow-wrap: anywhere; }
.sg-cat__count { margin-left: auto; flex: none; font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.sg-svc { display: grid; grid-template-columns: 64px minmax(0, 1fr) 140px 150px 44px; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sg-svc:last-child { border-bottom: 0; }
.sg-svc:hover { background: var(--surface-hover); }
.sg-svc__id { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.sg-svc__name { font-weight: 560; overflow-wrap: anywhere; line-height: 1.4; }
.sg-svc__rate { font-weight: 650; font-variant-numeric: tabular-nums; }
.sg-svc__rate small { display: block; font-weight: 450; color: var(--text-3); font-size: 11px; }
.sg-svc__range { font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 899.98px) {
  .sg-svc { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .sg-svc__id { grid-row: 1; grid-column: 1; }
  .sg-svc__name { grid-column: 1 / -1; grid-row: 2; }
  .sg-svc__rate { grid-row: 1; grid-column: 2; text-align: right; }
  .sg-svc__range { grid-column: 1; grid-row: 3; }
  .sg-svc > .sg-iconbtn { grid-column: 2; grid-row: 3; justify-self: end; }
  .sg-cat__head { padding: 12px 16px; }
}

/* ---- Wallet ---- */
.sg-bank { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); display: grid; gap: 12px; }
.sg-bank__row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-sm); }
.sg-bank__row span { color: var(--text-3); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.sg-bank__row strong { font-weight: 600; }
.sg-bonus { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-md); background: var(--ok-soft); border: 1px solid var(--ok-line); margin-bottom: 18px; }
.sg-bonus b { color: var(--ok); }
.sg-steps { counter-reset: s; display: grid; gap: 12px; }
.sg-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.sg-steps li::before { content: counter(s); width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; font-weight: 600; font-family: var(--font-mono); border-radius: 50%; background: var(--bg-sunk); border: 1px solid var(--line); color: var(--text); }

/* ---- Tickets ---- */
.sg-thread { display: grid; gap: 18px; }
.sg-msg { display: grid; gap: 6px; max-width: min(640px, 92%); }
.sg-msg--me { justify-self: end; }
.sg-msg__bubble { padding: 12px 16px; border-radius: var(--r-lg); font-size: var(--fs-md); line-height: 1.6; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.sg-msg--me .sg-msg__bubble { background: var(--ink); color: var(--on-ink); border-color: var(--ink); border-top-left-radius: var(--r-lg); border-top-right-radius: 4px; }
.sg-msg__by { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--text-3); }
.sg-msg--me .sg-msg__by { justify-content: flex-end; }
.sg-msg__by strong { color: var(--text); font-weight: 600; }

/* ---- Profile ---- */
.sg-secret { display: flex; gap: 8px; }
.sg-danger-zone { border-color: var(--bad-line); }
.sg-danger-zone .sg-card__head { background: var(--bad-soft); border-radius: var(--r-lg) var(--r-lg) 0 0; }


/* ---------- 10. LEGACY BRIDGE --------------------------------------------
   Pages that still use Bootstrap 4 markup (API docs, bills, listings) load Bootstrap's
   grid/utilities first; everything below re-skins its components in Studio's language.
   Helper functions (get_order_status, get_trx_status …) also emit these class names. */
.sg .container, .sg .container-fluid { padding-left: 0; padding-right: 0; max-width: none; }
.sg .row { margin-left: -10px; margin-right: -10px; }
.sg .row > [class*="col"] { padding-left: 10px; padding-right: 10px; }
.sg .text-muted { color: var(--text-3) !important; } .sg .text-white { color: var(--text) !important; }
.sg .text-success { color: var(--ok) !important; } .sg .text-danger { color: var(--bad) !important; } .sg .text-warning { color: var(--warn) !important; } .sg .text-primary { color: var(--gold-text) !important; } .sg .text-info { color: var(--info) !important; }
.sg .bg-light, .sg .bg-white { background: var(--surface-2) !important; } .sg .border { border-color: var(--line) !important; }
.sg hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.sg h1.h1, .sg .h1 { font-size: var(--fs-3xl); } .sg h4 { font-size: var(--fs-xl); } .sg h5 { font-size: var(--fs-lg); } .sg h6 { font-size: var(--fs-md); }

.sg .d-card, .sg .card, .sg .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); color: var(--text); margin-bottom: 20px; }
.sg .d-card-head, .sg .card-header, .sg .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 620; font-size: var(--fs-lg); }
.sg .dch-body, .sg .card-header h5, .sg .card-header .h5 { font-weight: 620; margin: 0; display: flex; align-items: center; gap: 10px; }
.sg .d-card-body, .sg .card-body, .sg .modal-body { padding: 20px; }
.sg .dch-right { margin-left: auto; }
@media (max-width: 575.98px) { .sg .d-card-body, .sg .card-body, .sg .modal-body { padding: 16px; } .sg .d-card-head, .sg .card-header { padding: 14px 16px; } }

.sg .form-group { margin-bottom: 18px; }
.sg .form-label, .sg label.control-label, .sg .form-group > label, .sg .form-groups > label { display: block; font-size: var(--fs-sm); font-weight: 580; color: var(--text); margin-bottom: 6px; }
.sg .form-control, .sg .form-select, .sg select.form-control, .sg input.form-control, .sg textarea.form-control {
  display: block; width: 100%; min-height: 44px; padding: 10px 14px; font-family: inherit; font-size: var(--fs-md); line-height: 1.4; color: var(--text);
  background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-1); height: auto;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.sg textarea.form-control { min-height: 110px; resize: vertical; }
.sg select.form-control, .sg .form-select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.sg .form-control:focus, .sg .form-select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); background-color: var(--surface); color: var(--text); }
.sg .form-control[readonly], .sg .form-control:disabled { background-color: var(--surface-2); color: var(--text-2); opacity: 1; }
.sg .form-control::placeholder { color: var(--text-3); opacity: .8; }
.sg .input-group { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.sg .input-group .form-control { flex: 1 1 auto; width: 1%; min-width: 0; }
.sg .input-group-text, .sg .input-group-icon { display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2); }
.sg .error, .sg .invalid-feedback { color: var(--bad); font-size: var(--fs-xs); font-weight: 500; }

.sg .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; font-family: inherit; font-size: var(--fs-md); font-weight: 580; line-height: 1; border-radius: var(--r-pill); border: 1px solid var(--cta); background: var(--cta); color: var(--on-cta); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); box-shadow: 0 3px 0 rgba(0, 0, 0, .2); text-decoration: none; }
.sg .btn:hover { background: var(--cta-hover); color: var(--on-cta); border-color: var(--cta-hover); }
.sg .btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); } .sg .btn-lg { height: 48px; font-size: var(--fs-lg); padding: 0 22px; }
.sg .btn-block { display: flex; width: 100%; }
.sg .btn-secondary, .sg .btn-light, .sg .btn-outline, .sg .btn-outline-light, .sg .btn-outline-secondary, .sg .btn-dark { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.sg .btn-secondary:hover, .sg .btn-light:hover, .sg .btn-outline:hover, .sg .btn-outline-light:hover, .sg .btn-outline-secondary:hover, .sg .btn-dark:hover { background: var(--surface-hover); color: var(--text); border-color: var(--line-strong); }
.sg .btn-success { background: var(--ok); border-color: var(--ok); color: #fff; } .sg .btn-success:hover { filter: brightness(.92); background: var(--ok); color: #fff; }
.sg .btn-danger, .sg .btn-outline-danger { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); } .sg .btn-danger:hover, .sg .btn-outline-danger:hover { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); color: var(--bad); border-color: var(--bad-line); }
.sg .btn-warning { background: var(--gold); border-color: var(--gold); color: #1a1405; }
.sg .btn:disabled, .sg .btn.disabled { opacity: .5; pointer-events: none; }
.sg .close { background: transparent; border: 0; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; float: none; text-shadow: none; opacity: 1; }
.sg .close:hover { color: var(--text); }

.sg .table { width: 100%; margin-bottom: 0; color: var(--text); border-collapse: separate; border-spacing: 0; background: transparent; }
.sg .table th { padding: 11px 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border: 0; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; vertical-align: middle; }
.sg .table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.sg .table tr:last-child td { border-bottom: 0; }
.sg .table-bordered, .sg .table-bordered td, .sg .table-bordered th { border-color: var(--line); }
.sg .table-hover tbody tr:hover { background: var(--surface-hover); }
.sg .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sg .thead-tr, .sg thead.white { background: var(--surface-2); }
.sg .app-mtable .app-col::before { color: var(--text-3); }
.sg .nowrap { white-space: nowrap; }

.sg .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1; background: var(--mute-soft); color: var(--mute); border: 1px solid var(--mute-line); }
.sg .badge.bg-success, .sg .badge-success { background: var(--ok-soft) !important; color: var(--ok) !important; border-color: var(--ok-line); }
.sg .badge.bg-warning, .sg .badge-warning { background: var(--warn-soft) !important; color: var(--warn) !important; border-color: var(--warn-line); }
.sg .badge.bg-danger, .sg .badge-danger { background: var(--bad-soft) !important; color: var(--bad) !important; border-color: var(--bad-line); }
.sg .badge.bg-info, .sg .badge.bg-primary, .sg .badge-info, .sg .badge-primary { background: var(--info-soft) !important; color: var(--info) !important; border-color: var(--info-line); }
.sg .badge.bg-secondary { background: var(--mute-soft) !important; color: var(--mute) !important; border-color: var(--mute-line); }
.sg .order-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; line-height: 1; background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.sg .order-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sg .order-status.os-pending { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.sg .order-status.os-processing, .sg .order-status.os-iprogress { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.sg .order-status.os-partial { background: var(--gold-soft); color: var(--gold-text); border-color: var(--gold-line); }
.sg .order-status.os-cancel { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }

.sg .alert { display: block; position: relative; padding: 12px 40px 12px 14px; border-radius: var(--r-md); border: 1px solid var(--info-line); background: var(--info-soft); color: var(--text); margin-bottom: 16px; font-size: var(--fs-sm); }
.sg .alert-success { background: var(--ok-soft); border-color: var(--ok-line); } .sg .alert-danger { background: var(--bad-soft); border-color: var(--bad-line); } .sg .alert-warning { background: var(--warn-soft); border-color: var(--warn-line); }
.sg .alert .close { position: absolute; right: 6px; top: 8px; }
.sg .alert ul { list-style: none; margin: 0; padding: 0; }
.sg .fade:not(.show) { opacity: 0; } .sg .collapse:not(.show) { display: none; }

.sg .modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; }
.sg .modal.show { display: block; }
.sg .modal-dialog { position: relative; width: auto; max-width: 520px; margin: 1.75rem auto; pointer-events: none; }
.sg .modal.fade .modal-dialog { transition: transform .2s var(--ease); transform: translateY(-12px); } .sg .modal.show .modal-dialog { transform: none; }
.sg .modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.sg .modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-modal); outline: 0; }
.sg .modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.sg .modal-title { font-size: var(--fs-xl); font-weight: 650; margin: 0; }
.sg .modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: var(--scrim); } .sg .modal-backdrop.fade { opacity: 0; } .sg .modal-backdrop.show { opacity: 1; }
.modal-backdrop { background: var(--scrim) !important; opacity: 1 !important; }
@media (max-width: 575.98px) { .sg .modal-dialog { margin: 12px; } }

.sg .nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sg .nav-link, .sg .nav-pills .nav-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 550; font-size: var(--fs-sm); }
.sg .nav-link.active, .sg .nav-pills .nav-link.active, .sg .nav-pills .show > .nav-link { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sg .tab-content > .tab-pane { display: none; } .sg .tab-content > .active { display: block; }
.sg .list-group-item { background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 12px 16px; }
.sg .progress { height: 8px; background: var(--bg-sunk); border-radius: 8px; overflow: hidden; } .sg .progress-bar { background: var(--ok); height: 100%; }
.sg .select2-container--default .select2-selection--single { height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); display: flex; align-items: center; }
.sg .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text); padding-left: 14px; line-height: normal; }
.sg .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { background: var(--raised) !important; border-color: var(--line-strong) !important; color: var(--text); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--gold-soft) !important; color: var(--text) !important; }
.select2-container--default .select2-search--dropdown .select2-search__field { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.sg pre, .sg code { font-family: var(--font-mono); font-size: .92em; } .sg pre { background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; color: var(--text); overflow-x: auto; }
.sg .width-40 { width: 40%; } .sg .m-t-md { margin-top: 1.5rem; }
.sg img { height: auto; }
.sg .api td, .sg .api th { overflow-wrap: anywhere; }
.sg .read-text { color: var(--text-2); line-height: 1.7; }
.sg .mob-nav, .sg .app-sidebar, .sg .app-header { display: none !important; }

/* ---------- 11. MOTION · PRINT ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .sg-skel { animation: none; }
}
@media print {
  .sg-sidebar, .sg-topbar, .sg-tabbar, .sg-toasts, .sg-footer, .sg-scrim { display: none !important; }
  .sg-app { display: block; } body.sg { background: #fff; color: #000; }
}


/* ---------- 9b. PAGE ADDITIONS ------------------------------------------- */
.sg-tabs button.active, .sg-tabs button.op-tab.active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sg-upd__price { font-size: var(--fs-sm); color: var(--text-2); }
.sg-upd__price s { color: var(--text-3); } .sg-upd__price b { color: var(--text); }
.sg-upd .sg-row__title { overflow: visible; }
@media (max-width: 575.98px) { .sg-upd { align-items: flex-start; } .sg-upd .sg-row__end { justify-items: end; } }
.sg-card--flush > .sg-news:first-of-type { border-top: 0; }
.sg-page-head__actions .sg-btn { flex: none; }
@media (max-width: 575.98px) {
  .sg-page-head__actions { width: 100%; } .sg-page-head__actions .sg-btn { flex: 1; }
  .sg-page-head .sg-tabs { width: 100%; }
}
.op-service-form:not(:empty) { margin-bottom: 18px; }

.sg-only-xs { display: none !important; }
@media (max-width: 640px) {
  .sg-hide-sm { display: none !important; }
  .sg-only-xs { display: flex !important; }
  .sg-crumb .sg-crumb__root, .sg-crumb > .i { display: none; }
  .sg-crumb strong { font-size: var(--fs-lg); letter-spacing: -.01em; }
}


/* ---------- 9c. PUBLIC SITE · CHRISTMAS EDITION --------------------------- */
.sg-public { background: var(--bg); }
.sg-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sg-wrap--narrow { max-width: 860px; }
.sg-snowbtn[aria-pressed="false"] { opacity: .55; }
.sg-snowbtn[aria-pressed="true"] { color: var(--gold); }

/* Navigation: evergreen bar, cream type */
.sg-pubbar { position: sticky; top: 0; z-index: 50; background: var(--forest); color: var(--on-forest); padding-top: env(safe-area-inset-top); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.sg-pubbar__in { display: flex; align-items: center; gap: 20px; height: 66px; }
.sg-pubbar .sg-auth__wordmark { color: #fff; }
.sg-pubbar .sg-brand__mark { background: var(--gold); color: #231a05; }
.sg-pubnav { display: none; gap: 2px; margin-left: 14px; }
.sg-pubnav a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: var(--r-pill); color: rgba(248, 240, 222, .85); font-weight: 600; font-size: var(--fs-md); transition: background var(--t-fast); }
.sg-pubnav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sg-pubnav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; }
.sg-pubbar__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sg-pubbar .sg-iconbtn { color: var(--on-forest); } .sg-pubbar .sg-iconbtn:hover { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.sg-pubbar .sg-btn--ghost { --b-fg: var(--on-forest); --b-bg-h: rgba(255, 255, 255, .1); }
.sg-pubbar .sg-menu { background: var(--surface); color: var(--text); }
@media (min-width: 900px) { .sg-pubnav { display: flex; } .sg-pubmenu { display: none; } }
.sg-pubbar + .sg-lights, .sg-pubbar ~ .sg-lights-wrap { position: relative; z-index: 2; }
.sg-lights-wrap { height: 0; position: relative; z-index: 4; }


/* Hero: a red wrapping-paper field, the tree breaking out of it, a snowdrift below */
.sg-xhero { position: relative; background-color: var(--red); color: #fff; overflow: hidden; isolation: isolate;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%23ffe3a1' fill-opacity='.11'%3E%3Cpath d='M24 14l2.2 6 6.4.3-5 3.9 1.8 6.1-5.4-3.5-5.4 3.5 1.8-6.1-5-3.9 6.4-.3z'/%3E%3Cpath d='M72 62l1.6 4.4 4.7.2-3.7 2.9 1.3 4.5-3.9-2.6-3.9 2.6 1.3-4.5-3.7-2.9 4.7-.2z'/%3E%3Ccircle cx='74' cy='20' r='2.4'/%3E%3Ccircle cx='20' cy='70' r='2'/%3E%3Ccircle cx='50' cy='46' r='1.4'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-mode="dark"] .sg-xhero { background-color: #8e1b30; }
.sg-xhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 82% 55%, rgba(255, 255, 255, .1), transparent 70%); }
.sg-xhero__in { display: grid; gap: 8px; padding-top: clamp(44px, 7vw, 84px); align-items: end; }
@media (min-width: 960px) { .sg-xhero__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.sg-xhero__copy { position: relative; z-index: 2; padding-bottom: clamp(70px, 10vw, 120px); max-width: 640px; }
.sg-xhero__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--r-pill); background: rgba(8, 47, 36, .55); color: #ffe3a1; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sg-xhero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 6.4vw, 68px); line-height: .98; letter-spacing: -.035em; color: #fff; margin: 18px 0 18px; text-wrap: balance; }
.sg-xhero h1 .sg-hl { position: relative; display: inline-block; color: #ffd36b; }
.sg-xhero h1 .sg-hl svg { position: absolute; left: -2%; bottom: -.2em; width: 104%; height: .32em; color: #ffd36b; }
.sg-xhero__lede { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 50ch; }
.sg-xhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sg-xhero .sg-btn--lg { height: 54px; padding: 0 26px; font-size: 16.5px; }
.sg-btn--snow { --b-bg: #fffaf0; --b-fg: var(--red-hover); --b-bd: #fffaf0; --b-bg-h: #fff; box-shadow: 0 4px 0 rgba(8, 47, 36, .35); }
.sg-btn--snow:hover { color: var(--red-hover); }
.sg-btn--outline-snow { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .7); --b-bg-h: rgba(255, 255, 255, .14); }
.sg-xhero__plat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.sg-xhero__plat span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; }
.sg-xhero__art { position: relative; align-self: end; display: flex; justify-content: center; z-index: 1; }
.sg-xhero__art svg { width: min(100%, 470px); height: auto; display: block; margin-bottom: -2px; filter: drop-shadow(0 18px 18px rgba(60, 0, 10, .28)); }
@media (max-width: 959.98px) { .sg-xhero__art { margin-top: -26px; } .sg-xhero__art svg { width: min(78%, 330px); } .sg-xhero__copy { padding-bottom: 20px; } }
.sg-xhero__spark { position: absolute; color: #ffe3a1; z-index: 1; pointer-events: none; }
.sg-drift { display: block; width: 100%; height: clamp(34px, 5vw, 70px); color: var(--bg); margin-top: -1px; position: relative; z-index: 3; }
.sg-xhero .sg-drift { position: absolute; left: 0; bottom: -1px; }
.sg-drift svg { width: 100%; height: 100%; display: block; }

/* Platforms: a deliberately uneven mosaic */
.sg-sec { padding: clamp(44px, 7vw, 92px) 0; position: relative; }
.sg-sec__kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
:root[data-mode="dark"] .sg-sec__kicker { color: var(--gold); }
.sg-sec__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.04; letter-spacing: -.03em; margin: 8px 0 12px; max-width: 18ch; text-wrap: balance; }
.sg-sec__p { color: var(--text-2); max-width: 52ch; font-size: var(--fs-lg); line-height: 1.6; }
.sg-mosaic { display: grid; gap: 12px; margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 118px; }
.sg-pt { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border-radius: 14px; overflow: hidden; color: var(--text); background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-base) var(--ease); }
.sg-pt:hover { transform: translateY(-3px) rotate(-.4deg); }
.sg-pt i { font-size: 26px; line-height: 1; }
.sg-pt b { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.sg-pt small { font-size: 12px; opacity: .75; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.sg-pt--red { background: var(--red); border-color: var(--red); color: #fff; }
.sg-pt--green { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.sg-pt--gold { background: var(--gold); border-color: var(--gold); color: #2a1d02; }
.sg-pt--berry { background: var(--berry); border-color: var(--berry); color: #fff; }
.sg-pt--snow { background: #fff; } :root[data-mode="dark"] .sg-pt--snow { background: var(--surface-2); }
.sg-pt--tall { grid-row: span 2; } .sg-pt--tall i { font-size: 44px; } .sg-pt--tall b { font-size: 26px; }
.sg-pt--wide { grid-column: span 2; }
.sg-pt::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; border: 8px solid currentColor; opacity: .07; }
@media (min-width: 900px) {
  .sg-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, 118px); }
  .sg-pt:nth-child(1) { grid-area: 1 / 1 / 4 / 3; }
  .sg-pt:nth-child(2) { grid-area: 1 / 3 / 3 / 5; }
  .sg-pt:nth-child(3) { grid-area: 1 / 5 / 2 / 7; }
  .sg-pt:nth-child(4) { grid-area: 2 / 5 / 3 / 7; }
  .sg-pt:nth-child(5) { grid-area: 3 / 3 / 5 / 5; }
  .sg-pt:nth-child(6) { grid-area: 3 / 5 / 4 / 7; }
  .sg-pt:nth-child(7) { grid-area: 4 / 1 / 5 / 2; }
  .sg-pt:nth-child(8) { grid-area: 4 / 2 / 5 / 3; }
  .sg-pt:nth-child(9) { grid-area: 4 / 5 / 5 / 6; }
  .sg-pt:nth-child(10) { grid-area: 4 / 6 / 5 / 7; }
  .sg-pt:nth-child(1) i, .sg-pt:nth-child(2) i, .sg-pt:nth-child(5) i { font-size: 44px; }
  .sg-pt:nth-child(1) b, .sg-pt:nth-child(2) b, .sg-pt:nth-child(5) b { font-size: 26px; }
  .sg-pt:nth-child(7) small, .sg-pt:nth-child(8) small, .sg-pt:nth-child(9) small, .sg-pt:nth-child(10) small { display: none; }
}
@media (max-width: 899.98px) { .sg-pt--tall { grid-row: span 1; } .sg-pt--tall i { font-size: 26px; } .sg-pt--tall b { font-size: 19px; } .sg-pt--wide { grid-column: span 2; } }

/* How it works: three gift tags on a green band */
.sg-band { background: var(--forest); color: var(--on-forest); position: relative; overflow: hidden; }
.sg-band .sg-sec__h { color: #fff; } .sg-band .sg-sec__kicker { color: var(--gold); } .sg-band .sg-sec__p { color: rgba(248, 240, 222, .82); }
.sg-tags { display: grid; gap: 22px; margin-top: 40px; }
@media (min-width: 820px) { .sg-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; } .sg-tag:nth-child(2) { margin-top: 28px; } .sg-tag:nth-child(3) { margin-top: 8px; } }
.sg-tag { position: relative; background: var(--bg); color: var(--text); padding: 40px 24px 26px; clip-path: polygon(0 26px, 26px 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); transform: rotate(var(--rot, -1.2deg)); }
.sg-tag:nth-child(2) { --rot: 1deg; } .sg-tag:nth-child(3) { --rot: -.6deg; }
.sg-tag::before { content: ""; position: absolute; left: 50%; top: 11px; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); background: var(--forest); box-shadow: inset 0 0 0 2px var(--gold); }
.sg-tag__n { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--red); letter-spacing: -.04em; }
:root[data-mode="dark"] .sg-tag { background: var(--surface-2); } :root[data-mode="dark"] .sg-tag__n { color: var(--gold); }
.sg-tag h3 { font-family: var(--font-display); font-size: 21px; margin: 12px 0 6px; letter-spacing: -.02em; }
.sg-tag p { color: var(--text-2); font-size: var(--fs-md); line-height: 1.6; }

/* Reasons: asymmetric, staggered list */
.sg-reasons { display: grid; gap: 34px 60px; align-items: start; }
@media (min-width: 900px) { .sg-reasons { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.sg-reasons__list { display: grid; gap: 22px; }
@media (min-width: 640px) { .sg-reasons__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-reasons__list > div:nth-child(even) { transform: translateY(26px); } }
.sg-reasons__list > div { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.sg-reasons__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.sg-reasons__list > div:nth-child(2) .sg-reasons__ico { background: var(--forest); } .sg-reasons__list > div:nth-child(3) .sg-reasons__ico { background: var(--gold); color: #2a1d02; } .sg-reasons__list > div:nth-child(4) .sg-reasons__ico { background: var(--berry); }
.sg-reasons h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: -.015em; margin-bottom: 4px; }
.sg-reasons p { color: var(--text-2); font-size: var(--fs-md); line-height: 1.6; }

/* Seasonal banner: a wrapped present */
.sg-gift { position: relative; background: var(--gold); color: #2a1d02; border-radius: 16px; padding: clamp(28px, 5vw, 52px); overflow: hidden; display: grid; gap: 20px; }
.sg-gift::before { content: ""; position: absolute; top: 0; bottom: 0; right: clamp(40px, 12%, 140px); width: 46px; background: var(--red); }
.sg-gift::after { content: ""; position: absolute; left: 0; right: 0; top: 54%; height: 0; }
.sg-gift > * { position: relative; z-index: 1; }
.sg-gift h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; color: #2a1d02; }
.sg-gift p { max-width: 46ch; font-size: var(--fs-lg); line-height: 1.55; }
.sg-gift .sg-btn { justify-self: start; --b-bg: var(--forest); --b-fg: #fff; --b-bd: var(--forest); --b-bg-h: var(--forest-2); }
@media (max-width: 640px) { .sg-gift::before { right: 18px; width: 26px; } .sg-gift h2, .sg-gift p { padding-right: 36px; } }

.sg-faqblock { background: var(--surface); border-block: 1px solid var(--line); }

/* Footer */
.sg-pubfoot { background: var(--forest-deep); color: rgba(248, 240, 222, .78); padding: 38px 0 calc(24px + env(safe-area-inset-bottom)); position: relative; z-index: 2; }
.sg-pubfoot a:hover { color: #fff; }
.sg-pubfoot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.sg-pubfoot .sg-auth__wordmark { color: #fff; }
.sg-pubfoot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--fs-sm); font-weight: 550; }
.sg-pubfoot__legal { margin-top: 24px; font-size: var(--fs-xs); color: rgba(248, 240, 222, .55); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.sg-public .sg-pager { padding-top: 12px; }

.sg-pagehead { padding-top: clamp(34px, 5vw, 60px); padding-bottom: clamp(18px, 3vw, 28px); }
.sg-pagehead__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 50px); line-height: 1.02; letter-spacing: -.035em; margin: 6px 0 10px; }
.sg-pagehead .sg-eyebrow { color: var(--red); font-weight: 800; } :root[data-mode="dark"] .sg-pagehead .sg-eyebrow { color: var(--gold); }

/* ---------- Snowfall canvas ---------- */
.sg-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; display: block; }
.sg-snow[hidden] { display: none; }
:root[data-mode="dark"] .sg-auth__card { background: var(--surface); }
:root[data-mode="dark"] .sg-auth__hole { background: var(--forest-deep); }
.sg-gift__bow { position: absolute; top: -4px; right: clamp(22px, calc(12% - 22px), 120px); width: 120px; height: auto; z-index: 2; pointer-events: none; }
@media (max-width: 640px) { .sg-gift__bow { right: -8px; width: 76px; } }
.sg-content { padding-top: clamp(32px, 4vw, 48px); }
.sg-pubbar .sg-auth__wordmark { min-width: 0; }
.sg-pubbar__right { flex: none; }
.sg-pubbar .sg-menu .sg-seg { background: var(--bg-sunk); }
@media (max-width: 640px) { .sg-pubbar__in { gap: 10px; } .sg-pubbar .sg-menu { right: 0; } }

/* ---- Sidebar groups (admin accordion) + short-screen fit ---- */
.sg-nav__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; border-radius: var(--r-sm); }
.sg-nav__toggle:hover { color: var(--text); }
.sg-nav__toggle .i { transition: transform var(--t-base) var(--ease); opacity: .7; }
.sg-navgroup.is-open > .sg-nav__toggle .i { transform: rotate(180deg); }
.sg-navgroup__items { display: none; }
.sg-navgroup.is-open > .sg-navgroup__items { display: block; }
.sg-navgroup .sg-nav__label { padding-top: 12px; padding-bottom: 6px; }
@media (min-width: 1024px) {
  :root[data-sb="collapsed"] .sg-navgroup__items { display: block; }
  :root[data-sb="collapsed"] .sg-nav__toggle { display: none; }
}
.sg-nav { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.sg-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); }
@media (min-width: 1024px) and (max-height: 820px) {
  .sg-nav { padding-top: 8px; }
  .sg-nav a { height: 34px; margin: 0; }
  .sg-nav__label { padding-top: 10px; padding-bottom: 4px; }
  .sg-brand { height: 56px; }
  .sg-sidebar__foot { padding: 8px 10px; gap: 4px; }
  .sg-balance-chip { padding: 7px 10px; }
}
@media (min-width: 1024px) and (max-height: 780px) {
  .sg-sidebar__foot .sg-balance-chip { display: none; }
  .sg-nav a { height: 32px; }
  .sg-nav__label { padding-top: 8px; padding-bottom: 3px; }
  .sg-navgroup .sg-nav__label { padding-top: 8px; padding-bottom: 3px; }
}

/* Sidebar scrolling fix: a flex child defaults to min-height:auto, so the nav grew past the sidebar and was clipped instead of scrolling. */
.sg-sidebar { min-height: 0; }
.sg-nav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.sg-sidebar__foot, .sg-brand { flex: none; }
@media (max-width: 1023.98px) { .sg-sidebar { height: 100vh; height: 100dvh; } }


/* ---------- STRING LIGHTS ------------------------------------------------- */
.sg-lights { position: relative; height: 56px; pointer-events: none; overflow: visible;
  --sg-lit: 1; --sg-kick: 0; --sg-lift: 0px; --sg-sway: 0px;
  --wire: #3a5646; --wire-hi: rgba(255, 255, 255, .85); --sock: #2b2d27; --sock-rim: rgba(255, 255, 255, .35); }
:root[data-mode="dark"] .sg-lights { --wire: #a3b596; --wire-hi: rgba(0, 0, 0, .45); --sock: #14211b; --sock-rim: #6f8a7a; }
.sg-lights svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; pointer-events: none;
  transform: translate3d(var(--sg-sway), var(--sg-lift), 0); transition: transform 420ms var(--ease); }
.sg-topbar .sg-lights { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; }
.sg-auth__lights .sg-lights { height: 56px; }
.sg-lights-wrap .sg-lights { position: absolute; left: 0; right: 0; top: 0; }
.sg-lights .lw { stroke: var(--wire); stroke-width: 1.7; stroke-linecap: round; fill: none; }
.sg-lights .lw-shadow { stroke: var(--wire-hi); stroke-width: 1.6; transform: translateY(1.5px); opacity: .55; }
.sg-lights .lb-sock { fill: var(--sock); stroke: var(--sock-rim); stroke-width: .6; }
.sg-lights .lb-hl { opacity: .6; }
/* glow + lit glass: brightness follows scroll depth (--sg-lit) and scroll speed (--sg-kick) */
.sg-lights .lb-gw { opacity: min(1, calc(var(--sg-lit) * .85 + var(--sg-kick) * .3)); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .35s var(--ease); }
.sg-lights .lb-lw { opacity: min(1, calc(var(--sg-lit) * .5 + .5 + var(--sg-kick) * .2)); transition: opacity .3s ease; }
.sg-lights .lb-glow { transform-box: fill-box; transform-origin: center; animation: sg-lb-glow var(--p, 5s) ease-in-out var(--d, 0s) infinite alternate; }
.sg-lights .lb-lit { animation: sg-lb-lit var(--p, 5s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes sg-lb-glow { from { opacity: calc(var(--b, .85) * .3); transform: scale(.86); } to { opacity: var(--b, .85); transform: scale(1); } }
@keyframes sg-lb-lit { from { opacity: calc(var(--b, .85) * .55); } to { opacity: 1; } }
.sg-lights .lb.is-pop .lb-gw { opacity: 1; transform: scale(1.4); }
.sg-lights .lb.is-pop .lb-lw { opacity: 1; }
/* static (reduced motion): fully lit, no timers */
.sg-lights.is-static .lb-glow, .sg-lights.is-static .lb-lit { animation: none; opacity: .9; }
.sg-lights.is-static svg { transition: none; }
@media (prefers-reduced-motion: reduce) { .sg-lights .lb-glow, .sg-lights .lb-lit { animation: none; opacity: .9; } .sg-lights svg, .sg-lights .lb-gw, .sg-lights .lb-lw { transition: none; } }
/* mobile: shorter strand, tighter hang */
@media (max-width: 639.98px) {
  .sg-lights, .sg-auth__lights .sg-lights { height: 38px; }
  .sg-topbar .sg-lights { top: calc(100% - 1px); }
  .sg-content { padding-top: 40px; }
  .sg-admin .sg-content { padding-top: 40px; }
}
@media (min-width: 640px) { .sg-content { padding-top: clamp(52px, 5vw, 60px); } .sg-admin .sg-content { padding-top: 56px; } }
.sg-xhero__in { padding-top: clamp(66px, 8vw, 96px); }

/* Dark appearance: a clear, natural blink. Each bulb dims to its unlit glass, then glows back on, on its own period and phase. */
@keyframes sg-lb-blink { 0%, 34% { opacity: .08; } 48%, 86% { opacity: 1; } 100% { opacity: .08; } }
@keyframes sg-lb-blink-glow { 0%, 34% { opacity: 0; transform: scale(.7); } 48%, 86% { opacity: var(--b, .9); transform: scale(1.05); } 100% { opacity: 0; transform: scale(.7); } }
:root[data-mode="dark"] .sg-lights:not(.is-static) .lb-lit { animation: sg-lb-blink calc(var(--p, 5s) * .62) ease-in-out var(--d, 0s) infinite; }
:root[data-mode="dark"] .sg-lights:not(.is-static) .lb-glow { animation: sg-lb-blink-glow calc(var(--p, 5s) * .62) ease-in-out var(--d, 0s) infinite; }
:root[data-mode="dark"] .sg-lights .lb-gw, :root[data-mode="dark"] .sg-lights .lb-lw { opacity: 1; }
@media (prefers-reduced-motion: reduce) { :root[data-mode="dark"] .sg-lights .lb-lit, :root[data-mode="dark"] .sg-lights .lb-glow { animation: none; opacity: .9; } }

/* lights while reading: they step back (dimmer, tucked) so they never fight with fields underneath */
.sg-lights svg { opacity: var(--sg-fade, 1); transition: transform 420ms var(--ease), opacity 420ms ease; }
/* never let decoration or open menus create a horizontal scrollbar */
.sg-lights { overflow-x: clip; }
.sg-main { overflow-x: clip; }
@media (max-width: 359.98px) { .op-platform-grid { grid-auto-columns: 78px; } .pt-name { font-size: 11.5px; letter-spacing: -.01em; } }

/* ---------- LEGAL DOCUMENT (Terms & Conditions) ------------------------------
   An editorial reading surface. The stored text is untouched; the helper only adds presentation classes.
   Stored inline styles (colour, font, size) are overridden here so the document follows light/dark. */
.sg-legal-layout { --lg-text: #27362f; --lg-head: #14231c; --lg-muted: #566a60; --lg-paper: #fffdf8; --lg-edge: #e6d7b8;
  width: 100%; max-width: 820px; margin: 0 auto; }
:root[data-mode="dark"] .sg-legal-layout { --lg-text: #ece8d8; --lg-head: #fbf5e4; --lg-muted: #aebfb3; --lg-paper: #12261f; --lg-edge: #2f5547; }
.sg-legal-pagewrap { padding-top: clamp(30px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }

.sg-legal-head { margin: 0 0 clamp(16px, 2.4vw, 24px); }
.sg-legal-head .sg-eyebrow { margin-bottom: 6px; }
.sg-legal-head__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(27px, 5.6vw, 42px); line-height: 1.08; letter-spacing: -.03em; overflow-wrap: anywhere; color: var(--lg-head); }
.sg-legal-head__sub { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--lg-muted); max-width: 52ch; }

/* The document surface sits above the snow canvas (z 30) and below the header / bottom bar (z 40+), so flakes fall behind it. */
.sg-reading .sg-legal { position: relative; z-index: 35; overflow: hidden; background: var(--lg-paper); color: var(--lg-text);
  border: 1px solid var(--lg-edge); border-radius: var(--r-lg); box-shadow: 0 18px 40px -26px rgba(8, 47, 36, .35);
  padding: clamp(24px, 4.2vw, 48px) clamp(18px, 4.6vw, 56px) clamp(26px, 4.4vw, 52px); }
:root[data-mode="dark"] .sg-reading .sg-legal { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }
.sg-legal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, var(--gold) 22px 30px, var(--forest-2) 30px 52px, var(--gold) 52px 60px); }

.sg-legal__body { font-size: 15.5px; line-height: 1.75; color: var(--lg-text); overflow-wrap: anywhere; hyphens: manual; }
.sg-legal__body > * { margin: 0 !important; color: var(--lg-text) !important; background: transparent !important; font-family: var(--font-ui) !important;
  font-size: inherit !important; line-height: inherit !important; text-align: left !important; text-indent: 0 !important; }
.sg-legal__body :is(span, strong, b, em, i, u, font, a) { color: inherit !important; background: transparent !important;
  font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.sg-legal__body a { color: var(--lg-head) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.sg-legal__body :is(strong, b) { font-weight: 700; color: var(--lg-head) !important; }
.sg-legal__body br { display: none; }
.sg-legal__body > .sg-legal__gap { display: none !important; }

.sg-legal__body > .sg-legal__p { margin-bottom: 1em !important; max-width: 68ch; }
.sg-legal__body > .sg-legal__sec { margin: clamp(30px, 4vw, 44px) 0 10px !important; padding-top: 18px; border-top: 1px solid var(--lg-edge); font-family: var(--font-display) !important;
  font-size: 12.5px !important; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--red) !important; scroll-margin-top: 90px; }
:root[data-mode="dark"] .sg-legal__body > .sg-legal__sec { color: var(--gold) !important; }
.sg-legal__body > .sg-legal__sec:first-child, .sg-legal__body > .sg-legal__sub:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.sg-legal__body > .sg-legal__sub { margin: 26px 0 8px !important; font-family: var(--font-display) !important; font-size: clamp(19px, 2.6vw, 22px) !important; line-height: 1.25 !important;
  font-weight: 800; letter-spacing: -.02em; color: var(--lg-head) !important; scroll-margin-top: 90px; }
.sg-legal__body > .sg-legal__sec + .sg-legal__sub { margin-top: 4px !important; }
.sg-legal__body > .sg-legal__num { display: table; margin: 22px 0 -6px !important; padding: 1px 9px; font-size: 12.5px !important; font-weight: 800; letter-spacing: .06em;
  color: var(--gold-text) !important; background: var(--gold-soft) !important; border: 1px solid var(--gold-line); border-radius: var(--r-pill); line-height: 1.6 !important; }
.sg-legal__body > .sg-legal__clause { position: relative; margin-bottom: 14px !important; padding: 12px 14px 12px 44px;
  background: rgba(14, 74, 56, .05) !important; border-radius: var(--r-md); border-left: 3px solid var(--forest-2); }
:root[data-mode="dark"] .sg-legal__body > .sg-legal__clause { background: rgba(255, 255, 255, .05) !important; border-left-color: var(--ink-hover); }
.sg-legal__body .sg-legal__tick { position: absolute; left: 13px; top: 15px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--forest-2) !important; color: #fff !important; font-size: 11px !important; line-height: 1 !important; }
:root[data-mode="dark"] .sg-legal__body .sg-legal__tick { background: var(--ink) !important; }
.sg-legal__body > .sg-legal__regards { margin-top: 34px !important; padding-top: 18px; border-top: 1px solid var(--lg-edge); color: var(--lg-muted) !important; }
.sg-legal__body > .sg-legal__sign { font-family: var(--font-display) !important; font-weight: 800; font-size: 18px !important; letter-spacing: .08em; color: var(--lg-head) !important; }

/* Contents: desktop only, generated from the document's own headings. */
.sg-legal-toc { display: none; }
@media (min-width: 1200px) {
  .sg-public .sg-legal-layout.has-toc { display: grid; max-width: 1090px; grid-template-columns: minmax(0, 820px) 220px; gap: 0 48px; align-items: start; }
  .sg-public .has-toc .sg-legal-toc { display: block; }
}
@media (min-width: 1440px) {
  .sg-user .sg-legal-layout.has-toc { display: grid; max-width: 1090px; grid-template-columns: minmax(0, 820px) 220px; gap: 0 48px; align-items: start; }
  .sg-user .has-toc .sg-legal-toc { display: block; }
}
.sg-legal-toc { position: sticky; top: 90px; align-self: start; margin-top: 8px; padding-left: 16px; border-left: 1px solid var(--lg-edge); font-size: 13.5px; }
.sg-legal-toc h2 { font-family: var(--font-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lg-muted); margin-bottom: 10px; }
.sg-legal-toc ol { display: grid; gap: 2px; }
.sg-legal-toc a { display: block; padding: 5px 8px; margin-left: -8px; border-radius: var(--r-sm); color: var(--lg-muted); line-height: 1.35; }
.sg-legal-toc .lvl-2 a { padding-left: 18px; }
.sg-legal-toc a:hover { color: var(--lg-head); background: var(--gold-soft); }
.sg-legal-toc a[aria-current="true"] { color: var(--lg-head); font-weight: 700; background: var(--gold-soft); box-shadow: inset 2px 0 0 var(--red); }
:root[data-mode="dark"] .sg-legal-toc a[aria-current="true"] { box-shadow: inset 2px 0 0 var(--gold); }

@media (max-width: 479.98px) {
  .sg-legal__body { font-size: 15px; line-height: 1.7; }
  .sg-legal__body > .sg-legal__clause { padding: 11px 11px 11px 40px; } .sg-legal__body .sg-legal__tick { left: 11px; top: 14px; }
  .sg-reading .sg-legal { border-radius: var(--r-md); }
}
@media print { .sg-legal-toc { display: none !important; } .sg-reading .sg-legal { box-shadow: none; } }


/* ---------- NAVIGATION · CHRISTMAS (desktop sidebar, collapsed rail, mobile drawer) -----------------------------
   Shared by the customer and admin shells. Evergreen surface; red marks "where you are", gold is the small detail. */
.sg-sidebar { --nv-red: #ef4058; --nv-gold: #ffd36b; --nv-cream: #f8f0de; --nv-hair: rgba(255, 255, 255, .11); }
@media (min-width: 1024px) { .sg-sidebar { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .24); } }

/* Brand: gold-ringed logo (like a bauble on the line) and a thin ribbon of the three Christmas colours */
.sg-brand { position: relative; gap: 12px; padding: 0 16px 0 18px; border-bottom: 0; }
.sg-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--nv-red) 0 14px, var(--nv-gold) 14px 18px, #2a9a72 18px 32px, var(--nv-gold) 32px 36px); opacity: .9; }
.sg-brand__mark { width: 36px; height: 36px; overflow: visible; box-shadow: 0 0 0 2px var(--forest), 0 0 0 3.5px rgba(255, 211, 107, .8); }
.sg-brand__mark img { border-radius: 50%; }
.sg-brand__name { font-size: 17.5px; color: #fff; }
.sg-brand__name small { font-size: 10px; font-weight: 600; letter-spacing: .15em; color: rgba(255, 211, 107, .85); margin-top: 4px; }

/* Group headings: quiet caps with a hairline that carries the eye across */
.sg-nav { padding: 16px 10px 12px; }
.sg-nav__label { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; color: rgba(248, 240, 222, .62); padding: 16px 12px 6px; }
div.sg-nav__label { display: flex; align-items: center; gap: 10px; }
div.sg-nav__label::after { content: ""; flex: 1; height: 1px; background: var(--nv-hair); }
.sg-nav__label:first-child { padding-top: 4px; }

/* Items: one consistent row; hover is a whisper, current page is unmistakable */
.sg-nav a { height: 40px; gap: 12px; padding: 0 12px; margin: 1px 0; border-radius: 10px; font-size: 14.5px; font-weight: 520; color: rgba(248, 240, 222, .86); }
.sg-nav a .i { width: 19px; height: 19px; stroke-width: 1.9; color: rgba(248, 240, 222, .62); }
.sg-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sg-nav a:hover .i { color: #ffe3a1; }
.sg-nav a:focus-visible { outline: 2px solid var(--nv-gold); outline-offset: -2px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff; }
.sg-nav a[aria-current="page"] { background-color: rgba(255, 255, 255, .105); color: #fff; font-weight: 680;
  background-image: radial-gradient(circle, var(--nv-gold) 0 2.6px, transparent 3.2px); background-repeat: no-repeat; background-size: 8px 8px; background-position: right 14px center; }
.sg-nav a[aria-current="page"] .i { color: var(--nv-gold); stroke-width: 2.1; }
.sg-nav a[aria-current="page"]::before { left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--nv-red); box-shadow: 0 0 12px rgba(239, 64, 88, .5); }
.sg-nav__count { background: var(--nv-red); color: #fff; border-color: transparent; }

/* Footer: wallet reads like a rich nav row (gold wallet badge, balance, quick "add funds") */
.sg-sidebar__foot { padding: 12px 10px; gap: 6px; border-top: 1px solid var(--nv-hair); background: rgba(0, 0, 0, .14); }
.sg-balance-chip { display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 9px 0 8px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transition: background var(--t-fast) var(--ease); }
.sg-balance-chip:hover { background: rgba(255, 255, 255, .11); border-color: transparent; }
.sg-balance-chip:focus-visible { outline: 2px solid var(--nv-gold); outline-offset: 2px; border-radius: 12px; }
.sg-balance-chip__ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 211, 107, .17); color: var(--nv-gold); }
.sg-balance-chip__ico .i { width: 18px; height: 18px; }
.sg-balance-chip__t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sg-balance-chip__k { font-size: 11px; line-height: 1.2; color: rgba(248, 240, 222, .62); }
.sg-balance-chip__v { font-family: var(--font-display); font-weight: 750; font-size: 16px; line-height: 1.2; color: #fff; }
.sg-balance-chip__go { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--nv-red); color: #fff; transition: transform var(--t-base) var(--ease); }
.sg-balance-chip__go .i { width: 14px; height: 14px; stroke-width: 2.4; }
.sg-balance-chip:hover .sg-balance-chip__go { transform: rotate(90deg); }
.sg-collapse-btn { height: 36px; color: rgba(248, 240, 222, .62); }
.sg-collapse-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sg-collapse-btn:focus-visible { outline: 2px solid var(--nv-gold); outline-offset: -2px; }
.sg-sidebar .sg-iconbtn { color: rgba(248, 240, 222, .86); }
.sg-sidebar .sg-iconbtn:hover { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.sg-sidebar [data-tip]::after { display: none !important; }
.sg-drawer-account { display: none; }

/* Collapsed rail (desktop): icons centred, groups separated by hairlines, tooltips on hover and focus */
@media (min-width: 1024px) {
  :root[data-sb="collapsed"] .sg-brand { padding: 0 18px; }
  :root[data-sb="collapsed"] div.sg-nav__label { display: block; height: 1px; margin: 10px 8px; padding: 0; font-size: 0; background: var(--nv-hair); }
  :root[data-sb="collapsed"] div.sg-nav__label::after { display: none; }
  :root[data-sb="collapsed"] div.sg-nav__label:first-child { display: none; }
  :root[data-sb="collapsed"] .sg-nav a { padding: 0; background-image: none; }
  :root[data-sb="collapsed"] .sg-nav a[aria-current="page"]::before { left: -12px; }
  :root[data-sb="collapsed"] .sg-nav a:is(:hover, :focus-visible)::after,
  :root[data-sb="collapsed"] .sg-balance-chip:is(:hover, :focus-visible)::after {
    content: attr(data-label); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap;
    background: var(--forest-deep); color: var(--nv-cream); font-size: 12.5px; font-weight: 550; padding: 6px 10px; border-radius: 8px; z-index: 80; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12);
  }
  :root[data-sb="collapsed"] .sg-balance-chip { position: relative; justify-content: center; padding: 0; height: 48px; background: transparent; box-shadow: none; }
  :root[data-sb="collapsed"] .sg-balance-chip__t, :root[data-sb="collapsed"] .sg-balance-chip__go { display: none; }
  :root[data-sb="collapsed"] .sg-collapse-btn { justify-content: center; }
}

/* Short desktop screens: tighten rows so the footer never crowds the menu (the menu itself still scrolls) */
@media (min-width: 1024px) and (max-height: 820px) {
  .sg-brand { height: 58px; } .sg-nav { padding-top: 10px; }
  .sg-nav a { height: 36px; margin: 1px 0; }
  .sg-nav__label { padding-top: 11px; padding-bottom: 4px; } .sg-nav__label:first-child { padding-top: 2px; }
  .sg-collapse-btn { height: 30px; }
  .sg-sidebar__foot { padding: 8px 10px; }
  .sg-balance-chip { height: 46px; } .sg-balance-chip__ico { width: 30px; height: 30px; }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .sg-nav a { height: 34px; } .sg-nav__label { padding-top: 9px; padding-bottom: 3px; }
  .sg-sidebar__foot .sg-balance-chip { display: none; }
}

/* ---- Mobile drawer: its own layout, not a squeezed sidebar ---- */
@media (max-width: 1023.98px) {
  .sg-sidebar { width: min(88vw, 340px); border-radius: 0 18px 18px 0; transition: transform 260ms var(--ease), visibility 0s linear 260ms; }
  .sg-nav-open .sg-sidebar { transition: transform 260ms var(--ease), visibility 0s; }
  .sg-scrim { touch-action: none; transition: opacity 260ms var(--ease), visibility 0s linear 260ms; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  .sg-nav-open .sg-scrim { transition: opacity 260ms var(--ease), visibility 0s; }
  .sg-brand { height: calc(66px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); padding-right: 14px; }
  .sg-iconbtn.sg-brand__close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; }
  .sg-iconbtn.sg-brand__close:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
  .sg-nav { padding: 14px 12px 12px; }
  .sg-nav a { height: 48px; padding: 0 14px; font-size: 15.5px; border-radius: 12px; margin: 2px 0; }
  .sg-nav a .i { width: 20px; height: 20px; }
  .sg-nav a[aria-current="page"]::before { left: -12px; top: 10px; bottom: 10px; }
  .sg-nav__label { padding: 22px 14px 8px; font-size: 11px; } .sg-nav__label:first-child { padding-top: 4px; }
  .sg-sidebar__foot { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
  .sg-sidebar { padding-bottom: 0; }
  .sg-drawer-account { display: flex; align-items: center; gap: 6px; }
  .sg-drawer-user { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; min-height: 48px; padding: 4px 8px 4px 4px; border-radius: 12px; color: #fff; }
  .sg-drawer-user:hover { background: rgba(255, 255, 255, .07); }
  .sg-drawer-user:focus-visible { outline: 2px solid var(--nv-gold); outline-offset: -2px; }
  .sg-drawer-user .sg-avatar { width: 38px; height: 38px; font-size: 15px; box-shadow: 0 0 0 2px var(--forest), 0 0 0 3.5px rgba(255, 211, 107, .6); }
  .sg-drawer-user__t { display: grid; min-width: 0; line-height: 1.25; }
  .sg-drawer-user__t b { font-size: 14.5px; font-weight: 650; color: #fff; }
  .sg-drawer-user__t small { font-size: 11.5px; color: rgba(248, 240, 222, .62); }
  .sg-drawer-tools { display: flex; gap: 2px; flex: none; }
  .sg-drawer-tools .sg-iconbtn { width: 42px; height: 42px; }
  .sg-iconbtn.sg-topbar__menu { width: 40px; height: 40px; margin-left: -4px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
  .sg-iconbtn.sg-topbar__menu:active { transform: scale(.96); }
}
@media (max-width: 1023.98px) and (max-height: 640px) {
  .sg-nav a { height: 44px; } .sg-nav__label { padding-top: 14px; }
  .sg-drawer-user__t small { display: none; }
}
html:has(body.sg-nav-open) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sg-sidebar, .sg-scrim { transition: none !important; }
  .sg-balance-chip:hover .sg-balance-chip__go { transform: none; }
}

/* Admin accordion headings use .sg-navgroup .sg-nav__label (higher specificity): give them the same rhythm */
.sg-navgroup .sg-nav__label { padding: 16px 12px 6px; }
.sg-navgroup:first-child .sg-nav__label { padding-top: 4px; }
.sg-navgroup .sg-nav__toggle:focus-visible { outline: 2px solid var(--nv-gold); outline-offset: -2px; border-radius: 8px; }
@media (min-width: 1024px) and (max-height: 820px) { .sg-navgroup .sg-nav__label { padding-top: 11px; padding-bottom: 4px; } .sg-navgroup:first-child .sg-nav__label { padding-top: 2px; } }
@media (min-width: 1024px) and (max-height: 700px) { .sg-navgroup .sg-nav__label { padding-top: 9px; padding-bottom: 3px; } }
@media (max-width: 1023.98px) { .sg-navgroup .sg-nav__label { padding: 20px 14px 8px; } .sg-navgroup:first-child .sg-nav__label { padding-top: 4px; } }


/* ---------- PLATFORM ICONS · premium glossy app tiles -----------------------------------------------------------
   One component (.pi) used by the platform picker, category + service lists, search results and the Services pages.
   Brand-coloured glass with a top highlight, inner bevel and a soft drop shadow. Glyphs come from the Font Awesome brand set.
   Sizes: .pi--xs 22px · .pi--sm 30px · default 40px · .pi--lg 48px. */
.pi { --s: 40px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .3);
  color: #fff; font-size: calc(var(--s) * .5); line-height: 1; isolation: isolate; background: var(--pi-bg, linear-gradient(160deg, #5b6c63, #2c3a33));
  box-shadow: inset 0 calc(var(--s) * .045) calc(var(--s) * .05) rgba(255, 255, 255, .6), inset 0 calc(var(--s) * -.09) calc(var(--s) * .11) rgba(0, 0, 0, .34),
    0 calc(var(--s) * .13) calc(var(--s) * .24) calc(var(--s) * -.12) rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .28); }
.pi::before { content: ""; position: absolute; z-index: 0; inset: 4% 7% 50% 7%; border-radius: calc(var(--s) * .3) calc(var(--s) * .3) 50% 50% / calc(var(--s) * .3) calc(var(--s) * .3) 38% 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .05)); pointer-events: none; }
.pi::after { content: ""; position: absolute; z-index: 0; inset: auto 12% 5% 12%; height: 28%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .3), transparent); pointer-events: none; }
.pi > i { position: relative; z-index: 1; width: 1em; text-align: center; filter: drop-shadow(0 calc(var(--s) * .03) calc(var(--s) * .03) rgba(0, 0, 0, .4)); }
.pi--xs { --s: 22px; } .pi--sm { --s: 30px; } .pi--lg { --s: 48px; }
.pi--inline { margin-right: 10px; vertical-align: middle; }

.pi--instagram { --pi-bg: radial-gradient(circle at 28% 108%, #fdd35a 0, #fd6a3d 38%, #d6249f 62%, #5b4bd8 92%); }
.pi--facebook { --pi-bg: linear-gradient(160deg, #5aa9ff, #0b58d0); }
.pi--youtube { --pi-bg: linear-gradient(160deg, #ff6060, #d10000); }
.pi--tiktok { --pi-bg: linear-gradient(160deg, #343434, #000); } .pi--tiktok > i { text-shadow: calc(var(--s) * -.03) calc(var(--s) * -.02) 0 #25f4ee, calc(var(--s) * .03) calc(var(--s) * .02) 0 #fe2c55; }
.pi--telegram { --pi-bg: linear-gradient(160deg, #66d2ff, #1788e0); }
.pi--twitter, .pi--threads { --pi-bg: linear-gradient(160deg, #3a3a3a, #0a0a0a); }
.pi--spotify { --pi-bg: linear-gradient(160deg, #59e883, #14a047); }
.pi--whatsapp { --pi-bg: linear-gradient(160deg, #62f28c, #12a64b); }
.pi--linkedin { --pi-bg: linear-gradient(160deg, #46a4ee, #0a5cb0); }
.pi--google { --pi-bg: linear-gradient(160deg, #ffffff, #e3e6ea); color: #4285f4; } .pi--google > i { filter: none; }
.pi--twitch { --pi-bg: linear-gradient(160deg, #bb8cff, #6528dc); }
.pi--music { --pi-bg: linear-gradient(160deg, #ffbd68, #e5560a); }
.pi--website, .pi--other { --pi-bg: linear-gradient(160deg, #62d2e0, #187c91); }
.pi--all { --pi-bg: linear-gradient(160deg, #ffe08a, #c48308); color: #3a2603; } .pi--all > i { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); }

/* Platform picker: dark glass tiles with a fine gold rim; the chosen tile catches the light in Christmas red */
.platform-btn { gap: 12px; min-height: 64px; padding: 9px 14px 9px 10px; border-radius: 16px; border: 1px solid rgba(255, 211, 107, .26); background: linear-gradient(180deg, rgba(4, 20, 14, .62), rgba(4, 20, 14, .42));
  color: #f8f0de; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.platform-btn:hover { background: linear-gradient(180deg, rgba(8, 34, 25, .8), rgba(8, 34, 25, .55)); border-color: rgba(255, 211, 107, .55); transform: translateY(-1px); }
.platform-btn .pi { --s: 44px; transition: transform var(--t-base) var(--ease); }
.platform-btn:hover .pi { transform: scale(1.06) rotate(-2deg); }
.platform-btn.active { background: linear-gradient(100deg, #8f0c24 0%, #d92d45 38%, #ee5468 58%, #c4112f 80%, #8f0c24 100%); border-color: #ff9aa6; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 28px -8px rgba(217, 45, 69, .7); }
.platform-btn.active .pi { transform: scale(1.04); }
.platform-btn .pt-check { color: #fff; }
.pt-name { font-weight: 650; }
@media (max-width: 599.98px) {
  .platform-btn { min-height: 84px; padding: 10px 3px 8px; border-radius: 15px; }
  .platform-btn .pi { --s: 40px; }
}

/* Lists: the platform icon leads every category, service and search result */
.op-service-menu .dropdown-item.has-pi { display: flex; align-items: center; gap: 12px; }
.op-service-menu .dropdown-item.has-pi > .pi { margin-top: 1px; }
.op-service-menu .dropdown-item.has-pi > .d-flex, .op-service-menu .dropdown-item.has-pi > .op-item-text { flex: 1; min-width: 0; }
.op-service-menu .dropdown-item .pi--xs { margin-right: 0; }
.search-result-item { display: flex; align-items: center; gap: 12px; }
.search-result-item .sr-body { min-width: 0; flex: 1; }
.op-service-btn__text .pi { margin-right: 10px; }
.op-cat-badge.pi { background: var(--pi-bg); }
.sg-cat__ico { margin-right: 10px; }
.sg-svc__name { display: flex; align-items: center; gap: 12px; }
.sg-svc__name > span:last-child { min-width: 0; }
.sg-cat__head .pi { margin-right: 0; }
.pi--pinterest { --pi-bg: linear-gradient(160deg, #ff4a5e, #c4001a); }
.pi--reddit { --pi-bg: linear-gradient(160deg, #ff7a3d, #e03d00); }
.pi--snapchat { --pi-bg: linear-gradient(160deg, #fffa4d, #f2d600); color: #151515; } .pi--snapchat > i { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); }
.pi--discord { --pi-bg: linear-gradient(160deg, #7a86ff, #4350e0); }
.pi--soundcloud { --pi-bg: linear-gradient(160deg, #ff8a3d, #ee4400); }
.pi--tumblr { --pi-bg: linear-gradient(160deg, #4b617f, #1e2c42); }
.pi--vk { --pi-bg: linear-gradient(160deg, #3d97ff, #0057d6); }
.pi--quora { --pi-bg: linear-gradient(160deg, #e24a46, #a31b17); }
.pi--medium { --pi-bg: linear-gradient(160deg, #3a3a3a, #050505); }
.pi--shopee { --pi-bg: linear-gradient(160deg, #ff8059, #e8391a); }
.pi--kick { --pi-bg: linear-gradient(160deg, #74ff3d, #2fc200); color: #08210a; } .pi--kick > i { font-weight: 900; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .45)); }
.pi--audiomack { --pi-bg: linear-gradient(160deg, #ffc233, #f08a00); color: #2a1a00; } .pi--audiomack > i { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .45)); }
.pi--bluesky { --pi-bg: linear-gradient(160deg, #4aa8ff, #0a6ae0); }

/* Platform picker, refined: icon centred in a roomy tile (label beneath), check as a small badge in the corner */
.platform-btn { flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-height: 96px; padding: 14px 8px 11px; text-align: center; }
.platform-btn .pi { --s: 52px; margin: 0 auto; }
.platform-btn:hover .pi { transform: translateY(-2px) scale(1.05); }
.platform-btn.active .pi { transform: scale(1.05); }
.pt-name { max-width: 100%; font-size: 13px; line-height: 1.15; letter-spacing: .005em; }
.platform-btn .pt-check { right: 8px; top: 8px; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: #fff; color: #c4112f; stroke-width: 3.2; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
@media (max-width: 599.98px) {
  .platform-btn { min-height: 92px; padding: 11px 3px 9px; }
  .platform-btn .pi { --s: 46px; }
  .pt-name { font-size: 12px; }
  .platform-btn .pt-check { right: 5px; top: 5px; width: 18px; height: 18px; padding: 3.5px; }
}

/* Category / service / search lists: one steady grid. Fixed icon column, centred rows, comfortable height. */
.op-service-menu .dropdown-item.has-pi { min-height: 58px; padding: 10px 12px; gap: 14px; align-items: center; }
.op-service-menu .dropdown-item.has-pi > .pi { --s: 36px; margin: 0; }
.op-service-menu .dropdown-item.has-pi > .op-item-text { font-size: 14.5px; line-height: 1.35; font-weight: 560; }
.op-service-menu .dropdown-item.has-pi > .d-flex { justify-content: center; gap: 3px; }
.op-service-menu .dropdown-item.has-pi .service-name-custom { line-height: 1.35; }
.search-result-item { min-height: 58px; padding: 10px 12px; gap: 14px; }
.search-result-item > .pi { --s: 36px; }
.op-service-btn { scroll-margin-top: 84px; }
@media (max-width: 1023.98px) { .op-service-menu { max-height: min(400px, calc(100dvh - 232px)); } .search-results-dropdown { max-height: min(330px, calc(100dvh - 260px)); } }
/* Selected value: icon, ID badge and name flow inline like text, so they wrap naturally on narrow screens */
.op-service-btn__text { display: block; line-height: 1.55; }
.op-service-btn__text .pi { display: inline-grid; vertical-align: middle; position: relative; top: -2px; margin-right: 8px; }
.op-service-btn__text .op-service-id-badge, .op-service-btn__text .new-service-tag { vertical-align: 1px; }

/* Order history: the platform icon leads each service name */
.sg-svcrow { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.sg-svcrow > .pi { --s: 36px; margin-top: 1px; }
.sg-svcrow__t { min-width: 0; flex: 1; }
.sg-svcrow--card { align-items: center; margin: 2px 0 4px; }
.sg-svcrow--card > .pi { margin-top: 0; }
.sg-svcrow--card .sg-oc__svc { flex: 1; min-width: 0; }
.service-id { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; }
.sg-upd__pi { display: grid; place-items: center; flex: none; }

/* Pager (Theme 4): Previous · numbers · Next, with "Page X of Y"; phones show just Previous · Page X of Y · Next */
.sg-pgn { display: flex; align-items: center; justify-content: center; gap: 10px 12px; flex-wrap: wrap; padding: 18px 8px 8px; }
.sg-pgn__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: 650; font-size: var(--fs-sm); transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
a.sg-pgn__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); transform: translateY(-1px); }
a.sg-pgn__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-pgn__btn.is-off { opacity: .45; background: transparent; cursor: not-allowed; }
.sg-pgn__nums { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sg-pgn__n { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 11px; border: 1px solid transparent; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
a.sg-pgn__n:hover { background: var(--surface-hover); border-color: var(--line); color: var(--text); }
a.sg-pgn__n:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sg-pgn__n.is-cur { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 6px 14px -8px rgba(8, 47, 36, .7); }
.sg-pgn__gap { padding: 0 6px; color: var(--text-3); }
.sg-pgn__of { display: none; margin: 0; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; } .sg-pgn__of b { color: var(--text); }
@media (max-width: 639.98px) {
  .sg-pgn { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .sg-pgn__nums { display: none; }
  .sg-pgn__of { display: block; text-align: center; flex: 1; }
  .sg-pgn__btn { padding: 0 14px; }
}

/* ---------- MOBILE TAB BAR · animated ------------------------------------------------------------------------------
   Idea: "Animated Tab Bar" (Mauricio Bucardo; CodePen by abxlfazl). A notch slides under the active tab, the tab lifts, a coloured
   disc grows behind its icon and the icon draws itself in. Everything is sized in em from --tb-u so it scales from 320px up. */
@media (max-width: 1023.98px) {
  .sg-tabbar {
    --tb-u: clamp(9.4px, 2.85vw, 11.2px); --tb-bg: var(--forest); --tb-dur: .5s; --tb-ease: cubic-bezier(.34, 1.28, .5, 1);
    --tb-x: 0px; font-size: var(--tb-u);
    display: flex; align-items: stretch; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 0 2.2em env(safe-area-inset-bottom); background: var(--tb-bg); border: 0; color: #fff;
    filter: drop-shadow(0 -8px 14px rgba(8, 47, 36, .22)); -webkit-tap-highlight-color: transparent;
  }
  :root[data-mode="dark"] .sg-tabbar { --tb-bg: var(--forest-2); filter: drop-shadow(0 -8px 16px rgba(0, 0, 0, .5)); }

  .tb-item {
    position: relative; z-index: 2; flex: 1 1 0; min-width: 0; display: flex; justify-content: center; align-items: flex-start; padding: .6em 0 1.7em;
    color: #fff; text-decoration: none; border-radius: 1.2em; will-change: transform; transition: transform var(--tb-dur) var(--tb-ease);
  }
  .tb-item:focus-visible { outline: 2px solid #ffd36b; outline-offset: -3px; }
  .tb-item::before {                       /* the coloured disc */
    content: ""; position: absolute; z-index: -1; top: -.05em; left: 50%; width: 3.5em; height: 3.5em; margin-left: -1.75em; border-radius: 50%;
    background: var(--tb-c); transform: scale(0); transition: transform var(--tb-dur) var(--tb-ease); box-shadow: 0 .5em 1em -.4em rgba(0, 0, 0, .5), inset 0 .12em .2em rgba(255, 255, 255, .35);
  }
  .tb-item.is-active { transform: translate3d(0, -.7em, 0); }
  .tb-item.is-active::before { transform: scale(1); }

  .tb-ico { width: 2.2em; height: 2.2em; flex: none; stroke: rgba(255, 255, 255, .82); stroke-width: 1.6; stroke-dasharray: 400; transform: translateY(.55em); transition: transform var(--tb-dur) var(--tb-ease), stroke var(--tb-dur); }
  .tb-item.is-active .tb-ico { transform: none; stroke: #fff; }
  .tb-item.tb-draw .tb-ico { animation: tb-draw .6s ease-out both; }
  @keyframes tb-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 300; } }

  .tb-label {                                  /* appears under the lifted disc */
    position: absolute; left: calc(var(--tb-u) * -.5); right: calc(var(--tb-u) * -.5); top: calc(var(--tb-u) * 3.78); text-align: center; font-size: clamp(9.5px, .9em, 11px); font-weight: 700; letter-spacing: .01em; line-height: 1.1;
    white-space: nowrap; color: #fff; opacity: 0; transform: translateY(.5em); transition: opacity .28s ease, transform var(--tb-dur) var(--tb-ease); pointer-events: none;
  }
  .tb-item.is-active .tb-label { opacity: 1; transform: none; transition-delay: .12s; }

  .tb-notch {                                  /* the hill the lifted tab sits in; slides to the active item */
    position: absolute; left: 0; bottom: 99%; width: 9.2em; height: 2em; background: var(--tb-bg); clip-path: url(#tb-clip); pointer-events: none; will-change: transform;
    transform: translate3d(var(--tb-x), 0, 0); transition: transform var(--tb-dur) var(--tb-ease), opacity .3s ease;
  }
  .sg-tabbar.tb-none .tb-notch { opacity: 0; }
  .sg-tabbar.tb-still .tb-item, .sg-tabbar.tb-still .tb-item::before, .sg-tabbar.tb-still .tb-ico, .sg-tabbar.tb-still .tb-label, .sg-tabbar.tb-still .tb-notch { transition: none !important; }
  .tb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-item, .tb-item::before, .tb-ico, .tb-label, .tb-notch { transition: none !important; }
  .tb-item.tb-draw .tb-ico { animation: none; }
}

/* Christmas music button: gold when on, dimmed with a slash when off, and a gentle pulse while it is waiting for the first tap */
.sg-musicbtn[aria-pressed="true"] { color: var(--gold); }
.sg-musicbtn[aria-pressed="false"] { opacity: .55; }
.sg-musicbtn[aria-pressed="false"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }
.sg-musicbtn.is-waiting::before { content: ""; position: absolute; inset: 3px; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: sg-music-hint 2.2s ease-out infinite; pointer-events: none; }
@keyframes sg-music-hint { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .sg-musicbtn.is-waiting::before { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); } }

/* "Tap to play" prompt: shown only while the browser is waiting for a first tap */
.sg-musichint { position: fixed; z-index: 45; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 6px;
  border-radius: var(--r-pill); background: var(--forest); color: var(--on-forest); box-shadow: 0 14px 30px -12px rgba(8, 47, 36, .6), 0 0 0 1px rgba(255, 255, 255, .12); }
.sg-musichint[hidden] { display: none; }
.sg-musichint__go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: var(--r-pill); background: transparent; color: inherit; font: inherit; font-weight: 650; font-size: var(--fs-sm); cursor: pointer; }
.sg-musichint__go span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 211, 107, .2); color: #ffd36b; font-size: 14px; }
.sg-musichint__go:hover { background: rgba(255, 255, 255, .08); }
.sg-musichint__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: rgba(248, 240, 222, .7); font-size: 20px; line-height: 1; cursor: pointer; }
.sg-musichint__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sg-musichint button:focus-visible { outline: 2px solid #ffd36b; outline-offset: -2px; }
@media (max-width: 1023.98px) { .sg-user .sg-musichint { right: 50%; transform: translateX(50%); bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); } }
@media (max-width: 599.98px) { .sg-public .sg-musichint { right: 50%; transform: translateX(50%); width: max-content; max-width: calc(100vw - 24px); } }

/* Volume slider inside the account / public menus */
.sg-musicctl { display: inline-flex; align-items: center; gap: 6px; }
.sg-musicvol { width: 108px; height: 28px; margin: 0; background: transparent; accent-color: var(--gold); cursor: pointer; }
.sg-musicvol:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ==========================================================================
   ANIMATED CHRISTMAS TREE  (studio/art-tree.blade.php)
   CSS only. transform-origin in px = SVG user units (viewBox 480 x 560); transform-box:fill-box where noted.
   ========================================================================== */
.xt { overflow: visible; }
.xt-sway { transform-origin: 240px 500px; animation: xt-sway 6s ease-in-out infinite; }
@keyframes xt-sway { 0%, 100% { transform: rotate(-1.1deg) skewX(.7deg); } 50% { transform: rotate(1.1deg) skewX(-.7deg); } }

.xt-orn { transform-box: fill-box; transform-origin: 50% 0; animation: xt-swing var(--s, 3.2s) ease-in-out var(--d, 0s) infinite; }
@keyframes xt-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

.xt-l { transform-box: fill-box; transform-origin: center; animation: xt-blink 2.6s ease-in-out var(--d, 0s) infinite; }
@keyframes xt-blink { 0%, 100% { opacity: .28; transform: scale(.82); } 45%, 60% { opacity: 1; transform: scale(1.08); } }

.xt-garland { animation: xt-beads 5s linear infinite; }
@keyframes xt-beads { to { stroke-dashoffset: -13.1; } }

.xt-sp { transform-box: fill-box; transform-origin: center; opacity: 0; animation: xt-sparkle 3.6s ease-in-out var(--d, 0s) infinite; }
@keyframes xt-sparkle { 0%, 55%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 72% { opacity: 1; transform: scale(1.15) rotate(45deg); } 88% { opacity: 0; transform: scale(.4) rotate(90deg); } }

.xt-star { transform-box: fill-box; transform-origin: 50% 80%; animation: xt-star 2.8s ease-in-out infinite; }
@keyframes xt-star { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.1) rotate(3deg); } }
.xt-rays { transform-box: fill-box; transform-origin: center; animation: xt-rays 2.8s ease-in-out infinite; }
@keyframes xt-rays { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.xt-star__body { filter: drop-shadow(0 0 6px rgba(255, 211, 107, .85)); }

.xt-gift { transform-box: fill-box; transform-origin: 50% 100%; }
.xt-gift--a { animation: xt-hop 4.6s ease-in-out infinite; }
.xt-gift--b { animation: xt-hop 4.6s ease-in-out -2.3s infinite; }
@keyframes xt-hop { 0%, 62%, 100% { transform: translateY(0) scale(1, 1); } 70% { transform: translateY(2px) scale(1.03, .96); } 80% { transform: translateY(-9px) scale(.98, 1.03); } 90% { transform: translateY(0) scale(1.02, .98); } 95% { transform: translateY(-2px); } }
.xt-bow { transform-box: fill-box; transform-origin: 50% 100%; animation: xt-bow 4.6s ease-in-out infinite; }
@keyframes xt-bow { 0%, 62%, 100% { transform: scale(1); } 80% { transform: scale(1.12, .92); } }
.xt-shadow { transform-box: fill-box; transform-origin: center; animation: xt-shadow 6s ease-in-out infinite; }
@keyframes xt-shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.04); } }

@media (prefers-reduced-motion: reduce) {
  .xt-sway, .xt-orn, .xt-l, .xt-garland, .xt-star, .xt-rays, .xt-gift, .xt-bow, .xt-shadow { animation: none; }
  .xt-sp { animation: none; opacity: .0; }
  .xt-l { opacity: 1; }
}
