/* --------------------------------------------------------------------------
   Payvok — espace bancaire classique
   -------------------------------------------------------------------------- */

body.bank-mode {
  background: #f6f6fc;
}

body.bank-mode #landing {
  display: none;
}

#bank-app[hidden] {
  display: none !important;
}

.bank-app {
  display: grid;
  grid-template-columns: 197px minmax(0, 1fr);
  min-height: 100vh;
  background: #f6f6fc;
  color: #06080d;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.bank-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 560px;
  padding: 10px 0 22px;
  background: #f6f6fc;
}

.bank-brand {
  align-self: flex-start;
  height: 29px;
  margin-left: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #03050a;
  font-size: 28px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -1.55px;
  line-height: 1;
  cursor: pointer;
}

.bank-nav {
  display: flex;
  flex-direction: column;
  margin: 37px 19px 0 16px;
}

.bank-nav-item {
  display: flex;
  align-items: center;
  gap: 17px;
  width: 100%;
  height: 39px;
  margin: 0 0 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 21px;
  background: transparent;
  color: #171b26;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.65px;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.bank-nav-item:last-child {
  margin-top: -2px;
  margin-bottom: 0;
}

.bank-nav-item.is-active {
  margin-bottom: 9px;
  background: #e2e8fd;
  color: #1639d2;
  font-weight: 600;
}

.bank-nav-item:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.62);
  color: #05070d;
}

.bank-nav-item:not(.is-active):active {
  transform: scale(0.988);
}

.bank-nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.85;
}

.bank-nav-item.is-active svg {
  stroke-width: 2;
}

.bank-sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e1e3ee;
}

.bank-sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 16px 8px;
}

.bank-avatar {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111620;
  color: #f7f8fc;
  font-size: 9.8px;
  font-weight: 700;
  place-items: center;
}

.bank-avatar-large {
  width: 34px;
  height: 34px;
}

.bank-user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.bank-user-copy strong {
  overflow: hidden;
  color: #202635;
  font-size: 9.8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-user-copy span {
  overflow: hidden;
  color: #8a92a0;
  font-size: 8.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 32px);
  min-height: 30px;
  margin: 0 16px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7f8898;
  font-size: 9.5px;
  text-align: left;
  cursor: pointer;
}

.bank-sidebar-logout svg {
  width: 14px;
  height: 14px;
}

.bank-sidebar-logout:hover {
  background: #fff;
  color: #10141d;
}

/* --------------------------------------------------------------------------
   Main background and top bar
   -------------------------------------------------------------------------- */

.bank-main {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(55% 60% at 92% 15%, rgba(218, 229, 255, 0.55), transparent 70%),
    radial-gradient(50% 50% at 85% 85%, rgba(228, 241, 255, 0.5), transparent 70%),
    #fcfcfd;
  overflow: hidden;
}

.bank-main::before {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 218, 255, 0.48), transparent 68%);
  content: "";
  pointer-events: none;
}

.bank-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  height: 50px;
  padding: 0 17px 0 16px;
}

.bank-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 400px;
  height: 31px;
  margin-top: 9px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 17px;
  background: linear-gradient(180deg, #f0f1f6 0%, #eceef4 100%);
  box-shadow:
    0 1px 1px rgba(19, 28, 50, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: #606b80;
  cursor: text;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.bank-search:focus-within {
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(37, 80, 232, 0.12),
    0 1px 2px rgba(19, 28, 50, 0.04);
}

.bank-search svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.bank-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #141927;
  font-size: 12.5px;
}

.bank-search input::placeholder {
  color: #6d7688;
  opacity: 1;
}

.bank-search input::-webkit-search-cancel-button {
  display: none;
}

.bank-top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 13px;
  margin-left: auto;
}

.bank-notification-wrap,
.bank-profile-wrap {
  position: relative;
}

.bank-icon-button {
  position: relative;
  display: grid;
  width: 22px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #080b12;
  cursor: pointer;
  place-items: center;
}

.bank-icon-button svg {
  width: 21px;
  height: 23px;
  stroke-width: 1.85;
}

.bank-notification-dot {
  position: absolute;
  top: 3px;
  right: 1px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ef5454;
}

.bank-profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bank-chevron {
  width: 13px;
  height: 13px;
  stroke-width: 2.15;
  color: #0b0e16;
  transition: transform 160ms ease;
}

.bank-profile-wrap.is-open .bank-chevron {
  transform: rotate(180deg);
}

/* Popovers --------------------------------------------------------------- */

.bank-popover {
  position: absolute;
  z-index: 100;
  top: calc(100% + 12px);
  right: 0;
  visibility: hidden;
  width: 284px;
  padding: 8px;
  border: 1px solid rgba(229, 231, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 50px -18px rgba(18, 27, 52, 0.28),
    0 3px 8px rgba(18, 27, 52, 0.045);
  opacity: 0;
  transform: translateY(-5px) scale(0.985);
  transform-origin: top right;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  backdrop-filter: blur(18px);
}

.bank-popover.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bank-popover-head {
  padding: 9px 9px 8px;
  color: #0b0e16;
  font-size: 12.5px;
  font-weight: 650;
}

.bank-notifications-popover {
  width: 306px;
}

.bank-notification-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px 9px 13px;
  border-top: 1px solid #f0f1f5;
}

.bank-notification-icon {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f0f3ff;
  color: #425ed1;
  place-items: center;
}

.bank-notification-icon svg {
  width: 15px;
  height: 15px;
}

.bank-notification-item strong {
  display: block;
  margin-top: 1px;
  color: #111520;
  font-size: 11.5px;
  font-weight: 650;
}

.bank-notification-item p {
  margin: 3px 0 0;
  color: #747e90;
  font-size: 10.5px;
  line-height: 1.45;
}

.bank-profile-popover {
  width: 258px;
  padding: 7px;
}

.bank-profile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
}

.bank-profile-summary strong {
  display: block;
  color: #0b0e16;
  font-size: 12px;
  font-weight: 650;
}

.bank-profile-summary span:not(.bank-avatar) {
  display: block;
  max-width: 165px;
  margin-top: 3px;
  overflow: hidden;
  color: #7a8394;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-popover-separator {
  height: 1px;
  margin: 3px 6px 6px;
  background: #f0f1f5;
}

.bank-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #232938;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.bank-menu-item:hover {
  background: #f5f6fa;
  color: #0a0d14;
}

.bank-menu-item svg {
  width: 15px;
  height: 15px;
  color: #59647a;
}

/* --------------------------------------------------------------------------
   Content + shared components
   -------------------------------------------------------------------------- */

.bank-content {
  position: relative;
  z-index: 2;
  padding: 34px 16px 40px 22px;
}

.bank-view {
  animation: bank-view-in 260ms ease both;
}

.bank-view[hidden] {
  display: none !important;
}

@keyframes bank-view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bank-kicker {
  margin: 0 0 6px;
  color: #52637f;
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bank-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #ebecf3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 2px rgba(19, 28, 51, 0.015),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.bank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bank-panel-head h2 {
  margin: 0;
  color: #080a0f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.25px;
  line-height: 1.25;
}

.bank-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #283777;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.bank-inline-link svg {
  width: 12px;
  height: 12px;
}

.bank-inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bank-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.2px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.bank-button:hover {
  transform: translateY(-1px);
}

.bank-button svg {
  width: 15px;
  height: 15px;
}

.bank-button-dark {
  border-color: #0b0d13;
  background: #0c0e14;
  color: #fff;
}

.bank-button-dark:hover {
  background: #1a1e28;
}

.bank-button-secondary {
  border-color: #e1e3ea;
  background: #fff;
  color: #202634;
}

.bank-button-secondary:hover {
  background: #f8f9fb;
}

.bank-button-light {
  border-color: #fff;
  background: #fff;
  color: #15213a;
}

.bank-button-small {
  height: 31px;
  padding: 0 11px;
  font-size: 9.5px;
}

.bank-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.bank-page-head h2 {
  margin: 0;
  color: #04060a;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.bank-page-head p {
  max-width: 500px;
  margin: 6px 0 0;
  color: #626d80;
  font-size: 11.5px;
  line-height: 1.5;
}

.bank-count {
  color: #8b94a3;
  font-size: 9.5px;
  white-space: nowrap;
}

.bank-head-balance {
  color: #7e8898;
  font-size: 10px;
  white-space: nowrap;
}

.bank-head-balance strong {
  margin-left: 5px;
  color: #111927;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.45px;
}

.bank-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.bank-metric {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #ebecf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
}

.bank-metric span {
  display: block;
  color: #8992a2;
  font-size: 8.8px;
}

.bank-metric strong {
  display: block;
  margin-top: 6px;
  color: #151b25;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.65px;
}

.bank-metric strong.is-positive {
  color: #15825f;
}

/* --------------------------------------------------------------------------
   Home dashboard
   -------------------------------------------------------------------------- */

.dashboard-layout {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.dashboard-primary {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-side {
  display: flex;
  flex: 0 0 276px;
  flex-direction: column;
  width: 276px;
  min-width: 0;
}

.dashboard-hero h1 {
  margin: 0;
  color: #04060a;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.15px;
  line-height: 1.08;
}

.dashboard-wave {
  display: inline-block;
  margin-left: 4px;
  font-size: 27px;
  vertical-align: 3px;
}

.dashboard-lede {
  margin: 6px 0 0;
  color: #59647b;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.18px;
  line-height: 1.45;
}

.dashboard-balance-section {
  margin-top: 24px;
}

.dashboard-balance-label {
  color: #080a0f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.15px;
}

.dashboard-balance {
  margin: 7px 0 0;
  color: #000;
  font-size: 47px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-balance-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
  color: #4f9b7d;
  font-size: 9.8px;
  line-height: 1.4;
}

.dashboard-balance-note svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
}

.dashboard-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(225, 227, 235, 0.78);
  border-radius: 999px;
  background: linear-gradient(180deg, #f2f3f7 0%, #edeff4 100%);
  color: #10131a;
  font-size: 11.4px;
  font-weight: 600;
  letter-spacing: -0.12px;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.dashboard-action:hover {
  transform: translateY(-1px);
  background: #f7f8fb;
}

.dashboard-action svg {
  width: 15px;
  height: 15px;
}

.dashboard-action-primary {
  border-color: #0b0d13;
  background: #0c0e14;
  color: #fff;
}

.dashboard-action-primary:hover {
  background: #1a1e28;
}

.dashboard-activity {
  min-height: 194px;
  margin-top: 27px;
  padding: 18px 16px 15px;
}

.dashboard-card-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bank-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background:
    radial-gradient(100% 140% at 105% 0%, rgba(87, 101, 144, 0.44), transparent 52%),
    linear-gradient(128deg, #2c303a 0%, #1a1e28 35%, #0a0d14 78%, #111722 100%);
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 18px 29px -21px rgba(17, 25, 46, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: filter 180ms ease;
}

.bank-card::before {
  position: absolute;
  top: -93px;
  right: -62px;
  width: 250px;
  height: 195px;
  border: 36px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  transform: rotate(-26deg);
}

.bank-card-home {
  height: 162px;
  padding: 18px;
}

.bank-card-large {
  max-width: 420px;
  aspect-ratio: 1.6;
  padding: 23px;
}

.bank-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-card-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.75px;
}

.bank-card-p {
  display: grid;
  width: 20px;
  height: 22px;
  background: #fff;
  color: #171b24;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
  place-items: center;
}

.bank-card-contactless {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.bank-card-chip {
  position: absolute;
  bottom: 51px;
  left: 18px;
  width: 29px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(61, 68, 82, 0.52) 43%, rgba(61, 68, 82, 0.52) 49%, transparent 49%),
    linear-gradient(0deg, transparent 30%, rgba(61, 68, 82, 0.48) 30%, rgba(61, 68, 82, 0.48) 35%, transparent 35%, transparent 64%, rgba(61, 68, 82, 0.48) 64%, rgba(61, 68, 82, 0.48) 70%, transparent 70%),
    linear-gradient(132deg, #b8bdc6 0%, #f5f6f8 27%, #9ea5b0 63%, #e1e3e8 100%);
}

.bank-card-number {
  position: absolute;
  z-index: 1;
  bottom: 48px;
  left: 18px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.bank-card-home .bank-card-chip {
  bottom: 58px;
}

.bank-card-home .bank-card-number {
  bottom: 34px;
}

.bank-card-bottom {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 7.7px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bank-card-large .bank-card-brand {
  font-size: 16px;
}

.bank-card-large .bank-card-p {
  width: 25px;
  height: 27px;
  font-size: 22px;
}

.bank-card-large .bank-card-contactless {
  width: 22px;
  height: 22px;
}

.bank-card-large .bank-card-chip {
  bottom: 76px;
  left: 23px;
  width: 32px;
  height: 24px;
}

.bank-card-large .bank-card-number {
  bottom: 48px;
  left: 23px;
  font-size: 12px;
}

.bank-card-large .bank-card-bottom {
  right: 23px;
  bottom: 20px;
  left: 23px;
  font-size: 8.3px;
}

.bank-card.is-locked {
  filter: saturate(0.35) brightness(0.83);
}

.dashboard-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 5px;
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #303a52;
  font-size: 9.6px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-card-link svg {
  width: 12px;
  height: 12px;
}

.dashboard-spending {
  margin-top: 22px;
  padding: 17px 16px 14px;
}

.dashboard-spending-amount {
  margin: 6px 0 10px;
  color: #05070b;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1;
}

.dashboard-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 54px;
  gap: 5px;
}

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-top: 1px dashed #e9edf5;
  color: #9aa3b2;
  font-size: 8.6px;
  text-align: center;
}

.dashboard-chart .chart-column,
.bank-chart .chart-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  height: 100%;
}

.dashboard-chart .chart-bar,
.bank-chart .chart-bar {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: #dce3f7;
}

.dashboard-chart .chart-bar.has-value,
.bank-chart .chart-bar.has-value {
  background: linear-gradient(180deg, #6a88f8 0%, #405ddf 100%);
}

.dashboard-chart .chart-label {
  color: #a2a9b7;
  font-size: 7.4px;
  line-height: 1;
}

.dashboard-chart-note {
  margin: 8px 0 0;
  color: #9aa2b0;
  font-size: 8px;
}

/* --------------------------------------------------------------------------
   Transactions list
   -------------------------------------------------------------------------- */

.bank-transactions {
  display: flex;
  flex-direction: column;
}

.bank-transaction {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #f1f2f6;
}

.bank-transaction:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bank-transaction-icon {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eef2ff;
  color: #3c58cd;
  place-items: center;
}

.bank-transaction-icon.is-credit {
  background: #e9f8f1;
  color: #1c906a;
}

.bank-transaction-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.bank-transaction-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.bank-transaction-copy strong {
  overflow: hidden;
  color: #303847;
  font-size: 9.9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-transaction-copy span {
  color: #9aa2af;
  font-size: 8.2px;
}

.bank-transaction-amount {
  flex: none;
  color: #303847;
  font-size: 9.8px;
  font-weight: 600;
  white-space: nowrap;
}

.bank-transaction-amount.is-credit {
  color: #16845f;
}

.bank-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 27px 13px;
  color: #8791a1;
  text-align: center;
}

.bank-empty > span {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #f1f4fb;
  color: #8491a7;
  place-items: center;
}

.bank-empty svg {
  width: 16px;
  height: 16px;
}

.bank-empty strong {
  color: #5e6a7c;
  font-size: 10px;
  font-weight: 600;
}

.bank-empty p {
  margin: 4px 0 0;
  font-size: 8.7px;
}

/* Filters ------------------------------------------------------------------ */

.bank-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 5px;
  padding-bottom: 11px;
  border-bottom: 1px solid #f0f1f5;
}

.bank-filters {
  display: flex;
  gap: 4px;
}

.bank-filters button {
  height: 25px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #7c8697;
  font-size: 8.8px;
  font-weight: 550;
  cursor: pointer;
}

.bank-filters button:hover {
  background: #f5f6fa;
  color: #263040;
}

.bank-filters button.is-active {
  border-color: #e1e6f8;
  background: #eef2ff;
  color: #2947bd;
}

/* --------------------------------------------------------------------------
   Cards page
   -------------------------------------------------------------------------- */

.bank-cards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 14px;
}

.bank-card-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 336px;
  padding: 30px;
}

.bank-card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  margin-top: 28px;
}

.bank-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667285;
  font-size: 9px;
}

.bank-card-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2eb088;
  box-shadow: 0 0 0 3px #e9f8f1;
}

.bank-card-status.is-locked i {
  background: #bd7c38;
  box-shadow: 0 0 0 3px #fff5e7;
}

.bank-details-panel {
  align-self: start;
  min-height: 336px;
}

.bank-detail-list {
  display: flex;
  flex-direction: column;
}

.bank-detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #f1f2f6;
}

.bank-detail-list > div:last-child {
  border-bottom: 0;
}

.bank-detail-list span {
  color: #8c95a4;
  font-size: 9px;
}

.bank-detail-list strong {
  overflow: hidden;
  color: #363f4e;
  font-size: 9.5px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Analytics
   -------------------------------------------------------------------------- */

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 14px;
}

.bank-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
}

.bank-chart-large {
  height: 185px;
  padding-top: 12px;
}

.bank-chart-large .chart-column {
  gap: 8px;
}

.bank-chart-large .chart-bar {
  max-width: 44px;
  border-radius: 6px 6px 3px 3px;
}

.bank-chart-large .chart-label {
  color: #8d96a6;
  font-size: 8px;
}

.analytics-categories {
  display: flex;
  flex-direction: column;
}

.analytics-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f2f6;
}

.analytics-row:last-child {
  border-bottom: 0;
}

.analytics-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4a5567;
  font-size: 9.3px;
}

.analytics-row-head strong {
  color: #2e3746;
  font-size: 9.3px;
  font-weight: 600;
}

.analytics-track {
  height: 4px;
  border-radius: 3px;
  background: #f0f2f8;
  overflow: hidden;
}

.analytics-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #5e79e7;
}

.analytics-empty {
  color: #8d96a5;
  font-size: 9.5px;
  line-height: 1.5;
  padding: 20px 0;
}

/* --------------------------------------------------------------------------
   Send / receive
   -------------------------------------------------------------------------- */

.bank-send-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.bank-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bank-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.bank-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bank-field > span:first-child {
  color: #4a5567;
  font-size: 9.3px;
  font-weight: 600;
}

.bank-field small {
  color: #9aa2af;
  font-size: 8.3px;
  font-weight: 400;
}

.bank-field input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e3e6ee;
  border-radius: 9px;
  outline: 0;
  background: #fbfbfd;
  color: #1c2533;
  font-size: 10.4px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.bank-field input::placeholder {
  color: #a2a9b5;
}

.bank-field input:focus {
  border-color: #b9c6ee;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 81, 195, 0.07);
}

.bank-field input.is-invalid {
  border-color: #deaaaa;
  box-shadow: 0 0 0 3px rgba(163, 54, 54, 0.06);
}

.bank-amount-field {
  position: relative;
  display: flex;
  align-items: center;
}

.bank-amount-field input {
  padding-right: 30px;
}

.bank-amount-field > span {
  position: absolute;
  right: 12px;
  color: #7e8899;
  font-size: 11px;
}

.bank-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff3f2;
  color: #9e3d39;
  font-size: 9.3px;
  line-height: 1.45;
}

.bank-form .bank-button {
  align-self: flex-start;
  height: 41px;
  margin-top: 2px;
}

.bank-side-card {
  align-self: start;
  padding: 22px;
  border: 1px solid #dfe6ff;
  border-radius: 18px;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(215, 225, 255, 0.78), transparent 59%),
    #f4f7ff;
}

.bank-side-icon {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 24px;
  border: 1px solid #d7e2ff;
  border-radius: 10px;
  background: #fff;
  color: #3f5dcf;
  place-items: center;
}

.bank-side-icon svg {
  width: 16px;
  height: 16px;
}

.bank-side-card h2 {
  margin: 0;
  color: #1b2a57;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.35px;
}

.bank-side-card p {
  margin: 7px 0 0;
  color: #7e8aa5;
  font-size: 9.2px;
  line-height: 1.55;
}

.bank-side-line {
  height: 1px;
  margin: 23px 0 13px;
  background: #e1e6f3;
}

.bank-side-label {
  display: block;
  color: #8a96ad;
  font-size: 8.4px;
}

.bank-side-balance {
  display: block;
  margin-top: 3px;
  color: #263c77;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.55px;
}

.bank-receive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.bank-receive-card {
  position: relative;
  padding: 27px;
  border-radius: 18px;
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(91, 116, 255, 0.43), transparent 55%),
    linear-gradient(140deg, #10182b, #0a0e17);
  color: #fff;
  overflow: hidden;
}

.bank-receive-card::after {
  position: absolute;
  right: -112px;
  bottom: -129px;
  width: 310px;
  height: 310px;
  border: 34px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.bank-receive-card .bank-kicker {
  position: relative;
  z-index: 1;
  color: rgba(216, 226, 255, 0.58);
}

.bank-receive-id {
  position: relative;
  z-index: 1;
  margin: 22px 0 21px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  word-break: break-word;
}

.bank-receive-card .bank-button {
  position: relative;
  z-index: 1;
}

.bank-hint {
  position: relative;
  z-index: 1;
  max-width: 255px;
  margin: 14px 0 0;
  color: rgba(220, 230, 252, 0.5);
  font-size: 8.9px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Settings / help
   -------------------------------------------------------------------------- */

.bank-settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bank-session-copy {
  max-width: 330px;
  margin: 0 0 18px;
  color: #838c9b;
  font-size: 9.8px;
  line-height: 1.55;
}

.bank-help-panel {
  max-width: 780px;
  padding: 6px 18px;
}

.bank-faq-item {
  border-bottom: 1px solid #f0f1f5;
}

.bank-faq-item:last-child {
  border-bottom: 0;
}

.bank-faq-item summary {
  position: relative;
  padding: 16px 34px 16px 0;
  color: #2c3544;
  font-size: 11.2px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.bank-faq-item summary::-webkit-details-marker {
  display: none;
}

.bank-faq-item summary::before,
.bank-faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: #6b7688;
  content: "";
  transition: transform 160ms ease;
}

.bank-faq-item summary::after {
  transform: rotate(90deg);
}

.bank-faq-item[open] summary::after {
  transform: rotate(0);
}

.bank-faq-item p {
  max-width: 650px;
  margin: -4px 0 16px;
  color: #788293;
  font-size: 9.8px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Landing signup success
   -------------------------------------------------------------------------- */

.success-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  margin-top: 17px;
}

.success-actions .button {
  width: 100%;
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1060px) {
  .bank-app {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .bank-sidebar {
    padding-bottom: 22px;
  }

  .bank-brand {
    align-self: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-left: 0;
    border-radius: 13px;
    background: #0b0e16;
    color: transparent;
    font-size: 0;
    box-shadow: 0 6px 14px -7px rgba(10, 16, 31, 0.55);
  }

  .bank-brand::after {
    color: #fff;
    content: "P";
    font-size: 25px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: -1.5px;
    transform: translateX(-1px);
  }

  .bank-nav {
    margin: 26px 14px 0;
  }

  .bank-nav-item {
    justify-content: center;
    height: 44px;
    margin-bottom: 5px;
    padding: 0;
  }

  .bank-nav-item.is-active {
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .bank-nav-item span {
    display: none;
  }

  .bank-sidebar-foot {
    display: none;
  }

  .bank-content {
    padding-left: 18px;
  }

  .bank-topbar {
    padding-left: 18px;
  }

  .bank-search {
    width: min(400px, 46vw);
  }
}

@media (max-width: 900px) {
  .bank-app {
    display: block;
    padding-bottom: 80px;
  }

  .bank-sidebar {
    position: fixed;
    z-index: 80;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    width: auto;
    height: 58px;
    min-height: 0;
    padding: 7px;
    border: 1px solid rgba(229, 231, 240, 0.9);
    border-radius: 18px;
    background: rgba(246, 246, 252, 0.94);
    box-shadow: 0 16px 38px -16px rgba(15, 24, 49, 0.34);
    backdrop-filter: blur(16px);
  }

  .bank-brand,
  .bank-sidebar-foot {
    display: none;
  }

  .bank-nav {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bank-nav::-webkit-scrollbar {
    display: none;
  }

  .bank-nav-item {
    flex: 0 0 37px;
    width: 37px;
    height: 43px;
    margin: 0;
    border-radius: 12px;
  }

  .bank-nav-item.is-active {
    margin: 0;
  }

  .bank-nav-item:last-child {
    margin-top: 0;
  }

  .bank-main {
    padding-bottom: 80px;
  }

  .bank-topbar {
    height: 58px;
    padding: 0 14px;
  }

  .bank-search {
    width: 43px;
    margin-top: 13px;
    padding: 0 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: width 220ms ease;
  }

  .bank-search:focus-within {
    width: min(260px, calc(100vw - 150px));
  }

  .bank-search input {
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .bank-search:focus-within input {
    opacity: 1;
  }

  .bank-top-actions {
    gap: 14px;
    margin-top: 14px;
  }

  .bank-content {
    padding: 18px 14px 28px;
  }

  .bank-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .bank-page-head h2 {
    font-size: 27px;
    letter-spacing: -1.35px;
  }

  .bank-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .dashboard-primary {
    display: contents;
  }

  .dashboard-side {
    order: 2;
    width: 100%;
    margin-top: 16px;
    flex-basis: auto;
  }

  .dashboard-activity {
    order: 3;
  }

  .dashboard-hero {
    order: 1;
  }

  .bank-card-home {
    max-width: 330px;
  }

  .dashboard-spending {
    margin-top: 16px;
  }

  .bank-cards-layout,
  .analytics-layout,
  .bank-send-layout,
  .bank-receive-layout,
  .bank-settings-layout {
    grid-template-columns: 1fr;
  }

  .bank-side-card {
    display: none;
  }

  .bank-card-showcase {
    min-height: 300px;
  }

  .bank-details-panel {
    min-height: 0;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }

  .success-actions .button:first-child {
    order: 2;
  }

  body.bank-mode .toast-region {
    right: 18px;
    bottom: 84px;
    left: 18px;
  }

  .bank-popover {
    position: fixed;
    top: 58px;
    right: 14px;
    left: 14px;
    width: auto;
  }
}

@media (max-width: 700px) {
  .bank-topbar {
    padding: 0 12px;
  }

  .bank-search:focus-within {
    width: min(230px, calc(100vw - 140px));
  }

  .bank-content {
    padding: 16px 14px 26px;
  }

  .dashboard-hero h1 {
    font-size: 33px;
    letter-spacing: -1.2px;
  }

  .dashboard-wave {
    font-size: 23px;
  }

  .dashboard-lede {
    font-size: 12.5px;
  }

  .dashboard-balance {
    font-size: 39px;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 21px;
  }

  .dashboard-action {
    width: 100%;
    height: 38px;
    justify-content: center;
    padding: 0 9px;
    font-size: 10.4px;
  }

  .dashboard-action:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-activity {
    min-height: 175px;
    margin-top: 18px;
    padding: 16px 14px 12px;
  }

  .dashboard-activity .bank-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bank-card-home {
    max-width: none;
  }

  .bank-metrics {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .bank-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
  }

  .bank-metric strong {
    margin-top: 0;
    font-size: 16px;
  }

  .bank-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .bank-form-row {
    grid-template-columns: 1fr;
  }

  .bank-form .bank-button {
    width: 100%;
  }

  .bank-card-showcase {
    min-height: 254px;
    padding: 17px;
  }

  .bank-card-large {
    padding: 17px;
  }

  .bank-card-large .bank-card-chip {
    bottom: 68px;
    left: 18px;
    width: 28px;
    height: 21px;
  }

  .bank-card-large .bank-card-number {
    bottom: 43px;
    left: 18px;
    font-size: 10px;
  }

  .bank-card-large .bank-card-bottom {
    right: 18px;
    bottom: 15px;
    left: 18px;
    font-size: 7.4px;
  }

  .bank-card-status-row {
    margin-top: 20px;
  }

  .bank-receive-card {
    padding: 22px;
  }

  .bank-receive-id {
    font-size: 24px;
  }

  .bank-help-panel {
    padding: 4px 14px;
  }

  .bank-faq-item summary {
    font-size: 10.6px;
  }

  .success-actions .button {
    height: 40px;
    font-size: 10.5px;
  }
}

@media (max-width: 390px) {
  .bank-nav-item {
    flex-basis: 33px;
    width: 33px;
  }

  .bank-top-actions {
    gap: 10px;
  }

  .bank-search:focus-within {
    width: calc(100vw - 144px);
  }

  .dashboard-hero h1 {
    font-size: 30px;
  }
}
/* --------------------------------------------------------------------------
   Administration (compte PVK-263290 uniquement)
   -------------------------------------------------------------------------- */

.admin-entry-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
}

.admin-entry-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid #d7defc;
  border-radius: 8px;
  background: #eef2ff;
  color: #3350c7;
  font: inherit;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}

.admin-entry-button:hover {
  background: #e3e9ff;
}

.admin-entry-button svg {
  width: 13px;
  height: 13px;
}

.admin-entry-row > span {
  color: #8b94a3;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bank-account-alert {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding: 10px 13px;
  border: 1px solid #efc7c1;
  border-radius: 10px;
  background: #fff4f2;
  color: #8f2c22;
  font-size: 10.5px;
  line-height: 1.4;
}

.bank-account-alert strong {
  font-weight: 800;
}

.admin-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 100px -35px rgba(2, 7, 20, 0.6);
  overflow: hidden;
}

.admin-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.admin-modal-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #edf0f5;
}

.admin-modal-head h2 {
  margin: 5px 0 0;
  color: #05080e;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.1px;
}

.admin-modal-head p:last-child {
  margin: 7px 0 0;
  color: #6f7989;
  font-size: 10.5px;
}

.admin-modal .modal-close {
  position: static;
  flex: 0 0 auto;
}

.admin-toolbar {
  display: flex;
  gap: 9px;
  padding: 13px 24px;
  border-bottom: 1px solid #edf0f5;
}

.admin-toolbar input {
  flex: 1;
  min-width: 0;
  height: 37px;
  padding: 0 12px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  background: #fbfcfd;
  color: #101521;
  font: inherit;
  font-size: 10.5px;
  outline: none;
}

.admin-toolbar input:focus {
  border-color: #3350c7;
  box-shadow: 0 0 0 3px rgba(51, 80, 199, 0.1);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 0;
  flex: 1;
}

.admin-list {
  max-height: min(520px, calc(100vh - 300px));
  padding: 10px 14px;
  border-right: 1px solid #edf0f5;
  overflow-y: auto;
  scrollbar-width: thin;
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #101521;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-account:hover {
  background: #f6f7fb;
}

.admin-account.is-selected {
  border-color: #cbd5ff;
  background: #eef2ff;
}

.admin-account-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-account-main strong {
  overflow: hidden;
  color: #101521;
  font-size: 10.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-main span {
  overflow: hidden;
  color: #7a8494;
  font-size: 8.7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-balance {
  color: #101521;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-badge {
  padding: 3px 6px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #197b46;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-badge.is-blocked {
  background: #fff3df;
  color: #97600e;
}

.admin-badge.is-banned {
  background: #ffebe8;
  color: #a02d22;
}

.admin-panel {
  padding: 18px 22px;
  overflow-y: auto;
}

.admin-selected {
  min-height: 37px;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f6f7fb;
  color: #566174;
  font-size: 10px;
  line-height: 1.45;
}

.admin-panel .bank-field {
  margin-bottom: 10px;
}

.admin-panel .bank-field > span {
  font-size: 9px;
}

.admin-panel .bank-field input {
  height: 37px;
  font-size: 11px;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
}

.admin-action-grid .bank-button {
  height: 34px;
  padding: 0 8px;
  font-size: 9px;
}

.admin-danger {
  border-color: #efc7c1 !important;
  color: #a02d22 !important;
}

#admin-error {
  margin-top: 10px;
}

@media (max-width: 700px) {
  .admin-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .admin-modal-head {
    padding: 18px 17px 14px;
  }

  .admin-modal-head h2 {
    font-size: 21px;
  }

  .admin-toolbar {
    padding: 11px 17px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-list {
    max-height: 210px;
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
  }

  .admin-panel {
    padding: 15px 17px;
  }
}
/* Make all admin action buttons readable, including the light variants. */
.admin-action-grid .bank-button-light {
  border: 1px solid #dfe3eb;
  background: #fff;
}

.admin-action-grid .bank-button-light:hover {
  background: #f6f7fb;
}

.admin-action-grid .admin-danger {
  border-color: #efc7c1 !important;
  background: #fff;
  color: #a02d22 !important;
}
/* --------------------------------------------------------------------------
   Détails de transaction, avatar, thème et cartes à venir
   -------------------------------------------------------------------------- */

.bank-transaction {
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.bank-transaction:hover {
  background: #f7f8fc;
}

.bank-transaction:focus-visible {
  outline: 2px solid #3350c7;
  outline-offset: 2px;
}

.transaction-modal {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 100px -35px rgba(2, 7, 20, 0.6);
  overflow-y: auto;
}

.transaction-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.transaction-modal-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 24px 16px;
  border-bottom: 1px solid #edf0f5;
}

.transaction-modal-head h2 {
  margin: 5px 0 0;
  color: #05080e;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.transaction-modal-head .modal-close {
  position: static;
}

.transaction-modal-body {
  padding: 20px 24px 24px;
}

.transaction-modal-amount {
  margin: 0;
  color: #071018;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -1.8px;
}

.transaction-modal-type {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #197b46;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.transaction-modal-type.is-debit {
  background: #ffebe8;
  color: #a02d22;
}

.transaction-detail-list {
  margin-top: 20px;
}

.transaction-id-box {
  display: grid;
  gap: 7px;
  margin-top: 17px;
  padding: 12px;
  border: 1px solid #e8ebf1;
  border-radius: 9px;
  background: #f8f9fc;
}

.transaction-id-box > span {
  color: #7a8494;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.transaction-id-box code {
  overflow-wrap: anywhere;
  color: #1d2635;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.transaction-id-box .bank-button {
  justify-self: start;
}

/* Avatar */

.bank-avatar.has-avatar {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.bank-avatar-large.has-avatar {
  background-position: center;
  background-size: cover;
}

.avatar-settings {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-settings-copy {
  min-width: 0;
}

.avatar-settings-copy > p {
  margin: 0;
  color: #6f7989;
  font-size: 10px;
  line-height: 1.45;
}

.avatar-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 7px;
}

.avatar-settings-actions .bank-button {
  cursor: pointer;
}

.avatar-status {
  font-size: 9px !important;
}

/* Apparence */

.theme-choice {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.theme-choice-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  background: #fff;
  color: #566174;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.theme-choice-button.is-active {
  border-color: #3350c7;
  background: #eef2ff;
  color: #263f9f;
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid #cfd5df;
  border-radius: 50%;
}

.theme-swatch-light {
  background: #f8f9fc;
}

.theme-swatch-dark {
  background: #171b24;
  border-color: #171b24;
}

/* Recherche bénéficiaire */

.recipient-suggestions {
  margin: -3px 0 13px;
  overflow: hidden;
  border: 1px solid #e1e5ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 25px -18px rgba(9, 16, 34, 0.35);
}

.recipient-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #f0f2f6;
  background: transparent;
  color: #101521;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.recipient-suggestion:last-child {
  border-bottom: 0;
}

.recipient-suggestion:hover {
  background: #f7f8fc;
}

.recipient-suggestion strong {
  display: block;
  font-size: 10px;
}

.recipient-suggestion small {
  display: block;
  margin-top: 2px;
  color: #7a8494;
  font-size: 8.5px;
}

.recipient-suggestion code {
  color: #3350c7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8.5px;
  white-space: nowrap;
}

/* Cartes en développement */

[data-bank-panel="cards"] {
  position: relative;
}

.cards-dev-overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  padding: 24px;
  border-radius: 16px;
  background: rgba(246, 246, 252, 0.58);
  backdrop-filter: blur(9px);
  place-items: center;
}

.cards-dev-popup {
  width: min(360px, 100%);
  padding: 28px 24px;
  border: 1px solid #e5e9f2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 25px 65px -35px rgba(5, 13, 35, 0.45);
  text-align: center;
}

.cards-dev-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 11px;
  border-radius: 12px;
  background: #eef2ff;
  color: #3350c7;
  place-items: center;
}

.cards-dev-icon svg {
  width: 20px;
  height: 20px;
}

.cards-dev-popup h3 {
  margin: 5px 0 7px;
  color: #080c14;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.cards-dev-popup > p:last-child {
  margin: 0;
  color: #6f7989;
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Thème sombre
   -------------------------------------------------------------------------- */

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body.bank-mode,
html[data-theme="dark"] .bank-app {
  background: #0a0c11;
  color: #eef1f7;
}

html[data-theme="dark"] .bank-sidebar {
  background: #0d1017;
}

html[data-theme="dark"] .bank-brand,
html[data-theme="dark"] .bank-nav-item,
html[data-theme="dark"] .bank-sidebar-user,
html[data-theme="dark"] .bank-sidebar-logout {
  color: #c7d0de;
}

html[data-theme="dark"] .bank-nav-item:hover {
  background: #151b26;
}

html[data-theme="dark"] .bank-nav-item.is-active {
  background: #1a2545;
  color: #a9b8ff;
}

html[data-theme="dark"] .bank-sidebar-foot,
html[data-theme="dark"] .bank-topbar,
html[data-theme="dark"] .bank-sidebar {
  border-color: #202633;
}

html[data-theme="dark"] .bank-topbar {
  background: rgba(13, 16, 23, 0.9);
}

html[data-theme="dark"] .bank-search,
html[data-theme="dark"] .bank-field input,
html[data-theme="dark"] .bank-field select {
  border-color: #2a3342;
  background: #111620;
  color: #eef1f7;
}

html[data-theme="dark"] .bank-search::placeholder,
html[data-theme="dark"] .bank-field input::placeholder {
  color: #687486;
}

html[data-theme="dark"] .bank-panel,
html[data-theme="dark"] .bank-metric,
html[data-theme="dark"] .bank-card-showcase,
html[data-theme="dark"] .bank-details-panel,
html[data-theme="dark"] .bank-side-card,
html[data-theme="dark"] .bank-faq-item,
html[data-theme="dark"] .dashboard-activity,
html[data-theme="dark"] .dashboard-spending,
html[data-theme="dark"] .dashboard-card-block {
  border-color: #252c3a;
  background: #141922;
  color: #eef1f7;
}

html[data-theme="dark"] .dashboard-balance,
html[data-theme="dark"] .bank-page-head h2,
html[data-theme="dark"] .bank-panel-head h2,
html[data-theme="dark"] .dashboard-hero h1,
html[data-theme="dark"] .bank-metric strong,
html[data-theme="dark"] .bank-transaction-copy strong,
html[data-theme="dark"] .bank-detail-list strong,
html[data-theme="dark"] .bank-side-card h2,
html[data-theme="dark"] .bank-faq-item summary,
html[data-theme="dark"] .cards-dev-popup h3 {
  color: #f4f6fb;
}

html[data-theme="dark"] .bank-page-head p,
html[data-theme="dark"] .dashboard-lede,
html[data-theme="dark"] .bank-transaction-copy span,
html[data-theme="dark"] .bank-detail-list span,
html[data-theme="dark"] .bank-session-copy,
html[data-theme="dark"] .bank-faq-item p,
html[data-theme="dark"] .dashboard-chart-note,
html[data-theme="dark"] .bank-metric span,
html[data-theme="dark"] .avatar-settings-copy > p,
html[data-theme="dark"] .cards-dev-popup > p:last-child {
  color: #9aa6b8;
}

html[data-theme="dark"] .bank-transaction:hover,
html[data-theme="dark"] .bank-account:hover {
  background: #1b2230;
}

html[data-theme="dark"] .bank-button-light,
html[data-theme="dark"] .bank-button-secondary {
  border-color: #2c3545;
  background: #151b26;
  color: #e8edf6;
}

html[data-theme="dark"] .bank-button-light:hover,
html[data-theme="dark"] .bank-button-secondary:hover {
  background: #1c2431;
}

html[data-theme="dark"] .bank-account-alert {
  border-color: #61372f;
  background: #2a1615;
  color: #ffb9ac;
}

html[data-theme="dark"] .transaction-modal,
html[data-theme="dark"] .admin-modal,
html[data-theme="dark"] .cards-dev-popup {
  background: #141922;
  color: #eef1f7;
}

html[data-theme="dark"] .transaction-modal-head,
html[data-theme="dark"] .admin-modal-head,
html[data-theme="dark"] .admin-toolbar {
  border-color: #252c3a;
}

html[data-theme="dark"] .transaction-modal-head h2,
html[data-theme="dark"] .transaction-modal-amount,
html[data-theme="dark"] .admin-modal-head h2,
html[data-theme="dark"] .admin-account-main strong,
html[data-theme="dark"] .admin-account-balance {
  color: #f4f6fb;
}

html[data-theme="dark"] .transaction-id-box,
html[data-theme="dark"] .admin-selected,
html[data-theme="dark"] .transaction-detail-list {
  border-color: #252c3a;
  background: #10151e;
}

html[data-theme="dark"] .transaction-id-box code {
  color: #d6deea;
}

html[data-theme="dark"] .admin-modal-head p:last-child,
html[data-theme="dark"] .admin-account-main span,
html[data-theme="dark"] .admin-selected,
html[data-theme="dark"] .transaction-id-box > span {
  color: #9aa6b8;
}

html[data-theme="dark"] .admin-toolbar input {
  border-color: #2a3342;
  background: #10151e;
  color: #eef1f7;
}

html[data-theme="dark"] .admin-badge {
  background: #173423;
  color: #87d9a9;
}

html[data-theme="dark"] .admin-badge.is-blocked {
  background: #352812;
  color: #eac27d;
}

html[data-theme="dark"] .admin-badge.is-banned {
  background: #351a17;
  color: #ff9c91;
}

html[data-theme="dark"] .recipient-suggestions {
  border-color: #2a3342;
  background: #141922;
}

html[data-theme="dark"] .recipient-suggestion {
  border-color: #232b38;
  color: #eef1f7;
}

html[data-theme="dark"] .recipient-suggestion:hover {
  background: #1b2230;
}

html[data-theme="dark"] .recipient-suggestion small {
  color: #9aa6b8;
}

html[data-theme="dark"] .cards-dev-overlay {
  background: rgba(8, 10, 16, 0.62);
}

html[data-theme="dark"] .cards-dev-icon {
  background: #1a2545;
  color: #a9b8ff;
}

html[data-theme="dark"] .theme-choice-button {
  border-color: #2c3545;
  background: #151b26;
  color: #c8d1df;
}

html[data-theme="dark"] .theme-choice-button.is-active {
  border-color: #7188ff;
  background: #1a2545;
  color: #c8d3ff;
}

html[data-theme="dark"] .signup-modal,
html[data-theme="dark"] .login-modal,
html[data-theme="dark"] .signup-modal-main {
  background: #121722;
  color: #eef1f7;
}

html[data-theme="dark"] .signup-modal h2,
html[data-theme="dark"] .login-modal h2,
html[data-theme="dark"] .signup-modal .field > span,
html[data-theme="dark"] .login-modal .field > span {
  color: #f4f6fb;
}

html[data-theme="dark"] .signup-modal .field input,
html[data-theme="dark"] .login-modal .field input {
  border-color: #2a3342;
  background: #0f141d;
  color: #eef1f7;
}

html[data-theme="dark"] body:not(.bank-mode) {
  background: #080a0f;
  color: #eef1f7;
}

html[data-theme="dark"] .site-header {
  border-color: #202633;
  background: rgba(8, 10, 15, 0.88);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .header-actions .link-button {
  color: #eef1f7;
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .cta-panel h2 {
  color: #f4f6fb;
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .cta-panel p {
  color: #9aa6b8;
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .security-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .cta-panel {
  border-color: #252c3a;
  background: #141922;
  color: #eef1f7;
}

@media (max-width: 700px) {
  .transaction-modal-head {
    padding: 18px 17px 14px;
  }

  .transaction-modal-body {
    padding: 17px;
  }

  .avatar-settings {
    align-items: flex-start;
  }

  .cards-dev-overlay {
    padding: 14px;
  }
}
html[data-theme="dark"] .bank-main {
  background: #0a0c11;
}

html[data-theme="dark"] .bank-main::before {
  opacity: 0.18;
}

html[data-theme="dark"] .bank-user-copy strong {
  color: #eef1f7;
}

html[data-theme="dark"] .bank-user-copy span {
  color: #95a1b3;
}

html[data-theme="dark"] .bank-avatar {
  background: #e9eef7;
  color: #101521;
}

html[data-theme="dark"] .bank-avatar.has-avatar {
  background-color: transparent;
}

html[data-theme="dark"] .bank-sidebar-logout:hover {
  background: #1a2130;
  color: #f4f6fb;
}

html[data-theme="dark"] .bank-icon-button,
html[data-theme="dark"] .bank-profile-toggle {
  color: #d6deea;
}

html[data-theme="dark"] .bank-icon-button:hover,
html[data-theme="dark"] .bank-profile-toggle:hover {
  background: #1a2130;
  color: #fff;
}

html[data-theme="dark"] .bank-popover,
html[data-theme="dark"] .bank-profile-popover,
html[data-theme="dark"] .bank-notifications-popover {
  border-color: #252c3a;
  background: #141922;
  color: #eef1f7;
}

html[data-theme="dark"] .bank-menu-item,
html[data-theme="dark"] .bank-notification-item,
html[data-theme="dark"] .bank-profile-summary strong {
  color: #eef1f7;
}

html[data-theme="dark"] .bank-menu-item:hover,
html[data-theme="dark"] .bank-notification-item:hover {
  background: #1b2230;
}

html[data-theme="dark"] .bank-menu-item svg,
html[data-theme="dark"] .bank-notification-item svg {
  color: #aeb9c9;
}

html[data-theme="dark"] .bank-profile-summary span,
html[data-theme="dark"] .bank-notification-copy span,
html[data-theme="dark"] .bank-empty p {
  color: #95a1b3;
}

html[data-theme="dark"] .bank-empty strong {
  color: #eef1f7;
}

html[data-theme="dark"] .bank-popover-separator {
  background: #252c3a;
}
/* --------------------------------------------------------------------------
   Recadrage de la photo de profil
   -------------------------------------------------------------------------- */

.avatar-crop-modal {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 100px -35px rgba(2, 7, 20, 0.6);
  overflow-y: auto;
}

.avatar-crop-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.avatar-crop-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 15px;
  border-bottom: 1px solid #edf0f5;
}

.avatar-crop-head h2 {
  margin: 5px 0 0;
  color: #05080e;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.9px;
}

.avatar-crop-head .modal-close {
  position: static;
}

.avatar-crop-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
}

.avatar-crop-viewport {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #10141c;
  cursor: grab;
  overflow: hidden;
  touch-action: none;
}

.avatar-crop-viewport:active {
  cursor: grabbing;
}

.avatar-crop-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
  will-change: width, height, left, top;
}

.avatar-crop-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 999px rgba(4, 7, 12, 0.15) inset;
}

.avatar-crop-controls {
  flex: 1;
  min-width: 0;
}

.avatar-crop-controls > p {
  margin: 0 0 17px;
  color: #6f7989;
  font-size: 10.5px;
  line-height: 1.55;
}

.avatar-crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.avatar-crop-zoom > span {
  color: #566174;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.avatar-crop-zoom input {
  flex: 1;
  accent-color: #3350c7;
  cursor: pointer;
}

.avatar-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 20px;
  border-top: 1px solid #edf0f5;
}

.avatar-crop-actions .bank-button {
  min-width: 95px;
}

html[data-theme="dark"] .avatar-crop-modal {
  background: #141922;
  color: #eef1f7;
}

html[data-theme="dark"] .avatar-crop-head,
html[data-theme="dark"] .avatar-crop-actions {
  border-color: #252c3a;
}

html[data-theme="dark"] .avatar-crop-head h2 {
  color: #f4f6fb;
}

html[data-theme="dark"] .avatar-crop-controls > p,
html[data-theme="dark"] .avatar-crop-zoom > span {
  color: #9aa6b8;
}

@media (max-width: 620px) {
  .avatar-crop-body {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }

  .avatar-crop-viewport {
    align-self: center;
    flex-basis: min(240px, 75vw);
    width: min(240px, 75vw);
    height: min(240px, 75vw);
  }
}
