*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: DM Mono, ui-monospace, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.block {
  display: block;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ============================================================
   FONT ENFORCEMENT — override Tailwind preflight system fonts
   ============================================================ */

*, *::before, *::after {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 400;
}

/* Preserve DM Mono for labels, badges, monospaced values */
code, pre, kbd, samp,
[class*="mono"], [class*="Mono"],
.font-mono {
  font-family: 'DM Mono', ui-monospace, monospace !important;
}

/* ============================================================
   FONTS
   ============================================================ */
:root {
  --font-ui:      'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: var(--font-ui);
  --font-body:    var(--font-ui);
  --font-sans:    var(--font-ui);
  --font-mono:    'DM Mono', ui-monospace, monospace;
  --font-serif:   var(--font-ui);
}

.lb-editorial {
  font-family: var(--font-ui) !important;
  font-weight: 300;
}
.lb-editorial-italic {
  font-family: var(--font-ui) !important;
  font-weight: 300;
  font-style: italic;
}

/* ============================================================
   FONT WEIGHT STANDARD — every page, every element
   Reference: Serve / Automations / Challenges pages
   • h1 page titles  → 400
   • numbers / stats → 400–500 (set inline per component)
   • card titles     → 500 max via class
   • body            → 400
   Max anywhere: 600 (semibold). Nothing uses 700+.
   ============================================================ */

/* All page-level h1s: always clean weight */
h1 {
  font-weight: 400 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.3px;
}

/* Cap Tailwind weight utility classes */
.font-black     { font-weight: 600 !important; }
.font-extrabold { font-weight: 600 !important; }
.font-bold      { font-weight: 600 !important; }

/* Tailwind gray text colors on headings — these often pair with font-bold */
h1.text-gray-900, h2.text-gray-900, h3.text-gray-900 { color: var(--text) !important; }
h1.text-gray-800, h2.text-gray-800                    { color: var(--text) !important; }

/* ============================================================
   DESIGN TOKENS — Light (default)
   ============================================================ */
:root,
[data-theme="light"] {
  --bg:        #f5f6f9;
  --bg2:       #edecea;
  --surface:   #ffffff;
  --surface2:  #f0f2f5;
  --border:    rgba(0, 0, 0, 0.09);
  --border2:   rgba(0, 0, 0, 0.16);
  --text:      #0f172a;
  --text2:     #4b5563;
  --text3:     #71717a;
  --accent:    #3555FF;
  --accent2:   #6377FF;
  --accent3:   #059669;
  --amber:     #d97706;
  --rose:      #e11d48;
  --blush:     #FFF1F2;
  --sidebar:   #111827;
  --gradient:  linear-gradient(135deg, #3555FF 0%, #4f65ff 55%, #6377FF 100%);
  --chart-grid: rgba(0, 0, 0, 0.07);

  /* Legacy aliases — keep existing components working */
  --surface-2:   var(--surface2);
  --border-md:   var(--border2);
  --text-2:      var(--text2);
  --text-3:      var(--text3);
  --accent-dim:  rgba(53, 85, 255, 0.10);
  --emerald:     var(--accent3);
  --emerald-dim: rgba(5, 150, 105, 0.10);
  --navy:        #111827;
  --navy-dim:    rgba(17, 24, 39, 0.12);
  --brand-gradient: var(--gradient);
  --rose-dim:    rgba(225, 29, 72, 0.10);
  --amber-dim:   rgba(217, 119, 6, 0.10);
  --sky:         #3555FF;
  --sky-dim:     rgba(53, 85, 255, 0.10);

  /* Legacy text tokens */
  --text-primary:   var(--text);
  --text-secondary: var(--text2);
  --text-muted:     var(--text3);
  --surface-bg:     var(--surface);
  --surface-border: var(--border);
  --surface-hover:  var(--surface2);
  --page-bg:        var(--bg);
}

/* ============================================================
   DESIGN TOKENS — Dark
   ============================================================ */
[data-theme="dark"] {
  --bg:        #0d1117;
  --bg2:       #0a0d14;
  --surface:   #161c2d;
  --surface2:  #1e2640;
  --border:    rgba(255, 255, 255, 0.09);
  --border2:   rgba(255, 255, 255, 0.16);
  --text:      rgba(255, 255, 255, 0.95);
  --text2:     rgba(255, 255, 255, 0.58);
  --text3:     rgba(255, 255, 255, 0.38);
  --accent:    #7B8FFF;
  --accent2:   #A5B4FC;
  --accent3:   #34d399;
  --amber:     #fbbf24;
  --rose:      #fb7185;
  --blush:     #FFF1F2;
  --sidebar:   #0d1117;
  --gradient:  linear-gradient(135deg, #3555FF 0%, #4f65ff 55%, #6377FF 100%);
  --chart-grid: rgba(255, 255, 255, 0.07);

  /* Legacy aliases */
  --surface-2:   var(--surface2);
  --border-md:   var(--border2);
  --text-2:      var(--text2);
  --text-3:      var(--text3);
  --accent-dim:  rgba(123, 143, 255, 0.12);
  --emerald:     var(--accent3);
  --emerald-dim: rgba(52, 211, 153, 0.12);
  --navy:        #111827;
  --navy-dim:    rgba(17, 24, 39, 0.20);
  --brand-gradient: var(--gradient);
  --rose-dim:    rgba(251, 113, 133, 0.12);
  --amber-dim:   rgba(251, 191, 36, 0.12);
  --sky:         #7B8FFF;
  --sky-dim:     rgba(123, 143, 255, 0.12);

  /* Legacy text tokens */
  --text-primary:   var(--text);
  --text-secondary: var(--text2);
  --text-muted:     var(--text3);
  --surface-bg:     var(--surface);
  --surface-border: var(--border);
  --surface-hover:  var(--surface2);
  --page-bg:        var(--bg);
}

/* ============================================================
   LIGHT MODE — keep html.light class working (ThemeContext legacy)
   ============================================================ */
html.light { color-scheme: light; }
html.dark  { color-scheme: dark;  }

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  transition:
    background-color 0.25s ease,
    border-color     0.25s ease,
    color            0.18s ease;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
}

/* ============================================================
   GLOBAL COMPONENT CLASSES
   ============================================================ */

/* Card */
.lb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: background 0.3s, border-color 0.3s;
}
.lb-card:hover { border-color: var(--border2); }

[data-theme="dark"] .lb-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 4px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .lb-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0,0,0,0.04) inset;
}

/* ── Typography scale ──────────────────────────────────────────────────────── */
/* Absolute minimums enforced here so no inline style can go smaller */

/* Page-level headers */
.lb-page-title   { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--text);  font-family: var(--font-ui); line-height: 1.15; }
.lb-page-sub     { font-size: 15px; font-weight: 400; color: var(--text2);    font-family: var(--font-body); }

/* Section headers inside cards */
.lb-card-title   { font-size: 17px; font-weight: 600; color: var(--text);     font-family: var(--font-body); margin: 0; }
.lb-card-sub     { font-size: 13px; font-weight: 400; color: var(--text3);    font-family: var(--font-body); }

/* Table / list text */
.lb-row-primary  { font-size: 15px; font-weight: 500; color: var(--text);     font-family: var(--font-body); }
.lb-row-meta     { font-size: 13px; font-weight: 400; color: var(--text3);    font-family: var(--font-body); }

/* Labels */
.lb-label        { font-size: 13px; font-weight: 600; color: var(--text2);    font-family: var(--font-body); letter-spacing: 0.01em; }
.lb-label-tiny   { font-size: 12px; font-weight: 600; color: var(--text3);    font-family: var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }

/* Stat numbers */
.lb-stat-xl      { font-size: 42px; font-weight: 600; letter-spacing: -2px;   color: var(--text);  font-family: var(--font-display); line-height: 1; }
.lb-stat-lg      { font-size: 32px; font-weight: 600; letter-spacing: -1px;   color: var(--text);  font-family: var(--font-display); line-height: 1; }
.lb-stat-md      { font-size: 24px; font-weight: 600; letter-spacing: -0.5px; color: var(--text);  font-family: var(--font-display); line-height: 1; }

/* Section label */
.lb-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}
.lb-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border2);
}

/* Primary button — neutral dark, theme-aware */
.lb-btn-primary {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Ghost button */
.lb-btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

/* Legacy aliases */
.font-syne    { font-family: var(--font-display); }

/* Portal type scale */
.lb-text-xs    { font-size: 11px; line-height: 1.35; }
.lb-text-sm    { font-size: 13px; line-height: 1.4;  }
.lb-text-base  { font-size: 15px; line-height: 1.5;  }
.lb-text-lg    { font-size: 17px; line-height: 1.45; }
.lb-text-muted { color: var(--text2); font-weight: 400; }
.lb-text-label { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--text3); }
.lb-text-mono  { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--text3); }

.lb-display {
  font-weight: 400;
  letter-spacing: -0.5px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar             { width: 6px; height: 6px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
}
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HIDE SCROLLBAR
   ============================================================ */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* iPhone pass float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.iphone-float { animation: float 3s ease-in-out infinite; }

/* Live dot pulse */
@keyframes livePulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(0.8); opacity: 0.4; }
}
.live-dot { animation: livePulse 2s ease-in-out infinite; }

/* Reload spin */
@keyframes spin360 {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
.spin { animation: spin360 0.8s linear; }

/* Skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface2) 25%,
    var(--border2)  50%,
    var(--surface2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

/* KPI counter flash */
@keyframes accentFlash {
  0%   { color: var(--accent3); }
  100% { color: var(--text);    }
}
.kpi-flash { animation: accentFlash 0.6s ease-out forwards; }

/* Sparkline draw-in */
@keyframes drawIn {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0;   }
}
.sparkline-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawIn 0.55s 0.9s ease-out forwards;
}

/* ============================================================
   DASHBOARD REFRESH — slide-up fade-in
   ============================================================ */
@keyframes refreshSlideUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0);    }
}
.lb-refresh-anim {
  animation: refreshSlideUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================================
   LIGHT MODE — text-white override (portal only, not public pages)
   ============================================================ */
html.light .lb-portal-layout .text-white {
  color: var(--text) !important;
}
html.light .lb-portal-layout [class*="bg-gradient"] .text-white,
html.light .lb-portal-layout [class*="from-[#"]    .text-white,
html.light .lb-portal-layout [class*="bg-[#"]      .text-white,
html.light .lb-portal-layout .text-white[class*="bg-gradient"],
html.light .lb-portal-layout .text-white[class*="from-[#"],
html.light .lb-portal-layout .text-white[class*="bg-[#"] {
  color: #ffffff !important;
}
/* Elements explicitly marked as sitting on a dark/colored background */
html.light .lb-portal-layout .lb-on-dark .text-white      { color: #ffffff !important; }
html.light .lb-portal-layout .lb-on-dark [class*="text-white\/"] { color: inherit !important; }
html.light .lb-portal-layout .lb-on-dark .text-green-100  { color: rgb(220 252 231) !important; }
html.light .lb-portal-layout .lb-on-dark .text-yellow-100 { color: rgb(254 249 195) !important; }
html.light .lb-portal-layout .lb-on-dark .text-white\/80  { color: rgb(255 255 255 / 0.8) !important; }
html.light .lb-portal-layout .lb-on-dark .text-white\/70  { color: rgb(255 255 255 / 0.7) !important; }
html.light .lb-portal-layout .lb-on-dark .text-white\/40  { color: rgb(255 255 255 / 0.4) !important; }
html.light .lb-portal-layout .lb-on-dark .text-white\/20  { color: rgb(255 255 255 / 0.2) !important; }

/* ============================================================
   FORM INPUTS (Settings + modals)
   ============================================================ */
.lb-input {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 11px 16px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lb-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 85, 255, 0.14);
}
.lb-input::-moz-placeholder { color: var(--text3); }
.lb-input::placeholder { color: var(--text3); }

/* ============================================================
   TABLE
   ============================================================ */
.lb-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
}
.lb-table tbody td {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text2);
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.lb-table tbody tr:hover td { background: var(--surface2); }
.lb-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   DASHBOARD CARD (legacy compat)
   ============================================================ */
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
[data-theme="dark"] .dashboard-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 4px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .dashboard-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   STAMP SUCCESS ANIMATION
   ============================================================ */
@keyframes stamp-success-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  80%  { transform: scale(0.92); }
  100% { transform: scale(1);   opacity: 1; }
}
.stamp-success-pop {
  animation: stamp-success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ============================================================
   RESPONSIVE DASHBOARD GRID HELPERS
   ============================================================ */

/* 4-col: segments, revenue columns */
.lb-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
/* 3-col: live feed + goals, performance metrics */
.lb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
/* 2-col asymmetric: loyalty summary */
.lb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
}
/* 2-col equal: member overview inner */
.lb-grid-2-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* Revenue summary row — flex on desktop, scroll on mobile */
.lb-revenue-row {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lb-revenue-row > * {
  flex-shrink: 0;
}
/* Dashboard content padding */
.lb-dash-content {
  padding: 14px 22px 64px;
}
/* Dashboard topbar padding */
.lb-topbar {
  padding: 0 28px;
}

/* ── Program filter pill row ─────────────────────────────────────────────── */
.lb-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}
.lb-filter-row::-webkit-scrollbar { display: none; }
.lb-filter-row button { flex-shrink: 0; white-space: nowrap; }

/* ── Activity Performance header ─────────────────────────────────────────── */
.lb-actperf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}
.lb-actperf-stats {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.lb-actperf-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Order Insights responsive grids ─────────────────────────────────────── */
.lb-oi-stats  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.lb-oi-row-a  { display: grid; grid-template-columns: 1fr 280px;      gap: 14px; margin-bottom: 14px; }
.lb-oi-row-b  { display: grid; grid-template-columns: 1fr 1fr;        gap: 14px; margin-bottom: 14px; }

/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .lb-grid-4      { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lb-grid-3      { grid-template-columns: 1fr; gap: 10px; }
  .lb-grid-2      { grid-template-columns: 1fr; gap: 10px; }
  .lb-grid-2-equal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lb-dash-content { padding: 14px 12px 48px; }
  .lb-topbar       { padding: 0 12px; }
  /* Revenue summary: horizontal scroll on mobile */
  .lb-revenue-row { gap: 0; }
  .lb-revenue-col {
    min-width: 130px;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .lb-revenue-score { display: none !important; }

  /* Activity Performance: stack stats + legend vertically */
  .lb-actperf-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .lb-actperf-stats {
    flex-wrap: wrap;
    gap: 0;
  }
  .lb-actperf-stats > div {
    padding: 0 12px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
  }
  .lb-actperf-stats > div:not(:first-child) {
    padding-left: 12px !important;
    border-left: 1px solid var(--border) !important;
  }
  .lb-actperf-legend {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Order Insights: stack all grids on mobile */
  .lb-oi-stats  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lb-oi-row-a  { grid-template-columns: 1fr; }
  .lb-oi-row-b  { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE — aggressive responsive layout (≤ 768px)
   All overrides are scoped to max-width so desktop is untouched.
   ============================================================ */

/* ── Portal layout ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Main content fills full width (no sidebar margin on mobile) */
  .md\:ml-\[224px\] { margin-left: 0 !important; }

  /* Safe-area padding for iOS notch/home-bar */
  main { padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* ── Topbar ─────────────────────────────────────────────────────────────── */
  .lb-topbar { padding: 0 14px; }

  /* ── Dashboard ──────────────────────────────────────────────────────────── */
  .lb-dash-content { padding: 12px 14px 56px; }
  .lb-grid-4       { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .lb-grid-3       { grid-template-columns: 1fr !important; }
  .lb-grid-2       { grid-template-columns: 1fr !important; }

  /* ── Customer Lifecycle ──────────────────────────────────────────────────── */
  /* Segment cards: 2×2 */
  .lb-lifecycle-segments {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  /* Lifecycle flow card: hide the complex flow diagram, show condensed stats */
  .lb-lifecycle-flow-diagram { display: none !important; }
  .lb-lifecycle-flow-stats   { border-top: none !important; padding-top: 0 !important; }
  /* Main + sidebar stack */
  .lb-lifecycle-main-grid {
    grid-template-columns: 1fr !important;
  }
  /* Member table: use card layout instead of wide table */
  .lb-member-table th { display: none !important; }
  .lb-member-table td {
    display: block !important;
    padding: 4px 14px !important;
    border-bottom: none !important;
  }
  .lb-member-table td:first-child { padding-top: 12px !important; }
  .lb-member-table td:last-child  { padding-bottom: 12px !important; border-bottom: 1px solid var(--border) !important; }
  .lb-member-table .lb-td-segment,
  .lb-member-table .lb-td-stamps,
  .lb-member-table .lb-td-arrow  { display: none !important; }

  /* ── Customer Detail ────────────────────────────────────────────────────── */
  .lb-cd-hero   { grid-template-columns: 1fr !important; }
  .lb-cd-stats  { grid-template-columns: repeat(2, 1fr) !important; }
  .lb-cd-mid    { grid-template-columns: 1fr !important; }
  .lb-cd-bottom { grid-template-columns: 1fr !important; }
  /* Profile header: stack avatar+info vertically on very small screens */
  .lb-cd-profile-row { flex-direction: column !important; align-items: flex-start !important; }
  .lb-cd-actions { margin-top: 12px; width: 100%; }
  .lb-cd-actions button { flex: 1; justify-content: center; }

  /* ── Programs ────────────────────────────────────────────────────────────── */
  .lb-programs-grid { grid-template-columns: 1fr !important; }

  /* ── Campaigns / Outreach ────────────────────────────────────────────────── */
  .lb-campaigns-grid { grid-template-columns: 1fr !important; }

  /* ── Copilot page (internal sidebar) ────────────────────────────────────── */
  .cp-sidebar-desktop { display: none !important; }
  .cp-mobile-topbar   { display: flex !important; }
  /* Input bar: more padding from bottom for iOS home bar */
  .cp-input-wrap { padding-bottom: max(24px, env(safe-area-inset-bottom)) !important; padding-left: 14px !important; padding-right: 14px !important; }
  /* Chat area: tighter horizontal padding on mobile */
  .cp-chat-area { padding-left: 18px !important; padding-right: 18px !important; padding-top: 24px !important; }
  /* Welcome state: tighter padding */
  .cp-welcome   { padding: 0 24px 100px !important; }

  /* ── Add Location / Settings forms ──────────────────────────────────────── */
  .lb-form-2col { grid-template-columns: 1fr !important; }

  /* ── Scanner / Serve ─────────────────────────────────────────────────────── */
  .lb-scanner-wrap { padding: 16px 14px 48px !important; }
  .lb-scanner-prog-grid { grid-template-columns: 1fr !important; }
  .lb-scanner-cta-grid  { grid-template-columns: 1fr !important; }

  /* ── Sidebar nav: ensure tap targets are large enough ──────────────────── */
  .lb-portal-layout aside a,
  .lb-portal-layout aside button { min-height: 44px; }

  /* ── Tables: horizontal scroll fallback for any un-classed table ─────────── */
  .lb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Section headings: tighter margins on mobile ─────────────────────────── */
  .lb-section-label { margin-top: 20px !important; }
}

/* Very small phones (< 400px) */
@media (max-width: 400px) {
  .lb-grid-4 { grid-template-columns: 1fr !important; }
  .lb-cd-stats { grid-template-columns: 1fr !important; }
}

/* ── iOS safe-area: prevent bottom nav from overlapping content ───────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .lb-portal-layout main {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================================
   SIDEBAR LOGO IMAGE — defeat Tailwind preflight img resets
   ============================================================ */
.sb-logo-img {
  width:        72px !important;
  height:       72px !important;
  min-width:    72px !important;
  min-height:   72px !important;
  max-width:    72px !important;
  max-height:   72px !important;
  -o-object-fit:   contain !important;
     object-fit:   contain !important;
  display:      block !important;
  flex-shrink:  0 !important;
  border-radius:7px !important;
}

/* ============================================================
   LOOPBASE WALLET — consumer wallet design system
   ============================================================ */
.lb-wallet {
  --fg:     #0f1a14;
  --fg-2:   #4a5c52;
  --fg-3:   #7a8f82;
  --wl-bg:  #eef6f1;
  --wl-surface: #ffffff;
  --wl-border: rgba(15, 26, 20, 0.08);
  --wl-border2: rgba(15, 26, 20, 0.14);
  --wl-accent: #0e9e6e;
  --wl-accent2: #12b87d;
  --wl-ink-on-accent: #ffffff;
  --wl-radius: 16px;
  --wl-radius-sm: 12px;
  --wl-shadow: 0 8px 28px rgba(15, 26, 20, 0.08);
  --wl-tab-h: 62px;
  font-family: var(--font-ui);
  color: var(--fg);
  background: var(--wl-bg);
  -webkit-font-smoothing: antialiased;
}

.lb-wallet .tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.lb-wallet svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Shell */
.wl-viewport {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--btint, rgba(14, 158, 110, 0.12)), transparent 60%),
    var(--wl-bg);
}

.wl-app {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wl-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 10px;
  flex-shrink: 0;
}

.wl-ab-id {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.wl-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--b, var(--wl-accent)), var(--b2, var(--wl-accent2)));
  color: var(--bink, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px var(--bglow, rgba(14, 158, 110, 0.28));
}

.wl-ab-tx .k {
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 500;
}

.wl-ab-tx .n {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}

.wl-ab-actions {
  display: flex;
  gap: 8px;
}

.wl-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 26, 20, 0.04);
}

.wl-icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wl-accent);
  border: 2px solid var(--wl-surface);
}

.wl-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--wl-tab-h) + 16px);
}

.wl-screen-fade {
  animation: wlFadeIn 0.35s ease both;
}

@keyframes wlFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wl-bottom-pad { height: 24px; }

/* Stats */
.wl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px 14px;
}

.wl-stat {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: 14px;
  padding: 12px 12px 10px;
  box-shadow: 0 1px 2px rgba(15, 26, 20, 0.04);
}

.wl-stat.accent {
  border-color: rgba(14, 158, 110, 0.28);
  background: linear-gradient(180deg, rgba(14, 158, 110, 0.06), var(--wl-surface));
}

.wl-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.wl-stat-val {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 8px;
  color: var(--fg);
  line-height: 1;
}

.wl-stat.accent .wl-stat-val { color: var(--wl-accent); }

/* Merchant pills */
.wl-merchant-pills {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wl-merchant-pills::-webkit-scrollbar { display: none; }

.wl-merchant-pills button {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  color: var(--fg-2);
  cursor: pointer;
}

.wl-merchant-pills button.on {
  border-color: var(--b, var(--wl-accent));
  background: var(--btint, rgba(14, 158, 110, 0.08));
  color: var(--b, var(--wl-accent));
}

/* Section headers */
.wl-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
}

.wl-sec-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 7px;
}

.wl-sec-head h3 .ic svg { width: 16px; height: 16px; color: var(--fg-3); }

.wl-sec-head .more {
  font-size: 12px;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Tab bar */
.wl-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 440px;
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--wl-border);
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
}

.wl-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  cursor: pointer;
}

.wl-tab .tab-ic svg { width: 20px; height: 20px; }

.wl-tab.on {
  color: var(--b, var(--wl-accent));
  background: var(--btint, rgba(14, 158, 110, 0.08));
}

/* Subtabs */
.wl-subtabs {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
}

.wl-subtab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wl-subtab.on {
  background: var(--b, var(--wl-accent));
  border-color: transparent;
  color: var(--bink, #fff);
}

/* Feed */
.wl-feed { padding: 0 20px; }

/* Wallet pass */
.wl-pass-stage {
  padding: 0 20px;
  perspective: 900px;
}

.wl-wpass {
  position: relative;
  border-radius: 22px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
  cursor: pointer;
}

.wl-wp-face {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--pa, var(--wl-accent)) 0%, var(--pb, #0a7a55) 100%);
  color: var(--bink, #fff);
  box-shadow: 0 18px 40px var(--pglow, rgba(14, 158, 110, 0.32)), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-height: 220px;
  padding: 18px 18px 14px;
  position: relative;
}

.wl-wp-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.14) var(--sheen, -12%), transparent 60%);
  pointer-events: none;
}

.wl-wp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.wl-wp-brand {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.wl-wp-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wl-wp-logo img { width: 24px; height: 24px; -o-object-fit: contain; object-fit: contain; }

.wl-wp-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-wp-prog {
  font-size: 12px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-wp-chip,
.wl-wp-flip {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wl-wp-chip.ready { background: rgba(255, 255, 255, 0.92); color: var(--pa, var(--wl-accent)); }

.wl-wp-prog-wrap {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.wl-wp-pp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.wl-wp-pp-head .r { font-weight: 600; }

.wl-wp-pp-head .c { opacity: 0.82; }

.wl-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.wl-stamps.tight { grid-template-columns: repeat(6, 1fr); gap: 5px; }

.wl-stamp {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.wl-stamp svg { width: 14px; height: 14px; opacity: 0.55; }

.wl-stamp.filled {
  background: rgba(255, 255, 255, 0.92);
  border-style: solid;
  border-color: transparent;
  color: var(--pa, var(--wl-accent));
}

.wl-stamp.next {
  animation: wlPulse 1.4s ease-in-out infinite;
  border-color: rgba(255, 255, 255, 0.65);
}

@keyframes wlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

.wl-points-bal {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.wl-points-bal .pv { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

.wl-points-bal .pu { font-size: 14px; opacity: 0.75; }

.wl-pbar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.wl-pbar-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transition: width 0.5s cubic-bezier(0.3, 0.9, 0.3, 1);
}

.wl-points-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.88;
}

.wl-wp-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.wl-barcode {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  opacity: 0.55;
}

.wl-barcode i {
  display: block;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

.wl-wp-id {
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  font-family: var(--font-mono);
}

.wl-wp-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  gap: 14px;
  text-align: center;
}

.wl-qr-card {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
}

.wl-qr {
  display: grid;
  gap: 0;
}

.wl-qr i {
  display: block;
  background: #0f1a14;
}

.wl-qr i.off { background: transparent; }

.wl-qr-cap b { display: block; font-size: 15px; margin-bottom: 4px; }

.wl-qr-cap span { font-size: 12px; opacity: 0.78; }

/* Mini cards + stack */
.wl-mini {
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--pa), var(--pb));
  color: var(--bink, #fff);
  box-shadow: 0 10px 24px var(--pglow, rgba(14, 158, 110, 0.22));
  cursor: pointer;
}

.wl-mini-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wl-mini-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-mini-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

.wl-mini-prog { font-size: 11px; opacity: 0.78; }

.wl-mini-ready {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pa);
}

.wl-mini-body { margin-top: 10px; font-size: 11px; }

.wl-mini-mini-stamps { display: flex; gap: 4px; }

.wl-mini-mini-stamps i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.wl-mini-mini-stamps i.on { background: rgba(255, 255, 255, 0.92); }

.wl-mini-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 6px;
  overflow: hidden;
}

.wl-mini-bar i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.wl-stack {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-stack-card { transition: transform 0.2s ease; cursor: pointer; }

.wl-stack-card:active { transform: scale(0.98); }

.wl-stack.compact { gap: 8px; }

.wl-mini.compact {
  padding: 10px 12px;
  border-radius: 14px;
}

.wl-mini.compact .wl-mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.wl-mini.compact .wl-mini-name { font-size: 13px; }

.wl-mini.featured {
  padding: 16px 16px 14px;
  border-radius: 18px;
}

.wl-mini.featured .wl-mini-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.wl-mini.featured .wl-mini-name { font-size: 15px; }

.wl-mini-chev {
  margin-left: auto;
  opacity: 0.7;
  display: flex;
  align-items: center;
}

.wl-mini-tap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.wl-cards-compact {
  padding: 0 0 4px;
}

.wl-featured-card {
  padding: 0 20px 12px;
}

.wl-stack-label {
  padding: 4px 20px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.wl-ready-chip.compact {
  padding: 10px 12px;
  margin: 0 20px;
}

.wl-ready-chip.compact .wl-rc-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.wl-ready-chip.compact .wl-rc-tx b { font-size: 13px; }

.wl-ready-chip.compact .wl-rc-tx span { font-size: 11px; }

.wl-locker.compact {
  padding: 10px 12px;
  margin: 0 20px 10px;
}

.wl-locker.compact .wl-locker-head { margin-bottom: 8px; }

.wl-locker.compact .wl-locker-head h4 { font-size: 13px; }

/* Ready chip */
.wl-ready-chip {
  margin: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--wl-surface);
  border: 1px solid var(--bbd, var(--wl-border));
  box-shadow: var(--wl-shadow);
  cursor: pointer;
}

.wl-rc-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--btint, rgba(14, 158, 110, 0.08));
  color: var(--b, var(--wl-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-rc-tx { flex: 1; min-width: 0; }

.wl-rc-tx b {
  display: block;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 2px;
}

.wl-rc-tx span { font-size: 12px; color: var(--fg-3); }

.wl-rc-go {
  font-size: 12px;
  font-weight: 600;
  color: var(--b, var(--wl-accent));
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

/* Activity + history rows */
.wl-act,
.wl-hist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  margin-bottom: 8px;
}

.wl-act-ic,
.wl-hist-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ab, var(--wl-accent)) 12%, white);
  color: var(--ab, var(--wl-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-act-tx,
.wl-hist-tx { flex: 1; min-width: 0; }

.wl-act-tx b,
.wl-hist-tx b {
  display: block;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 2px;
}

.wl-act-tx span,
.wl-hist-tx span { font-size: 12px; color: var(--fg-3); }

.wl-act-meta { text-align: right; }

.wl-act-meta .d {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
}

.wl-act-meta .d.plus { color: var(--wl-accent); }

.wl-act-meta .t { font-size: 11px; color: var(--fg-3); margin-top: 2px; }

.wl-hist-date { font-size: 12px; color: var(--fg-3); white-space: nowrap; }

/* Reward locker */
.wl-locker {
  margin: 0 20px 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
}

.wl-locker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wl-locker-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.wl-locker-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(14, 158, 110, 0.1);
  color: var(--wl-accent);
}

.wl-locker-empty {
  font-size: 13px;
  color: var(--fg-2);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 26, 20, 0.03);
}

/* Apple Wallet CTA */
.wl-apple-cta {
  margin: 0 20px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  height: 44px;
  background: #1c1c1e;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.wl-apple-hint {
  margin: 0 20px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  font-size: 13px;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sheet + QR modal */
.wl-sheet-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 20, 0.52);
  backdrop-filter: blur(4px);
  z-index: 50;
  animation: wlFadeIn 0.2s ease both;
}

.wl-sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  background: var(--wl-bg);
  border-radius: 22px 22px 0 0;
  z-index: 51;
  animation: wlSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}

@keyframes wlSlideUp {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}

.wl-sheet-grip {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.wl-sheet-grip i {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--wl-border2);
}

.wl-sheet-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--wl-surface);
  color: var(--fg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.wl-sheet-body {
  overflow-y: auto;
  max-height: calc(92vh - 24px);
  padding-top: 4px;
}

.wl-sheet-pass { padding: 0 0 8px; }

.wl-hero-pass {
  cursor: pointer;
  border-radius: 20px;
}

.wl-hero-pass:active { opacity: 0.96; }

.wl-sheet-qr {
  margin: 0 20px 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
}

.wl-sheet-qr-head {
  text-align: center;
  margin-bottom: 14px;
}

.wl-sheet-qr-head p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.4;
}

.wl-sheet-qr-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--fg-3);
}

.wl-sheet-switch {
  margin: 0 20px 8px;
}

.wl-sheet-switch-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}

.wl-sheet-switch-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.wl-sheet-switch-row button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  max-width: 160px;
}

.wl-sheet-switch-row button.on {
  border-color: var(--b, var(--wl-accent));
  background: var(--btint, rgba(14, 158, 110, 0.08));
  color: var(--fg);
}

.wl-switch-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--btint, rgba(14, 158, 110, 0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wl-switch-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-redeem-banner {
  margin: 0 20px 14px;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(14, 158, 110, 0.08);
  border: 1px solid rgba(14, 158, 110, 0.18);
}

.wl-rb-ic {
  color: var(--b, var(--wl-accent));
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.wl-rb-tx b { display: block; font-size: 14px; color: var(--fg); margin-bottom: 3px; }

.wl-rb-tx span { font-size: 12px; color: var(--fg-2); line-height: 1.45; }

.wl-detail-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 14px;
}

.wl-btn-primary {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bink, #fff);
  background: linear-gradient(135deg, var(--b, var(--wl-accent)), var(--b2, var(--wl-accent2)));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px var(--bglow, rgba(14, 158, 110, 0.25));
}

.wl-btn-ghost {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wl-detail-block {
  margin: 0 20px;
  border-radius: 16px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  overflow: hidden;
}

.wl-detail-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--wl-border);
}

.wl-detail-row:last-child { border-bottom: none; }

.wl-di {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--btint, rgba(14, 158, 110, 0.08));
  color: var(--b, var(--wl-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wl-dt b { display: block; font-size: 14px; color: var(--fg); margin-bottom: 3px; }

.wl-dt span { font-size: 12px; color: var(--fg-2); line-height: 1.4; }

.wl-qr-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 360px;
  background: var(--wl-surface);
  border-radius: 22px;
  padding: 28px 24px 22px;
  z-index: 51;
  box-shadow: 0 24px 60px rgba(15, 26, 20, 0.28);
  animation: wlZoomIn 0.28s ease both;
}

@keyframes wlZoomIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.wl-qr-modal-head { text-align: center; margin-bottom: 18px; }

.wl-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 158, 110, 0.1);
  color: var(--wl-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wl-qr-modal-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.wl-qr-modal-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--fg-2);
}

.wl-qr-modal-head p.sub { color: var(--fg-3); font-size: 13px; }

.wl-qr-modal-code {
  background: #fff;
  border: 1px solid var(--wl-border);
  border-radius: 16px;
  padding: 14px;
}

.wl-qr-modal-code img { width: 100%; display: block; }

.wl-qr-skeleton {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e8eaee 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.wl-qr-modal-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Auth */
.wl-auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--btint, rgba(14, 158, 110, 0.12)), transparent 60%),
    var(--wl-bg);
}

.wl-auth-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wl-lb-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--b, var(--wl-accent)), var(--b2, var(--wl-accent2)));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wl-lb-mark.sm { width: 18px; height: 18px; border-radius: 6px; }

.wl-lb-mark svg { width: 14px; height: 14px; }

.wl-lb-mark.sm svg { width: 10px; height: 10px; }

.wl-auth-wordmark {
  font-size: 15px;
  color: var(--fg-2);
}

.wl-auth-wordmark b { color: var(--fg); font-weight: 600; }

.wl-auth-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.wl-fan {
  position: relative;
  height: 130px;
  margin: 0 auto 22px;
  width: 240px;
}

.wl-fan > div {
  position: absolute;
  width: 200px;
  left: 50%;
  transform-origin: center bottom;
  transition: transform 0.25s ease;
}

.wl-fan .f0 { transform: translateX(-50%) rotate(-14deg) translateY(8px); z-index: 1; }

.wl-fan .f1 { transform: translateX(-50%) rotate(0deg); z-index: 3; }

.wl-fan .f2 { transform: translateX(-50%) rotate(14deg) translateY(8px); z-index: 2; }

.wl-auth-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 750 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  text-align: center;
}

.wl-auth-hero h1 .b { color: var(--b, var(--wl-accent)); }

.wl-auth-hero .sub {
  margin: 0 0 22px;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}

.wl-auth-form { display: flex; flex-direction: column; gap: 10px; }

.wl-fld-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: -4px;
}

.wl-inp-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border2);
  border-radius: 14px;
  padding: 0 14px;
}

.wl-inp-ic { color: var(--fg-3); display: flex; }

.wl-inp {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: var(--fg);
  outline: none;
}

.wl-inp::-moz-placeholder { color: var(--fg-3); }

.wl-inp::placeholder { color: var(--fg-3); }

.wl-auth .wl-btn-primary {
  margin-top: 4px;
}

.wl-auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 4px;
}

.wl-auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 18px;
}

.wl-otp-back {
  align-self: flex-start;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 8px;
}

.wl-otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.wl-otp-box {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: 12px;
  border: 1.5px solid var(--wl-border2);
  background: var(--wl-surface);
  color: var(--fg);
  outline: none;
}

.wl-otp-box.filled {
  border-color: var(--b, var(--wl-accent));
  box-shadow: 0 0 0 3px var(--btint, rgba(14, 158, 110, 0.12));
}

.wl-otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
}

.wl-otp-resend button {
  border: none;
  background: none;
  color: var(--b, var(--wl-accent));
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.wl-otp-resend button:disabled {
  color: var(--fg-3);
  cursor: default;
}

.wl-auth-error {
  font-size: 13px;
  color: var(--rose);
  text-align: center;
  margin: 0;
}

.wl-auth-info {
  font-size: 13px;
  color: var(--wl-accent);
  text-align: center;
  margin: 8px 0 0;
  font-weight: 500;
}

/* Loading / error states */
.wl-loading,
.wl-error {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--wl-bg);
  text-align: center;
}

.wl-loading-spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--wl-border);
  border-top-color: var(--wl-accent);
  animation: spin360 0.8s linear infinite;
  margin: 0 auto 14px;
}

.wl-empty {
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  margin: 0 20px;
}

.wl-empty h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

.wl-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-2);
}

/* ── Notification & Settings panels ────────────────────────────────────── */

.wl-panel-head {
  padding: 4px 20px 14px;
}
.wl-panel-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.wl-notif-section { padding: 0 16px 8px; }

.wl-notif-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 4px 8px;
}

.wl-notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 6px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  text-align: left;
  width: 100%;
  cursor: default;
}
.wl-notif-item.accent {
  background: linear-gradient(135deg, var(--pa, var(--wl-accent)), var(--pb, var(--wl-accent)));
  border-color: transparent;
  color: var(--bink, #fff);
  cursor: pointer;
}
.wl-notif-item.accent:active { opacity: 0.88; }

.wl-ni-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wl-notif-item:not(.accent) .wl-ni-ic {
  background: var(--btint, rgba(14, 158, 110, 0.08));
  color: var(--wl-accent);
}

.wl-ni-tx { flex: 1; min-width: 0; }
.wl-ni-tx b { display: block; font-size: 13.5px; font-weight: 600; }
.wl-ni-tx span { font-size: 12px; opacity: 0.75; margin-top: 1px; display: block; }

/* Settings panel */
.wl-settings-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px 20px;
}

.wl-settings-info { min-width: 0; }

.wl-settings-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.wl-settings-sub {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 2px;
}

.wl-settings-section {
  padding: 0 16px 12px;
}

.wl-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 12px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin-bottom: 6px;
}
.wl-settings-row.plain {
  cursor: default;
  color: var(--fg-2);
  font-weight: 400;
}
.wl-settings-row.plain svg { color: var(--wl-accent); }
.wl-settings-row.destructive { color: #e11d48; border-color: rgba(225, 29, 72, 0.15); }
.wl-settings-row.destructive:active { background: rgba(225, 29, 72, 0.04); }

.wl-settings-foot {
  padding: 20px 20px 4px;
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 5px;
}
