:root {
  --bw-primary: #573cfb;
  --bw-primary-dark: #2c25b4;
  --bw-primary-rgb: 87, 60, 251;
  --bw-body: #f0f2f5;
  --bw-card: #ffffff;
  --bw-text: #212529;
  --bw-muted: rgba(0, 0, 0, 0.5);
  --bw-border: #eeeeee;
  --bw-success: #22c55e;
  --bw-danger: #ef4444;
  --bw-warning: #f59e0b;
  --bw-radius: 10px;
  --bw-radius-lg: 16px;
  --bw-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.04);
  --bw-header-h: 52px;
  --bw-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bw-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bs-primary: var(--bw-primary);
  --bs-primary-rgb: var(--bw-primary-rgb);
}

[data-theme="theme-purple"] { --bw-primary:#7c3aed; --bw-primary-dark:#4e17a6; --bw-primary-rgb:124,58,237; --bw-body:#f6f6f6; }
[data-theme="theme-indigo"] { --bw-primary:#573cfb; --bw-primary-dark:#2c25b4; --bw-primary-rgb:87,60,251; --bw-body:#f0f2f5; }
[data-theme="theme-sky"] { --bw-primary:#1966d2; --bw-primary-dark:#17379d; --bw-primary-rgb:25,102,210; --bw-body:#f4f5f5; }
[data-theme="theme-emerald"] { --bw-primary:#16a34a; --bw-primary-dark:#149443; --bw-primary-rgb:22,163,74; --bw-body:#f3f3f3; }
[data-theme="theme-rose"] { --bw-primary:#f43f5e; --bw-primary-dark:#b40e37; --bw-primary-rgb:244,63,94; --bw-body:#f3f3f3; }
[data-theme="theme-orange"] { --bw-primary:#fa8738; --bw-primary-dark:#de5c00; --bw-primary-rgb:250,135,56; --bw-body:#f3f1ed; }
[data-theme="theme-slate"] { --bw-primary:#475569; --bw-primary-dark:#1e293b; --bw-primary-rgb:71,85,105; --bw-body:#f0f3f6; }

[data-bs-theme="dark"] {
  --bw-body: #000000;
  --bw-card: #111111;
  --bw-text: #f3f4f6;
  --bw-muted: rgba(255,255,255,.55);
  --bw-border: #ffffff1a;
  --bw-shadow: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--bw-font);
  font-size: 16px;
  color: var(--bw-text);
  background: var(--bw-body);
}

a { color: var(--bw-primary); text-decoration: none; }
a:hover { color: var(--bw-primary-dark); }

.bw-app { min-height: 100vh; display: flex; flex-direction: column; max-width: 100%; overflow-x: clip; }

.bw-sandbox-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; background: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d;
  font-size: 13px; font-weight: 600; position: sticky; top: 0; z-index: 41;
}
.bw-sandbox-bar a { color: #92400e; font-weight: 700; text-decoration: underline; }
.bw-sandbox-bar a:hover { color: #78350f; }
.bw-sandbox-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  padding: 5px 10px; border-radius: 999px; background: #fef3c7; color: #92400e;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #fcd34d; white-space: nowrap;
}
[data-bs-theme="dark"] .bw-sandbox-bar,
[data-bs-theme="dark"] .bw-sandbox-pill {
  background: #451a03; color: #fcd34d; border-color: #92400e;
}
[data-bs-theme="dark"] .bw-sandbox-bar a { color: #fde68a; }

.bw-env-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 10px;
  padding: 3px; border-radius: 999px; background: #f4f5f6; border: 1px solid var(--bw-border);
}
.bw-env-switch-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--bw-muted); text-decoration: none; white-space: nowrap; line-height: 1;
}
.bw-env-switch-btn i { font-size: 13px; }
.bw-env-switch-btn:hover { color: var(--bw-text); text-decoration: none; }
.bw-env-switch-btn.is-active {
  background: #fff; color: var(--bw-text); box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.bw-env-switch-btn.is-active.is-sandbox { background: #fef3c7; color: #92400e; }
.bw-env-switch-btn.is-active.is-live { background: #dcfce7; color: #166534; }
[data-bs-theme="dark"] .bw-env-switch { background: #1a1a1a; }
[data-bs-theme="dark"] .bw-env-switch-btn.is-active { background: #262626; color: #fff; }
[data-bs-theme="dark"] .bw-env-switch-btn.is-active.is-sandbox { background: #451a03; color: #fcd34d; }
[data-bs-theme="dark"] .bw-env-switch-btn.is-active.is-live { background: #14532d; color: #bbf7d0; }

.bw-header {
  height: var(--bw-header-h);
  background: var(--bw-card);
  border-bottom: 1px solid var(--bw-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.bw-header .logo-mark {
  width: auto; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px;
  background: var(--bw-primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 11px; letter-spacing: -.02em;
  flex-shrink: 0;
}
.bw-brand-link {
  display: flex; align-items: center; gap: 10px;
  margin-left: 4px; color: inherit; text-decoration: none;
}
.bw-brand-link:hover { color: inherit; text-decoration: none; }
.brand-logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}
.bw-brand-link .brand-logo-img { height: 28px; }
.lp-brand .brand-logo-img { height: 28px; }
.embed-brand .brand-logo-img { height: 22px; }
.brand-logo-auto .brand-logo-img--on-dark,
.brand-logo-auto .brand-logo-text--on-dark { display: none; }
[data-bs-theme="dark"] .brand-logo-auto .brand-logo-img--on-light,
[data-bs-theme="dark"] .brand-logo-auto .brand-logo-text--on-light { display: none; }
[data-bs-theme="dark"] .brand-logo-auto .brand-logo-img--on-dark,
[data-bs-theme="dark"] .brand-logo-auto .brand-logo-text--on-dark { display: inline; }
[data-bs-theme="dark"] .brand-logo-auto .brand-logo-img--on-dark { display: block; }
.bw-brand-text {
  font-size: 14px; font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .bw-brand-text { display: none; }
}
.bw-header .icon-btn {
  width: 36px; height: 36px; border: 0; background: transparent; color: var(--bw-text);
  border-radius: 10px; display: grid; place-items: center;
}
.bw-header .icon-btn:hover { background: rgba(var(--bw-primary-rgb), .08); color: var(--bw-primary); }
.bw-header .dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  background: #facc15; border-radius: 50%;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, #c4b5fd, #818cf8);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-row { display: flex; gap: 8px; padding: 10px 24px; overflow: auto; }
.avatar-row .avatar { filter: grayscale(.3); opacity: .85; }

.bw-shell { display: flex; flex: 1; min-height: 0; align-items: stretch; }
.bw-sidebar {
  width: 272px;
  background: var(--bw-card);
  border-right: 1px solid var(--bw-border);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--bw-header-h));
  position: sticky;
  top: var(--bw-header-h);
  max-height: calc(100vh - var(--bw-header-h));
  overflow: hidden;
}
.bw-sidebar-top {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--bw-border);
  flex-shrink: 0;
}
.bw-sidebar-portal { margin-bottom: 12px; }
.bw-portal-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(var(--bw-primary-rgb), .1);
  color: var(--bw-primary);
}
.bw-portal-pill.portal-merchant {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}
.bw-portal-pill.portal-staff {
  background: rgba(15, 23, 42, .08);
  color: #334155;
}
[data-bs-theme="dark"] .bw-portal-pill.portal-staff {
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
}
.bw-sidebar-user {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.bw-sidebar-user-meta {
  min-width: 0; display: flex; flex-direction: column; gap: 1px;
}
.bw-sidebar-user-meta strong {
  font-size: 13px; font-weight: 700; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bw-sidebar-user-meta .muted {
  font-size: 11px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bw-side-nav {
  flex: 1;
  overflow: auto;
  padding: 10px 10px 8px;
  scrollbar-width: thin;
}
.bw-nav-group + .bw-nav-group { margin-top: 10px; }
.bw-sidebar .nav-label {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bw-muted); padding: 6px 10px 6px;
  font-weight: 700;
}
.bw-nav-items { display: flex; flex-direction: column; gap: 2px; }
.bw-sidebar a.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px;
  color: var(--bw-text); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  position: relative;
}
.bw-sidebar a.nav-link .nav-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0,0,0,.04);
  color: var(--bw-muted);
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
[data-bs-theme="dark"] .bw-sidebar a.nav-link .nav-ico {
  background: rgba(255,255,255,.06);
}
.bw-sidebar a.nav-link .nav-txt {
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bw-sidebar a.nav-link .nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-grid; place-items: center; line-height: 1; flex-shrink: 0;
}
.bw-sidebar a.nav-link.active .nav-badge { background: #fff; color: #ef4444; }
.bw-sidebar a.nav-link:hover {
  background: rgba(var(--bw-primary-rgb), .07);
  color: var(--bw-text);
  text-decoration: none;
}
.bw-sidebar a.nav-link:hover .nav-ico {
  background: rgba(var(--bw-primary-rgb), .12);
  color: var(--bw-primary);
}
.bw-sidebar a.nav-link.active {
  background: rgba(var(--bw-primary-rgb), .12);
  color: var(--bw-primary);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--bw-primary);
}
.bw-sidebar a.nav-link.active .nav-ico {
  background: var(--bw-primary);
  color: #fff;
}

.bw-sidebar-foot {
  flex-shrink: 0;
  padding: 10px 10px 14px;
  border-top: 1px solid var(--bw-border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.015));
}
.bw-signout {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--bw-border);
  background: transparent;
  color: var(--bw-text);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bw-signout .nav-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(239, 68, 68, .08);
  color: #dc2626;
  font-size: 14px;
}
.bw-signout:hover {
  background: rgba(239, 68, 68, .06);
  border-color: rgba(239, 68, 68, .25);
  color: #b91c1c;
}

/* Customer / merchant CodePen-style rail (staff keeps default sidebar) */
.bw-sidebar--rail {
  width: 256px;
  margin: 12px 0 12px 12px;
  border: 1px solid var(--bw-border);
  border-right: 1px solid var(--bw-border);
  border-radius: 16px;
  background: var(--bw-card);
  box-shadow: var(--bw-shadow);
  overflow: hidden;
  min-height: calc(100vh - var(--bw-header-h) - 24px);
  max-height: calc(100vh - var(--bw-header-h) - 24px);
  top: calc(var(--bw-header-h) + 12px);
  transition: width 0.2s ease, transform 0.22s ease;
}
.bw-sidebar--rail .bw-sidebar-top {
  padding: 14px 12px 12px;
}
.bw-sidebar--rail .bw-sidebar-portal { margin-bottom: 10px; }
.bw-sidebar--rail .bw-side-nav { padding: 10px 8px; }
.bw-sidebar--rail .bw-nav-group { margin-bottom: 10px; }
.bw-sidebar--rail .nav-label {
  padding: 4px 10px 6px;
  letter-spacing: 0.08em;
}
.bw-sidebar--rail a.nav-link {
  margin: 2px 0;
  padding: 10px 12px;
  color: var(--bw-muted);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.bw-sidebar--rail a.nav-link .nav-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 16px;
}
[data-bs-theme="dark"] .bw-sidebar--rail a.nav-link .nav-ico {
  background: transparent;
}
.bw-sidebar--rail a.nav-link:hover {
  color: var(--bw-text);
  background: rgba(var(--bw-primary-rgb), 0.08);
}
.bw-sidebar--rail a.nav-link:hover .nav-ico {
  background: transparent;
  color: var(--bw-primary);
}
.bw-sidebar--rail a.nav-link.active {
  color: #fff;
  background: var(--bw-primary);
  font-weight: 600;
  box-shadow: none;
}
.bw-sidebar--rail a.nav-link.active .nav-ico {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.bw-sidebar--rail a.nav-link .nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 800;
}
.bw-sidebar--rail .bw-sidebar-foot {
  margin-top: auto;
  padding: 10px 8px 12px;
  background: transparent;
}
.bw-sidebar--rail .bw-signout {
  border: 0;
  padding: 10px 12px;
  color: var(--bw-muted);
  font-size: 13px;
}
.bw-sidebar--rail .bw-signout .nav-ico {
  width: 28px;
  height: 28px;
  background: transparent;
  color: inherit;
  font-size: 16px;
}
.bw-sidebar--rail .bw-signout:hover {
  color: var(--bw-text);
  background: rgba(239, 68, 68, 0.08);
  border-color: transparent;
}

/* Rail slim: 768–991px — icons only, in-flow */
@media (max-width: 991px) and (min-width: 768px) {
  .bw-sidebar--rail {
    display: flex;
    position: sticky;
    z-index: 1;
    top: calc(var(--bw-header-h) + 12px);
    left: auto;
    width: 76px;
    height: auto;
    margin: 12px 0 12px 10px;
    min-height: calc(100vh - var(--bw-header-h) - 24px);
    max-height: calc(100vh - var(--bw-header-h) - 24px);
    box-shadow: var(--bw-shadow);
    transform: none;
  }
  .bw-sidebar--rail .bw-sidebar-user-meta,
  .bw-sidebar--rail .nav-label,
  .bw-sidebar--rail a.nav-link .nav-txt,
  .bw-sidebar--rail .bw-signout > span:not(.nav-ico),
  .bw-sidebar--rail .bw-portal-pill {
    display: none;
  }
  .bw-sidebar--rail .bw-sidebar-user { justify-content: center; }
  .bw-sidebar--rail a.nav-link,
  .bw-sidebar--rail .bw-signout {
    justify-content: center;
    padding: 10px;
  }
  .bw-sidebar--rail a.nav-link { position: relative; }
  .bw-sidebar--rail a.nav-link .nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin: 0;
  }
}

/* Rail mobile: <768px — off-canvas slide */
@media (max-width: 767px) {
  .bw-sidebar--rail {
    display: flex;
    position: fixed;
    z-index: 50;
    top: calc(var(--bw-header-h) + 8px);
    left: 0;
    width: min(288px, 88vw);
    height: calc(100% - var(--bw-header-h) - 16px);
    margin: 0;
    min-height: calc(100% - var(--bw-header-h) - 16px);
    max-height: calc(100% - var(--bw-header-h) - 16px);
    border-radius: 0 16px 16px 0;
    transform: translateX(-110%);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
    pointer-events: none;
  }
  .bw-sidebar--rail.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .bw-sidebar--rail .bw-sidebar-user-meta,
  .bw-sidebar--rail .nav-label,
  .bw-sidebar--rail a.nav-link .nav-txt,
  .bw-sidebar--rail .bw-signout > span:not(.nav-ico),
  .bw-sidebar--rail .bw-portal-pill {
    display: revert;
  }
  .bw-sidebar--rail a.nav-link,
  .bw-sidebar--rail .bw-signout {
    justify-content: flex-start;
    padding: 10px 12px;
  }
}

.logout-confirm-panel .logout-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.logout-confirm-panel .logout-confirm-actions .btn {
  width: 100%;
  margin-top: 0;
  border-radius: 999px;
}
.logout-confirm-panel .logout-confirm-actions .btn-danger {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.logout-confirm-panel .logout-confirm-actions .btn-danger:hover,
.logout-confirm-panel .logout-confirm-actions .btn-danger:focus {
  background: #991b1b;
  border-color: #991b1b;
  color: #fff;
}
.logout-confirm-panel .rd-alert-icon {
  background: #fff7ed;
  color: #ea580c;
}
[data-bs-theme="dark"] .logout-confirm-panel .rd-alert-icon {
  background: rgba(234, 88, 12, 0.15);
  color: #fb923c;
}
@media (max-width: 420px) {
  .logout-confirm-panel .logout-confirm-actions {
    grid-template-columns: 1fr;
  }
}

.bw-main { flex: 1; padding: 8px 24px 40px; min-width: 0; max-width: 100%; overflow-x: clip; display: flex; flex-direction: column; }

.page-head h1 { font-size: 28px; font-weight: 700; margin: 12px 0 0; }
.page-head p { color: var(--bw-muted); margin: 4px 0 16px; }
.date-pill {
  border: 1px solid var(--bw-border); background: var(--bw-card);
  border-radius: 999px; padding: 8px 16px; width: 100%; color: var(--bw-muted);
}
.icon-group { display: flex; border: 1px solid var(--bw-border); border-radius: 10px; overflow: hidden; background: var(--bw-card); }
.icon-group button, .icon-group a {
  width: 42px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--bw-primary);
}

.card {
  background: var(--bw-card);
  border: 1px solid var(--bw-border);
  border-bottom-width: 3px;
  border-radius: var(--bw-radius-lg);
  box-shadow: var(--bw-shadow);
  position: relative;
  margin-top: 22px;
}
.card .card-title {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.03); width: calc(100% - 56px); height: 20px;
  font-size: 12px; font-weight: 600; text-align: center; border-radius: 6px 6px 0 0;
  display: flex; align-items: center; justify-content: center; color: var(--bw-text);
}
[data-bs-theme="dark"] .card .card-title { background: #1a1a1a; }
.card-body { padding: 24px 20px 20px; }
.card.primary { border-color: var(--bw-primary); }
.card.primary > .card-title { background: var(--bw-primary); color: #fff; }

.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.qa-item {
  background: rgba(0,0,0,.03); border-radius: 16px; padding: 16px 8px;
  text-align: center; color: var(--bw-text); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.qa-item:hover { background: rgba(var(--bw-primary-rgb), .1); color: var(--bw-primary); }
.qa-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; color: var(--bw-primary); font-size: 20px;
}
.qa-item span { font-size: 12px; font-weight: 500; }
.qa-item.tint { background: rgba(var(--bw-primary-rgb), .1); }

.promo-banner {
  background: var(--bw-primary); color: #fff; border-radius: 20px; padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px;
}
.promo-banner h3 { margin: 0; font-size: 22px; }
.btn-light-pill { background: #fff; color: var(--bw-primary); border: 0; border-radius: 10px; padding: 8px 16px; font-weight: 600; }

/* Customer dashboard */
.bw-main--flush { padding-top: 20px; }

.cd-home {
  --cd-ink: #0f172a;
  --cd-ink-soft: #334155;
  --cd-surface: rgba(255, 255, 255, 0.72);
  --cd-line: rgba(15, 23, 42, 0.08);
  max-width: 720px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", var(--bw-font);
}

[data-bs-theme="dark"] .cd-home {
  --cd-ink: #f8fafc;
  --cd-ink-soft: #cbd5e1;
  --cd-surface: rgba(17, 17, 17, 0.78);
  --cd-line: rgba(255, 255, 255, 0.1);
}

.cd-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  animation: cd-rise 0.45s ease both;
}
.cd-alert--info {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border-color: #bfdbfe;
  color: #1e3a8a;
}
.cd-alert--warn {
  background: linear-gradient(135deg, #fffbeb, #fafaf9);
  border-color: #fcd34d;
  color: #92400e;
}
.cd-alert--gift {
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
  border-color: #86efac;
  color: #14532d;
  flex-direction: column;
  align-items: stretch;
}
.cd-alert-copy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.cd-alert-copy i { font-size: 18px; margin-top: 2px; opacity: 0.9; }
.cd-alert-copy strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.cd-alert-copy p { margin: 0; font-size: 13px; line-height: 1.45; opacity: 0.88; }
.cd-alert-link {
  font-size: 13px;
  font-weight: 700;
  align-self: flex-end;
}
.cd-gift-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cd-gift-strip li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(22, 163, 74, 0.16);
}
.cd-gift-amt { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
[data-bs-theme="dark"] .cd-alert--info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(147, 197, 253, 0.25);
  color: #bfdbfe;
}
[data-bs-theme="dark"] .cd-alert--warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(252, 211, 77, 0.28);
  color: #fde68a;
}
[data-bs-theme="dark"] .cd-alert--gift {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(134, 239, 172, 0.22);
  color: #bbf7d0;
}
[data-bs-theme="dark"] .cd-gift-strip li {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(134, 239, 172, 0.18);
}

.cd-balance-stage {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 22px;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 36px) 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 70% at 90% -10%, rgba(87, 60, 251, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(25, 102, 210, 0.28), transparent 50%),
    linear-gradient(160deg, #121826 0%, #0b1220 48%, #0a0f1a 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  animation: cd-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cd-balance-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
  animation: cd-drift 8s ease-in-out infinite alternate;
}
.cd-greeting {
  position: relative;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.cd-kicker {
  position: relative;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.cd-balance {
  position: relative;
  margin: 0;
  max-width: 100%;
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cd-cap {
  position: relative;
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(253, 230, 138, 0.95);
}
.cd-chips {
  position: relative;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cd-chips li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.cd-chips span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.cd-chips strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cd-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.18s ease;
}
.cd-btn--solid {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.cd-btn--solid:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}
.cd-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(8px);
}
.cd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  transform: translateY(-1px);
}

.cd-activity {
  background: var(--cd-surface);
  border: 1px solid var(--cd-line);
  border-radius: 22px;
  padding: 6px 8px 8px;
  backdrop-filter: blur(12px);
  animation: cd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}
.cd-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 8px;
}
.cd-activity-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--cd-ink);
}
.cd-activity-head a {
  font-size: 13px;
  font-weight: 700;
}

.cd-tx-list { list-style: none; margin: 0; padding: 0; }
.cd-tx-list li {
  border-top: 1px solid var(--cd-line);
  animation: cd-rise 0.45s ease both;
  animation-delay: calc(0.08s + (var(--cd-i, 0) * 0.04s));
}
.cd-tx-list li:first-child { border-top: 0; }
.cd-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 12px;
  color: inherit;
  border-radius: 14px;
  transition: background 0.15s ease;
}
.cd-tx:hover {
  color: inherit;
  background: rgba(var(--bw-primary-rgb), 0.05);
}
.cd-tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--bw-primary-rgb), 0.08);
  color: var(--bw-primary);
  font-size: 16px;
}
[data-bs-theme="dark"] .cd-tx-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #c4b5fd;
}
.cd-tx-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-tx-body strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--cd-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-tx-body .muted {
  font-size: 12px;
  color: var(--cd-ink-soft);
  opacity: 0.75;
}
.cd-tx-amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.cd-tx-amount.is-credit { color: #15803d; }
.cd-tx-amount.is-debit { color: #b91c1c; }
[data-bs-theme="dark"] .cd-tx-amount.is-credit { color: #4ade80; }
[data-bs-theme="dark"] .cd-tx-amount.is-debit { color: #f87171; }

.cd-empty {
  text-align: center;
  padding: 40px 20px 32px;
  color: var(--cd-ink-soft);
  position: relative;
}
.cd-empty-orb {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(145deg, rgba(var(--bw-primary-rgb), 0.35), rgba(var(--bw-primary-rgb), 0.08));
  animation: cd-drift 5s ease-in-out infinite alternate;
}
.cd-empty p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 36ch;
  margin-inline: auto;
}

@keyframes cd-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cd-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-12px, -8px) scale(1.06); }
}

@media (max-width: 767px) {
  .cd-balance-stage { padding: 24px 18px 22px; border-radius: 22px; box-shadow: none; }
  .cd-balance-glow { display: none; }
  .cd-balance { font-size: clamp(30px, 8.5vw, 44px); }
  .cd-cta { flex-direction: column; align-items: stretch; }
  .cd-btn { width: 100%; }
  .cd-chips li { max-width: 100%; }
  .cd-tx { min-width: 0; }
  .cd-tx-amount { font-size: 13px; }
}

@media (max-width: 560px) {
  .cd-balance-stage { padding: 24px 18px 22px; border-radius: 22px; }
}

/* Customer rewards */
.rw-home {
  --rw-ink: #0f172a;
  --rw-ink-soft: #334155;
  --rw-surface: rgba(255, 255, 255, 0.72);
  --rw-line: rgba(15, 23, 42, 0.08);
  max-width: 720px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", var(--bw-font);
}
[data-bs-theme="dark"] .rw-home {
  --rw-ink: #f8fafc;
  --rw-ink-soft: #cbd5e1;
  --rw-surface: rgba(17, 17, 17, 0.78);
  --rw-line: rgba(255, 255, 255, 0.1);
}

.rw-stage {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 22px;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 36px) 26px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 75% 65% at 100% -20%, rgba(250, 204, 21, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 50% at -10% 110%, rgba(87, 60, 251, 0.35), transparent 50%),
    linear-gradient(160deg, #1a1528 0%, #0f1220 50%, #0a0f1a 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  animation: cd-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rw-stage-glow {
  position: absolute;
  inset: auto auto -35% -15%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.16), transparent 68%);
  pointer-events: none;
  animation: cd-drift 8s ease-in-out infinite alternate;
}
.rw-kicker {
  position: relative;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.rw-balance {
  position: relative;
  margin: 0;
  max-width: 100%;
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rw-meta {
  position: relative;
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}
.rw-progress {
  position: relative;
  margin-top: 22px;
}
.rw-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.rw-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fde68a, #fbbf24 55%, #f59e0b);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.rw-progress-copy {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.rw-cta {
  position: relative;
  margin-top: 22px;
}
.rw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.15s ease;
}
.rw-btn:hover:not(.is-disabled):not(:disabled) {
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}
.rw-btn.is-disabled,
.rw-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.rw-footnote {
  position: relative;
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.rw-how {
  background: var(--rw-surface);
  border: 1px solid var(--rw-line);
  border-radius: 22px;
  padding: 18px 16px 14px;
  animation: cd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}
.rw-how h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--rw-ink);
}
.rw-how ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rw-how li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--rw-ink);
  line-height: 1.35;
}
[data-bs-theme="dark"] .rw-how li { background: rgba(255, 255, 255, 0.04); }
.rw-how-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(234, 179, 8, 0.14);
  color: #ca8a04;
  font-size: 15px;
}

.rw-history {
  background: var(--rw-surface);
  border: 1px solid var(--rw-line);
  border-radius: 22px;
  padding: 6px 8px 8px;
  backdrop-filter: blur(12px);
  animation: cd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}
.rw-history-head {
  padding: 14px 12px 8px;
}
.rw-history-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--rw-ink);
}
.rw-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rw-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-top: 1px solid var(--rw-line);
  animation: cd-rise 0.45s ease both;
  animation-delay: calc(0.08s + (var(--rw-i, 0) * 0.04s));
}
.rw-list li:first-child { border-top: 0; }
.rw-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  font-size: 16px;
}
[data-bs-theme="dark"] .rw-list-icon {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.rw-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rw-list-body strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--rw-ink);
}
.rw-list-body .muted {
  font-size: 12px;
  color: var(--rw-ink-soft);
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rw-list-amount {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #15803d;
  white-space: nowrap;
}
[data-bs-theme="dark"] .rw-list-amount { color: #4ade80; }

.rw-empty {
  text-align: center;
  padding: 40px 20px 32px;
  color: var(--rw-ink-soft);
}
.rw-empty-orb {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(145deg, rgba(245, 158, 11, 0.4), rgba(87, 60, 251, 0.12));
  animation: cd-drift 5s ease-in-out infinite alternate;
}
.rw-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 36ch;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .rw-stage { padding: 24px 18px 22px; border-radius: 22px; box-shadow: none; }
  .rw-stage-glow { display: none; }
  .rw-balance { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .rw-btn { max-width: none; width: 100%; }
}

@media (max-width: 560px) {
  .rw-stage { padding: 24px 18px 22px; border-radius: 22px; }
  .rw-btn { max-width: none; }
}

/* Add funds */
.af-home {
  --af-ink: #0f172a;
  --af-muted: #64748b;
  --af-line: rgba(15, 23, 42, 0.08);
  --af-surface: #fff;
  max-width: 560px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", var(--bw-font);
}
[data-bs-theme="dark"] .af-home {
  --af-ink: #f8fafc;
  --af-muted: #94a3b8;
  --af-line: rgba(255, 255, 255, 0.1);
  --af-surface: #111;
}

.af-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--af-muted);
}
.af-back:hover { color: var(--af-ink); }

.af-stage {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 26px 24px 22px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(34, 197, 94, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(87, 60, 251, 0.32), transparent 50%),
    linear-gradient(155deg, #102016 0%, #0f172a 48%, #0a1020 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  animation: cd-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.af-stage-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  animation: cd-drift 8s ease-in-out infinite alternate;
}
.af-kicker {
  position: relative;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.af-title {
  position: relative;
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.af-lead {
  position: relative;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  max-width: 38ch;
}
.af-balance-chip {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.af-balance-chip strong {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.af-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 13px;
}
[data-bs-theme="dark"] .af-alert {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(252, 211, 77, 0.3);
  color: #fde68a;
}

.af-panel {
  background: var(--af-surface);
  border: 1px solid var(--af-line);
  border-radius: 22px;
  padding: 20px 18px 18px;
  animation: cd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.af-section { margin-bottom: 22px; }
.af-section-head h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--af-ink);
}
.af-section-head p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--af-muted);
}

.af-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.af-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 14px;
  border: 1px solid var(--af-line);
  background: transparent;
  color: var(--af-ink);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.af-preset:hover {
  border-color: rgba(var(--bw-primary-rgb), 0.4);
  transform: translateY(-1px);
}
.af-preset.is-active {
  border-color: transparent;
  background: rgba(var(--bw-primary-rgb), 0.1);
  box-shadow: inset 0 0 0 2px var(--bw-primary);
}
.af-preset-eur {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.af-preset-wp {
  font-size: 11px;
  font-weight: 600;
  color: var(--af-muted);
}

.af-amount-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--af-ink);
}
.af-amount-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--af-line);
  border-radius: 16px;
  padding: 4px 14px;
  background: rgba(15, 23, 42, 0.02);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.af-amount-wrap:focus-within {
  border-color: rgba(var(--bw-primary-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--bw-primary-rgb), 0.12);
}
[data-bs-theme="dark"] .af-amount-wrap { background: rgba(255, 255, 255, 0.03); }
.af-amount-prefix {
  font-size: 22px;
  font-weight: 800;
  color: var(--af-muted);
}
.af-amount-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--af-ink);
  font-family: inherit;
  outline: none;
}
.af-you-get {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
}
[data-bs-theme="dark"] .af-you-get { color: #4ade80; }

.af-methods {
  display: grid;
  gap: 10px;
}
.af-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--af-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.af-method:hover {
  color: inherit;
  border-color: rgba(var(--bw-primary-rgb), 0.35);
}
.af-method.is-active {
  border-color: transparent;
  background: rgba(var(--bw-primary-rgb), 0.08);
  box-shadow: inset 0 0 0 2px var(--bw-primary);
}
.af-method--link { text-decoration: none; }
.af-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--bw-primary-rgb), 0.1);
  color: var(--bw-primary);
  font-size: 20px;
}
.af-method-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.af-method-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--af-ink);
}
.af-method-copy span {
  font-size: 12px;
  color: var(--af-muted);
  line-height: 1.35;
}
.af-method-check {
  color: var(--bw-primary);
  font-size: 18px;
}
.af-method-arrow {
  color: var(--af-muted);
  font-size: 14px;
}

.af-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  background: var(--bw-primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(var(--bw-primary-rgb), 0.28);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, background 0.15s;
  text-decoration: none;
}
.af-submit:hover:not(:disabled) {
  color: #fff;
  background: var(--bw-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(var(--bw-primary-rgb), 0.34);
}
.af-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.af-submit--link { margin-top: 0; }
.af-trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--af-muted);
}
.af-trust i { margin-top: 1px; flex: none; }

.af-stage--redeem {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(87, 60, 251, 0.38), transparent 55%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(25, 102, 210, 0.28), transparent 50%),
    linear-gradient(155deg, #14122a 0%, #0f172a 48%, #0a1020 100%);
}

.af-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.af-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--af-muted);
}
.af-steps span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--bw-primary);
  background: rgba(var(--bw-primary-rgb), 0.12);
}

.af-code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--af-line);
  border-radius: 16px;
  padding: 4px 14px 4px 12px;
  background: rgba(15, 23, 42, 0.02);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.af-code-wrap:focus-within {
  border-color: rgba(var(--bw-primary-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--bw-primary-rgb), 0.12);
}
[data-bs-theme="dark"] .af-code-wrap { background: rgba(255, 255, 255, 0.03); }
.af-code-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--bw-primary-rgb), 0.1);
  color: var(--bw-primary);
  font-size: 16px;
}
.af-code-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--af-ink);
  font-family: var(--bw-mono), inherit;
  outline: none;
}
.af-field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--af-muted);
}

.af-submit i { font-size: 16px; }

.rd-alert-panel { text-align: center; padding-top: 32px; }
.rd-alert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.rd-alert-icon--warn { background: #fff7ed; color: #ea580c; }
.rd-alert-icon--info { background: #eff6ff; color: #2563eb; }
.rd-alert-icon--error { background: #fef2f2; color: #dc2626; }
.rd-alert-icon--success { background: #ecfdf5; color: #059669; }
.rd-alert-panel .ms-modal-title { margin: 0 0 10px; font-size: 22px; }
.rd-alert-panel .ms-modal-lead { margin: 0 0 22px; font-size: 15px; line-height: 1.55; }
.rd-alert-panel .btn-lg {
  width: 100%;
  border-radius: 999px;
  background: var(--bw-primary);
  color: #fff;
}
.rd-alert-panel .btn-lg:hover { background: var(--bw-primary-dark); color: #fff; }
[data-bs-theme="dark"] .ms-modal-panel {
  background: #111;
  color: #f8fafc;
}
[data-bs-theme="dark"] .ms-modal-title { color: #f8fafc; }
[data-bs-theme="dark"] .ms-modal-lead { color: #94a3b8; }
[data-bs-theme="dark"] .ms-modal-close { background: #1f1f1f; color: #f8fafc; }
[data-bs-theme="dark"] .rd-alert-icon--warn { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
[data-bs-theme="dark"] .rd-alert-icon--info { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
[data-bs-theme="dark"] .rd-alert-icon--error { background: rgba(220, 38, 38, 0.15); color: #f87171; }
[data-bs-theme="dark"] .rd-alert-icon--success { background: rgba(5, 150, 105, 0.18); color: #34d399; }

body.modal-open { overflow: hidden; }

@media (max-width: 767px) {
  .af-stage { box-shadow: none; }
  .af-stage-glow { display: none; }
}

@media (max-width: 560px) {
  .af-home { max-width: none; }
  .af-back { margin-bottom: 10px; font-size: 12px; }
  .af-stage {
    padding: 14px 14px 12px;
    border-radius: 16px;
    margin-bottom: 10px;
  }
  .af-stage-glow { display: none; }
  .af-kicker { margin-bottom: 4px; font-size: 10px; }
  .af-title { font-size: 18px; line-height: 1.25; }
  .af-lead { display: none; }
  .af-balance-chip {
    margin-top: 10px;
    padding: 6px 10px;
    gap: 8px;
    font-size: 11px;
  }
  .af-balance-chip strong { font-size: 13px; }
  .af-panel { padding: 12px 12px 14px; border-radius: 16px; }
  .af-section { margin-bottom: 14px; }
  .af-section-head h2 { font-size: 13px; margin-bottom: 2px; }
  .af-section-head p { margin-bottom: 10px; font-size: 12px; }
  .af-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .af-preset { padding: 8px 6px; border-radius: 12px; }
  .af-preset-eur { font-size: 13px; }
  .af-preset-wp { font-size: 10px; }
  .af-amount-label { margin-top: 10px; font-size: 12px; }
  .af-amount-wrap { border-radius: 12px; padding: 2px 10px; }
  .af-amount-prefix { font-size: 18px; }
  .af-amount-input { font-size: 22px; padding: 8px 4px; }
  .af-you-get { margin-top: 6px; font-size: 12px; }
  .af-methods { gap: 8px; }
  .af-method { padding: 10px; border-radius: 12px; gap: 10px; }
  .af-method-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
  .af-method-copy strong { font-size: 13px; }
  .af-method-copy span { font-size: 11px; }
  .af-submit { margin-top: 12px; padding: 12px 16px; font-size: 14px; }
  .af-trust { margin-top: 10px; font-size: 11px; }
  .af-code-input { font-size: 16px; }
}

/* Gifts */
.gf-home {
  --gf-ink: #0f172a;
  --gf-muted: #64748b;
  --gf-line: rgba(15, 23, 42, 0.08);
  --gf-surface: #fff;
  max-width: 560px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", var(--bw-font);
}
[data-bs-theme="dark"] .gf-home {
  --gf-ink: #f8fafc;
  --gf-muted: #94a3b8;
  --gf-line: rgba(255, 255, 255, 0.1);
  --gf-surface: #111;
}

.gf-stage {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 26px 24px 22px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(244, 63, 94, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(87, 60, 251, 0.3), transparent 50%),
    linear-gradient(155deg, #1f1220 0%, #0f172a 50%, #0a1020 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  animation: cd-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gf-stage-glow {
  position: absolute;
  inset: auto -18% -40% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  animation: cd-drift 8s ease-in-out infinite alternate;
}
.gf-kicker {
  position: relative;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.gf-title {
  position: relative;
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.gf-lead {
  position: relative;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  max-width: 40ch;
}
.gf-balance-chip {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.gf-balance-chip strong { font-size: 14px; font-weight: 800; color: #fff; }

.gf-claim {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
  border: 1px solid #86efac;
  color: #14532d;
  animation: cd-rise 0.45s ease both;
}
[data-bs-theme="dark"] .gf-claim {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(134, 239, 172, 0.22);
  color: #bbf7d0;
}
.gf-claim-head h2 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.gf-claim-head p { margin: 0 0 12px; font-size: 13px; opacity: 0.9; }
.gf-claim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gf-claim-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(22, 163, 74, 0.16);
}
[data-bs-theme="dark"] .gf-claim-list li { background: rgba(0, 0, 0, 0.25); }
.gf-claim-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gf-claim-meta strong { font-size: 18px; font-weight: 800; }
.gf-claim-msg { font-size: 12px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36ch; }

.gf-panel {
  background: var(--gf-surface);
  border: 1px solid var(--gf-line);
  border-radius: 22px;
  padding: 20px 18px 18px;
  margin-bottom: 16px;
  animation: cd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  scroll-margin-top: 24px;
}
.gf-panel--flip {
  margin-bottom: 0;
  animation: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 20px 18px 18px;
}
.gf-section-head h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--gf-ink); }
.gf-section-head p { margin: 0 0 16px; font-size: 13px; color: var(--gf-muted); line-height: 1.45; }
.gf-section-head--tight { margin-top: 8px; }
.gf-section-head--tight p { margin-bottom: 12px; }

.gf-fields { display: grid; gap: 12px; margin-bottom: 18px; }
.gf-field { display: flex; flex-direction: column; gap: 6px; }
.gf-label { font-size: 13px; font-weight: 700; color: var(--gf-ink); }
.gf-optional { font-weight: 500; color: var(--gf-muted); }
.gf-input {
  width: 100%; min-height: 44px; border: 1px solid var(--gf-line); border-radius: 14px;
  padding: 10px 14px; background: rgba(15, 23, 42, 0.02); color: var(--gf-ink);
  font-size: 15px; font-family: inherit;
}
[data-bs-theme="dark"] .gf-input { background: rgba(255, 255, 255, 0.03); }
.gf-input:focus {
  outline: none; border-color: rgba(var(--bw-primary-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--bw-primary-rgb), 0.12);
}
.gf-textarea { min-height: 88px; resize: vertical; }
.gf-hint { margin: 0; font-size: 12px; color: var(--gf-muted); }

.gf-presets {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px;
}
.gf-preset {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px; border-radius: 14px; border: 1px solid var(--gf-line);
  background: transparent; color: var(--gf-ink); cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.gf-preset:hover { border-color: rgba(var(--bw-primary-rgb), 0.4); transform: translateY(-1px); }
.gf-preset.is-active {
  border-color: transparent; background: rgba(var(--bw-primary-rgb), 0.1);
  box-shadow: inset 0 0 0 2px var(--bw-primary);
}
.gf-preset-eur { font-size: 15px; font-weight: 800; }
.gf-preset-wp { font-size: 11px; font-weight: 600; color: var(--gf-muted); }

.gf-amount-wrap {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--gf-line); border-radius: 16px; padding: 4px 14px;
  background: rgba(15, 23, 42, 0.02);
}
.gf-amount-wrap:focus-within {
  border-color: rgba(var(--bw-primary-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--bw-primary-rgb), 0.12);
}
[data-bs-theme="dark"] .gf-amount-wrap { background: rgba(255, 255, 255, 0.03); }
.gf-amount-prefix { font-size: 22px; font-weight: 800; color: var(--gf-muted); }
.gf-amount-input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 4px;
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--gf-ink);
  font-family: inherit; outline: none;
}
.gf-you-send { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: #be123c; }
[data-bs-theme="dark"] .gf-you-send { color: #fb7185; }

.gf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer;
}
.gf-btn--solid { background: #16a34a; color: #fff; }
.gf-btn--solid:hover { background: #15803d; color: #fff; }

.gf-submit {
  display: flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 18px; border: 0; border-radius: 999px; padding: 14px 20px;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
  background: var(--bw-primary); color: #fff;
  box-shadow: 0 12px 28px rgba(var(--bw-primary-rgb), 0.28);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, background 0.15s;
}
.gf-submit:hover:not(:disabled) {
  color: #fff; background: var(--bw-primary-dark); transform: translateY(-1px);
}
.gf-submit:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.gf-flip {
  margin-bottom: 16px;
  animation: cd-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}
.gf-flip-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--gf-line);
}
[data-bs-theme="dark"] .gf-flip-tabs { background: rgba(255, 255, 255, 0.05); }
.gf-flip-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--gf-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.gf-flip-tab:hover { color: var(--gf-ink); }
.gf-flip-tab.is-active {
  background: var(--gf-surface);
  color: var(--gf-ink);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.gf-flip-scene {
  perspective: 1400px;
}
.gf-flip-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.gf-flip.is-history .gf-flip-card {
  transform: rotateY(180deg);
}
.gf-flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--gf-surface);
  border: 1px solid var(--gf-line);
  border-radius: 22px;
  overflow: hidden;
}
.gf-flip-front {
  position: relative;
}
.gf-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.gf-history--flip {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  animation: none;
  padding: 6px 8px 8px;
}
.gf-history--flip .gf-list {
  overflow: auto;
  max-height: min(520px, 60vh);
  flex: 1;
}
.gf-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 8px;
}
.gf-history-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--gf-ink); }
.gf-history-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--bw-primary);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.gf-history-back:hover { text-decoration: underline; }

.gf-recent {
  background: var(--gf-surface);
  border: 1px solid var(--gf-line);
  border-radius: 22px;
  padding: 6px 8px 8px;
  animation: cd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.gf-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 8px;
}
.gf-recent-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--gf-ink); }
.gf-recent-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--bw-primary);
  font-size: 12px; font-weight: 700; font-family: inherit;
  cursor: pointer; padding: 0;
}
.gf-recent-more:hover { text-decoration: underline; }

.gf-list { list-style: none; margin: 0; padding: 0; }
.gf-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 12px;
  border-top: 1px solid var(--gf-line);
  animation: cd-rise 0.4s ease both;
  animation-delay: calc(0.06s + (var(--gf-i, 0) * 0.03s));
}
.gf-item:first-child { border-top: 0; }
.gf-list-icon {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgba(244, 63, 94, 0.1); color: #e11d48; font-size: 16px; margin-top: 2px;
}
.gf-list-icon--wait { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.gf-list-icon--mail { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.gf-list-icon--info { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.gf-list-icon--success { background: rgba(22, 163, 74, 0.14); color: #16a34a; }
.gf-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gf-list-body strong {
  font-size: 14px; font-weight: 700; color: var(--gf-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gf-list-email {
  font-size: 12px; color: var(--gf-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gf-status {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  margin-top: 2px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.01em;
}
.gf-status--wait { background: #fff7ed; color: #c2410c; }
.gf-status--mail { background: #eff6ff; color: #1d4ed8; }
.gf-status--info { background: #f0f9ff; color: #0369a1; }
.gf-status--success { background: #ecfdf5; color: #047857; }
.gf-status-hint {
  font-size: 12px; color: var(--gf-muted); line-height: 1.35;
}
.gf-list-amount { font-size: 14px; font-weight: 800; color: var(--gf-ink); white-space: nowrap; margin-top: 2px; }
.gf-empty { text-align: center; padding: 28px 16px; color: var(--gf-muted); font-size: 14px; }
.gf-empty--compact { padding: 18px 16px; }
.gf-empty p { margin: 0; }
[data-bs-theme="dark"] .gf-status--wait { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
[data-bs-theme="dark"] .gf-status--mail { background: rgba(37, 99, 235, 0.18); color: #93c5fd; }
[data-bs-theme="dark"] .gf-status--info { background: rgba(14, 165, 233, 0.16); color: #7dd3fc; }
[data-bs-theme="dark"] .gf-status--success { background: rgba(22, 163, 74, 0.18); color: #86efac; }

@media (prefers-reduced-motion: reduce) {
  .gf-flip-card { transition: none; }
}

.gf-sending-panel { text-align: center; padding: 36px 28px 32px; max-width: 400px; }
.gf-sending-orb {
  position: relative;
  width: 88px; height: 88px; margin: 0 auto 22px;
  display: grid; place-items: center;
}
.gf-sending-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(244, 63, 94, 0.15);
  border-top-color: #e11d48;
  animation: gf-spin 1.1s linear infinite;
}
.gf-sending-icon {
  width: 64px; height: 64px; border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
  color: #e11d48; font-size: 28px;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.18);
  animation: gf-bob 1.4s ease-in-out infinite;
}
.gf-sending-title {
  margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--gf-ink, #0f172a);
}
.gf-sending-lead {
  margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: var(--gf-muted, #64748b);
}
.gf-sending-track {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
}
.gf-sending-fill {
  display: block; height: 100%; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb7185, #e11d48 55%, #be123c);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
  transition: width 0.1s linear;
}
.gf-sending-step {
  margin: 14px 0 0; min-height: 1.4em;
  font-size: 13px; font-weight: 700; color: #be123c;
}
[data-bs-theme="dark"] .gf-sending-icon {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.22), rgba(225, 29, 72, 0.12));
  color: #fb7185;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
[data-bs-theme="dark"] .gf-sending-title { color: #f8fafc; }
[data-bs-theme="dark"] .gf-sending-lead { color: #94a3b8; }
[data-bs-theme="dark"] .gf-sending-track { background: rgba(255, 255, 255, 0.1); }
[data-bs-theme="dark"] .gf-sending-step { color: #fb7185; }
.gf-flip.is-history .gf-flip-front { pointer-events: none; }
.gf-flip:not(.is-history) .gf-flip-back { pointer-events: none; }
.gf-home.is-sending .gf-flip-tabs { pointer-events: none; opacity: 0.55; }
.gf-home.is-sending .gf-panel { pointer-events: none; opacity: 0.55; }
@keyframes gf-spin { to { transform: rotate(360deg); } }
@keyframes gf-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .gf-sending-ring, .gf-sending-icon { animation: none; }
  .gf-sending-fill { transition: none; }
}

@media (max-width: 767px) {
  .gf-stage { box-shadow: none; }
  .gf-stage-glow { display: none; }
}

@media (max-width: 560px) {
  .gf-home { max-width: none; }
  .gf-stage {
    padding: 14px 14px 12px;
    border-radius: 16px;
    margin-bottom: 10px;
  }
  .gf-stage-glow { display: none; }
  .gf-kicker { margin-bottom: 4px; font-size: 10px; }
  .gf-title { font-size: 18px; line-height: 1.25; }
  .gf-lead { display: none; }
  .gf-balance-chip {
    margin-top: 10px;
    padding: 6px 10px;
    gap: 8px;
    font-size: 11px;
  }
  .gf-balance-chip strong { font-size: 13px; }
  .gf-claim { padding: 12px; border-radius: 16px; margin-bottom: 10px; }
  .gf-claim-head h2 { font-size: 13px; }
  .gf-claim-head p { font-size: 12px; margin-bottom: 8px; }
  .gf-claim-list li { padding: 10px; }
  .gf-flip { margin-bottom: 10px; }
  .gf-flip-tabs { margin-bottom: 8px; padding: 3px; }
  .gf-flip-tab { padding: 8px 10px; font-size: 12px; gap: 6px; }
  .gf-panel--flip { padding: 12px 12px 14px; }
  .gf-section-head h2 { font-size: 13px; }
  .gf-section-head p { font-size: 12px; margin-bottom: 10px; }
  .gf-fields { gap: 10px; margin-bottom: 12px; }
  .gf-input { min-height: 40px; padding: 8px 12px; font-size: 14px; border-radius: 12px; }
  .gf-textarea { min-height: 64px; }
  .gf-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .gf-preset { padding: 8px 6px; border-radius: 12px; }
  .gf-preset-eur { font-size: 13px; }
  .gf-preset-wp { font-size: 10px; }
  .gf-amount-wrap { border-radius: 12px; padding: 2px 10px; }
  .gf-amount-prefix { font-size: 18px; }
  .gf-amount-input { font-size: 22px; padding: 8px 4px; }
  .gf-you-send { font-size: 12px; margin-top: 6px; }
  .gf-submit { margin-top: 12px; padding: 12px 16px; font-size: 14px; }
  .gf-recent { border-radius: 16px; }
  .gf-recent-head { padding: 10px 10px 4px; }
  .gf-recent-head h2 { font-size: 13px; }
  .gf-item { padding: 10px; gap: 10px; }
  .gf-list-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
  .gf-list-body strong { font-size: 13px; }
  .gf-status-hint { display: none; }
  .gf-list-amount { font-size: 13px; }
  .gf-history--flip .gf-list { max-height: min(420px, 55vh); }
}

/* Wallet */
.wa-home {
  --wa-ink: #0f172a;
  --wa-muted: #64748b;
  --wa-line: rgba(15, 23, 42, 0.08);
  --wa-surface: #fff;
  max-width: 720px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", var(--bw-font);
}
[data-bs-theme="dark"] .wa-home {
  --wa-ink: #f8fafc;
  --wa-muted: #94a3b8;
  --wa-line: rgba(255, 255, 255, 0.1);
  --wa-surface: #111;
}

.wa-stage {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 16px;
  padding: clamp(26px, 4vw, 36px) clamp(20px, 4vw, 32px) 26px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 75% 65% at 100% -10%, rgba(34, 197, 94, 0.3), transparent 55%),
    radial-gradient(ellipse 55% 50% at -5% 110%, rgba(87, 60, 251, 0.32), transparent 50%),
    linear-gradient(160deg, #102016 0%, #0f172a 48%, #0a1020 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  animation: cd-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wa-stage-glow {
  position: absolute;
  inset: auto -18% -40% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
  animation: cd-drift 8s ease-in-out infinite alternate;
}
.wa-stage-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.wa-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.wa-env {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.35);
}
.wa-title {
  position: relative;
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.wa-lead {
  position: relative;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  max-width: 42ch;
}
.wa-label {
  position: relative;
  margin: 22px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.wa-balance {
  position: relative;
  margin: 0;
  max-width: 100%;
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wa-meta {
  position: relative;
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wa-meta .mono { color: #fff; font-weight: 600; }
.wa-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.wa-btn--solid {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.wa-btn--solid:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
}
.wa-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(8px);
}
.wa-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  transform: translateY(-1px);
}

.wa-breakdown {
  background: var(--wa-surface);
  border: 1px solid var(--wa-line);
  border-radius: 22px;
  padding: 18px 16px 10px;
  margin-bottom: 14px;
  animation: cd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.wa-breakdown-head h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wa-ink);
}
.wa-breakdown-head p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--wa-muted);
}
.wa-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wa-metrics li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--wa-line);
}
.wa-metrics li:first-child { border-top: 0; }
.wa-metrics li.is-total .wa-metric-val { font-weight: 800; }
.wa-metric-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  font-size: 16px;
}
.wa-metric-ico.is-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.wa-metric-ico.is-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.wa-metric-ico.is-ink { background: rgba(15, 23, 42, 0.08); color: var(--wa-ink); }
.wa-metric-ico.is-gold { background: rgba(245, 158, 11, 0.14); color: #ca8a04; }
.wa-metric-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wa-metric-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--wa-ink);
}
.wa-metric-copy span {
  font-size: 12px;
  color: var(--wa-muted);
}
.wa-metric-val {
  flex-shrink: 0;
  max-width: 46%;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wa-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.wa-metric-link { color: var(--bw-primary); text-decoration: none; }
.wa-metric-link:hover { color: var(--bw-primary-dark); }

.wa-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  animation: cd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.wa-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--wa-line);
  background: var(--wa-surface);
  color: var(--wa-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.wa-action:hover {
  color: var(--wa-ink);
  border-color: rgba(var(--bw-primary-rgb), 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.wa-action > span:nth-child(2) { flex: 1; }
.wa-action > .bi-chevron-right { color: var(--wa-muted); font-size: 12px; }
.wa-action-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--bw-primary-rgb), 0.1);
  color: var(--bw-primary);
  font-size: 16px;
}

.wa-activity {
  background: var(--wa-surface);
  border: 1px solid var(--wa-line);
  border-radius: 22px;
  padding: 6px 8px 8px;
  animation: cd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.wa-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 8px;
}
.wa-activity-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--wa-ink);
}
.wa-activity-head a { font-size: 13px; font-weight: 700; }
.wa-tx-list { list-style: none; margin: 0; padding: 0; }
.wa-tx-list li {
  border-top: 1px solid var(--wa-line);
  animation: cd-rise 0.4s ease both;
  animation-delay: calc(0.08s + (var(--wa-i, 0) * 0.04s));
}
.wa-tx-list li:first-child { border-top: 0; }
.wa-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 12px;
  color: inherit;
  border-radius: 14px;
  transition: background 0.15s;
}
.wa-tx:hover {
  color: inherit;
  background: rgba(var(--bw-primary-rgb), 0.05);
}
.wa-tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--bw-primary-rgb), 0.08);
  color: var(--bw-primary);
  font-size: 16px;
}
.wa-tx-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wa-tx-body strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--wa-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-tx-body .muted {
  font-size: 12px;
  color: var(--wa-muted);
}
.wa-tx-amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wa-tx-amount.is-credit { color: #15803d; }
.wa-tx-amount.is-debit { color: #b91c1c; }
[data-bs-theme="dark"] .wa-tx-amount.is-credit { color: #4ade80; }
[data-bs-theme="dark"] .wa-tx-amount.is-debit { color: #f87171; }

@media (max-width: 767px) {
  .wa-stage { padding: 24px 18px 22px; border-radius: 22px; box-shadow: none; }
  .wa-stage-glow { display: none; }
  .wa-balance { font-size: clamp(30px, 8.5vw, 44px); }
  .wa-cta { flex-direction: column; align-items: stretch; }
  .wa-btn { width: 100%; }
  .wa-actions { grid-template-columns: 1fr; }
  .wa-tx { min-width: 0; }
  .wa-tx-amount { font-size: 13px; }
  .wa-metric-val { font-size: 13px; max-width: 42%; }
}

@media (max-width: 560px) {
  .wa-stage { padding: 24px 18px 22px; border-radius: 22px; }
}

.admin-create-vouchers { max-width: 720px; }
.admin-create-vouchers .form-group { margin-bottom: 14px; }

.admin-pagination { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.admin-filter-bar {
  display: grid; grid-template-columns: 1fr 160px 140px auto; gap: 8px; margin-bottom: 16px;
}
.admin-voucher-table td, .admin-voucher-table th { white-space: nowrap; }
.admin-voucher-table .btn-sm { padding: 4px 10px; font-size: 12px; }
.admin-dl { margin: 0; display: grid; gap: 14px; }
.admin-dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: start; }
.admin-dl dt { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bw-muted); }
.admin-dl dd { margin: 0; font-size: 14px; word-break: break-word; }
@media (max-width: 991px) {
  .admin-filter-bar { grid-template-columns: 1fr 1fr; }
  .admin-dl > div { grid-template-columns: 1fr; gap: 4px; }
}

.auth-verify-shell {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.auth-verify-form-card .card-body,
.auth-verify-result-card .card-body { padding-top: 4px; }
.auth-verify-lead {
  margin: 0 0 20px;
  color: var(--bw-muted);
  font-size: 14px;
  line-height: 1.55;
}
.auth-verify-form .form-group { margin-bottom: 16px; }
.auth-verify-input-wrap {
  position: relative;
}
.auth-verify-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bw-muted);
  font-size: 16px;
  pointer-events: none;
}
.auth-verify-input-wrap .form-control {
  padding-left: 42px;
  font-family: var(--bw-mono);
  letter-spacing: .04em;
}
.auth-verify-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.auth-verify-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  padding: 24px 12px;
  color: var(--bw-muted);
}
.auth-verify-empty-compact {
  min-height: 0;
  padding: 8px 0 0;
  align-items: flex-start;
  text-align: left;
}
.auth-verify-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--bw-primary-rgb), .08);
  color: var(--bw-primary);
  font-size: 24px;
  margin-bottom: 14px;
}
.auth-verify-empty p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 34ch; }
.auth-verify-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.auth-verify-status i { font-size: 28px; line-height: 1; margin-top: 2px; }
.auth-verify-status strong {
  display: block;
  font-size: 16px;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.auth-verify-status span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  opacity: .9;
}
.auth-verify-status.is-ok {
  background: rgba(34, 197, 94, .12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, .22);
}
.auth-verify-status.is-fail {
  background: rgba(239, 68, 68, .1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, .2);
}
.auth-verify-details { margin-bottom: 20px; }
.auth-verify-value { font-size: 22px; letter-spacing: -.02em; }
.auth-verify-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-verify-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auth-verify-result-card.has-result.is-authentic {
  border-color: rgba(34, 197, 94, .28);
}
.auth-verify-result-card.has-result.is-invalid {
  border-color: rgba(239, 68, 68, .24);
}
@media (max-width: 991px) {
  .auth-verify-shell { grid-template-columns: 1fr; }
  .auth-verify-empty { min-height: 180px; }
}

.admin-entity-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-stat-card {
  background: var(--bw-card);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 104px;
}
.admin-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bw-muted);
}
.admin-stat-value {
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.admin-entity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: start;
  width: 100%;
}
.admin-entity-main,
.admin-entity-side {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0; /* allow fr tracks to shrink; wide tables must not spill under the side column */
}
.admin-entity-main .card,
.admin-entity-side .card {
  min-width: 0;
  max-width: 100%;
}
.admin-entity-main .card-body {
  max-width: 100%;
  overflow-x: auto;
}
.admin-entity-side {
  position: sticky;
  top: 72px;
}
.admin-entity-tabs { display: grid; gap: 16px; width: 100%; }
.admin-entity-tablist {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px; border-radius: 16px;
  background: var(--bw-card); border: 1px solid var(--bw-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  overflow-x: auto;
}
.admin-entity-tab {
  border: 0; background: transparent; border-radius: 12px;
  padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--bw-muted); cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.admin-entity-tab:hover { color: var(--bw-text); background: rgba(var(--bw-primary-rgb), .06); }
.admin-entity-tab.is-active {
  background: var(--bw-primary); color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.admin-entity-tabpanels { display: grid; gap: 16px; min-width: 0; }
.admin-entity-tabpanel { display: none; min-width: 0; }
.admin-entity-tabpanel.is-active { display: grid; gap: 16px; align-content: start; }
.admin-entity-tabpanel .card { margin-top: 0; min-width: 0; max-width: 100%; }
.admin-entity-tabpanel .card-body { max-width: 100%; overflow-x: auto; }
.admin-wallet-tool-hint { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
@media (max-width: 1200px) {
  .admin-entity-side { position: static; }
}
.admin-wallet-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-wallet-tool-reason { grid-column: 1 / -1; }
.admin-wallet-tool .btn { width: 100%; }
.admin-cap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.admin-cap-row .form-control,
.admin-cap-row .btn-sm { grid-column: 1 / -1; }
.admin-cap-name { font-size: 13px; font-weight: 600; }
.admin-status-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bw-border); }
.admin-notes-list { margin-top: 16px; display: grid; gap: 12px; }
.admin-note-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(var(--bw-primary-rgb), .04);
  border: 1px solid var(--bw-border);
}
.admin-note-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.admin-audit-list { display: grid; gap: 12px; }
.admin-audit-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bw-border);
  display: grid;
  gap: 4px;
}
.admin-audit-item:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 1200px) {
  .admin-entity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-entity-grid { grid-template-columns: 1fr; }
  .admin-entity-side { position: static; }
}
@media (max-width: 560px) {
  .admin-entity-stats { grid-template-columns: 1fr; }
  .admin-wallet-tool-grid { grid-template-columns: 1fr; }
}

/* Customer KYC */
.kyc-page { display: grid; gap: 16px; max-width: 920px; }
.kyc-status-banner {
  padding: 16px 18px; border-radius: 12px; background: #fff;
  border: 1px solid var(--bw-border);
}
.kyc-status-banner p { margin: 6px 0 0; color: var(--bw-muted); font-size: 14px; line-height: 1.5; }
.kyc-status-banner.is-ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); color: #166534; }
.kyc-status-banner.is-warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); color: #92400e; }
.kyc-status-banner.is-pending { background: rgba(var(--bw-primary-rgb),.08); border-color: rgba(var(--bw-primary-rgb),.2); }
.kyc-reject-banner ul { margin: 8px 0 0; padding-left: 18px; }
.kyc-progress-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.kyc-progress-title { margin: 0; font-size: 18px; }
.kyc-progress-pct { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--bw-primary); }
.kyc-progress-bar {
  height: 8px; border-radius: 999px; background: rgba(0,0,0,.06); overflow: hidden; margin-bottom: 16px;
}
.kyc-progress-bar span { display: block; height: 100%; background: var(--bw-primary); border-radius: inherit; transition: width .25s ease; }
.kyc-progress-sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kyc-progress-sections li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start;
  padding: 10px 0; border-top: 1px solid var(--bw-border);
}
.kyc-progress-sections li:first-child { border-top: 0; padding-top: 0; }
.kyc-progress-sections a { font-weight: 600; color: inherit; text-decoration: none; display: block; }
.kyc-progress-sections .muted { display: block; font-size: 13px; margin-top: 2px; }
.kyc-progress-sections em { font-style: normal; font-size: 12px; color: var(--bw-muted); }
.kyc-progress-sections li.is-done i { color: #16a34a; }
.kyc-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
.kyc-form-grid .form-group { margin: 0; }
.kyc-span-2 { grid-column: 1 / -1; }
.kyc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.kyc-tab {
  border: 1px solid var(--bw-border); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.kyc-tab.is-active { background: #191c1f; color: #fff; border-color: #191c1f; }
.kyc-tab .text-danger { color: #ef4444; }
.kyc-tab .text-ok { color: #22c55e; }
.kyc-tab .text-warn { color: #f59e0b; }
.kyc-tab.is-active .text-danger,
.kyc-tab.is-active .text-ok,
.kyc-tab.is-active .text-warn { color: inherit; opacity: .9; }
.kyc-tab-panel { display: none; }
.kyc-tab-panel.is-active { display: block; }
.kyc-cat-title { margin: 0 0 6px; font-size: 16px; }
.kyc-type-picker { display: grid; gap: 8px; margin: 14px 0; }
.kyc-type-option {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--bw-border); border-radius: 10px; cursor: pointer; background: #fff;
}
.kyc-type-option.is-selected { border-color: var(--bw-primary); box-shadow: 0 0 0 1px var(--bw-primary); }
.kyc-type-option.is-locked { opacity: .45; cursor: not-allowed; }
.kyc-type-option input { margin-top: 3px; }
.kyc-type-option strong { display: block; }
.kyc-upload-panels { display: none; gap: 14px; margin-top: 12px; }
.kyc-upload-panels.is-visible { display: grid; }
.kyc-slot {
  border: 1px solid var(--bw-border); border-radius: 12px; padding: 14px; background: rgba(0,0,0,.015);
}
.kyc-slot-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.kyc-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 140px; border: 1.5px dashed #c9ced6; border-radius: 12px; padding: 20px; text-align: center;
  cursor: pointer; background: #fff; transition: border-color .15s, background .15s;
}
.kyc-dropzone:hover, .kyc-dropzone.is-drag { border-color: var(--bw-primary); background: rgba(var(--bw-primary-rgb),.04); }
.kyc-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.kyc-dropzone i { font-size: 28px; color: var(--bw-primary); }
.kyc-dropzone span { font-weight: 600; }
.kyc-dropzone em { font-style: normal; font-size: 12px; color: var(--bw-muted); }
.kyc-slot-preview { display: flex; flex-direction: column; gap: 8px; }
.kyc-preview-thumb {
  border: 0; padding: 0; background: transparent; cursor: pointer; text-align: left;
}
.kyc-preview-thumb img {
  max-width: 100%; max-height: 180px; border-radius: 10px; border: 1px solid var(--bw-border); display: block;
}
.kyc-preview-pdf {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--bw-border); background: #fff; cursor: pointer; font-weight: 600;
}
.kyc-modal[hidden] { display: none !important; }
.kyc-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.kyc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.kyc-modal-dialog {
  position: relative; z-index: 1; background: #fff; border-radius: 16px; max-width: min(920px, 100%);
  max-height: 90vh; overflow: auto; padding: 16px; width: 100%;
}
.kyc-modal-close {
  position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 28px; cursor: pointer; line-height: 1;
}
.kyc-modal-body img, .kyc-modal-body iframe { width: 100%; max-height: 80vh; border: 0; border-radius: 8px; }
@media (max-width: 720px) {
  .kyc-form-grid { grid-template-columns: 1fr; }
}

.stat { font-size: 28px; font-weight: 700; margin: 0; }
.muted { color: var(--bw-muted); }
.badge-soft { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0e7ff; color: #3730a3; }
.badge-muted { background: #f3f4f6; color: #374151; }

.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--bw-muted); font-weight: 600; text-align: left; padding: 8px 12px; }
.table td { padding: 10px 12px; border-top: 1px solid var(--bw-border); font-size: 14px; }
.mono { font-family: var(--bw-mono); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 8px 14px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-primary { background: var(--bw-primary); color: #fff; }
.btn-primary:hover { background: var(--bw-primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--bw-border); color: var(--bw-text); }
.btn-danger { background: var(--bw-danger); color: #fff; }
.btn-lg { padding: 12px 16px; width: 100%; }

.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; color: var(--bw-text); }
[data-bs-theme="dark"] .form-label { color: #e2e8f0; }
.form-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.form-label-row .form-label { margin: 0; }
.form-label-row a { font-size: 13px; font-weight: 600; }
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-section {
  margin: 22px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bw-muted);
}
.form-hint { margin: 6px 0 0; font-size: 12px; color: var(--bw-muted); }
.form-caps-warn {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.form-caps-warn.is-on,
.form-caps-warn:not([hidden]) { display: flex; }
[data-bs-theme="dark"] .form-caps-warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}
.form-check {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4;
  margin: 10px 0; color: var(--bw-text); cursor: pointer;
}
.form-check input { margin-top: 2px; accent-color: var(--bw-primary); }
.form-control, .form-select {
  width: 100%; min-height: 44px; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 10px 14px; background: #fff; color: var(--bw-text); font-size: 15px;
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.form-select { height: 44px; min-height: 44px; padding-top: 0; padding-bottom: 0; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background: #0a0a0a; border-color: #222; color: #fff; }
.form-control:hover, .form-select:hover { border-color: #d1d5db; }
.form-control:focus, .form-select:focus {
  outline: none; border-color: var(--bw-primary);
  box-shadow: 0 0 0 4px rgba(var(--bw-primary-rgb), .16);
}
.form-password { position: relative; }
.form-password .form-control { padding-right: 44px; }
.form-password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; color: var(--bw-muted);
  border-radius: 8px; cursor: pointer; display: grid; place-items: center;
}
.form-password-toggle:hover { color: var(--bw-text); background: rgba(0,0,0,.04); }

.auth-body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: #fff; color: #191c1f;
  color-scheme: light;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}
.auth-body .btn-primary {
  background: #191c1f; border-radius: 999px; min-height: 52px; font-size: 16px; font-weight: 700;
  color: #fff;
}
.auth-body .btn-primary:hover,
.auth-body .btn-primary:focus { background: #000; color: #fff; }
.auth-body a.btn-primary,
.auth-body a.btn-primary:hover,
.auth-body a.btn-primary:focus { color: #fff; text-decoration: none; }
.auth-body button.btn-primary,
.auth-body button.btn-primary:hover,
.auth-body button.btn-primary:focus { color: #fff; }
.auth-body .btn-ghost {
  background: transparent; border: 1px solid #e6e8eb; color: #191c1f;
  border-radius: 999px; min-height: 52px; padding: 12px 20px; font-weight: 700;
}
.auth-body .btn-ghost:hover { background: #f6f7f8; color: #191c1f; }
.auth-body a { color: #191c1f; font-weight: 600; }
.auth-body a:hover { color: #191c1f; opacity: .72; }
.auth-body .lp-signup { color: #fff; }
.auth-body .lp-signup:hover { color: #fff; opacity: 1; }
.auth-body .form-control, .auth-body .form-select {
  min-height: 54px; border: 1px solid transparent; border-radius: 16px;
  background: #f4f5f6; color: #191c1f; padding: 14px 16px; font-size: 16px;
}
.auth-body .form-control::placeholder { color: #8b8f96; opacity: 1; }
.auth-body .form-label { color: #191c1f; }
.auth-body .form-section,
.auth-body .form-hint,
.auth-body .muted { color: #5b5e63; }
.auth-body .form-check { color: #191c1f; }
.auth-body .form-password-toggle { color: #5b5e63; }
.auth-body .form-password-toggle:hover { color: #191c1f; background: rgba(0,0,0,.04); }
.auth-body .form-select { height: 54px; }
.auth-body .form-control:hover, .auth-body .form-select:hover { border-color: #e6e8eb; background: #f0f1f2; }
.auth-body .form-control:focus, .auth-body .form-select:focus {
  background: #fff; border-color: #191c1f;
  box-shadow: 0 0 0 4px rgba(25, 28, 31, .08);
}
.auth-body .form-password-toggle { width: 40px; height: 40px; border-radius: 12px; right: 8px; }
.auth-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 0 28px; background: #fff; border-bottom: 1px solid #eceef0;
  position: sticky; top: 0; z-index: 20;
}
.auth-top .lp-brand { color: #191c1f; }
.auth-top .lp-login { color: #191c1f; }
.auth-top-link { font-weight: 700; }
.auth-top-actions { display: flex; align-items: center; gap: 16px; }
.auth-top-hint { color: #5b5e63; font-size: 14px; }
.auth-top-actions .btn, .auth-top-actions .lp-signup { width: auto; }
.auth-shell {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .95fr); min-height: 0;
}
.auth-shell.is-wide { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .8fr); }
.auth-aside {
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(255,255,255,.28), transparent 55%),
    radial-gradient(700px 380px at 10% 90%, rgba(12, 74, 160, .35), transparent 50%),
    linear-gradient(185deg, #7ec8f8 0%, #3b8fe8 42%, #1d5fb8 100%);
  color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.auth-aside h2 {
  margin: 0 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05;
  letter-spacing: -.045em; font-weight: 800; max-width: 12ch;
}
.auth-aside p { margin: 0 0 24px; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.9); max-width: 34ch; font-weight: 500; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-aside li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.95); font-weight: 500; }
.auth-aside li i { margin-top: 3px; font-size: 16px; }
.auth-phone {
  width: 200px; margin-top: 28px; border-radius: 28px; background: #0e1114; color: #fff;
  padding: 14px 14px 16px; border: 8px solid #191c1f;
  box-shadow: 0 28px 60px -20px rgba(8, 30, 70, .5);
}
@media (max-height: 820px) {
  .auth-phone { display: none; }
}
.auth-phone .lp-phone-name { margin: 0 0 10px; font-size: 28px; letter-spacing: -.04em; }
.auth-phone-rate {
  display: inline-block; background: #fff; color: #191c1f; border-radius: 999px;
  padding: 6px 10px; font-size: 12px; font-weight: 800;
}
.auth-main {
  overflow: auto; padding: 40px 32px; display: flex; align-items: center; justify-content: center; background: #fff;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}
.auth-main::-webkit-scrollbar { display: none; width: 0; height: 0; }
.auth-card {
  width: 100%; max-width: 440px; background: transparent; border-radius: 0;
  padding: 8px 0 48px; box-shadow: none; border: 0; margin: 0;
}
.auth-shell.is-wide .auth-card { max-width: 560px; }
.auth-card h1 {
  font-size: clamp(32px, 4vw, 44px); margin: 0 0 8px; letter-spacing: -.045em; font-weight: 800; line-height: 1.05;
}
.auth-lead { color: #5b5e63; margin: 0 0 28px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.mfa-tip {
  margin: -8px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #6eb6e8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.auth-body .mfa-tip { color: #fff; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: #f4f5f6; border-radius: 999px; margin-bottom: 28px;
}
.auth-tabs a {
  text-align: center; padding: 11px 12px; border-radius: 999px; color: #5b5e63; font-weight: 700; font-size: 14px;
}
.auth-tabs a:hover { color: #191c1f; }
.auth-tabs a.active { background: #191c1f; color: #fff; }
.auth-tabs a.active:hover { color: #fff; opacity: 1; }
.auth-foot { margin: 20px 0 0; color: #5b5e63; font-size: 14px; }
.auth-foot a { color: #191c1f; font-weight: 700; }
.auth-foot a:hover { opacity: .7; color: #191c1f; }
.auth-form .btn-lg { margin-top: 8px; }
.auth-body .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}
.auth-body .form-error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}
.auth-progress {
  list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.auth-progress li {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #9aa0a8;
  min-width: 0;
}
.auth-progress li span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #f4f5f6; color: #5b5e63; font-size: 12px; flex: none;
}
.auth-progress li.is-active { color: #191c1f; }
.auth-progress li.is-active span { background: #191c1f; color: #fff; }
.auth-progress li.is-done { color: #191c1f; }
.auth-progress li.is-done span { background: #d8f5c8; color: #191c1f; }
.auth-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.auth-error-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: #fee2e2; color: #b91c1c; font-size: 26px; margin: 0 0 18px;
}
.auth-error-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.auth-error-debug {
  margin-top: 24px; padding: 16px; border-radius: 14px; background: #0f172a; color: #e2e8f0;
  overflow: auto; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.bw-error-page {
  max-width: 720px;
  margin: 24px auto;
  padding: 28px 24px;
  text-align: center;
}
.bw-error-page-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  display: grid; place-items: center; background: #fee2e2; color: #b91c1c; font-size: 26px;
}
.bw-error-page h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.03em; }
.bw-error-ref { font-size: 13px; color: var(--bw-muted); margin: 0 0 8px; }
.bw-error-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px;
}
.error-shell-body { background: var(--bw-body); }
.error-shell-app { min-height: 100vh; display: flex; flex-direction: column; }
.error-shell-header { gap: 12px; }
.error-shell-user { font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error-shell-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 48px; }
.mfa-otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.mfa-otp-boxes--phone {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto repeat(6, minmax(0, 1fr));
  align-items: center;
}
.mfa-otp-sep {
  display: grid;
  place-items: center;
  padding: 0 2px;
  color: var(--bw-muted, #6b7280);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.mfa-otp-box {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 12px;
  caret-color: #191c1f;
  overflow: visible;
}
.mfa-otp-box--prefix {
  display: grid;
  place-items: center;
  background: #eef0f2;
  border: 1px solid #e6e8eb;
  color: #64748b;
  user-select: none;
}
/* Standalone digit boxes (avoid .form-control padding clipping text) */
.auth-body .mfa-otp-box {
  background: #f6f7f8;
  border: 1px solid #e6e8eb;
  color: #191c1f;
  min-height: 54px;
  height: 54px;
  padding: 0;
  font-size: 22px;
  line-height: 54px;
  text-align: center;
  border-radius: 12px;
}
.auth-body .mfa-otp-box:focus {
  background: #fff;
  border-color: #191c1f;
  box-shadow: 0 0 0 3px rgba(25, 28, 31, .12);
  outline: none;
}
.auth-body .mfa-otp-box--prefix {
  background: #eef0f2;
  color: #64748b;
}
@media (max-width: 420px) {
  .mfa-otp-boxes { gap: 6px; }
  .mfa-otp-boxes--phone { gap: 4px; }
  .mfa-otp-box,
  .auth-body .mfa-otp-box {
    height: 48px;
    min-height: 48px;
    font-size: 18px;
    line-height: 48px;
  }
  .mfa-otp-sep { font-size: 18px; }
}
.auth-wizard-nav { display: flex; gap: 10px; margin-top: 8px; }
.auth-wizard-nav .btn-lg, .auth-form [data-wizard-submit] { margin-top: 0; flex: 1; }
.auth-body .form-check {
  background: #f4f5f6; border-radius: 16px; padding: 14px 16px; margin: 10px 0; font-size: 14px; font-weight: 500;
}
.auth-body .form-check input { width: 18px; height: 18px; accent-color: #191c1f; }
.form-optional { font-weight: 600; letter-spacing: 0; text-transform: none; color: #9aa0a8; margin-left: 6px; }
.auth-cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-cta-row .btn { width: auto; }
.auth-balance { font-size: 15px; }
.pay-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
  background: #f8f7ff; border: 1px solid #ece9ff; border-radius: 16px; padding: 18px; margin-bottom: 18px;
}
.pay-box span { display: block; font-size: 12px; color: var(--bw-muted); margin-bottom: 4px; }
.pay-box strong { font-size: 15px; }
.checkout-fund-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 16px;
}
.checkout-fund-actions .btn-outline {
  border-color: #e6e8eb; color: #191c1f; border-radius: 999px; min-height: 48px; font-weight: 700;
}
.checkout-fund-actions .btn-outline:hover { background: #f6f7f8; color: #191c1f; }

.tx-detail-section { margin-top: 20px; }
.tx-detail-section:first-of-type { margin-top: 0; }
.tx-detail-section--support {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bw-border);
}
.tx-detail-heading { font-size: 14px; font-weight: 700; margin: 0 0 10px; color: var(--bw-text); }
.tx-detail-lead { color: var(--bw-muted); margin: 0 0 20px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.tx-detail-dl { margin: 0; }
.tx-detail-row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--bw-border); }
.tx-detail-row:last-child { border-bottom: 0; }
.tx-detail-row dt { margin: 0; font-size: 13px; color: var(--bw-muted); font-weight: 500; }
.tx-detail-row dd { margin: 0; font-size: 14px; color: var(--bw-text); word-break: break-word; }
[data-bs-theme="dark"] .tx-detail-heading { color: #f8fafc; }
[data-bs-theme="dark"] .tx-detail-lead { color: #94a3b8; }
[data-bs-theme="dark"] .tx-detail-row dd { color: #f8fafc; }
[data-bs-theme="dark"] .tx-detail-row dt { color: #94a3b8; }
@media (max-width: 560px) {
  .tx-detail-row { grid-template-columns: 1fr; gap: 2px; }
}

.ticket-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.ticket-filters .form-select { min-width: 160px; max-width: 220px; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 16px; }
.ticket-context-dl { margin: 0 0 20px; display: grid; gap: 10px; }
.ticket-context-dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; }
.ticket-context-dl dt { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bw-muted); }
.ticket-context-dl dd { margin: 0; font-size: 14px; word-break: break-word; }
.ticket-thread { display: grid; gap: 0; border: 1px solid var(--bw-border); border-radius: 10px; overflow: hidden; background: #fff; }
.ticket-message { padding: 14px 16px; border-bottom: 1px solid #f0f1f3; }
.ticket-message:last-child { border-bottom: 0; }
.ticket-message-internal { background: #fffbeb; }
.ticket-message-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.ticket-message-body { font-size: 14px; line-height: 1.55; color: #191c1f; white-space: pre-wrap; word-break: break-word; }
.ticket-attachments { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ticket-attachment-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ticket-attachment-preview {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--bw-border); background: #fff; cursor: pointer; font-weight: 600;
  font-size: 13px; color: var(--bw-text); max-width: 100%;
}
.ticket-attachment-preview:hover { border-color: var(--bw-primary); color: var(--bw-primary); }
.ticket-attachment-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(320px, 70vw); }
.file-preview-modal .file-preview-title { margin: 0 32px 12px 0; font-size: 13px; font-weight: 600; word-break: break-word; }
.file-preview-modal .file-preview-body iframe { min-height: 70vh; background: #f6f7f8; }
.ticket-reply-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--bw-border); }
.ticket-reply-form textarea { min-height: 120px; }
.ticket-checkbox { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; font-size: 14px; }
.ticket-closed-note { margin: 0; padding: 12px 14px; background: #f6f7f8; border-radius: 8px; }
@media (max-width: 560px) {
  .ticket-context-dl > div { grid-template-columns: 1fr; gap: 4px; }
}

.ms-modal-backdrop {
  position: fixed; inset: 0; background: rgba(25, 28, 31, .48); z-index: 120;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.ms-modal-backdrop.open { opacity: 1; visibility: visible; }
.ms-modal {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center;
  padding: 20px 16px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.ms-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.ms-modal-panel {
  width: min(100%, 440px); max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 20px; padding: 28px 24px 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .18); position: relative;
}
.ms-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border: 0; border-radius: 999px; background: #f4f5f6; color: #191c1f;
  display: grid; place-items: center; cursor: pointer;
}
.ms-modal-close:hover { background: #eceef0; }
.ms-modal-title {
  margin: 0 32px 8px 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: #191c1f;
}
.ms-modal-lead { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: #5b5e63; }
.ms-modal .form-group { margin-bottom: 14px; }
.ms-modal .form-row { margin-bottom: 0; }
.ms-modal .btn-lg { margin-top: 8px; }
.auth-body .ms-modal .btn-primary,
.embed-body .ms-modal .btn-primary {
  background: #191c1f; border-radius: 999px; color: #fff;
}
.auth-body .ms-modal .btn-primary:hover,
.embed-body .ms-modal .btn-primary:hover { background: #000; color: #fff; }
body.modal-open { overflow: hidden; }
.pay-amount { font-size: 22px !important; color: var(--bw-primary); }

.divider { text-align: center; color: var(--bw-muted); margin: 16px 0; font-size: 13px; position: relative; }
.divider:before, .divider:after { content:""; position:absolute; top:50%; width:42%; height:1px; background: var(--bw-border); }
.divider:before { left: 0; } .divider:after { right: 0; }

.virtual-card { border-radius: 18px; overflow: hidden; color: #fff; }
.virtual-card .top { background: #ddd6fe; color: var(--bw-primary); padding: 16px 18px; display: flex; justify-content: space-between; }
.virtual-card .bot { background: #111827; padding: 18px; }
.virtual-card .num { letter-spacing: 2px; font-size: 18px; margin: 8px 0; }

.alert { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-info { background: #e0e7ff; color: #3730a3; }

.drawer {
  position: fixed; top: 0; right: -420px; width: 400px; height: 100%; background: var(--bw-card);
  box-shadow: -10px 0 40px rgba(0,0,0,.08); z-index: 50; transition: right .25s ease; overflow: auto; padding: 20px;
}
.drawer.open { right: 0; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; display: none; }
.backdrop.open { display: block; }

.btn-ghost {
  background: transparent; border: 0; color: var(--bw-muted); font-weight: 600; cursor: pointer; padding: 6px 10px; border-radius: 8px;
}
.btn-ghost:hover { background: rgba(0,0,0,.04); color: var(--bw-text); }
.btn-sm { padding: 6px 10px; font-size: 13px; }

.bw-header .notify-badge {
  position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; border: 2px solid var(--bw-card, #fff);
}
.bw-header .notify-badge[hidden] { display: none !important; }

.notify-drawer { display: flex; flex-direction: column; padding: 0; width: min(400px, 100vw); }
.notify-drawer-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--bw-border); position: sticky; top: 0; background: var(--bw-card); z-index: 1;
}
.notify-drawer-head h3 { margin: 0; font-size: 18px; }
.notify-drawer-sub { margin: 4px 0 0; font-size: 13px; }
.notify-drawer-actions {
  display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--bw-border);
}
.notify-drawer-list { flex: 1; overflow: auto; padding: 8px 0; }
.notify-item {
  display: flex; gap: 8px; align-items: flex-start; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--bw-border);
}
.notify-item.is-unread { background: rgba(var(--bw-primary-rgb), .04); }
.notify-item-main { display: flex; gap: 10px; min-width: 0; flex: 1; }
.notify-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--bw-primary); margin-top: 7px; flex-shrink: 0;
}
.notify-item-copy { min-width: 0; }
.notify-item-copy strong { display: block; font-size: 14px; line-height: 1.35; }
.notify-item-copy p { margin: 4px 0; font-size: 13px; color: var(--bw-muted); line-height: 1.45; }
.notify-item-copy time { font-size: 12px; }
.notify-gift-link {
  display: inline-flex; margin-top: 8px; font-size: 12px; font-weight: 700;
}
.notify-item-actions { display: flex; gap: 2px; flex-shrink: 0; }
.notify-action {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--bw-muted);
  display: grid; place-items: center; cursor: pointer;
}
.notify-action:hover { background: rgba(0,0,0,.06); color: var(--bw-text); }
.notify-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 8px; padding: 48px 24px; color: var(--bw-muted);
}
.notify-empty i { font-size: 28px; opacity: .7; }
.notify-empty p { margin: 0; font-size: 14px; }
.notify-drawer-foot {
  padding: 14px 18px; border-top: 1px solid var(--bw-border); text-align: center; position: sticky; bottom: 0; background: var(--bw-card);
}
.notify-drawer-foot a { font-weight: 700; font-size: 14px; }

.notify-page { display: grid; gap: 16px; max-width: 820px; }
.notify-page-toolbar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
}
.notify-page-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.notify-filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--bw-border); background: #fff; color: var(--bw-text); text-decoration: none; font-size: 13px; font-weight: 600;
}
.notify-filter:hover { text-decoration: none; border-color: #c9ced6; }
.notify-filter.is-active { background: #191c1f; color: #fff; border-color: #191c1f; }
.notify-filter-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 11px; display: inline-grid; place-items: center;
}
.notify-filter.is-active .notify-filter-count { background: #fff; color: #191c1f; }
.notify-page-bulk { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-history-list { display: grid; }
.notify-history-item {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--bw-border);
}
.notify-history-item:last-child { border-bottom: 0; }
.notify-history-item.is-unread { background: rgba(var(--bw-primary-rgb), .03); margin: 0 -16px; padding: 16px; border-radius: 12px; border-bottom-color: transparent; }
.notify-history-item.is-dismissed { opacity: .72; }
.notify-history-main { display: flex; gap: 10px; min-width: 0; flex: 1; }
.notify-history-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notify-history-body { margin: 6px 0; font-size: 14px; line-height: 1.5; color: var(--bw-text); }
.notify-history-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.notify-history-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.notify-empty-page { min-height: 220px; }

/* Notifications page */
.nt-home {
  --nt-ink: #0f172a;
  --nt-muted: #64748b;
  --nt-line: rgba(15, 23, 42, 0.08);
  --nt-surface: #fff;
  max-width: 720px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", var(--bw-font);
}
[data-bs-theme="dark"] .nt-home {
  --nt-ink: #f8fafc;
  --nt-muted: #94a3b8;
  --nt-line: rgba(255, 255, 255, 0.1);
  --nt-surface: #111;
}
.nt-stage {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 24px 22px 20px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(87, 60, 251, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(14, 165, 233, 0.25), transparent 50%),
    linear-gradient(155deg, #15122a 0%, #0f172a 50%, #0a1020 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  animation: cd-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nt-stage-glow {
  position: absolute; inset: auto -18% -40% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.nt-kicker {
  position: relative; margin: 0 0 8px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.nt-title {
  position: relative; margin: 0; font-size: clamp(22px, 4vw, 28px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
}
.nt-lead {
  position: relative; margin: 10px 0 0; font-size: 14px; line-height: 1.45;
  color: rgba(255, 255, 255, 0.7); max-width: 42ch;
}
.nt-unread-chip {
  position: relative; display: inline-flex; margin: 14px 0 0; padding: 6px 12px;
  border-radius: 999px; background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(248, 113, 113, 0.35);
  font-size: 12px; font-weight: 700; color: #fecaca;
}
.nt-toolbar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 12px;
}
.nt-filters {
  display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(15, 23, 42, 0.05); border: 1px solid var(--nt-line);
}
[data-bs-theme="dark"] .nt-filters { background: rgba(255, 255, 255, 0.05); }
.nt-filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-size: 13px; font-weight: 700; color: var(--nt-muted);
}
.nt-filter:hover { color: var(--nt-ink); text-decoration: none; }
.nt-filter.is-active {
  background: var(--nt-surface); color: var(--nt-ink);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.nt-filter-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 11px; display: inline-grid; place-items: center;
}
.nt-filter.is-active .nt-filter-count { background: var(--bw-primary); }
.nt-bulk { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-bulk-btn {
  border: 1px solid var(--nt-line); background: var(--nt-surface); color: var(--nt-ink);
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700;
  font-family: inherit; cursor: pointer;
}
.nt-bulk-btn:hover { border-color: rgba(var(--bw-primary-rgb), 0.4); color: var(--bw-primary); }
.nt-bulk-btn--muted { color: var(--nt-muted); }
.nt-list-card {
  background: var(--nt-surface); border: 1px solid var(--nt-line); border-radius: 22px;
  overflow: hidden; animation: cd-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border-top: 1px solid var(--nt-line);
  animation: cd-rise 0.35s ease both;
  animation-delay: calc(0.04s + (var(--nt-i, 0) * 0.02s));
}
.nt-item:first-child { border-top: 0; }
.nt-item.is-unread { background: rgba(var(--bw-primary-rgb), 0.05); }
.nt-item.is-dismissed { opacity: 0.65; }
.nt-item-icon {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgba(var(--bw-primary-rgb), 0.12); color: var(--bw-primary); font-size: 16px; margin-top: 2px;
}
.nt-item.is-unread .nt-item-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.nt-item-body { flex: 1; min-width: 0; }
.nt-item-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nt-item-top strong { font-size: 14px; font-weight: 700; color: var(--nt-ink); }
.nt-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
}
.nt-badge--unread { background: #fef2f2; color: #dc2626; }
.nt-badge--read { background: #ecfdf5; color: #047857; }
.nt-badge--muted { background: rgba(15, 23, 42, 0.06); color: var(--nt-muted); }
[data-bs-theme="dark"] .nt-badge--unread { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
[data-bs-theme="dark"] .nt-badge--read { background: rgba(5, 150, 105, 0.18); color: #6ee7b7; }
[data-bs-theme="dark"] .nt-badge--muted { background: rgba(255, 255, 255, 0.08); }
.nt-item-copy { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--nt-muted); }
.nt-item-cta {
  display: inline-flex; margin-top: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--bw-primary); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none;
}
.nt-item-cta:hover { color: #fff; background: var(--bw-primary-dark); }
.nt-item-meta { margin: 8px 0 0; font-size: 12px; color: var(--nt-muted); }
.nt-item-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.nt-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--nt-line); background: transparent; color: var(--nt-ink);
  border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.nt-action:hover { border-color: rgba(var(--bw-primary-rgb), 0.45); color: var(--bw-primary); }
.nt-action--muted { color: var(--nt-muted); }
.nt-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 48px 20px; color: var(--nt-muted); text-align: center;
}
.nt-empty-icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(15, 23, 42, 0.05); font-size: 24px;
}
[data-bs-theme="dark"] .nt-empty-icon { background: rgba(255, 255, 255, 0.06); }
.nt-empty p { margin: 0; font-size: 14px; }
@media (max-width: 640px) {
  .nt-stage { padding: 16px 14px 14px; border-radius: 16px; }
  .nt-lead { display: none; }
  .nt-title { font-size: 18px; }
  .nt-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .nt-filters { width: 100%; grid-auto-columns: 1fr; }
  .nt-filter { justify-content: center; padding: 8px 8px; font-size: 12px; }
  .nt-bulk { width: 100%; }
  .nt-bulk-btn { flex: 1; }
  .nt-item { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .nt-item-actions { flex-direction: row; width: 100%; padding-left: 52px; }
  .nt-action { flex: 1; }
  .nt-action span { display: none; }
  .nt-action i { font-size: 14px; }
}

.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd; cursor: pointer; }

.appearance-drawer { display: flex; flex-direction: column; gap: 0; padding: 0; width: min(400px, 100vw); }
.appearance-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--bw-border);
  position: sticky; top: 0; background: var(--bw-card); z-index: 1;
}
.appearance-head h3 { margin: 0; font-size: 18px; }
.appearance-lead { margin: 6px 0 0; font-size: 13px; line-height: 1.45; max-width: 34ch; }
.appearance-section { padding: 18px; border-bottom: 1px solid var(--bw-border); }
.appearance-section:last-child { border-bottom: 0; }
.appearance-section h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.appearance-hint { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: var(--bw-muted); }
.appearance-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.appearance-mode-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border-radius: 14px; border: 1px solid var(--bw-border);
  background: transparent; color: var(--bw-text); font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.appearance-mode-btn i { font-size: 20px; color: var(--bw-muted); }
.appearance-mode-btn:hover { border-color: rgba(var(--bw-primary-rgb), 0.4); }
.appearance-mode-btn.is-active {
  border-color: transparent;
  background: rgba(var(--bw-primary-rgb), 0.1);
  box-shadow: inset 0 0 0 2px var(--bw-primary);
}
.appearance-mode-btn.is-active i { color: var(--bw-primary); }
.appearance-swatches { display: grid; gap: 8px; }
.appearance-swatch {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bw-border);
  background: transparent; color: var(--bw-text); font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
}
.appearance-swatch:hover { border-color: rgba(var(--bw-primary-rgb), 0.4); }
.appearance-swatch.is-active {
  border-color: transparent;
  background: rgba(var(--bw-primary-rgb), 0.08);
  box-shadow: inset 0 0 0 2px var(--bw-primary);
}
.appearance-swatch-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.appearance-swatch-label { flex: 1; }
.appearance-swatch.is-active .appearance-swatch-label::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px; margin-left: 8px; border-radius: 50%;
  background: var(--bw-primary); vertical-align: middle;
}
.footer-mini { color: var(--bw-muted); font-size: 13px; padding: 24px 0 0; margin-top: auto; display: flex; justify-content: space-between; flex-shrink: 0; gap: 16px; flex-wrap: wrap; }
.footer-mini-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-mini-links a { color: var(--bw-muted); text-decoration: none; font-weight: 600; }
.footer-mini-links a:hover { color: var(--bw-primary); text-decoration: underline; }
.legal-upload-grid { display: grid; gap: 24px; margin-top: 8px; }
.branding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.branding-upload-row { margin-bottom: 18px; }
.branding-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.branding-preview-img {
  height: 40px; width: auto; max-width: 180px; object-fit: contain;
  border: 1px solid var(--bw-border); border-radius: 8px; padding: 6px; background: #fff;
}
.branding-preview-favicon { height: 32px; width: 32px; max-width: 32px; padding: 4px; }
@media (max-width: 1100px) {
  .branding-grid { grid-template-columns: 1fr; }
}
.legal-upload-group { border: 1px solid var(--bw-border); border-radius: 12px; padding: 16px; background: #fafbfc; }
.legal-upload-heading { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.legal-upload-row { margin-bottom: 16px; }
.legal-upload-row:last-child { margin-bottom: 0; }
.legal-upload-current { margin: 0 0 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

@media (max-width: 991px) {
  .bw-sidebar:not(.bw-sidebar--rail) {
    display: none;
    position: fixed;
    z-index: 50;
    top: var(--bw-header-h);
    left: 0;
    height: calc(100% - var(--bw-header-h));
    max-height: calc(100% - var(--bw-header-h));
    width: min(300px, 88vw);
    box-shadow: 12px 0 40px rgba(15, 23, 42, .14);
  }
  .bw-sidebar:not(.bw-sidebar--rail).open { display: flex; }
  .bw-main { padding: 8px 14px 32px; }
}

/* Public landing — Revolut-inspired layout, original branding */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
.lp-body {
  background: #f6f7f8;
  color: #191c1f;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}
.lp-flash { max-width: 1180px; margin: 12px auto; }
.lp-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: transparent; border: 0;
  transform: translateY(0);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), background .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.lp-header.is-hidden {
  transform: translateY(-105%);
  pointer-events: none;
}
.lp-header.is-sticky {
  background: linear-gradient(135deg, #1d6fd8 0%, #1966d2 48%, #1557b8 100%);
  box-shadow: 0 8px 32px rgba(21, 87, 184, .28);
}
.lp-header.is-sticky .lp-brand,
.lp-header.is-sticky .lp-nav a,
.lp-header.is-sticky .lp-login,
.lp-header.is-sticky .lp-nav-btn { color: #fff; }
.lp-header.is-sticky .locale-switch { background: rgba(255,255,255,.18); }
.lp-header.is-sticky .locale-switch a { color: #fff; }
.lp-header.is-sticky .locale-switch a.is-active { background: #fff; color: #1966d2; }
.lp-header.is-sticky .lp-signup {
  background: #fff;
  color: #1966d2;
}
.lp-header.is-sticky .lp-signup:hover {
  background: #eef5ff;
  color: #17379d;
}
.lp-header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; position: relative; }
.lp-header-menus { display: flex; align-items: center; gap: 24px; flex: 1; }
.lp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: -.04em; color: #191c1f;
}
.lp-header .lp-brand { color: #fff; }
.lp-brand:hover { color: inherit; opacity: .85; }
.lp-nav { display: flex; gap: 22px; flex: 1; }
.lp-nav a { color: #fff; font-size: 15px; font-weight: 500; }
.lp-nav a:hover { opacity: .7; color: inherit; }
.lp-header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.locale-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px; background: rgba(0,0,0,.06);
}
.locale-switch a {
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px; color: #5b5e63; text-decoration: none;
}
.locale-switch a:hover { color: #191c1f; opacity: 1; }
.locale-switch a.is-active { background: #191c1f; color: #fff; }
.lp-header .locale-switch { background: rgba(255,255,255,.18); }
.lp-header .locale-switch a { color: #fff; }
.lp-header .locale-switch a.is-active { background: #fff; color: #191c1f; }
.auth-body .locale-switch a.is-active,
.auth-body .locale-switch a.is-active:hover { color: #fff; opacity: 1; }
.bw-header .locale-switch { margin-right: 8px; }
.lp-login { color: #fff; font-weight: 600; font-size: 15px; }
.lp-signup {
  display: inline-flex; align-items: center; justify-content: center;
  background: #191c1f; color: #fff; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: 15px; width: auto;
}
.lp-signup:hover { background: #000; color: #fff; }
.lp-signup-lg { padding: 16px 28px; font-size: 16px; }
.lp-signup-light { background: #fff; color: #191c1f; }
.lp-signup-light:hover { background: #f3f4f5; color: #191c1f; }
.lp-signup-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.lp-signup-ghost:hover { background: #fff; color: #191c1f; }
.lp-signup-dark { background: #191c1f; color: #fff; }
.lp-signup-dark:hover { background: #000; color: #fff; }
.lp-text-link { color: #fff; font-weight: 600; align-self: center; display: inline-flex; align-items: center; gap: 8px; }
.lp-text-link:hover { color: #fff; opacity: .85; }
.lp-nav-toggle { display: none; }
.lp-nav-btn {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px;
  place-items: center; color: #fff; font-size: 24px; cursor: pointer;
}

.lp-hero {
  position: relative; overflow: hidden;
  min-height: 100vh; padding: 120px 0 72px; color: #fff;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(255,255,255,.28), transparent 55%),
    radial-gradient(700px 380px at 10% 90%, rgba(12, 74, 160, .35), transparent 50%),
    linear-gradient(185deg, #7ec8f8 0%, #3b8fe8 42%, #1d5fb8 100%);
}
.lp-hero-slider {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.lp-hero-slider .lp-hero-bg { z-index: 0; }
.lp-hero-slider .lp-hero-swiper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}
.lp-hero-slider .swiper-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.lp-hero-slide-inner {
  width: 100%;
  padding: 120px 0 110px;
  box-sizing: border-box;
}
.lp-hero-copy,
.lp-hero-visual,
.lp-hero-slide-inner {
  will-change: transform;
  backface-visibility: hidden;
}
.lp-hero-copy-fade {
  opacity: 1;
  transition: opacity 0.42s cubic-bezier(0.49, 0, 0.01, 1);
}
.lp-hero-slider .swiper-slide:not(.swiper-slide-active) .lp-hero-copy-fade {
  opacity: 0;
  transition-duration: 0.32s;
  transition-delay: 0s;
}
.lp-hero-slider .swiper-slide-active .lp-hero-copy-fade {
  opacity: 1;
  transition-duration: 0.55s;
  transition-delay: 0.16s;
}
.lp-hero-copy-fade.is-leaving {
  opacity: 0 !important;
  transition-duration: 0.28s !important;
  transition-delay: 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero-copy-fade { transition: none !important; }
}
.lp-hero-grid--reverse .lp-hero-visual { order: -1; }
.lp-hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}
.lp-hero-slider .swiper-button-next,
.lp-hero-slider .swiper-button-prev {
  pointer-events: auto;
  position: absolute;
  top: unset;
  bottom: 5%;
  margin: 0;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background .4s ease, transform .4s ease;
}
.lp-hero-slider .swiper-button-next::after,
.lp-hero-slider .swiper-button-prev::after { display: none; }
.lp-hero-slider .swiper-button-next i,
.lp-hero-slider .swiper-button-prev i { font-size: 28px; line-height: 1; }
.lp-hero-slider .swiper-button-next { right: 50px; left: auto; }
.lp-hero-slider .swiper-button-prev { left: 50px; right: auto; }
.lp-hero-slider .swiper-button-next:hover,
.lp-hero-slider .swiper-button-prev:hover { background: rgba(255,255,255,.08); }
.lp-hero-slider .slider-pagination-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 120px));
  z-index: 3;
  pointer-events: none;
}
.lp-hero-slider .slider-pagination-area .slide-range {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  position: absolute;
}
.lp-hero-slider .slider-pagination-area .slide-range.one { left: -50px; }
.lp-hero-slider .slider-pagination-area .slide-range.three { right: -50px; }
.lp-hero-slider .slider-pagination-area .swiper-pagination {
  position: static;
  width: 100% !important;
  height: 4px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: auto;
}
.lp-hero-slider .slider-pagination-area .swiper-pagination-progressbar-fill {
  background: #fff;
  border-radius: 999px;
}
.lp-voucher-mock,
.lp-merchant-mock {
  width: min(360px, 100%);
  border-radius: 28px;
  background: linear-gradient(165deg, #14181d 0%, #0a0d10 100%);
  border: 3px solid #2a3038;
  box-shadow: 0 48px 96px -28px rgba(8, 30, 70, .62), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 24px 22px;
  animation: lp-phone-float 5s ease-in-out infinite;
}
.lp-voucher-mock-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: #7ec8f8; margin-bottom: 18px;
}
.lp-voucher-mock-head i { font-size: 20px; }
.lp-voucher-field {
  background: #1c2127; border: 1px solid #2a3038; border-radius: 16px;
  padding: 14px 16px; margin-bottom: 12px;
}
.lp-voucher-field span { display: block; font-size: 11px; color: #9aa0a8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.lp-voucher-field strong { display: block; font-size: 18px; letter-spacing: .06em; color: #fff; font-family: "PT Mono", monospace; }
.lp-voucher-credit {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(145deg, rgba(72, 187, 120, .22), rgba(34, 197, 94, .12));
  border: 1px solid rgba(110, 231, 160, .28);
  color: #6ee7a0; font-size: 22px; font-weight: 800; text-align: center;
}
.lp-merchant-mock-top {
  background: linear-gradient(145deg, #4a9ef0, #1d5fb8);
  border-radius: 20px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 12px 28px rgba(29, 95, 184, .35);
}
.lp-merchant-mock-top span { display: block; font-size: 12px; opacity: .85; }
.lp-merchant-mock-top strong { display: block; font-size: 36px; letter-spacing: -.04em; margin: 4px 0; }
.lp-merchant-mock-top em { font-style: normal; opacity: .85; font-size: 13px; }
.lp-merchant-mock-list { list-style: none; margin: 0; padding: 0; }
.lp-merchant-mock-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 12px 2px; border-top: 1px solid #242a31; color: #c5c9ce; font-size: 13px;
}
.lp-merchant-mock-list li:first-child { border-top: 0; }
.lp-merchant-mock-list b { display: block; color: #fff; font-size: 13px; }
.lp-merchant-mock-list small { display: block; font-size: 11px; color: #7a828c; }
.lp-merchant-mock-list > li > strong { color: #fff; font-size: 14px; }
.lp-merchant-mock-icon {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(126, 200, 248, .14); color: #7ec8f8; font-size: 15px;
}
.lp-hero-visual--voucher .lp-float-chip { left: 4%; right: auto; top: 18%; }
.lp-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lp-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45;
  animation: lp-orb-float 18s ease-in-out infinite;
}
.lp-orb-a { width: 420px; height: 420px; background: rgba(255,255,255,.35); top: -8%; right: 12%; }
.lp-orb-b { width: 320px; height: 320px; background: rgba(126, 200, 248, .55); bottom: 10%; left: -4%; animation-delay: -6s; }
.lp-orb-c { width: 240px; height: 240px; background: rgba(29, 95, 184, .5); top: 42%; left: 38%; animation-delay: -12s; }
@keyframes lp-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.06); }
}
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 48px; align-items: center; }
.lp-hero-copy { min-width: 0; }
.lp-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
.lp-hero-kicker i { font-size: 15px; opacity: .9; }
.lp-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 16px; padding: 14px 4px;
}
.lp-hero-secondary:hover { color: #fff; opacity: .8; }
.lp-hero-trust {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
}
.lp-hero-trust li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88);
}
.lp-hero-trust i { font-size: 16px; opacity: .85; }
.lp-reveal {
  animation: lp-reveal-up .7s cubic-bezier(.2, .8, .2, 1) both;
}
.lp-reveal-delay { animation-delay: .12s; }
@keyframes lp-reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-orb, .lp-phone, .lp-reveal, .lp-reveal-delay, .lp-voucher-mock, .lp-merchant-mock { animation: none !important; }
}
@media (min-width: 1081px) {
  .lp-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 0 64px;
    box-sizing: border-box;
  }
  .lp-hero-slider { padding: 0; }
  .lp-hero-slide-inner { padding: 88px 0 110px; }
  .lp-hero-grid.lp-wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 400px);
    gap: 48px 72px;
    align-items: center;
  }
  .lp-hero-copy {
    text-align: left;
    display: block;
  }
  .lp-hero .lp-lead { max-width: 34ch; margin-inline: 0; }
  .lp-hero .lp-cta { justify-content: flex-start; }
  .lp-hero-visual {
    min-height: 520px;
    width: auto;
    max-width: none;
    justify-content: center;
  }
  .lp-float-chip { right: 8%; top: 18%; left: auto; }
}
.lp-hero h1 {
  font-size: clamp(48px, 7vw, 92px); line-height: .95; letter-spacing: -.05em;
  font-weight: 800; margin: 0 0 20px;
}
.lp-lead, .lp-intro {
  font-size: 18px; line-height: 1.5; margin: 0 0 28px; max-width: 34ch; font-weight: 500;
}
.lp-hero .lp-lead { color: rgba(255,255,255,.9); }
.lp-intro { color: #5b5e63; max-width: 46ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.lp-cta .lp-signup { width: auto; }
.lp-fine { margin: 18px 0 0; color: rgba(255,255,255,.75); font-size: 14px; }
.lp-fine a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-section-dark .lp-fine { color: rgba(255,255,255,.7); }

.lp-hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.lp-phone {
  width: 290px; border-radius: 40px; background: linear-gradient(165deg, #14181d 0%, #0a0d10 100%); color: #fff;
  padding: 14px 16px 20px; border: 3px solid #2a3038;
  box-shadow: 0 48px 96px -28px rgba(8, 30, 70, .62), inset 0 1px 0 rgba(255,255,255,.06);
  animation: lp-phone-float 5s ease-in-out infinite;
}
@keyframes lp-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.lp-phone-notch { width: 92px; height: 6px; border-radius: 999px; background: #2a2f36; margin: 6px auto 16px; }
.lp-phone-bar { display: none; }
.lp-phone-hello { margin: 0; font-size: 13px; color: #9aa0a8; }
.lp-phone-name { margin: 0 0 16px; font-size: 22px; font-weight: 700; }
.lp-phone-card {
  background: linear-gradient(145deg, #4a9ef0, #1d5fb8); border-radius: 20px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 12px 28px rgba(29, 95, 184, .35);
}
.lp-phone-card span { display: block; font-size: 12px; opacity: .85; }
.lp-phone-card strong { display: block; font-size: 32px; letter-spacing: -.04em; margin: 4px 0; }
.lp-phone-card em { font-style: normal; opacity: .85; font-size: 13px; }
.lp-phone-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.lp-phone-actions span {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center; font-size: 10px; font-weight: 600; background: #1c2127; border-radius: 14px; padding: 10px 4px;
  border: 1px solid #2a3038;
}
.lp-phone-actions i { font-size: 16px; color: #7ec8f8; }
.lp-phone-feed { border-top: 1px solid #242a31; padding-top: 4px; }
.lp-phone-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 12px 2px; font-size: 13px; color: #c5c9ce; border-top: 1px solid #242a31;
}
.lp-phone-row:first-child { border-top: 0; }
.lp-phone-row b { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }
.lp-phone-row small { display: block; font-size: 11px; color: #7a828c; }
.lp-phone-row-icon {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 15px;
}
.lp-phone-row-icon--in { background: rgba(72, 187, 120, .15); color: #6ee7a0; }
.lp-phone-row-icon--out { background: rgba(248, 113, 113, .12); color: #fca5a5; }
.lp-phone-row-amt { font-weight: 700; font-size: 14px; }
.lp-phone-row-amt--in { color: #6ee7a0; }
.lp-phone-row-amt--out { color: #fff; }
.lp-float-chip {
  position: absolute; right: 8%; top: 18%;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #191c1f; border-radius: 16px; padding: 12px 16px;
  font-weight: 800; font-size: 15px; box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.lp-float-badge {
  position: absolute; left: 4%; bottom: 16%;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  color: #fff; border-radius: 999px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; backdrop-filter: blur(8px);
}
.lp-float-badge i { font-size: 14px; }

.lp-band { background: #191c1f; color: #fff; padding: 40px 0; }
.lp-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-band-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 16px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: background .2s, transform .2s, border-color .2s;
}
.lp-band-item:hover {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.lp-band-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
  display: grid !important; place-items: center;
  background: linear-gradient(145deg, #3b8fe8, #1d5fb8); color: #fff;
}
.lp-band-icon i {
  display: block; font-size: 22px; line-height: 1;
}
.lp-band-item > div strong { display: block; font-size: 18px; margin-bottom: 4px; letter-spacing: -.02em; }
.lp-band-item > div span { color: #9aa0a8; font-size: 13px; line-height: 1.45; display: block; }

.lp-section { padding: 96px 0; }
.lp-section-personal {
  position: relative;
  overflow: hidden;
  background: #f6f7f8;
}
.lp-section-personal .lp-wrap {
  position: relative;
  z-index: 2;
}
/* Soft grid texture — not a stark white loader panel */
.lp-grid-scroll-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #f6f7f8;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.14) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0;
  animation: lp-grid-scroll 18s linear infinite;
  opacity: 0.55;
}
.lp-section-personal .lp-grid-scroll-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 28, 31, 0.04) 0%, transparent 120px),
    radial-gradient(ellipse 90% 80% at 50% 45%, rgba(246, 247, 248, 0) 0%, rgba(246, 247, 248, 0.35) 72%, rgba(246, 247, 248, 0.72) 100%);
  pointer-events: none;
}
@keyframes lp-grid-scroll {
  to { background-position: 50px 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-grid-scroll-bg { animation: none !important; }
}
.lp-section-muted { background: #f6f7f8; }
.lp-section-dark { background: #191c1f; color: #fff; }
.lp-section-business {
  position: relative;
  overflow: hidden;
  background: #191c1f;
}
.lp-section-business .lp-twitch-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.5;
}
.lp-section-business .lp-wrap {
  position: relative;
  z-index: 1;
}
.lp-section-dark .lp-intro { color: #9aa0a8; }
.lp-section-head { max-width: 640px; }
.lp-section-head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.lp-section-head--center .lp-intro { margin-inline: auto; }
.lp-section-cta { margin-top: 32px; }
.lp-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 12px; padding: 6px 12px; border-radius: 999px;
  color: #1966d2; background: rgba(25, 102, 210, .08);
}
.lp-section-dark .lp-eyebrow { color: #9ec5f5; background: rgba(255,255,255,.08); }
.lp-section h2, .lp-join h2 {
  font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.045em;
  font-weight: 800; margin: 0 0 16px;
}

.lp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.lp-personal-split {
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lp-personal-split .lp-section-head { max-width: none; margin: 0; }
.lp-personal-split .lp-section-cta { margin-top: 28px; }
.lp-personal-split h2 { font-size: clamp(32px, 3.6vw, 52px); }
.lp-tiles--personal { margin-top: 0; gap: 14px; }
.lp-tiles--personal .lp-tile { min-height: 168px; padding: 22px 20px; border-radius: 24px; }
.lp-tiles--personal .lp-tile h3 { font-size: 20px; }
.lp-tiles--personal .lp-tile-dark { min-height: 100%; }
@media (min-width: 1024px) {
  .lp-tiles--personal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-content: stretch;
  }
  .lp-tiles--personal .lp-tile { min-height: 180px; }
}
.lp-tile {
  border-radius: 28px; padding: 28px 26px; min-height: 200px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
}
.lp-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .1);
}
.lp-tile-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,.12);
}
.lp-tile-dark .lp-tile-icon { background: rgba(255,255,255,.1); color: #fff; }
.lp-tile-mint .lp-tile-icon { background: rgba(25, 28, 31, .08); color: #1a5c2e; }
.lp-tile-sand .lp-tile-icon { background: rgba(25, 28, 31, .08); color: #7a5c2a; }
.lp-tile-sky .lp-tile-icon { background: rgba(25, 28, 31, .08); color: #1557b8; }
.lp-tile h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.lp-tile p { margin: 0; color: inherit; opacity: .75; line-height: 1.55; font-size: 15px; }
.lp-tile-dark { background: #191c1f; color: #fff; border-color: #2a3038; }
.lp-tile-mint { background: linear-gradient(145deg, #dff8d0, #c8efb8); }
.lp-tile-sand { background: linear-gradient(145deg, #f5ede0, #ebe0cf); }
.lp-tile-sky { background: linear-gradient(145deg, #dceeff, #c5e0fa); }

.lp-steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: lp-step;
}
.lp-step-card {
  position: relative;
  background: #24282e; border: 1px solid #323840; border-radius: 24px;
  padding: 24px 22px 26px; min-height: 220px;
  color: #fff;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .35s ease, color .25s ease;
  opacity: 0;
  transform: translateY(28px) scale(.96);
}
.lp-steps.is-ready .lp-step-card {
  opacity: 1;
  transform: none;
  transition:
    opacity .55s cubic-bezier(.2, .8, .2, 1),
    transform .55s cubic-bezier(.2, .8, .2, 1),
    border-color .3s ease,
    background .3s ease,
    box-shadow .35s ease,
    color .25s ease;
  transition-delay: calc(var(--lp-step-i, 0) * .18s);
}
.lp-step-card:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #fff;
  color: #191c1f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.lp-steps.is-ready .lp-step-card:hover {
  transform: translateY(-3px);
}
.lp-step-card:hover .lp-step-num {
  color: #1966d2;
}
.lp-step-card:hover h3 {
  color: #191c1f;
}
.lp-step-card:hover p {
  color: #5b5e63;
}
.lp-step-card:hover .lp-step-icon {
  background: linear-gradient(145deg, #3b8fe8, #1d5fb8);
  color: #fff;
}
.lp-step-card.is-active {
  border-color: rgba(59, 143, 232, .55);
  background: #2a3038;
  box-shadow: 0 0 0 1px rgba(59, 143, 232, .2), 0 16px 40px rgba(0, 0, 0, .28);
}
.lp-step-card.is-active:hover {
  background: #fff;
  border-color: #fff;
  color: #191c1f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.lp-step-card.is-active .lp-step-icon {
  animation: lp-step-icon-pop .55s cubic-bezier(.2, .8, .2, 1);
}
.lp-step-card.is-done {
  border-color: #3a4450;
}
.lp-step-card.is-done .lp-step-num {
  color: #3b8fe8;
}
.lp-step-num {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  color: #6b7280; margin-bottom: 14px;
  transition: color .3s ease;
}
.lp-step-icon {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(145deg, #3b8fe8, #1d5fb8); color: #fff;
  transition: background .25s ease, color .25s ease;
}
.lp-steps h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; transition: color .25s ease; }
.lp-steps p { margin: 0; color: #9aa0a8; font-size: 14px; line-height: 1.5; transition: color .25s ease; }
@keyframes lp-step-icon-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-step-card,
  .lp-steps.is-ready .lp-step-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease !important;
  }
  .lp-step-card.is-active .lp-step-icon { animation: none !important; }
}

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lp-split--vouchers {
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.lp-split--vouchers .lp-section-head {
  position: relative;
  z-index: 1;
  max-width: none;
  min-width: 0;
}
.lp-split--vouchers .lp-section-head .lp-intro {
  max-width: 52ch;
}

.lp-vouchers-cube-wrap {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  padding: 12px 0 8px;
  perspective: 1200px;
  overflow: hidden;
}
.lp-vouchers-cube-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(25, 102, 210, .08);
  border: 1px solid rgba(25, 102, 210, .14);
  color: #1966d2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lp-vouchers-cube-hint i {
  font-size: 14px;
  animation: lp-cube-hint-spin 2.4s linear infinite;
}
@keyframes lp-cube-hint-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.lp-vouchers-cube {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  height: 490px;
  margin-inline: auto;
  overflow: hidden !important;
  background: transparent;
}
.lp-vouchers-cube .swiper-cube-shadow,
.lp-vouchers-cube .swiper-cube-shadow::before,
.lp-vouchers-cube .swiper-slide-shadow,
.lp-vouchers-cube .swiper-slide-shadow-left,
.lp-vouchers-cube .swiper-slide-shadow-right,
.lp-vouchers-cube .swiper-slide-shadow-top,
.lp-vouchers-cube .swiper-slide-shadow-bottom,
.lp-vouchers-cube .swiper-slide-shadow-cube {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.lp-vouchers-cube .swiper-slide {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(25, 102, 210, .14);
  border-radius: 20px;
  user-select: none;
  background: #fff;
  box-shadow: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.lp-vouchers-cube-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.lp-vouchers-cube-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 !important;
  background: #c5d4e8;
  opacity: 1;
  transition: transform .2s ease, background .2s ease;
}
.lp-vouchers-cube-pagination .swiper-pagination-bullet-active {
  background: #1966d2;
  transform: scale(1.25);
}
.lp-voucher-slide-art {
  display: grid;
  place-items: center;
  height: calc(100% - 150px);
  padding: 28px 24px;
}
.lp-voucher-slide-art--number {
  background: linear-gradient(145deg, #1d5fb8 0%, #3b8fe8 55%, #7eb8f5 100%);
}
.lp-voucher-slide-art--verify {
  background: linear-gradient(145deg, #2a4a8a 0%, #4a6db5 55%, #8aa8d8 100%);
}
.lp-voucher-slide-art--credit {
  background: linear-gradient(145deg, #14532d 0%, #1d7a4a 45%, #3b8fe8 100%);
}
.lp-voucher-slide-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: #fff;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(1px);
}
.lp-voucher-slide-mock i {
  font-size: clamp(3rem, 8vw, 4.5rem);
  opacity: .92;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .18));
}
.lp-voucher-slide-mock span {
  display: inline-block;
  font-family: 'PT Mono', ui-monospace, monospace;
  font-size: clamp(.78rem, 2.6vw, .95rem);
  letter-spacing: .06em;
  line-height: 1.35;
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff;
  background: rgba(6, 28, 62, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(2px);
}
.lp-voucher-slide-art--credit .lp-voucher-slide-mock span {
  background: rgba(4, 40, 24, 0.5);
}
.lp-voucher-slide-badge {
  position: absolute;
  top: 10px;
  right: 8px;
  z-index: 2;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: 6px 12px;
  color: #1966d2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lp-voucher-slide-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  padding: 14px 20px 18px;
  background: #fff;
  border-top: 1px solid rgba(25, 102, 210, .1);
  border-radius: 0 0 20px 20px;
  color: #191c1f;
}
.lp-voucher-slide-overlay h3 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.lp-voucher-slide-overlay p {
  margin: 0;
  font-size: clamp(.82rem, 2.4vw, .92rem);
  line-height: 1.45;
  color: #5b5e63;
}
@media (max-width: 1050px) {
  .lp-vouchers-cube {
    width: min(100%, 350px);
    height: 450px;
  }
}
@media (max-width: 930px) {
  #vouchers {
    overflow-x: clip;
  }
  .lp-split--vouchers {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lp-split--vouchers .lp-section-head {
    order: 2;
    text-align: center;
    max-width: none;
    margin-inline: auto;
    padding-right: 0;
  }
  .lp-split--vouchers .lp-section-head .lp-intro {
    max-width: 46ch;
    margin-inline: auto;
  }
  .lp-split--vouchers .lp-vouchers-cube-wrap {
    order: 1;
    width: min(100%, 320px);
    max-width: 100%;
    justify-self: center;
    overflow: hidden;
    padding: 8px 0;
  }
  .lp-vouchers-cube {
    width: 100%;
    height: 390px;
    margin-inline: auto;
    overflow: hidden !important;
  }
  .lp-vouchers-cube-hint {
    max-width: calc(100% - 16px);
    text-align: center;
    justify-content: center;
  }
}
@media (max-width: 470px) {
  .lp-vouchers-cube {
    width: min(calc(100vw - 48px), 300px);
    height: 360px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-vouchers-cube .swiper-slide { transition: none !important; }
  .lp-vouchers-cube-hint i { animation: none !important; }
}

.lp-code-stack { display: flex; flex-direction: column; gap: 0; }
.lp-code-step {
  background: #fff; border-radius: 20px; padding: 22px 24px;
  border: 1px solid #e6e8eb;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-code-step:hover { transform: translateX(4px); box-shadow: 0 8px 28px rgba(15, 23, 42, .08); }
.lp-code-step--highlight {
  border-color: rgba(25, 102, 210, .25);
  background: linear-gradient(145deg, #eef5ff, #fff);
}
.lp-code-arrow {
  display: grid; place-items: center; height: 36px; color: #9aa0a8; font-size: 18px;
}
.lp-code-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #1966d2; background: rgba(25, 102, 210, .1); border-radius: 999px; padding: 5px 10px; margin-bottom: 10px;
}
.lp-code-step strong { display: block; margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; color: #191c1f; }
.lp-code-step p { margin: 0; color: #5b5e63; font-size: 15px; line-height: 1.5; }

.lp-biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-biz-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #24282e; border-radius: 20px; padding: 18px 20px;
  border: 1px solid #323840;
  transition: background .2s, border-color .2s, transform .2s;
}
.lp-biz-list li:hover { background: #2a2f36; border-color: #4a5560; transform: translateX(4px); }
.lp-biz-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(145deg, #3b8fe8, #1d5fb8); color: #fff;
}
.lp-biz-list strong { display: block; margin: 0 0 4px; font-size: 17px; color: #fff; }
.lp-biz-list li { margin: 0; color: #c5c9ce; font-size: 14px; line-height: 1.5; }

.lp-faq-wrap { max-width: 760px; }
.lp-faq {
  margin-top: 36px; background: #fff; border-radius: 24px;
  border: 1px solid #eceef0; padding: 8px 24px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .05);
}
.lp-faq details { border-bottom: 1px solid #eceef0; padding: 0; }
.lp-faq details:last-child { border-bottom: 0; }
.lp-faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px; padding: 20px 28px 20px 0;
  list-style: none; position: relative; line-height: 1.4;
  transition: color .15s;
}
.lp-faq summary:hover { color: #1966d2; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 999px; background: #f3f4f6;
  display: grid; place-items: center; font-size: 18px; font-weight: 400; color: #5b5e63;
  transition: background .15s, transform .2s;
}
.lp-faq details[open] summary::after {
  content: '−'; background: rgba(25, 102, 210, .1); color: #1966d2;
}
.lp-faq p { margin: 0 0 20px; padding-right: 36px; color: #5b5e63; line-height: 1.65; font-size: 15px; }

.lp-join {
  position: relative; overflow: hidden;
  background: #191c1f; color: #fff; padding: 96px 0; text-align: center;
}
.lp-join-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 280px at 20% 50%, rgba(59, 143, 232, .35), transparent 55%),
    radial-gradient(500px 260px at 80% 40%, rgba(126, 200, 248, .2), transparent 50%);
}
.lp-join-inner { position: relative; z-index: 1; }
.lp-join p { color: #9aa0a8; font-size: 18px; margin: 0 auto 28px; max-width: 42ch; line-height: 1.5; }
.lp-cta-center { justify-content: center; }

.lp-scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.2, .8, .2, 1), transform .65s cubic-bezier(.2, .8, .2, 1);
}
.lp-scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .lp-scroll-reveal { opacity: 1; transform: none; transition: none; }
}

/* Glitter card teaser — adapted from https://codepen.io/simeydotme/pen/yLqZdEG */
.lp-card-teaser {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(59, 143, 232, .22), transparent 55%),
    radial-gradient(700px 380px at 85% 100%, rgba(126, 200, 248, .12), transparent 50%),
    linear-gradient(180deg, #252a31 0%, #191c1f 100%);
  color: #fff;
  overflow: hidden;
}
.lp-card-teaser .lp-eyebrow {
  color: #9ec5f5;
  background: rgba(255, 255, 255, .08);
}
.lp-card-teaser .lp-intro {
  color: #9aa0a8;
  margin-inline: auto;
}
.lp-card-stage {
  display: grid;
  place-items: center;
  perspective: 1000px;
  padding: 12px 0 0;
}
.lp-glitter-card-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.lp-glitter-card {
  --lp-glitter: url("https://assets.codepen.io/13471/silver-glitter-background.png");
  --lp-card-duration: 6.66s;
  display: grid;
  position: relative;
  transform: translate3d(0, 0, 0.01px);
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 3.5% / 5%;
  background-image: url(https://simey-credit-card.netlify.app/img/bgs/default.jpg);
  background-size: cover;
  box-shadow: 0 30px 40px -25px #0f0514, 0 20px 50px -15px #0f0514;
  overflow: hidden;
  animation: lp-glitter-tilt var(--lp-card-duration) ease infinite;
  image-rendering: optimizequality;
}
.lp-glitter-card::before {
  content: "";
  inset: 0;
  position: absolute;
  transform: translate3d(0, 0, 0.01px);
  background-image: var(--lp-glitter), var(--lp-glitter), linear-gradient(120deg, black 25%, white, black 75%);
  background-size: 100% 100%, 80% 80%, 200% 200%;
  background-blend-mode: multiply, multiply, overlay;
  background-position: 50% 50%, 50% 50%, 50% 50%;
  mix-blend-mode: color-dodge;
  filter: brightness(2) contrast(0.8);
  animation: lp-glitter-bg var(--lp-card-duration) ease infinite;
  pointer-events: none;
}
.lp-glitter-card::after {
  content: "";
  inset: 0;
  position: absolute;
  background: none, none, linear-gradient(125deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 0.1%, rgba(255, 255, 255, 0) 60%);
  background-size: 200% 200%;
  mix-blend-mode: hard-light;
  animation: lp-glitter-bg var(--lp-card-duration) ease infinite;
  pointer-events: none;
}
.lp-glitter-card__number,
.lp-glitter-card__name,
.lp-glitter-card__expiry,
.lp-glitter-card__chip {
  color: #ccc;
  position: absolute;
  margin: 0;
  padding: 0;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 2.8vw + 0.2rem, 1.1rem);
  inset: 5%;
  text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.5), 1px -1px 0 rgba(255, 255, 255, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5), 1px -1px 0 rgba(0, 0, 0, 0.5);
  z-index: 5;
  font-family: "PT Mono", ui-monospace, monospace;
}
.lp-glitter-card__number,
.lp-glitter-card__name,
.lp-glitter-card__expiry {
  background-image: linear-gradient(to bottom, #ededed 20%, #bababa 70%), none, linear-gradient(120deg, transparent 10%, white 40%, white 60%, transparent 90%);
  background-size: cover, cover, 200%;
  background-position: 50% 50%;
  background-blend-mode: overlay;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lp-glitter-bg var(--lp-card-duration) ease infinite;
}
.lp-glitter-card__number {
  text-align: center;
  font-size: clamp(0.95rem, 5vw, 1.65rem);
  letter-spacing: 0.08em;
  top: 58%;
  bottom: auto;
  text-transform: none;
}
.lp-glitter-card__name,
.lp-glitter-card__expiry {
  top: auto;
}
.lp-glitter-card__name {
  right: auto;
  max-width: min(70%, 220px);
  line-height: 1.2;
  text-align: left;
  text-transform: none;
}
.lp-glitter-card__expiry {
  left: auto;
}
.lp-glitter-card__logo {
  position: absolute;
  inset: 5%;
  bottom: auto;
  left: auto;
  width: 15%;
  height: auto;
  margin: 0;
  z-index: 5;
  filter: invert(1) saturate(0) brightness(1) contrast(1.2);
  mix-blend-mode: screen;
  pointer-events: none;
}
.lp-glitter-card__chip {
  display: grid;
  place-items: center;
  width: 14%;
  aspect-ratio: 5 / 4;
  left: 10%;
  top: 30%;
  border-radius: 10% 10% 10% 10% / 15% 15% 15% 15%;
  background-image: none, none, linear-gradient(120deg, #777 10%, #ddd 40%, #ddd 60%, #777 90%);
  background-size: 200% 200%;
  background-position: 50% 50%;
  overflow: hidden;
  animation: lp-glitter-bg var(--lp-card-duration) ease infinite;
  -webkit-text-fill-color: initial;
}
.lp-glitter-card__chip svg {
  display: block;
  width: 90%;
  fill: none;
  stroke: #444;
  stroke-width: 2;
}
.lp-glitter-card__contactless {
  position: absolute;
  left: 23%;
  top: 29.5%;
  width: 12%;
  z-index: 5;
}
.lp-glitter-card__contactless svg {
  rotate: 90deg;
  stroke-width: 1.25;
  stroke: white;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  display: block;
  width: 100%;
}
@keyframes lp-glitter-tilt {
  0%, 100% { transform: translate3d(0, 0, 0.01px) rotateY(-16deg) rotateX(4deg); }
  50% { transform: translate3d(0, 0, 0.01px) rotateY(16deg) rotateX(4deg); }
}
@keyframes lp-glitter-bg {
  0%, 100% { background-position: 50% 50%, calc(50% + 1px) calc(50% + 1px), 0% 50%; }
  50% { background-position: 50% 50%, calc(50% - 1px) calc(50% - 1px), 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-glitter-card,
  .lp-glitter-card::before,
  .lp-glitter-card::after,
  .lp-glitter-card__number,
  .lp-glitter-card__name,
  .lp-glitter-card__expiry,
  .lp-glitter-card__chip {
    animation: none !important;
  }
  .lp-glitter-card {
    transform: translate3d(0, 0, 0.01px) rotateY(-8deg) rotateX(3deg);
  }
}

.lp-footer { background: #f6f7f8; color: #5b5e63; padding: 56px 0 28px; }
.lp-footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2.4fr);
  gap: 40px;
  align-items: start;
}
.lp-footer-brand { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-tag {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #8b9098;
  max-width: 28ch;
}
.lp-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.lp-brand-dark { color: #191c1f !important; }
.lp-footer h3 { color: #191c1f; font-size: 13px; margin: 0 0 12px; font-weight: 700; }
.lp-footer-col a { display: block; color: #5b5e63; margin: 8px 0; font-size: 14px; }
.lp-footer-col a:hover { color: #191c1f; }
.lp-footer-copy {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid #e6e8eb;
  font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #8b9098;
}

@media (max-width: 1080px) {
  .lp-header-menus { display: none; }
  .lp-nav-btn { display: grid; }
  .lp-nav-toggle:checked ~ .lp-header-menus {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: #fff; border-radius: 16px; padding: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.12); z-index: 40;
  }
  .lp-nav-toggle:checked ~ .lp-header-menus .lp-nav,
  .lp-nav-toggle:checked ~ .lp-header-menus .lp-header-actions { display: flex; }
  .lp-nav { flex-direction: column; gap: 4px; }
  .lp-nav a, .lp-login { color: #191c1f !important; padding: 8px 6px; }
  .lp-header-actions { flex-direction: column; align-items: stretch; margin: 8px 0 0; }
  .lp-hero-grid, .lp-split, .lp-steps, .lp-tiles, .lp-band-grid {
    grid-template-columns: 1fr;
  }
  .lp-hero-grid { gap: 20px; }
  .lp-hero-grid .lp-hero-copy { order: 1; }
  .lp-hero-grid .lp-hero-visual {
    order: 2;
    min-height: 0;
    width: 100%;
    align-items: flex-start;
  }
  .lp-hero-slider .swiper-slide {
    align-items: flex-start;
    min-height: 100svh;
    height: auto;
  }
  .lp-hero-slide-inner {
    padding: 76px 0 100px;
  }
  .lp-hero-grid--reverse .lp-hero-visual { order: 2; }
  .lp-hero-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 20px;
    box-sizing: border-box;
  }
  .lp-hero-slider .swiper-button-next,
  .lp-hero-slider .swiper-button-prev {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.24);
  }
  .lp-hero-slider .swiper-button-next i,
  .lp-hero-slider .swiper-button-prev i { font-size: 18px; }
  .lp-hero-slider .slider-pagination-area {
    position: static;
    transform: none;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    bottom: auto;
    left: auto;
    pointer-events: none;
  }
  .lp-hero-slider .slider-pagination-area .slide-range {
    position: static;
    flex: 0 0 auto;
    font-size: 14px;
    min-width: 1.6em;
    text-align: center;
  }
  .lp-hero-slider .slider-pagination-area .slide-range.one,
  .lp-hero-slider .slider-pagination-area .slide-range.three {
    left: auto;
    right: auto;
  }
  .lp-hero-slider .slider-pagination-area .swiper-pagination {
    flex: 1 1 auto;
    min-width: 0;
  }
  .lp-tiles--personal { margin-top: 8px; }
  .lp-tiles--personal .lp-tile { min-height: 0; }
  .lp-footer {
    padding: 28px 0 18px;
  }
  .lp-footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .lp-footer-brand {
    gap: 6px;
  }
  .lp-footer-brand .lp-brand {
    font-size: 16px;
  }
  .lp-footer-tag {
    font-size: 12px;
    max-width: none;
  }
  .lp-footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 4px;
  }
  .lp-footer h3 {
    margin: 0 0 8px;
    font-size: 12px;
  }
  .lp-footer-col a {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.35;
  }
  .lp-footer-copy {
    margin-top: 18px;
    padding-top: 12px;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }
  .lp-hero { padding-top: 0; min-height: auto; }
  .lp-hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1;
    margin-bottom: 14px;
  }
  .lp-hero .lp-lead {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: none;
  }
  .lp-hero-kicker { margin-bottom: 12px; font-size: 12px; padding: 6px 12px; }
  .lp-hero-trust { flex-direction: column; gap: 8px; margin-top: 16px; }
  .lp-hero .lp-cta { gap: 10px; }
  .lp-hero .lp-signup-lg { padding: 14px 22px; font-size: 15px; }
  .lp-hero-secondary { font-size: 15px; padding: 10px 0; }
  .lp-voucher-mock,
  .lp-merchant-mock { width: 100%; animation: none; }
  .lp-hero .lp-float-chip,
  .lp-hero .lp-float-badge { display: none; }
  .lp-phone { width: min(260px, 100%); }
  .lp-code-arrow { transform: rotate(0); }
  .lp-band-item { padding: 14px 12px; }
  .lp-band-icon { width: 38px; height: 38px; }
  .lp-band-icon i { font-size: 19px; }
}

@media (max-width: 900px) {
  .auth-shell, .auth-shell.is-wide { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 20px 20px 40px; align-items: flex-start; }
  .auth-card h1 { font-size: 32px; }
  .auth-top { padding: 0 18px; min-height: 64px; }
  .auth-top-hint { display: none; }
  .auth-wizard-nav { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .pay-box { grid-template-columns: 1fr; }
  .checkout-fund-actions { grid-template-columns: 1fr; }
}

/* Integration code examples (merchant integrations / API docs) */
.integration-examples { margin-top: 12px; }
.integration-examples-scenarios,
.integration-examples-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.integration-tab,
.integration-lang {
  border: 1px solid var(--bw-border);
  background: var(--bw-card);
  color: var(--bw-text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.integration-tab.is-active,
.integration-lang.is-active {
  background: rgba(var(--bw-primary-rgb), .1);
  border-color: rgba(var(--bw-primary-rgb), .35);
  color: var(--bw-primary);
}
.integration-code-panel { display: none; }
.integration-code-panel.is-active { display: block; }
.integration-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.integration-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--bw-radius);
  background: rgba(0, 0, 0, .04);
  border: 1px solid var(--bw-border);
  overflow: auto;
  max-height: 420px;
  font-family: var(--bw-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}
[data-bs-theme="dark"] .integration-code,
[data-theme] .integration-code { background: rgba(0, 0, 0, .25); }
.integration-code code { font-family: inherit; }

/* ===== Merchant portal pages (bz-*) ===== */
.bz-home {
  --bz-ink: #0f172a;
  --bz-ink-soft: #334155;
  --bz-muted: #64748b;
  --bz-surface: rgba(255, 255, 255, 0.78);
  --bz-line: rgba(15, 23, 42, 0.08);
  --bz-accent: #0f766e;
  --bz-accent-soft: rgba(15, 118, 110, 0.1);
  max-width: 920px;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", var(--bw-font);
}
.bz-home--narrow { max-width: 720px; }
.bz-home--wide { max-width: 1040px; }
[data-bs-theme="dark"] .bz-home {
  --bz-ink: #f8fafc;
  --bz-ink-soft: #cbd5e1;
  --bz-muted: #94a3b8;
  --bz-surface: rgba(17, 17, 17, 0.78);
  --bz-line: rgba(255, 255, 255, 0.1);
  --bz-accent: #2dd4bf;
  --bz-accent-soft: rgba(45, 212, 191, 0.14);
}

.bz-stage {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: clamp(26px, 4vw, 36px) clamp(20px, 4vw, 32px) 26px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 75% 65% at 100% -10%, rgba(20, 184, 166, 0.38), transparent 55%),
    radial-gradient(ellipse 55% 50% at -5% 110%, rgba(37, 99, 235, 0.28), transparent 50%),
    linear-gradient(160deg, #0c1f1c 0%, #0f172a 48%, #0a1020 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  animation: cd-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bz-stage-glow {
  position: absolute;
  inset: auto -18% -40% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
  animation: cd-drift 8s ease-in-out infinite alternate;
}
.bz-stage-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.bz-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.bz-env {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.35);
}
.bz-title {
  position: relative;
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.bz-lead {
  position: relative;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  max-width: 48ch;
}
.bz-label {
  position: relative;
  margin: 22px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.bz-balance {
  position: relative;
  margin: 0;
  font-size: clamp(36px, 6.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.bz-meta {
  position: relative;
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}
.bz-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.bz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.bz-btn:hover { transform: translateY(-1px); color: inherit; text-decoration: none; }
.bz-btn--solid { background: #fff; color: #0f172a; }
.bz-btn--solid:hover { background: #f8fafc; color: #0f172a; }
.bz-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.bz-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.bz-btn--outline {
  background: transparent;
  border-color: var(--bz-line);
  color: var(--bz-ink);
}
.bz-btn--outline:hover { background: var(--bz-accent-soft); color: var(--bz-ink); }
.bz-btn--primary {
  background: var(--bz-accent);
  color: #fff;
  border: none;
  width: 100%;
  padding: 13px 18px;
  margin-top: 8px;
}
.bz-btn--primary:hover { filter: brightness(1.06); color: #fff; }
.bz-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.bz-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  animation: cd-rise 0.45s ease both;
}
.bz-banner--kyb {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #fff;
}
.bz-banner--info {
  background: var(--bz-accent-soft);
  border: 1px solid rgba(15, 118, 110, 0.22);
  color: var(--bz-ink);
}
.bz-banner-copy { flex: 1; min-width: 0; }
.bz-banner-copy strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.bz-banner-copy p { margin: 0; font-size: 13px; line-height: 1.45; opacity: 0.92; }
.bz-banner-meta { margin: 8px 0 0; font-size: 12px; opacity: 0.85; }
.bz-banner .bz-btn--solid { padding: 9px 14px; font-size: 13px; }

.bz-metrics {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.bz-metric {
  background: var(--bz-surface);
  border: 1px solid var(--bz-line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  backdrop-filter: blur(10px);
  animation: cd-rise 0.5s ease both;
}
.bz-metric:nth-child(2) { animation-delay: 0.04s; }
.bz-metric:nth-child(3) { animation-delay: 0.08s; }
.bz-metric:nth-child(4) { animation-delay: 0.12s; }
.bz-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-muted);
  margin-bottom: 8px;
}
.bz-metric-val {
  display: block;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bz-ink);
  line-height: 1.15;
}
.bz-metric-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--bz-muted);
  line-height: 1.35;
}

.bz-panel {
  background: var(--bz-surface);
  border: 1px solid var(--bz-line);
  border-radius: 22px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  animation: cd-rise 0.5s ease both;
}
.bz-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bz-panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bz-ink);
}
.bz-panel-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--bz-muted);
  line-height: 1.4;
}
.bz-panel-link {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--bz-accent);
  text-decoration: none;
}
.bz-panel-link:hover { text-decoration: underline; }

.bz-today {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bz-today-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--bz-line);
}
[data-bs-theme="dark"] .bz-today-item { background: rgba(255, 255, 255, 0.04); }
.bz-today-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bz-muted);
  margin-bottom: 6px;
}
.bz-today-item strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bz-ink);
}

.bz-tx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bz-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.bz-tx:hover { background: var(--bz-accent-soft); color: inherit; }
.bz-tx-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--bz-accent-soft);
  color: var(--bz-accent);
  font-size: 16px;
}
.bz-tx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bz-tx-body strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--bz-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-tx-body span { font-size: 12px; color: var(--bz-muted); }
.bz-tx-amt {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--bz-ink);
}
.bz-empty {
  margin: 0;
  padding: 18px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--bz-muted);
}

.bz-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}
.bz-side-stat .bz-balance {
  font-size: clamp(28px, 5vw, 36px);
  color: var(--bz-ink);
}
.bz-side-stat .bz-meta { color: var(--bz-muted); }

.bz-form .form-label {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-ink-soft);
}
.bz-form .form-label:first-of-type { margin-top: 0; }
.bz-form .form-control,
.bz-form .form-select {
  min-height: 46px;
  border-radius: 14px;
  font-size: 15px;
}
.bz-form textarea.form-control { min-height: 120px; }

.bz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-muted);
  text-decoration: none;
}
.bz-back:hover { color: var(--bz-accent); }

.bz-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.bz-auth-card {
  background: var(--bz-surface);
  border: 1px solid var(--bz-line);
  border-radius: 22px;
  padding: 20px 18px 18px;
  backdrop-filter: blur(10px);
}
.bz-auth-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--bz-ink);
}
.bz-auth-card .bz-auth-hint {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bz-muted);
}
.bz-auth-input {
  position: relative;
  margin-bottom: 14px;
}
.bz-auth-input i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bz-muted);
  font-size: 16px;
  pointer-events: none;
}
.bz-auth-input .form-control {
  padding-left: 42px;
  min-height: 52px;
  border-radius: 14px;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.bz-auth-result.has-ok { border-color: rgba(34, 197, 94, 0.35); }
.bz-auth-result.has-fail { border-color: rgba(239, 68, 68, 0.3); }
.bz-auth-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  padding: 20px 12px;
  color: var(--bz-muted);
}
.bz-auth-empty-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bz-accent-soft);
  color: var(--bz-accent);
  font-size: 24px;
  margin-bottom: 14px;
}
.bz-auth-empty p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 34ch; }
.bz-auth-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.bz-auth-status i { font-size: 28px; line-height: 1; margin-top: 2px; }
.bz-auth-status strong { display: block; font-size: 16px; margin-bottom: 4px; }
.bz-auth-status span { display: block; font-size: 13px; line-height: 1.45; opacity: 0.9; }
.bz-auth-status.is-ok {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.bz-auth-status.is-fail {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
[data-bs-theme="dark"] .bz-auth-status.is-ok { color: #bbf7d0; }
[data-bs-theme="dark"] .bz-auth-status.is-fail { color: #fecaca; }
.bz-auth-dl {
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}
.bz-auth-dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
}
.bz-auth-dl dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bz-muted);
}
.bz-auth-dl dd { margin: 0; font-size: 14px; color: var(--bz-ink); word-break: break-word; }
.bz-auth-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.bz-cred-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bz-line);
}
.bz-cred-row:last-child { border-bottom: none; }
.bz-cred-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bz-muted);
}
.bz-cred-row code {
  font-size: 13px;
  word-break: break-all;
  color: var(--bz-ink);
}
.bz-cert-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--bz-line);
}
.bz-cert-row:last-of-type { border-bottom: none; }
.bz-cert-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.bz-cert-top strong { font-size: 14px; color: var(--bz-ink); }
.bz-cert-row p { margin: 6px 0 0; font-size: 13px; color: var(--bz-muted); }

.bz-hook-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bz-hook {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--bz-line);
  background: rgba(15, 23, 42, 0.02);
}
[data-bs-theme="dark"] .bz-hook { background: rgba(255, 255, 255, 0.03); }
.bz-hook-meta { flex: 1; min-width: 0; }
.bz-hook-meta strong { display: block; font-size: 13px; color: var(--bz-ink); }
.bz-hook-meta span { font-size: 12px; color: var(--bz-muted); }

.bz-plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.bz-plugin {
  background: var(--bz-surface);
  border: 1px solid var(--bz-line);
  border-radius: 20px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
  animation: cd-rise 0.5s ease both;
}
.bz-plugin-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bz-accent-soft);
  color: var(--bz-accent);
  font-size: 22px;
}
.bz-plugin h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--bz-ink);
}
.bz-plugin p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bz-muted);
  flex: 1;
}
.bz-plugin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.bz-plugin-actions .btn { flex: 1; min-width: 120px; justify-content: center; }

.bz-print-slip {
  border: 2px dashed var(--bz-line);
  border-radius: 16px;
  padding: 22px 16px;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  color: #111;
}
.bz-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.bz-code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--bz-line);
  overflow: auto;
  font-family: var(--bw-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
}
[data-bs-theme="dark"] .bz-code { background: rgba(0, 0, 0, 0.28); }

.bz-docs-block { margin-top: 18px; }
.bz-docs-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bz-ink);
}
.bz-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.bz-docs-tile {
  border: 1px solid var(--bz-line);
  border-radius: 14px;
  padding: 14px;
}
.bz-docs-tile strong { display: block; font-size: 13px; color: var(--bz-ink); margin-bottom: 6px; }
.bz-docs-tile p { margin: 0; font-size: 12px; color: var(--bz-muted); line-height: 1.4; }

@media (max-width: 900px) {
  .bz-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz-plugin-grid { grid-template-columns: 1fr; }
  .bz-grid-2 { grid-template-columns: 1fr; }
  .bz-auth-shell { grid-template-columns: 1fr; }
  .bz-today { grid-template-columns: 1fr; }
  .bz-docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bz-home { max-width: 100%; }
  .bz-stage { padding: 22px 16px 20px; border-radius: 22px; }
  .bz-cta { flex-direction: column; align-items: stretch; }
  .bz-btn { width: 100%; }
  .bz-panel { padding: 14px 14px 12px; border-radius: 18px; }
  .bz-metrics { gap: 8px; }
  .bz-metric { padding: 12px; border-radius: 14px; }
  .bz-metric-val { font-size: 18px; }
  .bz-banner { padding: 14px; border-radius: 16px; }
  .bz-banner .bz-btn--solid { width: 100%; }
  .bz-auth-empty { min-height: 160px; }
  .bz-auth-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .bz-auth-input .form-control { font-size: 16px; min-height: 48px; }
  .bz-plugin-actions { flex-direction: column; }
  .bz-plugin-actions .btn { width: 100%; }
  .bz-print-actions { flex-direction: column; }
  .bz-print-actions .btn { width: 100%; }
  .bz-hook { flex-direction: column; align-items: stretch; }
  .bz-hook form .btn { width: 100%; }
}

/* ===== Admin entity hero + filters ===== */
.ad-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: clamp(22px, 3vw, 30px) clamp(18px, 3vw, 28px) 22px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 100% -10%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 45% at -5% 110%, rgba(15, 118, 110, 0.28), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #111827 55%, #0b1220 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}
.ad-hero-glow {
  position: absolute;
  inset: auto -15% -45% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
  pointer-events: none;
}
.ad-hero-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ad-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.ad-title {
  position: relative;
  margin: 0;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.ad-lead {
  position: relative;
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.ad-lead a { color: #93c5fd; text-decoration: none; }
.ad-lead a:hover { text-decoration: underline; }
.ad-balance {
  position: relative;
  margin: 18px 0 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ad-meta {
  position: relative;
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.ad-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ad-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.ad-chips strong { color: #fff; font-weight: 700; }

.admin-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fcd34d;
  color: #92400e;
}
.admin-alert-strip strong { display: block; margin-bottom: 2px; }
.admin-alert-strip p { margin: 0; font-size: 13px; opacity: 0.9; }
[data-bs-theme="dark"] .admin-alert-strip {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(252, 211, 77, 0.28);
  color: #fde68a;
}

.admin-filter-bar--tx {
  grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 1fr) minmax(110px, .9fr) minmax(110px, .8fr) minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  align-items: end;
}
.admin-filter-bar--payouts {
  grid-template-columns: 200px auto auto;
  align-items: center;
}
.admin-filter-dates {
  display: grid;
  gap: 4px;
}
.admin-filter-dates label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-entity-stats {
  margin-bottom: 16px;
}
.admin-stat-card {
  background: var(--bw-card);
  border: 1px solid var(--bw-border);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.admin-entity-main .card,
.admin-entity-side .card {
  border-radius: 16px;
}
@media (max-width: 1100px) {
  .admin-filter-bar--tx {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .ad-hero { padding: 20px 16px; border-radius: 18px; }
  .admin-filter-bar--payouts { grid-template-columns: 1fr; }
  .admin-alert-strip .btn { width: 100%; }
}

/* ===== Admin dashboard ===== */
.ad-dash { display: grid; gap: 22px; }
.ad-dash-hero { margin-bottom: 0; }
.ad-dash-attention { gap: 10px; }
.ad-dash-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 108px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ad-dash-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.ad-dash-chip strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ad-dash-chip span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
}
.ad-dash-chip.is-warn {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
}
.ad-dash-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.ad-dash-section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ad-dash-section-head .muted {
  margin: 0;
  font-size: 13px;
}
.ad-dash-stats { margin: 0; }
a.ad-dash-stat {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.ad-dash-stat:hover {
  border-color: rgba(var(--bw-primary-rgb), 0.35);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  color: inherit;
}
a.ad-dash-stat.is-primary {
  border-color: var(--bw-primary);
  background: linear-gradient(180deg, rgba(var(--bw-primary-rgb), 0.08), transparent 70%);
}
.ad-dash-today {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.ad-dash-today-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--bw-border);
  background: var(--bw-card, #fff);
  color: inherit;
  text-decoration: none;
}
a.ad-dash-today-item:hover {
  border-color: rgba(var(--bw-primary-rgb), 0.35);
  color: inherit;
}
.ad-dash-today-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(var(--bw-primary-rgb), 0.1);
  color: var(--bw-primary);
  font-size: 16px;
  flex-shrink: 0;
}
.ad-dash-today-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bw-muted);
  margin-bottom: 4px;
}
.ad-dash-today-value {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
[data-bs-theme="dark"] .ad-dash-today-item {
  background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 560px) {
  .ad-dash-chip { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); }
}

/* ===== Affiliate program ===== */
.aff-home { display: grid; gap: 18px; }
.aff-hero-card {
  border-radius: 20px;
  padding: 22px 24px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(15, 118, 110, 0.18);
}
.aff-hero-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.aff-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0f766e; }
.aff-lead { margin: 6px 0 0; color: var(--bw-muted); max-width: 52ch; }
.aff-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,0.06); }
.aff-status--active { background: rgba(16,185,129,0.15); color: #047857; }
.aff-status--blocked { background: rgba(239,68,68,0.15); color: #b91c1c; }
.aff-status--pending_kyc { background: rgba(245,158,11,0.18); color: #92400e; }
.aff-alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(245,158,11,0.12); }
.aff-alert ul { margin: 8px 0 0; padding-left: 18px; }
.aff-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.aff-metrics > div { background: var(--bw-card, #fff); border: 1px solid var(--bw-border); border-radius: 14px; padding: 12px 14px; }
.aff-metrics span { display: block; font-size: 12px; color: var(--bw-muted); margin-bottom: 4px; }
.aff-metrics strong { font-size: 18px; letter-spacing: -0.02em; }
.aff-share { margin-top: 16px; display: grid; gap: 10px; }
.aff-share label { display: block; font-size: 12px; font-weight: 600; color: var(--bw-muted); margin-bottom: 4px; }
.aff-share code { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.aff-panel { background: var(--bw-card, #fff); border: 1px solid var(--bw-border); border-radius: 16px; padding: 16px 18px; }
.aff-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.aff-panel-head h2 { margin: 0; font-size: 16px; }
.aff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aff-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bw-border); }
.aff-list li:last-child { border-bottom: 0; }
.aff-list li > div { display: grid; gap: 2px; }
.aff-pill { font-size: 12px; font-weight: 600; color: var(--bw-muted); }
.aff-earn { color: #0f766e; }
.aff-kyc-page { max-width: 920px; }
.aff-kyc-ready { margin: 14px 0 0; color: #047857; font-weight: 600; }

@media (max-width: 900px) {
  .aff-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-split { grid-template-columns: 1fr !important; }
}

/* Affiliate landing — hero reuses homepage .lp-hero; below are page-specific blocks */
.aff-lp-nav-desktop { display: flex; gap: 22px; flex: 1; }
.aff-lp-nav-desktop a { color: #fff; font-size: 15px; font-weight: 500; }
.aff-lp-nav-desktop a:hover { opacity: .75; color: #fff; }

.aff-lp-hero {
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 0 72px;
}
.aff-lp-hero > .lp-wrap {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}
.aff-lp-hero .lp-hero-grid {
  gap: 36px;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  align-items: center;
}
.aff-lp-hero .lp-hero-copy {
  max-width: 480px;
}
.aff-lp-hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  max-width: 16ch;
}
.aff-lp-hero .lp-lead {
  font-size: 16px;
  max-width: 38ch;
  margin: 0 0 22px;
}
.aff-lp-hero .lp-hero-trust {
  margin-top: 18px;
}
.aff-lp-hero .lp-hero-visual {
  min-height: 0;
}
.aff-lp-visual {
  align-items: center;
  justify-content: center;
}
.aff-lp-dash {
  width: min(100%, 300px);
  border-radius: 24px;
  padding: 18px 16px 16px;
  background: linear-gradient(165deg, #14181d 0%, #0a0d10 100%);
  color: #fff;
  border: 3px solid #2a3038;
  box-shadow: 0 36px 72px -24px rgba(8, 30, 70, .55), inset 0 1px 0 rgba(255,255,255,.06);
  animation: lp-phone-float 5s ease-in-out infinite;
}
.aff-lp-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.aff-lp-dash-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.aff-lp-dash-head em {
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  color: #7ec8f8;
}
.aff-lp-dash-metric {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}
.aff-lp-dash-metric span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.aff-lp-dash-metric strong {
  font-size: 26px;
  letter-spacing: -.03em;
  color: #7ec8f8;
}
.aff-lp-dash-rows { display: grid; gap: 10px; }
.aff-lp-dash-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.aff-lp-dash-rows b { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); }
.aff-lp-dash-rows small { font-size: 13px; font-weight: 700; color: #fff; }

.aff-lp-section { padding: 88px 0; background: #fff; color: #191c1f; }
.aff-lp-section--alt { background: #f6f7f8; }
.aff-lp-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1966d2;
}
.aff-lp-section h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -.03em;
  max-width: 18ch;
  color: #191c1f;
}
.aff-lp-section-lead {
  margin: 14px 0 0;
  max-width: 54ch;
  color: #5b5e63;
  font-size: 17px;
  line-height: 1.55;
}
.aff-lp-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-top: 36px;
}
.aff-lp-benefit {
  padding: 22px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eceef0;
  box-shadow: 0 10px 28px rgba(25, 102, 210, .06);
  animation: affFadeUp .7s ease both;
  animation-delay: var(--d, 0ms);
}
@keyframes affFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.aff-lp-benefit i {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; color: #fff;
  background: linear-gradient(145deg, #3b8fe8, #1966d2);
}
.aff-lp-benefit h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -.02em; color: #191c1f; }
.aff-lp-benefit p { margin: 0; color: #5b5e63; line-height: 1.5; font-size: 14px; }
.aff-lp-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.aff-lp-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid #eceef0;
}
.aff-lp-step-num {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(25, 102, 210, .1); color: #1966d2;
  font-size: 22px; font-weight: 800;
}
.aff-lp-steps h3 { margin: 0 0 6px; font-size: 20px; color: #191c1f; }
.aff-lp-steps p { margin: 0; color: #5b5e63; line-height: 1.5; }
.aff-lp-earn { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.aff-lp-checklist { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.aff-lp-checklist li { padding-left: 28px; position: relative; line-height: 1.45; color: #3a3d42; }
.aff-lp-checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: #1966d2; box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px #1966d2;
}
.aff-lp-earn-panel {
  background: linear-gradient(160deg, #1d6fd8, #1557b8 55%, #17379d);
  color: #fff;
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: 0 24px 60px rgba(21, 87, 184, .3);
}
.aff-lp-earn-panel p { margin: 0; opacity: .85; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.aff-lp-earn-panel strong { display: block; margin: 12px 0 10px; font-size: 28px; line-height: 1.2; color: #fff; }
.aff-lp-earn-panel em { opacity: .85; font-style: normal; font-size: 14px; line-height: 1.45; }
.aff-lp-final {
  padding: 80px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(126, 200, 248, .35), transparent),
    linear-gradient(185deg, #3b8fe8 0%, #1d5fb8 55%, #1557b8 100%);
}
.aff-lp-final h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); color: #fff; letter-spacing: -.03em; }
.aff-lp-final p { margin: 14px auto 0; max-width: 44ch; color: rgba(255,255,255,.9); }

@media (max-width: 980px) {
  .aff-lp-nav-desktop { display: none; }
  .aff-lp-benefits { grid-template-columns: 1fr 1fr; }
  .aff-lp-earn { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .aff-lp-hero { padding: 96px 0 56px; }
  .aff-lp-hero .lp-hero-grid { grid-template-columns: 1fr; }
  .aff-lp-hero .lp-hero-visual { display: none; }
  .aff-lp-hero .lp-hero-copy { max-width: none; }
  .aff-lp-hero h1 { max-width: 18ch; }
}
@media (max-width: 640px) {
  .aff-lp-benefits { grid-template-columns: 1fr; }
  .aff-lp-hero h1 { font-size: 28px; }
}

/* �� White-label tenant portals �� */
.wl-auth-card-brand { margin-bottom: 18px; }
.wl-auth-card-brand strong,
.wl-auth-card-brand-mark {
  display: block;
  font-size: 22px;
  letter-spacing: -.03em;
  font-weight: 800;
}
.wl-auth-card-brand .muted { margin: 4px 0 0; font-size: 13px; }
.wl-auth-aside-logo { margin: 0 0 14px; }
.wl-brand-img {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.wl-brand-img--nav {
  max-height: 36px;
  width: auto;
}
.wl-brand-img--hero {
  max-height: clamp(56px, 10vw, 88px);
  width: auto;
  margin: 0 0 18px;
}
.wl-brand-img--foot {
  max-height: 28px;
  width: auto;
}
.wl-brand-img--auth {
  max-height: 40px;
  width: auto;
  margin-bottom: 4px;
}
.wl-brand-img--aside {
  max-height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
}
.wl-home-brand-mark { margin: 0 0 8px; }
.wl-logo-preview {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #f8fafc;
}
.wl-logo-preview-img {
  max-height: 48px;
  max-width: 220px;
  object-fit: contain;
}
.wl-home-logo,
.wl-brand-text,
.wl-auth-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.wl-auth-brand {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 800; font-size: 18px; letter-spacing: -.03em; color: #191c1f; text-decoration: none;
}
.wl-auth-body .btn-primary {
  background: var(--bw-primary) !important;
  border-color: var(--bw-primary) !important;
}
.wl-auth-body .btn-primary:hover,
.wl-auth-body .btn-primary:focus { background: var(--bw-primary-dark, #0846c7) !important; }
.wl-auth-body .lp-signup {
  background: var(--bw-primary); border-radius: 999px; padding: 10px 16px; color: #fff !important; font-weight: 700;
}
.wl-auth-body .lp-signup:hover { opacity: .92; color: #fff !important; }

/* —— White-label marketing homepage —— */
.wl-home-body,
.wl-body:has(.wl-home) {
  margin: 0;
  background: var(--wl-paper, #f3f5f8);
  color: var(--wl-ink, #14171c);
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
}
.wl-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--wl-paper, #f3f5f8);
  color: var(--wl-ink, #14171c);
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
}
.wl-home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 56px);
  position: relative;
  z-index: 3;
}
.wl-home-logo {
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -.04em;
  color: inherit;
  text-decoration: none;
}
.wl-home-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wl-home-nav-btn {
  border-radius: 999px !important;
  min-height: 40px;
  padding: 8px 16px !important;
  font-weight: 700;
}
.wl-home-nav .btn-ghost {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(20,23,28,.12);
  color: var(--wl-ink);
}
.wl-home-nav .btn-ghost:hover { background: #fff; }

.wl-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vh, 56px) clamp(18px, 4vw, 56px) clamp(40px, 7vh, 72px);
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 760px);
}
.wl-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 640px at 88% 18%, rgba(var(--bw-primary-rgb, 11,95,255), .34), transparent 58%),
    radial-gradient(900px 520px at 8% 92%, rgba(var(--bw-primary-rgb, 11,95,255), .16), transparent 55%),
    linear-gradient(165deg, #eef1f5 0%, #f7f8fa 42%, #ebeff5 100%);
}
.wl-home-hero-copy {
  max-width: 34rem;
  animation: wlHomeRise .7s cubic-bezier(.22,1,.36,1) both;
}
.wl-home-eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bw-primary);
}
.wl-home-brand {
  margin: 0 0 16px;
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
}
.wl-home-lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--wl-muted);
  max-width: 36ch;
}
.wl-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wl-home-cta .btn-lg {
  min-height: 50px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
}
.wl-home-cta .btn-primary,
.wl-home-nav .btn-primary {
  color: #fff !important;
}
.wl-home-cta .btn-outline {
  background: rgba(255,255,255,.72);
  border-color: rgba(20,23,28,.14);
  color: var(--wl-ink, #14171c);
}
.wl-home-cta .btn-outline:hover { background: #fff; }

.wl-home-visual {
  position: relative;
  min-height: 340px;
  animation: wlHomeRise .85s .08s cubic-bezier(.22,1,.36,1) both;
}
.wl-home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}
.wl-home-orb--a {
  width: 260px; height: 260px;
  right: 4%; top: 0;
  background: rgba(var(--bw-primary-rgb, 11,95,255), .32);
  animation: wlHomeFloat 7s ease-in-out infinite;
}
.wl-home-orb--b {
  width: 180px; height: 180px;
  left: 8%; bottom: 8%;
  background: rgba(20,23,28,.07);
  animation: wlHomeFloat 9s ease-in-out .6s infinite reverse;
}
.wl-home-stage {
  position: relative;
  z-index: 1;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px 12px 24px;
  animation: wlHomeFloat 6.5s ease-in-out infinite;
}
.wl-home-viz-label {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bw-primary);
}
.wl-home-viz-amount-wrap {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  isolation: isolate;
}
.wl-home-viz-bubble {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 52%;
  width: clamp(160px, 42vw, 280px);
  height: clamp(160px, 42vw, 280px);
  transform: translate(-48%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(var(--bw-primary-rgb, 11,95,255), .55) 0%,
    rgba(var(--bw-primary-rgb, 11,95,255), .28) 42%,
    rgba(var(--bw-primary-rgb, 11,95,255), 0) 72%
  );
  filter: blur(2px);
  pointer-events: none;
  animation: wlHomeBubble 5.5s ease-in-out infinite;
}
.wl-home-viz-amount {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2.9rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
  color: var(--wl-ink, #14171c);
  font-variant-numeric: tabular-nums;
}
.wl-home-viz-note {
  margin: 0 0 28px;
  max-width: 28ch;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--wl-muted, #5c6470);
}
.wl-home-viz-code {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(20,23,28,.1);
  max-width: 16rem;
}
.wl-home-viz-code span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bw-primary);
}
.wl-home-viz-code em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--wl-ink, #14171c);
}

.wl-home-how {
  padding: clamp(40px, 7vh, 80px) clamp(18px, 4vw, 56px);
  background: #fff;
  border-top: 1px solid rgba(20,23,28,.06);
}
.wl-home-how-head {
  max-width: 36rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.wl-home-how-head h2 {
  margin: 0 0 10px;
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -.04em;
}
.wl-home-how-head p {
  margin: 0;
  color: var(--wl-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}
.wl-home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: none;
}
.wl-home-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: wlHomeRise .65s cubic-bezier(.22,1,.36,1) both;
}
.wl-home-steps li:nth-child(2) { animation-delay: .08s; }
.wl-home-steps li:nth-child(3) { animation-delay: .16s; }
.wl-home-step-num {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9rem;
  color: var(--bw-primary);
  background: rgba(var(--bw-primary-rgb, 11,95,255), .12);
}
.wl-home-steps h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.wl-home-steps p {
  margin: 0;
  color: var(--wl-muted);
  font-size: .95rem;
  line-height: 1.5;
}

.wl-home-final {
  margin: 0;
  padding: clamp(48px, 8vh, 88px) clamp(18px, 4vw, 56px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(900px 360px at 85% 0%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(160deg, var(--bw-primary) 0%, var(--bw-primary-dark) 100%);
}
.wl-home-final-inner {
  max-width: 36rem;
  margin: 0 auto;
}
.wl-home-final h2 {
  margin: 0 0 10px;
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  letter-spacing: -.04em;
}
.wl-home-final p {
  margin: 0 auto 26px;
  max-width: 40ch;
  opacity: .92;
  line-height: 1.5;
  font-size: 1.05rem;
}
.wl-home-final-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: #14171c !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 10px 28px -16px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wl-home-final-btn:hover,
.wl-home-final-btn:focus {
  color: #14171c !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -14px rgba(0,0,0,.5);
}

.wl-home-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(18px, 4vw, 56px) 36px;
  border-top: 1px solid rgba(20,23,28,.08);
  background: #fff;
}
.wl-home-foot-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wl-home-foot-brand {
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--wl-ink, #14171c);
  display: inline-flex;
  align-items: center;
}
.wl-home-foot-powered {
  color: #87909b;
  font-size: .86rem;
}
.wl-home-foot-support {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-decoration: none;
  text-align: right;
}
.wl-home-foot-support span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #87909b;
}
.wl-home-foot-support em {
  font-style: normal;
  font-weight: 600;
  color: var(--wl-ink, #14171c);
}
.wl-home-foot-support:hover em { color: var(--bw-primary); }

@keyframes wlHomeRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wlHomeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes wlHomeBubble {
  0%, 100% { transform: translate(-48%, -50%) scale(1); opacity: .95; }
  50% { transform: translate(-46%, -52%) scale(1.06); opacity: 1; }
}

@media (max-width: 900px) {
  .wl-home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 12px;
  }
  .wl-home-hero-copy { text-align: left; max-width: none; }
  .wl-home-visual { min-height: 260px; order: -1; }
  .wl-home-stage { min-height: 260px; padding-left: 0; }
  .wl-home-steps { grid-template-columns: 1fr; }
  .wl-home-nav { flex-wrap: wrap; }
  .wl-home-foot-support { align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-home-hero-copy,
  .wl-home-visual,
  .wl-home-stage,
  .wl-home-steps li,
  .wl-home-orb,
  .wl-home-viz-bubble { animation: none !important; }
}

.wl-brand-text {
  font-weight: 800; letter-spacing: -.03em; color: inherit; text-decoration: none; font-size: 16px;
}
.wl-app-body .bw-sidebar a.nav-link.active,
.wl-app-body .bw-sidebar--rail a.nav-link.active {
  background: rgba(var(--bw-primary-rgb, 11,95,255), .12);
  color: var(--bw-primary);
}
/* White-label voucher digit boxes (16 + 9) — always one row */
.voucher-digit-boxes {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  width: 100%;
  margin-top: 6px;
}
.voucher-digit-sep {
  width: 4px;
  height: 1px;
  border-radius: 1px;
  background: var(--bw-border, #e6e8eb);
  flex: 0 0 4px;
  margin: 0;
}
.voucher-digit-box {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 34px;
  height: 36px;
  padding: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border-radius: 7px;
  border: 1px solid var(--bw-border, #e6e8eb);
  background: var(--bw-input-bg, #f6f7f8);
  color: var(--bw-text, #191c1f);
  caret-color: var(--bw-text, #191c1f);
}
.voucher-digit-boxes--9 .voucher-digit-box {
  max-width: 40px;
}
.voucher-digit-box:focus {
  outline: none;
  border-color: var(--bw-primary, #0b5fff);
  box-shadow: 0 0 0 2px rgba(var(--bw-primary-rgb, 11,95,255), .16);
  background: var(--bw-card, #fff);
}
[data-bs-theme="dark"] .voucher-digit-box {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #f3f4f6;
}
[data-bs-theme="dark"] .voucher-digit-box:focus {
  background: rgba(255,255,255,.1);
}
@media (max-width: 640px) {
  .voucher-digit-boxes { gap: 2px; }
  .voucher-digit-sep { flex-basis: 3px; width: 3px; }
  .voucher-digit-box { height: 32px; font-size: 12px; border-radius: 6px; }
}
.wl-balance-hero h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; margin: 4px 0 8px; }
.wl-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
