/* Brevix design system — navy #1e4356 + accent #68A4C4 */
:root {
  --bv-navy: #1e4356;
  --bv-navy-80: rgba(30, 67, 86, 0.8);
  --bv-accent: #68A4C4;
  --bv-accent-hover: #4fa6d5;
  --bv-soft: #f3f8fa;
  --bv-ink: #0b212d;
  --bv-muted: #5a6b75;
  --bv-surface: #ffffff;
  --bv-border: rgba(30, 67, 86, 0.12);
  --bv-shadow: 0 18px 50px rgba(11, 33, 45, 0.12);
  --bv-radius: 14px;
  --bv-font-display: "Fraunces", Georgia, serif;
  --bv-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --bv-header-h: 72px;
  --bv-sidebar-w: 260px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bv-soft: #0f1c24;
  --bv-ink: #e8f1f6;
  --bv-muted: #9bb0bc;
  --bv-surface: #152833;
  --bv-border: rgba(168, 204, 227, 0.14);
  --bv-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--bv-font-body);
  color: var(--bv-ink);
  background: var(--bv-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bv-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bv-accent-hover); }
h1, h2, h3, h4 {
  font-family: var(--bv-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bv-ink);
  margin: 0 0 .6rem;
}

.bv-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Buttons */
.bv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--bv-font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.bv-btn:active { transform: translateY(1px); }
.bv-btn-primary {
  background: var(--bv-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 67, 86, 0.28);
}
.bv-btn-primary:hover { background: #163445; color: #fff; }
.bv-btn-accent {
  background: var(--bv-accent);
  color: var(--bv-ink);
}
.bv-btn-accent:hover { background: var(--bv-accent-hover); color: #fff; }
.bv-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.bv-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.bv-btn-outline {
  background: transparent;
  color: var(--bv-navy);
  border: 1px solid var(--bv-border);
}
[data-theme="dark"] .bv-btn-outline { color: var(--bv-ink); }

/* Public header */
.bv-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--bv-header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.bv-header.is-scrolled,
.bv-header.bv-header-solid {
  background: var(--bv-navy-80);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(11, 33, 45, 0.18);
}
.bv-header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bv-brand {
  font-family: var(--bv-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.bv-brand:hover { color: #fff; }
.bv-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bv-nav a {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .95rem;
}
.bv-nav a:hover,
.bv-nav a.is-active { color: #fff; }
.bv-nav-cta {
  background: var(--bv-accent);
  color: var(--bv-ink) !important;
  padding: .45rem 1rem;
  border-radius: 999px;
}
.bv-nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .bv-nav-toggle { display: block; }
  .bv-nav {
    position: fixed;
    top: var(--bv-header-h);
    left: 0; right: 0;
    background: var(--bv-navy);
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .bv-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero — one composition, full-bleed */
.bv-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--bv-header-h) + 3rem) 0 4.5rem;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 33, 45, 0.35) 0%, rgba(30, 67, 86, 0.78) 55%, rgba(11, 33, 45, 0.92) 100%),
    url("https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  animation: bvHeroIn .9s ease both;
}
.bv-hero-content { max-width: 640px; }
.bv-hero .bv-brand-mark {
  font-family: var(--bv-font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: .75rem;
  color: #fff;
}
.bv-hero h1 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  margin-bottom: .85rem;
}
.bv-hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  max-width: 36rem;
  margin-bottom: 1.6rem;
}
.bv-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@keyframes bvHeroIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* Sections */
.bv-section {
  padding: 5rem 0;
}
.bv-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: .5rem;
}
.bv-section-lead {
  color: var(--bv-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}
.bv-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.bv-split-media {
  min-height: 380px;
  border-radius: var(--bv-radius);
  background: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  box-shadow: var(--bv-shadow);
}
.bv-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bv-service {
  padding: 0;
  background: transparent;
}
.bv-service h3 { font-size: 1.25rem; }
.bv-service p { color: var(--bv-muted); margin: 0; }
.bv-cta-band {
  background:
    linear-gradient(135deg, var(--bv-navy-80), rgba(104, 164, 196, 0.85)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
  color: #fff;
  border-radius: var(--bv-radius);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.bv-cta-band h2,
.bv-cta-band p { color: #fff; }
.bv-faq-list details {
  background: var(--bv-surface);
  border: 1px solid var(--bv-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: .75rem;
}
.bv-faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bv-navy);
}
[data-theme="dark"] .bv-faq-list summary { color: var(--bv-accent); }

@media (max-width: 900px) {
  .bv-split,
  .bv-services-grid { grid-template-columns: 1fr; }
}

/* Auth split */
.bv-auth {
  min-height: calc(100vh - var(--bv-header-h));
  margin-top: var(--bv-header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.bv-auth-panel {
  position: sticky;
  top: var(--bv-header-h);
  height: calc(100vh - var(--bv-header-h));
  background:
    linear-gradient(160deg, rgba(30, 67, 86, 0.88), rgba(11, 33, 45, 0.92)),
    url("https://images.unsplash.com/photo-1553729459-efe14ef6055d?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bv-auth-panel h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.bv-auth-panel p { color: rgba(255,255,255,.85); max-width: 26rem; }
.bv-auth-form {
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--bv-header-h));
  background: var(--bv-surface);
}
.bv-auth-form h2 { margin-bottom: .35rem; }
.bv-auth-form .bv-muted { color: var(--bv-muted); margin-bottom: 1.5rem; }
.bv-field { margin-bottom: 1rem; }
.bv-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.bv-field input,
.bv-field select,
.bv-field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--bv-border);
  background: var(--bv-soft);
  color: var(--bv-ink);
  font: inherit;
}
.bv-field input:focus,
.bv-field select:focus,
.bv-field textarea:focus {
  outline: 2px solid rgba(104, 164, 196, 0.55);
  border-color: var(--bv-accent);
}
.bv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .bv-auth { grid-template-columns: 1fr; align-items: stretch; }
  .bv-auth-panel {
    position: static;
    height: auto;
    min-height: 220px;
    padding: 2rem;
    justify-content: flex-end;
  }
  .bv-auth-form { min-height: 0; }
  .bv-form-row { grid-template-columns: 1fr; }
}

/* Footer */
.bv-footer {
  background: #0b212d;
  color: rgba(255,255,255,.82);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.bv-footer a { color: #a2cce3; }
.bv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.bv-footer h4 {
  color: #fff;
  font-family: var(--bv-font-body);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.bv-footer ul { list-style: none; padding: 0; margin: 0; }
.bv-footer li { margin-bottom: .45rem; }
.bv-footer-brand {
  font-family: var(--bv-font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: .75rem;
}
.bv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
}
@media (max-width: 860px) {
  .bv-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Toast / flash */
.bv-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: var(--bv-navy-80);
  color: #fff;
  padding: 1.75rem 2rem;
  border-radius: var(--bv-radius);
  text-align: center;
  min-width: min(320px, 90vw);
  box-shadow: var(--bv-shadow);
  animation: bvPanelIn .35s ease both;
}

/* ========== App shell ========== */
.bv-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--bv-sidebar-w) 1fr;
  background: var(--bv-soft);
}
.bv-sidebar {
  /* Deep ink teal — richer than flat navy, matches Brevix accent */
  background:
    radial-gradient(ellipse 120% 60% at 0% 0%, rgba(104, 164, 196, .18), transparent 55%),
    linear-gradient(175deg, #143648 0%, #0b212d 55%, #081820 100%);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem .9rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  overflow: hidden;
}
.bv-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--bv-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  padding: .25rem .55rem .5rem;
  line-height: 1.15;
  flex-shrink: 0;
}
.bv-sidebar-brand strong {
  display: block;
  color: #fff;
}
.bv-sidebar-brand small {
  display: block;
  margin-top: .2rem;
  font-family: var(--bv-font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(168, 204, 227, .7);
}
.bv-side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1 1 auto;
  min-height: 0;
}
.bv-side-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .58rem .8rem;
  border-radius: 12px;
  color: rgba(255,255,255,.78);
  font-weight: 600;
  font-size: .88rem;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bv-side-nav a:hover {
  background: rgba(104, 164, 196, .14);
  color: #fff;
  transform: translateX(2px);
}
.bv-side-nav a.is-active {
  background: rgba(104, 164, 196, .28);
  color: #fff;
  box-shadow: inset 3px 0 0 #68A4C4, inset 0 0 0 1px rgba(162, 204, 227, .22);
}
.bv-side-nav a.is-active .bv-nav-ico {
  opacity: 1;
  color: #a8cce3;
}
.bv-main { min-width: 0; display: flex; flex-direction: column; }
.bv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--bv-surface);
  border-bottom: 1px solid var(--bv-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bv-icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  border: 1px solid var(--bv-border);
  background: var(--bv-soft);
  color: var(--bv-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
  line-height: 1;
  font-size: 1.05rem;
}
.bv-icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.bv-topbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.bv-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #c0392b;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.bv-content {
  padding: 1.5rem;
  animation: bvPanelIn .4s ease both;
}
@keyframes bvPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bv-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bv-stat {
  background: var(--bv-surface);
  border: 1px solid var(--bv-border);
  border-radius: var(--bv-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(11, 33, 45, 0.04);
}
.bv-stat .label {
  color: var(--bv-muted);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bv-stat .value {
  font-family: var(--bv-font-display);
  font-size: 1.85rem;
  margin-top: .35rem;
  color: var(--bv-navy);
}
[data-theme="dark"] .bv-stat .value { color: var(--bv-accent); }

.bv-panel {
  background: var(--bv-surface);
  border: 1px solid var(--bv-border);
  border-radius: var(--bv-radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.bv-panel h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.bv-panel-warning {
  border-color: rgba(180, 83, 9, .45);
  background: rgba(180, 83, 9, .08);
}
.bv-transfer-alert {
  padding: 1rem 1.15rem;
  border-radius: var(--bv-radius);
  border: 1px solid var(--bv-border);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.bv-transfer-alert.is-success {
  border-color: rgba(46, 125, 50, .45);
  background: rgba(46, 125, 50, .08);
  color: #1b5e20;
}
.bv-transfer-alert.is-error {
  border-color: rgba(192, 57, 43, .45);
  background: rgba(192, 57, 43, .08);
  color: #922b21;
}
.bv-transfer-alert.is-warning {
  border-color: rgba(180, 83, 9, .45);
  background: rgba(180, 83, 9, .08);
  color: #92400e;
}
.bv-transfer-alert a { font-weight: 700; }
.bv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.bv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bv-panel-head h3 { margin-bottom: 0; }
.bv-btn-sm {
  padding: .35rem .75rem;
  font-size: .82rem;
}
.bv-receipt-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.bv-receipt {
  position: relative;
  width: min(640px, 100%);
  background: #fff;
  color: #0b212d;
  border: 1px solid var(--bv-border);
  border-radius: var(--bv-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 33, 45, .08);
}
.bv-receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.75rem;
  background: linear-gradient(135deg, rgba(30, 67, 86, 0.95), rgba(11, 33, 45, 0.98));
  color: #fff;
}
.bv-receipt-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.bv-receipt-brand strong {
  display: block;
  font-family: var(--bv-font-display);
  font-size: 1.25rem;
}
.bv-receipt-brand span {
  display: block;
  font-size: .82rem;
  opacity: .78;
  margin-top: .15rem;
}
.bv-receipt-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  font-family: var(--bv-font-display);
  font-size: 1.2rem;
}
.bv-receipt-meta {
  text-align: right;
  font-size: .82rem;
}
.bv-receipt-meta div + div { margin-top: .45rem; }
.bv-receipt-meta span {
  display: block;
  opacity: .72;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bv-receipt-body {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  background:
    radial-gradient(circle at 50% 42%, rgba(104, 164, 196, .08), transparent 55%),
    #fff;
}
.bv-receipt-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .35rem;
  pointer-events: none;
  user-select: none;
}
.bv-receipt-watermark-mark {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 3px solid rgba(30, 67, 86, .14);
  background: rgba(30, 67, 86, .05);
  color: rgba(30, 67, 86, .16);
  font-family: var(--bv-font-display);
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.bv-receipt-watermark-text {
  font-family: var(--bv-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(30, 67, 86, .12);
}
.bv-receipt-content {
  position: relative;
  z-index: 1;
}
.bv-receipt-amount {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e5edf2;
  text-align: center;
}
.bv-receipt-amount span {
  display: block;
  font-size: .82rem;
  color: #5b7280;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bv-receipt-amount strong {
  display: block;
  margin-top: .35rem;
  font-family: var(--bv-font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: #1e4356;
}
.bv-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  padding: 1.5rem 1.75rem;
  margin: 0;
}
.bv-receipt-grid div { min-width: 0; }
.bv-receipt-grid dt {
  margin: 0 0 .2rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #5b7280;
}
.bv-receipt-grid dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.bv-receipt-full { grid-column: 1 / -1; }
.bv-receipt-foot {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.75rem 1.5rem;
  background: #f4f8fb;
  border-top: 1px solid #e5edf2;
}
.bv-receipt-foot p {
  margin: 0;
  font-size: .86rem;
  color: #5b7280;
}
.bv-receipt-foot p + p { margin-top: .5rem; }
.bv-receipt-note { font-size: .8rem !important; }
.bv-table-wrap { overflow-x: auto; }
.bv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.bv-table th,
.bv-table td {
  text-align: left;
  padding: .75rem .6rem;
  border-bottom: 1px solid var(--bv-border);
}
.bv-table th {
  color: var(--bv-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bv-pill {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.bv-pill-ok { background: rgba(46, 125, 50, .15); color: #2e7d32; }
.bv-pill-warn { background: rgba(245, 158, 11, .18); color: #b45309; }
.bv-pill-bad { background: rgba(192, 57, 43, .15); color: #c0392b; }
.bv-pill-info { background: rgba(104, 164, 196, .2); color: var(--bv-navy); }

.bv-mobile-bar { display: none; }

.bv-topbar-greeting-short { display: none; }
.bv-topbar-greeting-full { display: inline; }

@media (max-width: 960px) {
  .bv-app { grid-template-columns: 1fr; }
  .bv-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    z-index: 200;
    transform: translateX(-105%);
    transition: transform .28s ease;
  }
  .bv-sidebar.is-open { transform: translateX(0); }
  .bv-topbar {
    padding: .85rem .9rem;
    gap: .65rem;
  }
  .bv-mobile-bar {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }
  .bv-mobile-bar .bv-icon-btn {
    flex: 0 0 40px;
    margin: 0;
  }
  .bv-topbar-copy {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
  }
  .bv-topbar-copy strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .95rem;
    line-height: 1.25;
  }
  .bv-topbar-greeting-full { display: none; }
  .bv-topbar-greeting-short { display: inline; }
  .bv-stat-grid { grid-template-columns: 1fr; }
}

.bv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 33, 45, .45);
  z-index: 150;
}
.bv-overlay.is-open { display: block; }

@media print {
  .bv-sidebar,
  .bv-topbar,
  .bv-actions,
  .bv-receipt-actions,
  .bv-header,
  .bv-footer,
  .bv-nav-toggle,
  .bv-loader,
  .bv-overlay,
  .bv-modal-backdrop,
  .bv-modal-head,
  .bv-modal-toolbar { display: none !important; }
  .bv-app { display: block; }
  .bv-content { padding: 0; }
  .bv-panel { box-shadow: none; border: 0; }
  .bv-receipt-wrap { margin: 0; }
  .bv-modal {
    position: static;
    display: block !important;
    padding: 0;
  }
  .bv-modal[hidden] { display: none !important; }
  .bv-modal-dialog {
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .bv-receipt {
    width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }
}

/* ========== Page loader ========== */
.bv-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(104, 164, 196, 0.18), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(30, 67, 86, 0.22), transparent 46%),
    var(--bv-page, #f7fafc);
  transition: opacity .45s ease, visibility .45s ease;
}

.bv-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bv-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--bv-accent), #9fd0e8, var(--bv-navy));
  box-shadow: 0 0 16px rgba(104, 164, 196, 0.55);
  animation: bvLoaderBar 1.15s cubic-bezier(.4, 0, .2, 1) infinite;
}

.bv-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: 1.75rem 2rem;
  text-align: center;
  animation: bvLoaderRise .55s ease both;
}

.bv-loader-mark {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.bv-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--bv-accent);
  border-right-color: rgba(104, 164, 196, 0.35);
  animation: bvLoaderSpin 1s linear infinite;
}

.bv-loader-ring-2 {
  inset: 8px;
  border-top-color: var(--bv-navy);
  border-right-color: transparent;
  animation-duration: 1.45s;
  animation-direction: reverse;
}

[data-theme="dark"] .bv-loader-ring-2 {
  border-top-color: #a2cce3;
}

.bv-loader-core {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bv-navy);
  color: #fff;
  font-family: var(--bv-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(30, 67, 86, 0.28);
}

.bv-loader-copy strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--bv-ink);
  font-family: var(--bv-font-display);
  font-size: 1.15rem;
}

.bv-loader-copy span {
  color: var(--bv-muted);
  font-size: .92rem;
}

@keyframes bvLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes bvLoaderBar {
  0% { width: 0; left: 0; opacity: .35; }
  40% { width: 55%; left: 8%; opacity: 1; }
  100% { width: 20%; left: 100%; opacity: 0; }
}

@keyframes bvLoaderRise {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Thin top bar used during in-app navigation */
.bv-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--bv-accent), #9fd0e8);
  box-shadow: 0 0 12px rgba(104, 164, 196, 0.5);
  opacity: 0;
  transition: width .35s ease, opacity .2s ease;
  pointer-events: none;
}

.bv-nav-progress.is-active {
  opacity: 1;
  width: 78%;
}

.bv-nav-progress.is-done {
  width: 100%;
  opacity: 0;
  transition: width .2s ease, opacity .35s ease .12s;
}

/* ========== Public banking experience ========== */
:root {
  --bv-success: #18794e;
  --bv-warning: #d58a18;
  --bv-page: #f7fafc;
  --bv-surface-elevated: #ffffff;
  --bv-navy-deep: #102f3f;
}

[data-theme="dark"] {
  --bv-page: #0b171e;
  --bv-surface-elevated: #142832;
  --bv-navy-deep: #09161d;
}

body {
  background: var(--bv-page);
  transition: background-color .25s ease, color .25s ease;
}

.bv-header {
  border-bottom: 1px solid transparent;
}

.bv-header.is-scrolled,
.bv-header.bv-header-solid {
  background: rgba(16, 47, 63, .96);
  border-bottom-color: rgba(255, 255, 255, .1);
}

.bv-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  line-height: 1;
}

.bv-brand small {
  display: block;
  margin-top: .2rem;
  font-family: var(--bv-font-body);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .68;
}

.bv-brand-emblem {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 1.15rem;
}

.bv-header-actions {
  display: none;
  align-items: center;
  gap: .35rem;
}

.bv-theme-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: .1rem;
  width: 66px;
  min-width: 66px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
}

.bv-theme-toggle span {
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}

:root:not([data-theme="dark"]) .bv-theme-sun,
[data-theme="light"] .bv-theme-sun,
[data-theme="dark"] .bv-theme-moon {
  background: #fff;
  color: var(--bv-navy);
}

.bv-theme-toggle-mobile { display: none; }

.bv-auth-theme {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  border-color: var(--bv-border);
  background: var(--bv-surface-elevated);
  color: var(--bv-muted);
  box-shadow: 0 8px 24px rgba(11, 33, 45, .1);
}

.bv-auth-theme .bv-theme-sun,
.bv-auth-theme .bv-theme-moon {
  color: var(--bv-muted);
}

.bv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: var(--bv-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bv-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.bv-hero {
  min-height: min(860px, 94vh);
  align-items: center;
  padding: calc(var(--bv-header-h) + 5rem) 0 5rem;
  background:
    linear-gradient(90deg, rgba(7, 28, 39, .96) 0%, rgba(20, 56, 73, .85) 43%, rgba(18, 51, 67, .28) 78%, rgba(7, 28, 39, .18) 100%),
    url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&w=2000&q=86") center 42%/cover no-repeat;
}

.bv-hero-content { max-width: 720px; }
.bv-hero .bv-brand-mark { display: none; }

.bv-hero h1 {
  max-width: 700px;
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}

.bv-hero p {
  max-width: 590px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.bv-hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, .76);
  font-size: .88rem;
  font-weight: 600;
}

.bv-hero-note span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.bv-hero-note span::before {
  content: "✓";
  color: var(--bv-accent);
}

.bv-trust-bar {
  background: var(--bv-surface-elevated);
  border-bottom: 1px solid var(--bv-border);
}

.bv-trust-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  align-items: center;
  min-height: 104px;
}

.bv-trust-item {
  padding: 1.3rem 1.5rem;
  border-left: 1px solid var(--bv-border);
}

.bv-trust-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.bv-trust-item strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--bv-ink);
  font-family: var(--bv-font-display);
  font-size: 1.2rem;
}

.bv-trust-item span {
  color: var(--bv-muted);
  font-size: .86rem;
}

.bv-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.bv-section-head .bv-section-lead {
  margin-bottom: 0;
}

.bv-section-kicker {
  margin-bottom: .55rem;
  color: var(--bv-accent-hover);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bv-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bv-product-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--bv-border);
  border-radius: 20px;
  background: var(--bv-surface-elevated);
  box-shadow: 0 14px 40px rgba(11, 33, 45, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.bv-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bv-shadow);
}

.bv-product-image {
  height: 190px;
  background-position: center;
  background-size: cover;
}

.bv-product-card:nth-child(1) .bv-product-image {
  background-image: url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=900&q=82");
}

.bv-product-card:nth-child(2) .bv-product-image {
  background-image: url("https://images.unsplash.com/photo-1579621970563-ebec7560ff3e?auto=format&fit=crop&w=900&q=82");
}

.bv-product-card:nth-child(3) .bv-product-image {
  background-image: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=900&q=82");
}

.bv-product-body { padding: 1.4rem; }
.bv-product-body h3 { font-size: 1.4rem; }
.bv-product-body p { color: var(--bv-muted); }
.bv-text-link { font-weight: 700; }

.bv-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.bv-feature {
  padding: 1.5rem;
  border: 1px solid var(--bv-border);
  border-radius: 16px;
  background: var(--bv-surface-elevated);
}

.bv-feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: rgba(104, 164, 196, .16);
  color: var(--bv-navy);
  font-size: 1.25rem;
}

[data-theme="dark"] .bv-feature-icon { color: var(--bv-accent); }
.bv-feature h3 { font-size: 1.05rem; }
.bv-feature p { margin: 0; color: var(--bv-muted); font-size: .92rem; }

.bv-banking-showcase {
  overflow: hidden;
  background: var(--bv-navy);
  color: #fff;
}

.bv-banking-showcase h2,
.bv-banking-showcase h3 { color: #fff; }

.bv-showcase-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.bv-phone-stage {
  position: relative;
  min-height: 530px;
  background:
    linear-gradient(180deg, rgba(30, 67, 86, .12), rgba(30, 67, 86, .52)),
    url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=1100&q=84") center/cover no-repeat;
  border-radius: 24px;
}

.bv-balance-preview {
  position: absolute;
  right: -28px;
  bottom: 34px;
  width: min(310px, 78%);
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(13, 39, 53, .86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
  backdrop-filter: blur(12px);
}

.bv-balance-preview small {
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bv-balance-preview strong {
  display: block;
  margin: .25rem 0 1rem;
  color: #fff;
  font-family: var(--bv-font-display);
  font-size: 2rem;
}

.bv-mini-row {
  display: flex;
  justify-content: space-between;
  padding-top: .7rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.bv-step-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.bv-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
}

.bv-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: var(--bv-accent);
  font-weight: 700;
}

.bv-step p { margin: 0; color: rgba(255, 255, 255, .67); }

.bv-security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.bv-security-image {
  min-height: 470px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(11, 33, 45, .05), rgba(11, 33, 45, .3)),
    url("https://images.unsplash.com/photo-1563986768494-4dee2763ff3f?auto=format&fit=crop&w=1100&q=84") center/cover no-repeat;
  box-shadow: var(--bv-shadow);
}

.bv-check-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.bv-check {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: .75rem;
}

.bv-check-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(24, 121, 78, .12);
  color: var(--bv-success);
  font-weight: 700;
}

.bv-testimonial {
  padding: 3rem;
  border-radius: 22px;
  background: var(--bv-surface-elevated);
  border: 1px solid var(--bv-border);
}

.bv-testimonial blockquote {
  max-width: 850px;
  margin: 0 auto 1.5rem;
  color: var(--bv-ink);
  font-family: var(--bv-font-display);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.35;
  text-align: center;
}

.bv-testimonial footer {
  color: var(--bv-muted);
  text-align: center;
}

.bv-page-hero {
  padding: calc(var(--bv-header-h) + 5rem) 0 5rem;
  background: var(--bv-navy);
  color: #fff;
}

.bv-page-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  letter-spacing: -.04em;
}

.bv-page-hero p {
  max-width: 610px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1.12rem;
}

.bv-photo-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
}

.bv-photo {
  border-radius: 18px;
  background-position: center;
  background-size: cover;
}

.bv-photo-main {
  grid-row: 1 / 3;
  background-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1100&q=84");
}

.bv-photo-team {
  background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=900&q=84");
}

.bv-photo-client {
  background-image: url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=900&q=84");
}

@media (max-width: 1040px) {
  .bv-nav { gap: .8rem; }
  .bv-nav a { font-size: .88rem; }
  .bv-product-grid { grid-template-columns: 1fr 1fr; }
  .bv-icon-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .bv-header-actions { display: flex; }
  .bv-theme-toggle-mobile { display: inline-grid; }
  .bv-theme-nav-item { display: none; }
  .bv-nav-toggle { display: block; }
  .bv-nav { align-items: stretch; }
  .bv-nav li { width: 100%; text-align: center; }
  .bv-nav a { display: block; padding: .55rem; }
  .bv-hero {
    min-height: 760px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(7, 28, 39, .38) 0%, rgba(7, 28, 39, .95) 72%),
      url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&w=1200&q=84") 62% center/cover no-repeat;
  }
  .bv-trust-grid { grid-template-columns: 1fr 1fr; }
  .bv-trust-item:nth-child(3) { border-left: 0; }
  .bv-product-grid,
  .bv-showcase-grid,
  .bv-security-grid { grid-template-columns: 1fr; }
  .bv-phone-stage { min-height: 420px; }
  .bv-balance-preview { right: 18px; }
  .bv-photo-grid { grid-template-columns: 1fr; grid-template-rows: 320px 220px 220px; }
  .bv-photo-main { grid-row: auto; }
}

@media (max-width: 640px) {
  .bv-section { padding: 4rem 0; }
  .bv-section-head { align-items: start; flex-direction: column; }
  .bv-product-grid,
  .bv-icon-grid { grid-template-columns: 1fr; }
  .bv-trust-grid { grid-template-columns: 1fr; padding: 1rem 0; }
  .bv-trust-item,
  .bv-trust-item:first-child,
  .bv-trust-item:nth-child(3) {
    padding: .9rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--bv-border);
  }
  .bv-trust-item:last-child { border-bottom: 0; }
  .bv-hero h1 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  .bv-hero-actions .bv-btn { width: 100%; }
  .bv-hero-note { flex-direction: column; gap: .55rem; }
  .bv-testimonial { padding: 2rem 1.25rem; }
  .bv-security-image { min-height: 340px; }
  .bv-footer-bottom span {
    display: block;
    float: none !important;
    margin-top: .35rem;
  }
}

/* ========== Admin console ========== */
body.bv-admin {
  --bv-sidebar-w: 248px;
  background:
    radial-gradient(circle at 12% 0%, rgba(104, 164, 196, .12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(30, 67, 86, .08), transparent 28%),
    var(--bv-soft);
}

body.bv-admin .bv-loader {
  transition: opacity .25s ease, visibility .25s ease;
}

.bv-sidebar-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(104, 164, 196, .35), rgba(104, 164, 196, .12));
  border: 1px solid rgba(162, 204, 227, .4);
  box-shadow: 0 0 0 1px rgba(11, 33, 45, .25) inset;
  font-family: var(--bv-font-display);
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
}

.bv-sidebar-kicker {
  margin: 0 .55rem .05rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  flex-shrink: 0;
}

.bv-nav-ico {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .8;
  color: rgba(168, 204, 227, .95);
}
.bv-nav-ico svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.bv-side-nav a:hover .bv-nav-ico {
  opacity: 1;
}

.bv-nav-count {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #68A4C4;
  color: #0b212d;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.bv-sidebar-foot {
  margin-top: auto;
  padding: .75rem .55rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: .65rem;
  flex-shrink: 0;
}

.bv-sidebar-user {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.bv-sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(104, 164, 196, .2);
  border: 1px solid rgba(162, 204, 227, .35);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.bv-sidebar-user strong {
  display: block;
  color: #fff;
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.bv-sidebar-user small {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .74rem;
}

.bv-sidebar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: .86rem;
}
.bv-sidebar-logout svg {
  width: 1rem;
  height: 1rem;
  opacity: .85;
}

.bv-sidebar-logout:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.bv-app-admin .bv-topbar {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  padding: .95rem 1.5rem;
}

[data-theme="dark"] .bv-app-admin .bv-topbar {
  background: rgba(17, 36, 48, .86);
}

.bv-topbar-copy {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}

.bv-topbar-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bv-muted);
}

.bv-admin-pagehead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.bv-admin-pagehead h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.bv-admin-pagehead p {
  margin: .35rem 0 0;
  color: var(--bv-muted);
  max-width: 42rem;
}

.bv-app-admin .bv-content {
  padding: 1.35rem 1.5rem 2rem;
  animation: bvPanelIn .28s ease both;
}

.bv-admin-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.25rem;
}

.bv-kpi {
  position: relative;
  overflow: hidden;
  background: var(--bv-surface);
  border: 1px solid var(--bv-border);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 10px 28px rgba(11, 33, 45, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.bv-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11, 33, 45, .08);
}

.bv-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--bv-accent);
}

.bv-kpi .label {
  color: var(--bv-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bv-kpi .value {
  margin-top: .45rem;
  font-family: var(--bv-font-display);
  font-size: 1.85rem;
  color: var(--bv-navy);
  line-height: 1;
}

[data-theme="dark"] .bv-kpi .value { color: var(--bv-accent); }

.bv-kpi .hint {
  margin-top: .55rem;
  font-size: .82rem;
  color: var(--bv-muted);
}

.bv-kpi a {
  color: inherit;
  text-decoration: none;
}

.bv-admin-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bv-queue-list {
  display: grid;
  gap: .7rem;
}

.bv-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--bv-border);
  background: var(--bv-soft);
}

.bv-queue-item strong {
  display: block;
  font-size: .98rem;
}

.bv-queue-item span {
  color: var(--bv-muted);
  font-size: .82rem;
}

.bv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: end;
  margin-bottom: 0;
}

.bv-toolbar .bv-field {
  margin-bottom: 0;
  min-width: min(220px, 100%);
  flex: 1;
}

.bv-toolbar .bv-field:last-child {
  flex: 0 0 auto;
  min-width: 0;
}

.bv-app-admin .bv-panel {
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 28px rgba(11, 33, 45, .04);
}

.bv-app-admin .bv-table th {
  background: transparent;
  border-bottom-width: 2px;
}

.bv-app-admin .bv-table tbody tr {
  transition: background .15s ease;
}

.bv-app-admin .bv-table tbody tr:hover {
  background: rgba(104, 164, 196, .08);
}

.bv-user-cell {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.bv-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 67, 86, .12);
  color: var(--bv-navy);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

[data-theme="dark"] .bv-user-avatar {
  background: rgba(104, 164, 196, .18);
  color: var(--bv-accent);
}

.bv-user-list {
  display: grid;
  gap: .75rem;
}

.bv-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(9rem, .8fr) auto auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--bv-border);
  border-radius: 14px;
  background: var(--bv-soft);
}

.bv-user-card-main {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.bv-user-card-copy {
  min-width: 0;
}

.bv-user-card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv-user-card-email,
.bv-user-card-ids {
  margin: .2rem 0 0;
  color: var(--bv-muted);
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv-user-card-ids {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
}

.bv-user-card-ids span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
}

.bv-user-card-balances {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.bv-user-card-status {
  justify-self: start;
}

.bv-user-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}

.bv-balance-stack {
  display: grid;
  gap: .35rem;
  min-width: 9.5rem;
}

.bv-balance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .85rem;
  white-space: nowrap;
}

.bv-balance-row span {
  color: var(--bv-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bv-balance-row strong {
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
  font-weight: 700;
  color: var(--bv-ink);
}

.bv-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.bv-action-rows {
  display: grid;
  gap: .55rem;
  min-width: 15rem;
}

.bv-action-row {
  display: flex;
  align-items: center;
}

.bv-credit-row,
.bv-credit-form .bv-form-row {
  align-items: end;
}

.bv-credit-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .4rem;
  width: 100%;
  align-items: center;
}

.bv-credit-row select,
.bv-credit-row input {
  width: 100%;
  min-width: 0;
  padding: .4rem .55rem;
  border-radius: 8px;
  border: 1px solid var(--bv-border);
  background: var(--bv-soft);
  color: var(--bv-ink);
  font: inherit;
  font-size: .82rem;
}

@media (max-width: 1100px) {
  .bv-user-card {
    grid-template-columns: 1fr 1fr;
  }
  .bv-user-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .bv-user-card {
    grid-template-columns: 1fr;
  }
}

.bv-check-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .35rem;
  font-weight: 600;
  color: var(--bv-ink);
  cursor: pointer;
}

.bv-check-row input {
  width: 1rem;
  height: 1rem;
}

/* Receipt modal */
body.bv-modal-open {
  overflow: hidden;
}

.bv-modal[hidden] {
  display: none !important;
}

.bv-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.bv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 33, 45, .58);
  backdrop-filter: blur(4px);
}

.bv-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: var(--bv-surface);
  border: 1px solid var(--bv-border);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  padding: 1rem 1rem 1.25rem;
}

.bv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.bv-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.bv-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}

.bv-modal-body .bv-receipt-wrap,
.bv-modal-body .bv-receipt {
  width: 100%;
  margin: 0;
  box-shadow: none;
}

.bv-modal-body .bv-admin-empty {
  padding: 2rem 1rem;
}

.bv-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bv-border);
}

.bv-pagination-meta {
  margin: 0;
  color: var(--bv-muted);
  font-size: .88rem;
}

.bv-pagination-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.bv-page-num {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--bv-border);
  color: var(--bv-ink);
  font-weight: 700;
  font-size: .86rem;
  padding: 0 .45rem;
}

.bv-page-num:hover {
  border-color: var(--bv-accent);
}

.bv-page-num.is-active {
  background: var(--bv-navy);
  border-color: var(--bv-navy);
  color: #fff;
}

[data-theme="dark"] .bv-page-num.is-active {
  background: var(--bv-accent);
  border-color: var(--bv-accent);
  color: #0b212d;
}

.bv-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.bv-beneficiary-panel {
  position: relative;
}

.bv-beneficiary-panel.is-loading form {
  opacity: .45;
  pointer-events: none;
}

.bv-form-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  background: rgba(247, 250, 252, .82);
  backdrop-filter: blur(2px);
  border-radius: inherit;
}

[data-theme="dark"] .bv-form-loader {
  background: rgba(17, 36, 48, .82);
}

.bv-form-loader[hidden] {
  display: none !important;
}

.bv-form-loader p {
  margin: 0;
  font-weight: 700;
  color: var(--bv-ink);
}

.bv-form-loader-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(30, 67, 86, .18);
  border-top-color: var(--bv-navy);
  animation: bvSpin .7s linear infinite;
}

[data-theme="dark"] .bv-form-loader-spin {
  border-color: rgba(104, 164, 196, .25);
  border-top-color: var(--bv-accent);
}

@keyframes bvSpin {
  to { transform: rotate(360deg); }
}

.bv-review-dialog {
  width: min(520px, 100%);
}

.bv-review-lead {
  margin: .25rem 0 0;
  color: var(--bv-muted);
  font-size: .9rem;
  font-weight: 500;
}

.bv-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1rem;
  margin: 0 0 1.1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--bv-border);
  background: var(--bv-soft);
}

.bv-review-grid div { min-width: 0; }
.bv-review-grid dt {
  margin: 0 0 .2rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bv-muted);
  font-weight: 700;
}
.bv-review-grid dd {
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}

.bv-review-actions {
  justify-content: flex-end;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .bv-review-grid { grid-template-columns: 1fr; }
}

.bv-credit-box {
  margin-top: .55rem;
  padding: .7rem;
  border-radius: 12px;
  border: 1px solid var(--bv-border);
  background: var(--bv-soft);
  max-width: 240px;
}

.bv-credit-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .82rem;
  color: var(--bv-navy);
}

[data-theme="dark"] .bv-credit-box summary { color: var(--bv-accent); }

.bv-admin-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--bv-muted);
}

.bv-admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(104, 164, 196, .18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(30, 67, 86, .16), transparent 42%),
    linear-gradient(160deg, #0b212d 0%, #1e4356 55%, #163749 100%);
}

.bv-admin-login-card {
  width: min(440px, 100%);
  background: var(--bv-surface);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.28);
}

.bv-admin-login-card h1 {
  margin: .35rem 0 .25rem;
  font-size: 1.85rem;
}

.bv-admin-login-card .bv-muted {
  margin-bottom: 1.35rem;
}

.bv-admin-login-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--bv-navy);
  font-family: var(--bv-font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

[data-theme="dark"] .bv-admin-login-brand { color: var(--bv-accent); }

.bv-admin-login .bv-auth-theme {
  top: 1.25rem;
  right: 1.25rem;
}

@media (max-width: 1100px) {
  .bv-admin-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bv-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bv-admin-kpi { grid-template-columns: 1fr; }
  .bv-admin-pagehead { align-items: start; flex-direction: column; }
}


