/* ============================================================
   SMMZOLO — style.css v6.0
   Global app shell + full motion system + component library
   Deep Matte Black × Champagne Gold

   v6 changes:
   - Motion tokens shared with layout v7 (--zolo-ease, --zolo-dur-*)
   - Motion system: entrance, stagger, press, skeletons, shimmer
   - Component library: zolo-card / zolo-btn / zolo-status /
     zolo-empty / zolo-badge with animated states
   - Modal, dropdown, tab, pagination open/switch animations
   - Springy sidebar + bottom nav transitions, focus-visible rings
   - Smooth dark/light switching (html.zolo-theme-switching)
   - Mobile table strategy: momentum scroll + edge fade,
     opt-in .zolo-table-cards stacking
   - Every v5.1 selector and the click-fix z-index stack
     (14000/14050/14500/15000/15100) preserved exactly
   ============================================================ */


@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800;900&family=Syne:wght@500;600;700;800;900&display=swap');


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* SINGLE SOURCE OF TRUTH for the SMMZOLO canvas.
     #070708 matches every page template (dashboard V14, neworder v8,
     affiliates, reseller V2) so the app reads as one seamless canvas.
     Do not re-declare these tokens lower in this file, in custom.js,
     or in page templates. layout.twig mirrors the same values only
     for pre-CSS first paint. */
  --bg-base:          #070708;
  --bg-surface:       #111113;
  --bg-card:          #141416;
  --bg-card-hover:    #1A1A1E;
  --bg-elevated:      #18181C;
  --bg-input:         #0D0D0F;
  --bg-espresso:      #1E1A12;
  --bg-espresso-2:    #2A2118;


  --gold:             #D6C28A;
  --gold-hi:          #E8D9A8;
  --gold-lo:          #CBB67A;
  --gold-dim:         #8A7A52;
  --gold-border:      rgba(214,194,138,0.18);
  --gold-border-soft: rgba(214,194,138,0.075);
  --gold-glow:        rgba(214,194,138,0.055);
  --gold-glow2:       rgba(214,194,138,0.105);


  --text-1:           #F2F2F2;
  --text-2:           #B9B9B9;
  --text-3:           #747474;


  --green:            #4CAF7D;
  --red:              #E07070;
  --blue:             #64B5F6;
  --orange:           #FFB74D;


  --sidebar-w:        260px; /* desktop rail: 260 expanded / 88 collapsed */
  --topbar-h:         64px;
  --bottomnav-h:      68px;


  --r-xs:             7px;
  --r-sm:             10px;
  --r-md:             14px;
  --r-lg:             18px;
  --r-xl:             24px;
  --r-pill:           999px;


  --ease:             0.2s cubic-bezier(0.4,0,0.2,1);
  --ease-f:           0.13s ease;


  --font-d:           'Syne', sans-serif;
  --font-b:           'DM Sans', sans-serif;


  --shadow-soft:      0 12px 34px rgba(0,0,0,0.22);
  --shadow-strong:    0 22px 70px rgba(0,0,0,0.42);

  /* v6 motion tokens (shared with layout v7) */
  --zolo-ease:        cubic-bezier(0.22, 0.8, 0.28, 1);
  --zolo-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --zolo-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --zolo-dur-fast:    160ms;
  --zolo-dur-med:     300ms;
  --zolo-dur-slow:    520ms;

  /* v6 focus ring */
  --focus-ring:       0 0 0 3px rgba(214,194,138,0.35);
}


html[data-zolo-theme="light"],
html.zolo-theme-light {
  --bg-base:          #F4F3F0;
  --bg-surface:       #F8F7F4;
  --bg-card:          #FFFFFF;
  --bg-card-hover:    #F3F2EE;
  --bg-elevated:      #FAF9F6;
  --bg-input:         #EFEFEF;
  --bg-espresso:      #F7F0DA;
  --bg-espresso-2:    #EFE4C2;


  --text-1:           #111111;
  --text-2:           #333333;
  --text-3:           #777777;


  --gold-border:      rgba(0,0,0,0.15);
  --gold-border-soft: rgba(0,0,0,0.075);
  --gold-glow:        rgba(214,194,138,0.12);
  --gold-glow2:       rgba(214,194,138,0.18);


  --shadow-soft:      0 10px 30px rgba(0,0,0,0.09);
  --shadow-strong:    0 20px 60px rgba(0,0,0,0.14);
}


/* ============================================================
   BASE RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}


html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  background: var(--bg-base) !important;
  color: var(--text-1) !important;
  font-family: var(--font-b) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


body {
  min-height: 100vh !important;
}


img,
svg,
video,
canvas {
  max-width: 100%;
}


a {
  color: var(--gold);
  text-decoration: none !important;
  transition: color var(--ease-f), opacity var(--ease-f), transform var(--ease-f);
}


a:hover {
  color: var(--gold-hi);
}


button,
input,
textarea,
select {
  font-family: var(--font-b) !important;
}


::selection {
  background: rgba(214,194,138,0.26);
  color: var(--text-1);
}


::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: rgba(214,194,138,0.32);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(214,194,138,0.55);
}


/* ============================================================
   LOGGED-IN SHELL
   ============================================================ */
body.zolo-authenticated {
  background:
    radial-gradient(900px 340px at 0% -10%, rgba(214,194,138,0.07), transparent 66%),
    radial-gradient(720px 320px at 100% 0%, rgba(76,175,125,0.035), transparent 66%),
    var(--bg-base) !important;
}


/* Hide only the real backend navbar on logged-in pages.
   Do NOT hide every nav globally, because auth/public pages may need nav. */
body.zolo-authenticated > nav.navbar,
body.zolo-authenticated > .navbar,
body.zolo-authenticated > header > nav {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}


/* Main content: only target the real content wrapper, not random overlays. */
body.zolo-authenticated > #zolo-main-content,
body.zolo-authenticated > main#zolo-main-content {
  width: calc(100% - var(--sidebar-w)) !important;
  max-width: calc(100% - var(--sidebar-w)) !important;
  min-height: 100vh !important;
  margin-left: var(--sidebar-w) !important;
  margin-right: 0 !important;
  padding: calc(var(--topbar-h) + 24px) 28px 44px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}


/* Fallback for older pages where content is not wrapped correctly. */
body.zolo-authenticated > *:not(nav):not(#zolo-sidebar):not(#zolo-topbar):not(#zolo-overlay):not(#zolo-bottom-nav):not(#zolo-more-sheet):not(#zolo-welcome-popup):not([id*="popup"]):not([class*="popup"]):not([data-zolo-overlay]):not(script):not(style):not(link) {
  box-sizing: border-box !important;
}


/* Bootstrap wrappers should never shrink upgraded pages. */
body.zolo-authenticated #zolo-main-content > .container,
body.zolo-authenticated #zolo-main-content > .container-fluid,
body.zolo-authenticated #zolo-main-content .container,
body.zolo-authenticated #zolo-main-content .container-fluid {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
  color: inherit !important;
}


body.zolo-authenticated #zolo-main-content .row {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
}


/* Kill old centered Bootstrap column layouts inside logged-in pages. */
body.zolo-authenticated #zolo-main-content [class*="col-"] {
  max-width: 100% !important;
  background: transparent !important;
  color: inherit !important;
}


body.zolo-authenticated #zolo-main-content .col-md-8,
body.zolo-authenticated #zolo-main-content .col-lg-8,
body.zolo-authenticated #zolo-main-content .col-sm-8,
body.zolo-authenticated #zolo-main-content .col-md-10,
body.zolo-authenticated #zolo-main-content .col-lg-10,
body.zolo-authenticated #zolo-main-content .col-md-12,
body.zolo-authenticated #zolo-main-content .col-lg-12,
body.zolo-authenticated #zolo-main-content [class*="offset"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
}


/* ============================================================
   TOPBAR
   ============================================================ */
#zolo-topbar {
  position: fixed !important;
  top: 0 !important;
  left: var(--sidebar-w) !important;
  right: 0 !important;
  height: var(--topbar-h) !important;
  min-height: var(--topbar-h) !important;
  background: rgba(17,17,19,0.92) !important;
  border-bottom: 1px solid var(--gold-border-soft) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 22px !important;
  z-index: 1200 !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.025) !important;
}


html[data-zolo-theme="light"] #zolo-topbar {
  background: rgba(255,255,255,0.94) !important;
}


#zolo-topbar .topbar-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 0 !important;
}


#zoloTopLogo,
#zolo-topbar a,
#zolo-topbar button,
#zolo-topbar .topbar-balance,
#zolo-topbar .topbar-account {
  flex-shrink: 0;
}


#zolo-topbar .topbar-addfunds {
  min-height: 42px !important;
  border-radius: 14px !important;
  padding: 0 18px !important;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)) !important;
  color: #0A0A0C !important;
  font-family: var(--font-b) !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 12px 28px rgba(214,194,138,0.16) !important;
}


#zolo-topbar .topbar-addfunds:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 38px rgba(214,194,138,0.24) !important;
}


#zolo-topbar .topbar-balance {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg-espresso) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: var(--r-pill) !important;
  padding: 0 16px !important;
  font-family: var(--font-d) !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: var(--gold) !important;
  white-space: nowrap !important;
}


#zolo-topbar .topbar-account {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--bg-espresso-2) !important;
  border: 1px solid var(--gold-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--gold) !important;
  font-family: var(--font-d) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  position: relative !important;
}


#zoloThemeBtn,
#zoloHamBtn,
#zolo-topbar a[href*="t.me"],
#zolo-topbar a[href*="telegram"],
#zolo-topbar a[href="/affiliates"] {
  min-height: 38px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.022) !important;
  border: 1px solid var(--gold-border-soft) !important;
  color: var(--text-2) !important;
}


/* ============================================================
   SIDEBAR
   ============================================================ */
#zolo-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: var(--sidebar-w) !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: var(--bg-surface, rgba(17,17,19,0.98)) !important;
  border-right: 1px solid var(--gold-border-soft) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 1300 !important;
  /* desktop: visible so the edge toggle + tooltips can poke out;
     mobile drawer restores overflow-y below */
  overflow: visible !important;
  padding-top: 0 !important;
  transform: translateX(0) !important;
  transition: transform 0.34s var(--zolo-ease), width 0.3s var(--zolo-ease) !important;
  box-shadow: 1px 0 0 rgba(255,255,255,0.02) !important;
}


html[data-zolo-theme="light"] #zolo-sidebar {
  background: rgba(245,245,245,0.98) !important;
}


#zolo-sidebar::-webkit-scrollbar {
  display: none;
}


#zolo-sidebar svg,
#zolo-sidebar a svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  flex-shrink: 0 !important;
}


/* ============================================================
   SIDEBAR INTERNALS — desktop rail system (expanded + collapsed)
   Markup built by buildSidebar() in custom.js. JS owns markup,
   routes, active state, and persistence; this file owns all looks.
   Collapse: html.zolo-sb-collapsed (saved as smmzoloSidebarCollapsed),
   scoped to >=993px so mobile drawer behavior is untouched.
   ============================================================ */

/* ---------- brand ---------- */
#zolo-sidebar .zolo-sidebar-brand {
  flex-shrink: 0;
  padding: 18px 18px 15px;
  border-bottom: 1px solid var(--gold-border-soft);
}

#zolo-sidebar .zolo-sidebar-brand a { text-decoration: none !important; }

#zolo-sidebar .zolo-sidebar-wordmark {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

#zolo-sidebar .zolo-sidebar-tagline {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

#zolo-sidebar .zolo-sidebar-brand-mini {
  display: none;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--gold-border);
  background: rgba(214,194,138,0.08);
  color: var(--gold) !important;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

/* ---------- New Order ---------- */
#zolo-sidebar .zolo-sidebar-neworder {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 14px 14px 8px;
  padding: 11px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #131308 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(214,194,138,0.18);
  transition: transform 0.15s var(--zolo-ease), filter 0.2s var(--zolo-ease);
}

#zolo-sidebar .zolo-sidebar-neworder:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#zolo-sidebar .zolo-sidebar-neworder:active { transform: scale(0.97); }

/* ---------- nav ---------- */
#zolo-sidebar .zolo-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
}

#zolo-sidebar .zolo-sidebar-link {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--text-2) !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.16s var(--zolo-ease), color 0.16s var(--zolo-ease);
}

#zolo-sidebar .zolo-sidebar-link:hover {
  background: rgba(214,194,138,0.06);
  color: var(--text-1) !important;
}

#zolo-sidebar .zolo-sidebar-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

#zolo-sidebar .zolo-sidebar-icon svg {
  width: 17px !important;
  height: 17px !important;
}

#zolo-sidebar .zolo-sidebar-label {
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s var(--zolo-ease);
}

#zolo-sidebar .zolo-sidebar-link.active {
  background: rgba(214,194,138,0.1);
  color: var(--gold) !important;
  font-weight: 600;
}

#zolo-sidebar .zolo-sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}

/* ---------- footer / balance ---------- */
#zolo-sidebar .zolo-sidebar-footer {
  flex-shrink: 0;
  padding: 13px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--gold-border-soft);
  display: grid;
  gap: 10px;
}

#zolo-sidebar .zolo-sidebar-balance {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#zolo-sidebar .zolo-sidebar-balance-ico {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold-border-soft);
  border-radius: 11px;
  background: rgba(214,194,138,0.06);
  color: var(--gold);
}

#zolo-sidebar .zolo-sidebar-balance-text { min-width: 0; display: grid; }

#zolo-sidebar .zolo-sidebar-balance-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

#zolo-sidebar .zolo-sidebar-balance-amount {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#zolo-sidebar .zolo-sidebar-addfunds {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  background: rgba(214,194,138,0.07);
  color: var(--gold) !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.16s var(--zolo-ease), border-color 0.16s var(--zolo-ease);
}

#zolo-sidebar .zolo-sidebar-addfunds:hover {
  background: rgba(214,194,138,0.12);
  border-color: var(--gold-border);
}

/* ---------- edge toggle ---------- */
#zolo-sidebar .zolo-sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none; /* desktop only, shown in the media block below */
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--gold);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--zolo-ease), background 0.16s var(--zolo-ease);
}

#zolo-sidebar .zolo-sidebar-toggle:hover { background: var(--bg-elevated, var(--bg-card)); }

#zolo-sidebar .zolo-sidebar-toggle svg {
  transition: transform 0.3s var(--zolo-ease);
}

html[data-zolo-theme="light"] #zolo-sidebar .zolo-sidebar-toggle,
html.zolo-theme-light #zolo-sidebar .zolo-sidebar-toggle {
  box-shadow: 0 6px 18px rgba(30,24,8,0.14);
}

/* ============================================================
   DESKTOP RAIL: expanded <-> collapsed (>=993px only)
   ============================================================ */
@media (min-width: 993px) {
  html.zolo-sb-collapsed {
    --sidebar-w: 88px;
  }

  #zolo-sidebar .zolo-sidebar-toggle { display: flex; }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-toggle svg {
    transform: rotate(180deg);
  }

  /* content + topbar glide with the rail */
  body.zolo-authenticated > #zolo-main-content,
  body.zolo-authenticated > main#zolo-main-content {
    transition: margin-left 0.3s var(--zolo-ease), width 0.3s var(--zolo-ease), max-width 0.3s var(--zolo-ease);
  }

  #zolo-topbar {
    transition: left 0.3s var(--zolo-ease) !important;
  }

  /* ----- collapsed visuals ----- */
  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-label,
  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-brand-full,
  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-balance-text {
    /* labels collapse visually — links stay in the DOM and clickable */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    opacity: 0;
  }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-brand {
    padding: 14px 10px 13px;
  }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-brand-mini { display: grid; }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-neworder {
    width: 46px;
    min-height: 46px;
    margin: 12px auto 6px;
    padding: 0;
    border-radius: 14px;
  }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-nav {
    padding: 8px 0;
    align-items: center;
  }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-link {
    width: 46px;
    min-height: 44px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 13px;
  }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-link.active::before { display: none; }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-link.active {
    background: rgba(214,194,138,0.13);
  }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-footer {
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    justify-items: center;
  }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-balance { justify-content: center; }

  html.zolo-sb-collapsed #zolo-sidebar .zolo-sidebar-addfunds {
    width: 46px;
    min-height: 46px;
    gap: 0;
    border-radius: 14px;
  }

  /* ----- collapsed tooltips (custom, beside the rail) ----- */
  html.zolo-sb-collapsed #zolo-sidebar [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    padding: 7px 11px;
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-1);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
    transition: opacity 0.15s var(--zolo-ease), transform 0.15s var(--zolo-ease);
  }

  html[data-zolo-theme="light"].zolo-sb-collapsed #zolo-sidebar [data-tip]::after,
  html.zolo-theme-light.zolo-sb-collapsed #zolo-sidebar [data-tip]::after {
    box-shadow: 0 10px 26px rgba(30,24,8,0.14);
  }

  html.zolo-sb-collapsed #zolo-sidebar [data-tip]:hover::after,
  html.zolo-sb-collapsed #zolo-sidebar [data-tip]:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #zolo-sidebar,
  #zolo-sidebar .zolo-sidebar-toggle svg,
  #zolo-sidebar .zolo-sidebar-label,
  body.zolo-authenticated > #zolo-main-content,
  #zolo-topbar {
    transition: none !important;
  }
}

/* ============================================================
   MOBILE SHELL
   ============================================================ */
#zolo-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.68);
  z-index: 1250;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--zolo-dur-med) var(--zolo-ease), visibility var(--zolo-dur-med);
}


#zolo-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


#zolo-bottom-nav {
  display: none;
  pointer-events: all !important;
  touch-action: auto !important;
  z-index: 1200 !important;
}


#zolo-bottom-nav a,
#zolo-bottom-nav button {
  pointer-events: all !important;
  touch-action: auto !important;
  -webkit-tap-highlight-color: rgba(214,194,138,0.12);
  cursor: pointer !important;
}


@media (max-width: 992px) {
  :root {
    --topbar-h: 58px;
  }


  body.zolo-authenticated > #zolo-main-content,
  body.zolo-authenticated > main#zolo-main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: calc(var(--topbar-h) + 14px) 14px calc(var(--bottomnav-h) + 22px) !important;
  }


  #zolo-topbar {
    left: 0 !important;
    height: var(--topbar-h) !important;
    min-height: var(--topbar-h) !important;
    padding: 0 10px !important;
  }


  #zolo-topbar .topbar-right {
    gap: 6px !important;
  }


  #zoloTopLogo {
    display: block !important;
  }


  #zolo-topbar .topbar-balance {
    display: none !important;
  }


  #zolo-topbar .topbar-addfunds {
    min-height: 36px !important;
    padding: 0 11px !important;
    font-size: 12.5px !important;
  }


  #zolo-topbar a[href="/affiliates"],
  #zoloThemeBtn,
  #zolo-topbar a[href*="t.me"],
  #zolo-topbar a[href*="telegram"] {
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 0 !important;
  }


  #zolo-topbar .topbar-account {
    width: 36px !important;
    height: 36px !important;
  }


  #zolo-sidebar {
    transform: translateX(-100%) !important;
    pointer-events: none !important;
    box-shadow: none !important;
    /* mobile drawer scrolls; the desktop rail keeps overflow visible
       for the edge toggle + tooltips */
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #zolo-sidebar .zolo-sidebar-toggle { display: none !important; }


  #zolo-sidebar.open {
    transform: translateX(0) !important;
    pointer-events: all !important;
    box-shadow: 8px 0 40px rgba(0,0,0,0.55) !important;
  }


  #zolo-bottom-nav {
    display: flex !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }


  body.zolo-authenticated #zolo-main-content .container,
  body.zolo-authenticated #zolo-main-content .container-fluid,
  body.zolo-authenticated #zolo-main-content .row,
  body.zolo-authenticated #zolo-main-content [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}


@media (max-width: 600px) {
  #zolo-topbar .topbar-addfunds span {
    display: none !important;
  }


  #zolo-topbar .topbar-addfunds {
    width: 38px !important;
    padding: 0 !important;
  }


  #zolo-topbar .topbar-right > a[href="/affiliates"]:first-child {
    display: none !important;
  }
}


/* ============================================================
   AUTH / PUBLIC PAGES
   ============================================================ */
body.auth-page {
  background:
    radial-gradient(880px 360px at 12% -10%, rgba(214,194,138,0.13), transparent 68%),
    radial-gradient(640px 280px at 92% 0%, rgba(100,181,246,0.055), transparent 66%),
    var(--bg-base) !important;
}


body.auth-page #zolo-topbar,
body.auth-page #zolo-sidebar,
body.auth-page #zolo-overlay,
body.auth-page #zolo-bottom-nav,
body.auth-page #zolo-more-sheet {
  display: none !important;
}


body.auth-page > *:not(script):not(style):not(link) {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}


body.auth-page .auth-wrap,
.auth-wrap {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
}


body.auth-page .login-box,
body.auth-page .auth-box,
body.auth-page .register-box,
body.auth-page .login-card,
body.auth-page .auth-card,
body.auth-page .register-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--shadow-strong) !important;
}


/* Public navbar from upgraded layout */
.zolo-public-nav.navbar {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gold-border-soft) !important;
  background: rgba(10,10,12,0.78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-height: 68px;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 1000;
}


html[data-zolo-theme="light"] .zolo-public-nav.navbar {
  background: rgba(255,255,255,0.86) !important;
}


.zolo-public-nav .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}


.zolo-public-nav .navbar-brand {
  height: auto !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: var(--gold) !important;
  font-family: var(--font-d) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em;
}


.zolo-public-nav .navbar-brand img {
  max-height: 40px !important;
  width: auto !important;
}


.zolo-public-nav .navbar-toggle {
  border: 1px solid var(--gold-border) !important;
  background: rgba(255,255,255,0.025) !important;
  border-radius: 12px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
}


.zolo-public-nav .navbar-toggle .icon-bar {
  background: var(--gold) !important;
}


.zolo-public-nav .navbar-nav > li > a {
  color: var(--text-2) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 10px 12px !important;
  border-radius: 12px;
}


.zolo-public-nav .navbar-nav > li > a:hover,
.zolo-public-nav .navbar-nav > li.active > a {
  color: var(--gold) !important;
  background: rgba(214,194,138,0.08) !important;
}


@media (max-width: 767px) {
  .zolo-public-nav .container {
    display: block;
    padding: 14px 16px;
  }


  .zolo-public-nav .navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  .zolo-public-nav .navbar-collapse {
    margin-top: 14px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border-soft) !important;
    border-radius: 18px;
    padding: 8px;
  }


  .zolo-public-nav .navbar-nav {
    margin: 0 !important;
  }


  .zolo-public-nav .navbar-nav > li > a {
    padding: 12px 14px !important;
  }
}


/* ============================================================
   GLOBAL COMPONENTS
   ============================================================ */
.card,
div.card,
.well,
.panel,
.panel-body,
.panel-default,
.box,
.box-body,
.content-box,
.form-box,
.form-container {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.012)),
    var(--bg-card) !important;
  border: 1px solid var(--gold-border-soft) !important;
  border-radius: var(--r-lg) !important;
  color: var(--text-1) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease) !important;
}


.card:hover {
  border-color: var(--gold-border) !important;
}


.card-header,
.panel-heading,
.panel-default > .panel-heading {
  background: rgba(255,255,255,0.018) !important;
  border-bottom: 1px solid var(--gold-border-soft) !important;
  padding: 14px 18px !important;
  color: var(--text-3) !important;
  border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
}


.card-body,
.panel-body {
  padding: 20px !important;
}


.card-footer {
  background: rgba(255,255,255,0.018) !important;
  border-top: 1px solid var(--gold-border-soft) !important;
  padding: 14px 18px !important;
  border-radius: 0 0 var(--r-lg) var(--r-lg) !important;
}


h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-d) !important;
  color: var(--text-1) !important;
  letter-spacing: -0.02em;
}


p {
  color: var(--text-2);
}


.text-muted { color: var(--text-3) !important; }
.text-primary,
.text-warning,
.text-gold { color: var(--gold) !important; }
.text-success { color: var(--green) !important; }
.text-danger { color: var(--red) !important; }
.text-info { color: var(--blue) !important; }
.text-white,
.text-dark { color: var(--text-1) !important; }


/* Buttons */
.btn {
  font-family: var(--font-b) !important;
  font-weight: 800 !important;
  border-radius: var(--r-md) !important;
  transition: all var(--ease) !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 38px;
}


.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)) !important;
  border: 1px solid transparent !important;
  color: #0A0A0C !important;
  font-weight: 900 !important;
  border-radius: var(--r-md) !important;
  cursor: pointer !important;
}


.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #FFF1BF, var(--gold)) !important;
  color: #0A0A0C !important;
  box-shadow: 0 10px 28px rgba(214,194,138,0.22) !important;
  transform: translateY(-1px) !important;
}


.btn-secondary,
.btn-light,
.btn-white {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid var(--gold-border-soft) !important;
  color: var(--text-2) !important;
}


.btn-secondary:hover,
.btn-light:hover,
.btn-white:hover {
  background: var(--gold-glow) !important;
  border-color: var(--gold-border) !important;
  color: var(--gold) !important;
}


.btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--gold-border) !important;
  color: var(--gold) !important;
}


.btn-outline-primary:hover {
  background: var(--gold-glow2) !important;
  border-color: var(--gold) !important;
  color: var(--gold-hi) !important;
}


.btn-success { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }
.btn-danger { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }


.btn-sm { min-height: 32px !important; padding: 0 12px !important; font-size: 12px !important; border-radius: var(--r-sm) !important; }
.btn-lg { min-height: 48px !important; padding: 0 24px !important; font-size: 15px !important; }


/* Forms */
.form-control,
.form-select,
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
input[type=search],
input[type=tel],
textarea,
select {
  background: var(--bg-input) !important;
  border: 1px solid var(--gold-border-soft) !important;
  border-radius: var(--r-md) !important;
  color: var(--text-1) !important;
  font-family: var(--font-b) !important;
  font-size: 14px !important;
  padding: 11px 14px !important;
  transition: border-color var(--ease), box-shadow var(--ease) !important;
  width: 100% !important;
  box-shadow: none !important;
}


.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold-lo) !important;
  box-shadow: 0 0 0 4px rgba(214,194,138,0.08) !important;
  outline: none !important;
  background: var(--bg-input) !important;
  color: var(--text-1) !important;
}


.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-3) !important;
}


.form-label,
label {
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: var(--text-3) !important;
  margin-bottom: 7px !important;
  display: block !important;
}


.input-group-text {
  background: var(--bg-card) !important;
  border-color: var(--gold-border-soft) !important;
  color: var(--text-3) !important;
}


option,
select option {
  background: var(--bg-card) !important;
  color: var(--text-1) !important;
}


.form-check-input {
  background-color: var(--bg-input) !important;
  border-color: var(--gold-border) !important;
}


.form-check-input:checked {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
}


/* Tables */
.table,
table {
  width: 100% !important;
  max-width: 100% !important;
  color: var(--text-1) !important;
  border-color: var(--gold-border-soft) !important;
}


.table thead th,
table thead th,
thead tr th {
  background: rgba(255,255,255,0.018) !important;
  color: var(--text-3) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--gold-border-soft) !important;
  padding: 13px 16px !important;
  white-space: nowrap !important;
}


.table tbody td,
table tbody td,
tbody tr td {
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--gold-border-soft) !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  border-color: var(--gold-border-soft) !important;
  color: var(--text-1) !important;
}


.table tbody tr:hover,
tbody tr:hover {
  background: var(--gold-glow) !important;
}


.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  border-radius: var(--r-lg);
}


/* Badges / status */
.badge,
span.badge {
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 5px 9px !important;
  border-radius: var(--r-pill) !important;
}


.badge.bg-primary,
.badge.bg-warning,
.badge-warning {
  background: rgba(214,194,138,0.14) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(214,194,138,0.22) !important;
}


.badge.bg-success,
.badge-success {
  background: rgba(76,175,125,0.12) !important;
  color: var(--green) !important;
  border: 1px solid rgba(76,175,125,0.22) !important;
}


.badge.bg-danger,
.badge-danger {
  background: rgba(224,112,112,0.12) !important;
  color: var(--red) !important;
  border: 1px solid rgba(224,112,112,0.22) !important;
}


.badge.bg-info,
.badge-info {
  background: rgba(100,181,246,0.12) !important;
  color: var(--blue) !important;
  border: 1px solid rgba(100,181,246,0.22) !important;
}


.badge.bg-secondary,
.badge-secondary {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-2) !important;
  border: 1px solid var(--gold-border-soft) !important;
}


/* Alerts */
.alert {
  border-radius: var(--r-md) !important;
  font-size: 13.5px !important;
  border-width: 1px !important;
}


.alert-success { background: rgba(76,175,125,0.08) !important; border-color: rgba(76,175,125,0.25) !important; color: var(--green) !important; }
.alert-warning { background: rgba(214,194,138,0.08) !important; border-color: rgba(214,194,138,0.25) !important; color: var(--gold) !important; }
.alert-danger { background: rgba(224,112,112,0.08) !important; border-color: rgba(224,112,112,0.25) !important; color: var(--red) !important; }
.alert-info { background: rgba(100,181,246,0.08) !important; border-color: rgba(100,181,246,0.25) !important; color: var(--blue) !important; }


/* Dropdowns */
.dropdown-menu,
.dropdowntheme,
.themeulli,
.select2-dropdown {
  background: var(--bg-card) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-strong) !important;
  color: var(--text-1) !important;
  z-index: 999999 !important;
}


.dropdown-item,
.dropdowntheme li,
.themeulli li,
.dropdowntheme div,
.themeulli div,
.dropdowntheme a,
.themeulli a,
.select2-results__option {
  background: transparent !important;
  color: var(--text-2) !important;
  font-size: 13px !important;
  padding: 10px 13px !important;
}


.dropdown-item:hover,
.dropdowntheme li:hover,
.themeulli li:hover,
.dropdowntheme div:hover,
.themeulli div:hover,
.select2-results__option--highlighted {
  background: var(--gold-glow2) !important;
  color: var(--gold) !important;
}


.select2-search--dropdown .select2-search__field {
  background: var(--bg-input) !important;
  border: 1px solid var(--gold-border-soft) !important;
  border-radius: 10px !important;
  color: var(--text-1) !important;
  padding: 9px 12px !important;
}


/* Modals */
.modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--shadow-strong) !important;
  color: var(--text-1) !important;
}


.modal-header {
  border-bottom: 1px solid var(--gold-border-soft) !important;
  padding: 18px 24px !important;
}


.modal-title {
  font-family: var(--font-d) !important;
  font-weight: 900 !important;
  color: var(--text-1) !important;
}


.modal-body {
  padding: 24px !important;
}


.modal-footer {
  border-top: 1px solid var(--gold-border-soft) !important;
  padding: 14px 24px !important;
}


.modal-backdrop {
  background: rgba(0,0,0,0.75) !important;
}


/* Pagination / tabs */
.pagination .page-link {
  background: var(--bg-card) !important;
  border: 1px solid var(--gold-border-soft) !important;
  color: var(--text-2) !important;
  border-radius: var(--r-sm) !important;
  margin: 0 2px !important;
}


.pagination .page-link:hover {
  background: var(--gold-glow) !important;
  border-color: var(--gold-border) !important;
  color: var(--gold) !important;
}


.pagination .page-item.active .page-link {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #0A0A0C !important;
  font-weight: 900 !important;
}


.nav-tabs {
  border-bottom: 1px solid var(--gold-border-soft) !important;
}


.nav-tabs .nav-link {
  color: var(--text-3) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: 0 !important;
  background: transparent !important;
}


.nav-tabs .nav-link:hover {
  color: var(--text-2) !important;
  border-bottom-color: var(--gold-dim) !important;
}


.nav-tabs .nav-link.active {
  color: var(--gold) !important;
  border-bottom-color: var(--gold) !important;
}


/* Misc */
.progress {
  background: rgba(255,255,255,0.055) !important;
  border-radius: var(--r-pill) !important;
  height: 7px !important;
}


.progress-bar {
  background: linear-gradient(90deg, var(--gold), var(--green)) !important;
  border-radius: var(--r-pill) !important;
}


.list-group-item {
  background: var(--bg-card) !important;
  border-color: var(--gold-border-soft) !important;
  color: var(--text-1) !important;
}


hr {
  border-color: var(--gold-border-soft) !important;
  opacity: 1 !important;
}


code,
pre {
  background: var(--bg-input) !important;
  color: var(--gold-lo) !important;
  border: 1px solid var(--gold-border-soft) !important;
  border-radius: var(--r-sm) !important;
}


pre {
  padding: 14px !important;
}


.spinner-border,
.spinner-grow {
  color: var(--gold) !important;
}


/* Kill inline light backgrounds without breaking custom premium pages. */
.bg-white,
.bg-light,
*[style*="background:#fff"],
*[style*="background: #fff"],
*[style*="background:#ffffff"],
*[style*="background: #ffffff"],
*[style*="background:white"],
*[style*="background: white"],
*[style*="background-color:#fff"],
*[style*="background-color: #fff"],
*[style*="background-color:#ffffff"],
*[style*="background-color: #ffffff"],
*[style*="background-color:white"],
*[style*="background-color: white"],
*[style*="background-color: rgb(255, 255, 255)"] {
  background: var(--bg-card) !important;
  background-color: var(--bg-card) !important;
}


/* Inline dark text fix */
*[style*="color:#000"],
*[style*="color: #000"],
*[style*="color:black"],
*[style*="color: black"],
*[style*="color:#111"],
*[style*="color:#222"],
*[style*="color:#333"] {
  color: var(--text-1) !important;
}


/* ============================================================
   PAGE-SPECIFIC SAFETY
   ============================================================ */
.order-page-wrap,
.order-page,
.dashboard-page,
.dash-page,
#dash-root,
.no-container,
.af-wrap,
.tk-page,
.vt-page,
.aff-page,
.product-tour-page,
.api-page,
.account-page,
.child-panel-page,
.services-page,
.subscriptions-page,
.massorder-page,
.drip-feed-page,
.store-page,
.terms-page,
.news-page,
.blog-page,
.newpage-page {
  width: 100% !important;
  box-sizing: border-box !important;
}


/* New Order keeps its own max-width/layout from twig. */
.no4-wrap,
.no5-market-card,
.no5-shell,
.no5-layout {
  box-sizing: border-box !important;
}


/* Search dropdowns */
#new-order-search {
  position: relative !important;
  z-index: 999 !important;
}


#new-order-search .themeulli,
#new-order-search .dropdowntheme,
.search-dropdown .dropdowntheme,
.search-dropdown .themeulli {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  margin-top: 6px !important;
  list-style: none !important;
}


/* Selects remain tappable on mobile. */
@media (max-width: 992px) {
  select.form-control,
  #orderform-category,
  #orderform-service,
  #method {
    pointer-events: auto !important;
    touch-action: auto !important;
    font-size: 16px !important;
    position: relative !important;
    z-index: 10 !important;
  }


  .card-body,
  .panel-body {
    padding: 16px !important;
  }


  .modal-body {
    padding: 18px !important;
  }
}


/* ============================================================
   LIGHT MODE DETAILS
   ============================================================ */
html[data-zolo-theme="light"] body {
  color: var(--text-1) !important;
}


html[data-zolo-theme="light"] #zolo-topbar,
html[data-zolo-theme="light"] #zolo-sidebar {
  color: var(--text-1) !important;
}


html[data-zolo-theme="light"] .card,
html[data-zolo-theme="light"] .well,
html[data-zolo-theme="light"] .panel,
html[data-zolo-theme="light"] .modal-content,
html[data-zolo-theme="light"] .dropdown-menu {
  box-shadow: var(--shadow-soft) !important;
}


html[data-zolo-theme="light"] input,
html[data-zolo-theme="light"] textarea,
html[data-zolo-theme="light"] select,
html[data-zolo-theme="light"] .form-control {
  background: var(--bg-input) !important;
  color: var(--text-1) !important;
  border-color: var(--gold-border-soft) !important;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes zoloFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


@keyframes zoloFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


body {
  animation: zoloFadeIn 0.28s ease both;
}


.zolo-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}


.zolo-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Gold shimmer logo */
@keyframes zoloShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}


#zoloTopLogo div,
#zolo-sidebar > a > div:first-child {
  background: linear-gradient(90deg, var(--gold) 0%, #fff8dc 42%, var(--gold) 62%, #b8a470 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: zoloShimmer 3s linear infinite;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}


/* ============================================================
   MOBILE NAV CLICK FIX — v5.1
   Fixes bottom navbar/sidebar taps being blocked by page content.
   Put near the end so it wins over page-specific CSS.
   ============================================================ */


body.zolo-authenticated #zolo-main-content {
  position: relative !important;
  z-index: 1 !important;
}


/* Topbar should stay above page content but below sidebar overlay system */
#zolo-topbar {
  position: fixed !important;
  z-index: 14000 !important;
  pointer-events: auto !important;
}


#zolo-topbar *,
#zolo-topbar a,
#zolo-topbar button {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}


/* Sidebar + overlay stack */
#zolo-overlay {
  z-index: 14500 !important;
}


#zolo-sidebar {
  z-index: 15000 !important;
  pointer-events: auto !important;
}


@media (max-width: 992px) {
  #zolo-sidebar {
    pointer-events: none !important;
  }


  #zolo-sidebar.open {
    pointer-events: auto !important;
  }
}


/* Bottom nav hard click safety */
#zolo-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 14050 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  isolation: isolate !important;
}


#zolo-bottom-nav *,
#zolo-bottom-nav a,
#zolo-bottom-nav button {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2 !important;
}


#zolo-bottom-nav a,
#zolo-bottom-nav button {
  -webkit-tap-highlight-color: rgba(214,194,138,0.18) !important;
  user-select: none !important;
}


/* More menu / bottom sheet from custom.js */
#zolo-more-sheet {
  z-index: 15100 !important;
  pointer-events: auto !important;
}


#zolo-more-sheet *,
#zolo-more-sheet a,
#zolo-more-sheet button {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}


/* Prevent page fixed/sticky elements from sitting above the real nav on mobile */
@media (max-width: 992px) {
  body.zolo-authenticated #zolo-main-content {
    z-index: 1 !important;
  }


  #zolo-bottom-nav {
    display: flex !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }


  body.zolo-authenticated #zolo-main-content > *,
  body.zolo-authenticated #zolo-main-content .sticky,
  body.zolo-authenticated #zolo-main-content [style*="position: sticky"],
  body.zolo-authenticated #zolo-main-content [style*="position:fixed"],
  body.zolo-authenticated #zolo-main-content [style*="position: fixed"] {
    max-width: 100% !important;
  }
}


/* Auth pages should never show app navbar pieces */
body.auth-page #zolo-topbar,
body.auth-page #zolo-sidebar,
body.auth-page #zolo-overlay,
body.auth-page #zolo-bottom-nav,
body.auth-page #zolo-more-sheet {
  display: none !important;
  pointer-events: none !important;
}

/* ============================================================
   v6 — MOTION SYSTEM
   Shared keyframes + reusable animation utilities. Pages and
   custom.js opt in with classes; nothing here fires on its own.
   ============================================================ */
@keyframes zoloRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes zoloScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zoloPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes zoloSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes zoloShimmerBg {
  from { background-position: 130% 0; }
  to { background-position: -90% 0; }
}

@keyframes zoloDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(214,194,138,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(214,194,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(214,194,138,0); }
}

/* Entrance utilities (added by JS so no-JS never hides content) */
.zolo-anim-up {
  animation: zoloRise var(--zolo-dur-slow) var(--zolo-ease-out) both;
}

.zolo-stagger > * {
  animation: zoloRise var(--zolo-dur-slow) var(--zolo-ease-out) both;
}

.zolo-stagger > *:nth-child(1) { animation-delay: 0ms; }
.zolo-stagger > *:nth-child(2) { animation-delay: 55ms; }
.zolo-stagger > *:nth-child(3) { animation-delay: 110ms; }
.zolo-stagger > *:nth-child(4) { animation-delay: 165ms; }
.zolo-stagger > *:nth-child(5) { animation-delay: 220ms; }
.zolo-stagger > *:nth-child(6) { animation-delay: 275ms; }
.zolo-stagger > *:nth-child(7) { animation-delay: 330ms; }
.zolo-stagger > *:nth-child(8) { animation-delay: 385ms; }
.zolo-stagger > *:nth-child(9) { animation-delay: 440ms; }
.zolo-stagger > *:nth-child(10) { animation-delay: 495ms; }

/* Press feedback (tap + click) */
.zolo-press {
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--zolo-dur-fast) var(--zolo-ease);
}

.zolo-press:active {
  transform: scale(0.97);
}

/* Copy confirmation pop — custom.js toggles this briefly */
.zolo-copied {
  animation: zoloPop 0.4s var(--zolo-ease-spring);
}

/* Skeleton loaders */
.zolo-skeleton,
.zolo-skel-row {
  position: relative;
  color: transparent !important;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(255,255,255,0.045) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.045) 70%);
  background-size: 220% 100%;
  animation: zoloShimmerBg 1.3s linear infinite;
  user-select: none;
  pointer-events: none;
}

.zolo-skel-row {
  display: block;
  height: 54px;
  border-radius: var(--r-md);
  margin-bottom: 10px;
}

.zolo-skel-row:last-child {
  margin-bottom: 0;
}

html[data-zolo-theme="light"] .zolo-skeleton,
html[data-zolo-theme="light"] .zolo-skel-row {
  background: linear-gradient(100deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.09) 50%, rgba(0,0,0,0.05) 70%);
  background-size: 220% 100%;
}


/* ============================================================
   v6 — COMPONENT LIBRARY
   Reusable classes for pages built from here on out.
   ============================================================ */
.zolo-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.01)) ,
    var(--bg-card);
  border: 1px solid var(--gold-border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--zolo-dur-med) var(--zolo-ease), border-color var(--zolo-dur-med) var(--zolo-ease), box-shadow var(--zolo-dur-med) var(--zolo-ease);
}

@media (hover: hover) {
  .zolo-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-strong);
  }
}

.zolo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--gold-border-soft);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  color: var(--text-1);
  font-family: var(--font-b);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--zolo-dur-fast) var(--zolo-ease), box-shadow var(--zolo-dur-med) var(--zolo-ease), background var(--zolo-dur-med) var(--zolo-ease), border-color var(--zolo-dur-med) var(--zolo-ease);
}

.zolo-btn:active {
  transform: scale(0.97);
}

.zolo-btn.gold {
  border: 0;
  color: #0A0A0C;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, var(--gold-dim));
  box-shadow: 0 10px 26px rgba(214,194,138,0.22);
}

.zolo-btn.ghost {
  background: transparent;
  border-color: var(--gold-border);
  color: var(--gold);
}

.zolo-btn.green {
  border: 0;
  color: #0B160F;
  background: linear-gradient(135deg, #6FCB9B, var(--green));
}

.zolo-btn.danger {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #E88A8A, var(--red));
}

@media (hover: hover) {
  .zolo-btn:hover { transform: translateY(-1px); border-color: var(--gold-border); }
  .zolo-btn.gold:hover { box-shadow: 0 14px 34px rgba(214,194,138,0.32); }
}

/* Loading state: add .loading to any .zolo-btn */
.zolo-btn.loading {
  pointer-events: none;
  opacity: 0.82;
}

.zolo-btn.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10,10,12,0.25);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: zoloSpin 0.7s linear infinite;
}

@keyframes zoloSpin {
  to { transform: rotate(360deg); }
}

/* Status pills with animated live dot */
.zolo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--gold-border-soft);
  color: var(--text-2);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
}

.zolo-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.zolo-status.done { color: var(--green); border-color: rgba(76,175,125,0.3); background: rgba(76,175,125,0.08); }
.zolo-status.running { color: var(--blue); border-color: rgba(100,181,246,0.3); background: rgba(100,181,246,0.08); }
.zolo-status.pending { color: var(--orange); border-color: rgba(255,183,77,0.3); background: rgba(255,183,77,0.08); }
.zolo-status.bad { color: var(--red); border-color: rgba(224,112,112,0.3); background: rgba(224,112,112,0.08); }

.zolo-status.running::before,
.zolo-status.pending::before {
  animation: zoloDotPulse 2.1s infinite;
}

/* Empty states */
.zolo-empty {
  padding: 28px 18px;
  border: 1px dashed var(--gold-border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.zolo-empty b {
  display: block;
  font-family: var(--font-d);
  font-size: 15px;
  color: var(--text-1);
  margin-bottom: 5px;
}


/* ============================================================
   v6 — MICRO-INTERACTIONS FOR EXISTING COMPONENTS
   Modal, dropdown, tab, pagination, nav — no markup changes.
   ============================================================ */

/* Bootstrap modals: scale in */
.modal.fade .modal-dialog {
  transform: translateY(14px) scale(0.97) !important;
  transition: transform var(--zolo-dur-med) var(--zolo-ease-out), opacity var(--zolo-dur-med) var(--zolo-ease) !important;
}

.modal.fade.in .modal-dialog,
.modal.fade.show .modal-dialog {
  transform: translateY(0) scale(1) !important;
}

.modal-backdrop.fade {
  transition: opacity var(--zolo-dur-med) var(--zolo-ease) !important;
}

/* Dropdowns: rise in (Bootstrap 3 .open and BS4/5 .show) */
.open > .dropdown-menu,
.dropdown-menu.show,
.search-dropdown .dropdowntheme:not(.hide),
.search-dropdown .themeulli:not(.hide) {
  animation: zoloRise 0.22s var(--zolo-ease-out) both;
}

/* Tabs: animated underline feel */
.nav-tabs .nav-link {
  transition: color var(--zolo-dur-fast) var(--zolo-ease), border-color var(--zolo-dur-fast) var(--zolo-ease) !important;
}

.tab-pane.active {
  animation: zoloRise 0.3s var(--zolo-ease-out) both;
}

/* Pagination press */
.pagination .page-link {
  transition: transform var(--zolo-dur-fast) var(--zolo-ease), background var(--zolo-dur-fast) var(--zolo-ease), color var(--zolo-dur-fast) var(--zolo-ease) !important;
}

.pagination .page-link:active {
  transform: scale(0.94);
}

/* Alerts slide in */
.alert {
  animation: zoloRise 0.35s var(--zolo-ease-out) both;
}

/* Topbar + sidebar buttons: press feedback */
#zolo-topbar a:active,
#zolo-topbar button:active,
#zolo-sidebar .sidebar-new-order:active,
#zolo-sidebar .sidebar-add-funds:active,
#zolo-bottom-nav a:active,
#zolo-bottom-nav button:active {
  transform: scale(0.96) !important;
  transition: transform var(--zolo-dur-fast) var(--zolo-ease) !important;
}

/* Bottom nav: smooth item transitions */
#zolo-bottom-nav a,
#zolo-bottom-nav button {
  transition: color var(--zolo-dur-fast) var(--zolo-ease), background var(--zolo-dur-fast) var(--zolo-ease), transform var(--zolo-dur-fast) var(--zolo-ease) !important;
}

/* Sidebar items cascade in when the mobile drawer opens */
@media (max-width: 992px) {
  #zolo-sidebar.open .sidebar-nav a {
    animation: zoloRise 0.32s var(--zolo-ease-out) both;
  }
  #zolo-sidebar.open .sidebar-nav a:nth-child(1) { animation-delay: 40ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(2) { animation-delay: 70ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(3) { animation-delay: 100ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(4) { animation-delay: 130ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(5) { animation-delay: 160ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(6) { animation-delay: 190ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(7) { animation-delay: 220ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(8) { animation-delay: 250ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(9) { animation-delay: 280ms; }
  #zolo-sidebar.open .sidebar-nav a:nth-child(10) { animation-delay: 310ms; }
}

/* More-sheet slides up like a native bottom sheet */
#zolo-more-sheet.open,
#zolo-more-sheet.active,
#zolo-more-sheet[data-open="1"] {
  animation: zoloSlideUp 0.32s var(--zolo-ease-out) both;
}


/* ============================================================
   v6 — MOBILE TABLE STRATEGY
   ============================================================ */
@media (max-width: 640px) {
  /* Default: keep tables but give momentum scroll + edge fade so
     wide tables read as swipeable instead of broken. */
  .table-responsive {
    -webkit-overflow-scrolling: touch !important;
    mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  }

  .table thead th,
  table thead th {
    padding: 11px 12px !important;
  }

  .table tbody td,
  table tbody td {
    padding: 11px 12px !important;
    font-size: 12.5px !important;
  }

  /* Opt-in stacking: add .zolo-table-cards to a table and
     data-label to each td to render as mobile cards. */
  table.zolo-table-cards thead {
    display: none !important;
  }

  table.zolo-table-cards,
  table.zolo-table-cards tbody,
  table.zolo-table-cards tr,
  table.zolo-table-cards td {
    display: block !important;
    width: 100% !important;
  }

  table.zolo-table-cards tr {
    background: var(--bg-card) !important;
    border: 1px solid var(--gold-border-soft) !important;
    border-radius: var(--r-lg) !important;
    padding: 8px 4px !important;
    margin-bottom: 12px !important;
    box-shadow: var(--shadow-soft) !important;
  }

  table.zolo-table-cards td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    border: 0 !important;
    padding: 9px 14px !important;
  }

  table.zolo-table-cards td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    flex-shrink: 0;
  }
}


/* ============================================================
   v6 — FOCUS + THEME TRANSITION + REDUCED MOTION
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none !important;
  box-shadow: var(--focus-ring) !important;
  border-radius: 8px;
}

/* Smooth dark/light switch — layout v7 and custom.js v8.2 toggle
   html.zolo-theme-switching for ~400ms around a theme change. */
html.zolo-theme-switching body,
html.zolo-theme-switching #zolo-topbar,
html.zolo-theme-switching #zolo-sidebar,
html.zolo-theme-switching #zolo-main-content,
html.zolo-theme-switching .card,
html.zolo-theme-switching .well,
html.zolo-theme-switching .panel {
  transition: background var(--zolo-dur-med) var(--zolo-ease), background-color var(--zolo-dur-med) var(--zolo-ease), color var(--zolo-dur-med) var(--zolo-ease), border-color var(--zolo-dur-med) var(--zolo-ease) !important;
}

/* v6 additions all obey reduced motion (extends the v5.1 block,
   which sits earlier in this file and uses a universal selector) */
@media (prefers-reduced-motion: reduce) {
  .zolo-anim-up,
  .zolo-stagger > *,
  .zolo-skeleton,
  .zolo-skel-row,
  .alert,
  .tab-pane.active,
  #zolo-sidebar.open .sidebar-nav a,
  #zolo-more-sheet.open {
    animation: none !important;
  }

  .zolo-press:active,
  .zolo-btn:active,
  #zolo-bottom-nav a:active {
    transform: none !important;
  }
}


/* ============================================================
   v6.1 — LIQUID GLASS BOTTOM NAV (iOS 26 style)
   Floating frosted dock: detached pill, heavy blur + saturation,
   specular top edge, diagonal glare, gold glass bubble on the
   active tab, springy tap. Overrides the inline styles custom.js
   sets on #zolo-bottom-nav (hence the !important weight).
   The click-fix z-index stack above is untouched.
   ============================================================ */
@media (max-width: 992px) {
  :root {
    --bottomnav-h: 84px; /* clearance for the floating dock */
  }

  #zolo-bottom-nav {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    height: 66px !important;
    min-height: 66px !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 0 8px !important;
    padding-bottom: 0 !important; /* safe area moved into the bottom offset */
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top-color: rgba(255, 255, 255, 0.22) !important; /* specular edge */
    border-radius: 33px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.015) 45%),
      rgba(15, 15, 18, 0.52) !important;
    backdrop-filter: blur(28px) saturate(1.9) brightness(1.06) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.9) brightness(1.06) !important;
    box-shadow:
      0 18px 50px rgba(0, 0, 0, 0.5),
      0 2px 10px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04) !important;
    overflow: hidden !important;
  }

  /* diagonal glare streak across the glass */
  #zolo-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 46%, rgba(255, 255, 255, 0.02) 54%, transparent 68%);
    pointer-events: none;
    z-index: 1;
  }

  html[data-zolo-theme="light"] #zolo-bottom-nav {
    border-color: rgba(255, 255, 255, 0.65) !important;
    border-top-color: rgba(255, 255, 255, 0.9) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2) 45%),
      rgba(250, 249, 246, 0.55) !important;
    box-shadow:
      0 18px 50px rgba(20, 16, 4, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  }

  /* items: roomy glass tabs with springy press */
  #zolo-bottom-nav > a,
  #zolo-bottom-nav > button {
    position: relative !important;
    border-radius: 24px !important;
    margin: 6px 2px !important;
    padding: 5px 0 !important;
    min-height: 54px !important;
    transition: transform var(--zolo-dur-fast) var(--zolo-ease-spring), background var(--zolo-dur-med) var(--zolo-ease) !important;
  }

  #zolo-bottom-nav > a:active,
  #zolo-bottom-nav > button:active {
    transform: scale(0.9) !important;
  }

  #zolo-bottom-nav span {
    font-size: 9.5px !important;
    letter-spacing: 0.03em !important;
  }

  /* active tab: gold glass bubble (class added by custom.js v8.2.1) */
  #zolo-bottom-nav > a.zolo-bn-active {
    background:
      linear-gradient(180deg, rgba(232, 217, 168, 0.16), rgba(214, 194, 138, 0.06)) !important;
    box-shadow:
      inset 0 1px 0 rgba(232, 217, 168, 0.28),
      inset 0 0 0 1px rgba(214, 194, 138, 0.18) !important;
  }

  html[data-zolo-theme="light"] #zolo-bottom-nav > a.zolo-bn-active {
    background:
      linear-gradient(180deg, rgba(214, 194, 138, 0.32), rgba(214, 194, 138, 0.12)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      inset 0 0 0 1px rgba(168, 146, 92, 0.28) !important;
  }

  /* the "New" CTA: gold liquid orb instead of a flat square */
  #zolo-bottom-nav > a > div {
    width: 44px !important;
    height: 44px !important;
    border-radius: 999px !important;
    background: linear-gradient(150deg, #F0E1AE, #D6C28A 55%, #A8925C) !important;
    box-shadow:
      0 10px 24px rgba(214, 194, 138, 0.42),
      inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
      inset 0 -2px 4px rgba(120, 96, 40, 0.35) !important;
    transition: transform var(--zolo-dur-fast) var(--zolo-ease-spring), box-shadow var(--zolo-dur-med) var(--zolo-ease) !important;
  }

  #zolo-bottom-nav > a:active > div {
    transform: scale(0.88) !important;
    box-shadow:
      0 5px 14px rgba(214, 194, 138, 0.5),
      inset 0 1.5px 0 rgba(255, 255, 255, 0.55) !important;
  }

  /* more-sheet panel becomes glass too, for one material language */
  #zolo-more-panel {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 30%),
      rgba(17, 17, 20, 0.72) !important;
    backdrop-filter: blur(26px) saturate(1.7) !important;
    -webkit-backdrop-filter: blur(26px) saturate(1.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -14px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    animation: zoloSlideUp 0.34s var(--zolo-ease-out) both;
  }

  html[data-zolo-theme="light"] #zolo-more-panel {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3) 30%),
      rgba(250, 249, 246, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
  }

  /* fallbacks: never ship an unreadable dock */
  @supports not (backdrop-filter: blur(1px)) {
    #zolo-bottom-nav {
      background: rgba(15, 15, 18, 0.96) !important;
    }
    #zolo-more-panel {
      background: rgba(17, 17, 20, 0.98) !important;
    }
    html[data-zolo-theme="light"] #zolo-bottom-nav,
    html[data-zolo-theme="light"] #zolo-more-panel {
      background: rgba(252, 251, 248, 0.98) !important;
    }
  }

  @media (prefers-reduced-transparency: reduce) {
    #zolo-bottom-nav,
    #zolo-more-panel {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: rgba(15, 15, 18, 0.97) !important;
    }
    html[data-zolo-theme="light"] #zolo-bottom-nav,
    html[data-zolo-theme="light"] #zolo-more-panel {
      background: rgba(252, 251, 248, 0.98) !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #zolo-bottom-nav > a:active,
    #zolo-bottom-nav > button:active,
    #zolo-bottom-nav > a:active > div {
      transform: none !important;
    }
    #zolo-more-panel {
      animation: none !important;
    }
  }
}


/* ============================================================
   v6.2 — LIQUID GLASS DOCK: AUTO-HIDE + SIDEBAR YIELD
   1. Dock slides away when the mobile sidebar drawer (or its
      overlay) is open — it should never float over the drawer.
   2. Dock ducks out while scrolling down and returns on scroll
      up / at the bottom of the page (class toggled by custom.js
      v8.2.2, iOS Safari style).
   ============================================================ */
@media (max-width: 992px) {
  #zolo-bottom-nav {
    transition:
      transform 0.38s var(--zolo-ease),
      opacity 0.3s var(--zolo-ease) !important;
    will-change: transform;
  }

  /* scroll-down duck (class from custom.js) */
  #zolo-bottom-nav.zolo-bn-hidden {
    transform: translateY(calc(100% + 26px + env(safe-area-inset-bottom, 0px))) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* sidebar drawer open: dock yields, no JS needed */
  html:has(#zolo-sidebar.open) #zolo-bottom-nav,
  html:has(#zolo-overlay.active) #zolo-bottom-nav,
  body:has(#zolo-sidebar.open) #zolo-bottom-nav,
  body:has(#zolo-overlay.active) #zolo-bottom-nav {
    transform: translateY(calc(100% + 26px + env(safe-area-inset-bottom, 0px))) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  @media (prefers-reduced-motion: reduce) {
    #zolo-bottom-nav {
      transition: none !important;
    }
  }
}


/* ============================================================
   v6.2 — DOCK BEHAVIOR FIXES
   1. Dock hides when the sidebar drawer or more-sheet is open
      (it was floating in front of / beside the open drawer)
   2. Dock slides away on scroll-down, glides back on scroll-up
      or near the top (iOS toolbar behavior)
   Classes are driven by custom.js v8.2.2:
   html.zolo-drawer-open / html.zolo-dock-hide
   ============================================================ */
@media (max-width: 992px) {
  #zolo-bottom-nav {
    transition:
      transform 0.34s var(--zolo-ease),
      opacity 0.28s var(--zolo-ease) !important;
    will-change: transform;
  }

  html.zolo-dock-hide #zolo-bottom-nav,
  html.zolo-drawer-open #zolo-bottom-nav {
    transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom, 0px))) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* drawer close should feel instant-ish on the way back */
  html.zolo-drawer-open #zolo-bottom-nav {
    transition-duration: 0.22s !important;
  }

  @media (prefers-reduced-motion: reduce) {
    #zolo-bottom-nav {
      transition: opacity 0.15s ease !important;
      transform: none !important;
    }

    html.zolo-dock-hide #zolo-bottom-nav,
    html.zolo-drawer-open #zolo-bottom-nav {
      transform: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
    }
  }
}

/* ============================================================
   SEAMLESS CANVAS + PAGE-TEMPLATE BRIDGE (consolidated v15)
   Replaces the old v14 hotfix. The v14 block re-declared :root
   with a second, darker token set (#020203) that fought the top
   token block, custom.js inline styles, and the page templates'
   own #070708 — which is exactly what produced the "lighter
   rectangle on black" layering. There is now ONE token set (top
   of this file) and this section only maps every page-level
   wrapper onto it.
   ============================================================ */

/* n8 bridge so page templates that consume --n8-* resolve to the
   same single token set. */
:root {
  --n8-bg: var(--bg-base);
  --n8-surface: var(--bg-surface);
  --n8-card: var(--bg-card);
  --n8-card-2: var(--bg-elevated);
  --n8-input: var(--bg-input);
  --n8-text: var(--text-1);
  --n8-muted: var(--text-2);
  --n8-dim: var(--text-3);
  --n8-gold: var(--gold);
  --n8-gold-hi: var(--gold-hi);
  --n8-gold-lo: var(--gold-lo);
  --n8-border: var(--gold-border);
  --n8-border-soft: var(--gold-border-soft);
  --n8-green: var(--green);
  --n8-red: var(--red);
  --n8-blue: var(--blue);
  --n8-orange: var(--orange);
}

/* Every page-level wrapper sits on the exact same canvas. */
html,
body,
body.zolo-authenticated > #zolo-main-content,
body.zolo-authenticated > main#zolo-main-content,
html.smmzolo-dashboard-fullwidth,
html.smmzolo-dashboard-fullwidth body,
body.smmzolo-dashboard-fullwidth,
html.smmzolo-neworder-fullwidth,
html.smmzolo-neworder-fullwidth body,
body.smmzolo-neworder-fullwidth,
body.smmzolo-affiliates-fullwidth {
  background: var(--bg-base) !important;
}

/* The one allowed accent: a whisper of gold on the authenticated
   body, painted over the same base — never a different base. */
body.zolo-authenticated {
  background:
    radial-gradient(900px 340px at 0% -10%, rgba(214,194,138,0.06), transparent 66%),
    var(--bg-base) !important;
}

/* Bootstrap-era wrappers never carry their own background. */
body.zolo-authenticated #zolo-main-content .container,
body.zolo-authenticated #zolo-main-content .container-fluid,
body.zolo-authenticated #zolo-main-content .row,
body.zolo-authenticated #zolo-main-content [class*="col-"],
body.zolo-authenticated .content,
body.zolo-authenticated .main-content,
body.zolo-authenticated .page-content {
  background: transparent !important;
}

/* Page roots paint their own accents on a TRANSPARENT wrap; the
   canvas below is always var(--bg-base). */
#dash-v8,
.no4-wrap,
.rm2,
.affv3 {
  background-color: transparent !important;
}

/* Floating growth-tools widgets stay under open modals. */
body:has(#dash-v8) .zolo-rp-floating:not(.open),
body:has(#dash-v8) .growth-tools-floating:not(.open) {
  z-index: 30 !important;
}