/* Beneficiary page (Bootstrap-first, minimal CSS) */

.bf-card{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(209, 209, 209, 0.45);
  background: #07000E;
}
.bf-head{
  background: #d1d1d1;
  padding: 12px 22px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #101010;
}
.bf-body{ padding: 18px 22px; }
.bf-sub{
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 0.86rem;
}
.bf-create-btn{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #1a1a1a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.bf-create-btn i{ font-size: 1rem; line-height: 1; }
.bf-create-btn:hover{ background: rgba(255,255,255,0.92); }

.bf-method{
  border-radius: 18px;
  background: #282828;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 18px 22px;
}
.bf-method-top{
  display:grid;
  grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto auto auto auto;
  align-items:center;
  gap: 0 18px;
}
.bf-top-bank{ display:flex; align-items:center; gap: 10px; min-width: 0; }
.bf-top-mask{ display:flex; justify-content:center; }
.bf-top-status{ display:flex; justify-content:center; }
.bf-top-actions{ display:inline-flex; align-items:center; gap: 8px; }
.bf-bank-ic{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(10,91,226,0.18);
  color: #4aa3ff;
  flex: 0 0 auto;
  font-size: 0.95rem;
}
.bf-bank-ic-alt{
  background: rgba(139,229,159,0.16);
  color: #8BE59F;
}
.bf-bank-name{
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}
.bf-top-split{
  width: 1px;
  align-self: stretch;
  min-height: 36px;
  background: rgba(255,255,255,0.20);
}
.bf-mask{
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 1px;
}
.bf-primary-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 22px;
  border-radius: 999px;
  background: #DBE9FF;
  color: #0A5BE2;
  border: 0;
  font-weight: 700;
  font-size: 0.82rem;
}
.bf-set-primary{
  background: transparent;
  border: 0;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 6px 18px;
  min-width: 132px;
  text-align: center;
  border-radius: 999px;
}
.bf-set-primary:hover{ color: #DBE9FF; }

.bf-icbtn{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: #DBE9FF;
  color: #0A5BE2;
  display:grid;
  place-items:center;
  padding: 0;
  font-size: 0.86rem;
}
.bf-icbtn:hover{ background: #c2d8ff; color: #0A5BE2; }
.bf-icbtn-danger{
  background: #FCA5A5;
  color: #B91C1C;
}
.bf-icbtn-danger:hover{ background: #f59494; color: #B91C1C; }

.bf-chevron{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #0A5BE2;
  display:grid;
  place-items:center;
  padding: 0;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.bf-chevron:hover{ background: rgba(255,255,255,0.92); color: #0A5BE2; }
.bf-chevron i{ transition: transform 0.2s ease; }
.bf-chevron.collapsed i{ transform: rotate(-90deg); }

.bf-hr{
  border-color: rgba(255,255,255,0.14);
  margin: 16px 0 18px;
  opacity: 1;
}

.bf-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 28px;
  row-gap: 22px;
}
.bf-cell{ min-width: 0; }
.bf-cell-wide{ grid-column: span 3; }

.bf-k{
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 0.8rem;
}
.bf-v{
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 6px;
  word-break: break-word;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px){
  .bf-body,
  .bf-body.px-5{ padding-left: 22px !important; padding-right: 22px !important; }
  .bf-method{ padding: 16px 18px; }
  .bf-method-top{ gap: 0 14px; }
  .bf-grid{ column-gap: 20px; row-gap: 18px; }
}

@media (max-width: 991.98px){
  .bf-head{ padding: 11px 16px; font-size: 1rem; }
  .bf-body,
  .bf-body.px-5{ padding: 14px 16px !important; }
  .bf-method{ padding: 14px 16px; }
  .bf-method-top{
    grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) auto auto auto auto;
    gap: 0 12px;
  }
  /* Hide the status divider so primary/set-as wraps elegantly */
  .bf-top-status{ grid-column: 1 / -1; justify-content: flex-start; padding-top: 6px; }
  .bf-top-status + .bf-top-split{ display: none; }
  .bf-grid{ grid-template-columns: repeat(3, 1fr); }
  .bf-cell-wide{ grid-column: span 2; }
}

@media (max-width: 767.98px){
  .bf-method-top{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .bf-top-bank{ flex: 1 1 100%; }
  .bf-top-mask{ flex: 0 0 auto; }
  .bf-top-status{ flex: 0 0 auto; padding-top: 0; }
  .bf-top-actions{ flex: 0 0 auto; margin-left: auto; }
  /* Vertical splits don't make sense when items wrap — hide them */
  .bf-top-split{ display: none; }
  .bf-grid{ grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 16px; }
  .bf-cell-wide{ grid-column: 1 / -1; }
}

@media (max-width: 575.98px){
  .bf-head{ font-size: 0.95rem; padding: 10px 14px; }
  .bf-body,
  .bf-body.px-5{ padding: 12px 12px 14px !important; }
  .bf-method{ padding: 12px 12px 14px; border-radius: 14px; }
  .bf-method-top{ gap: 10px; }
  .bf-bank-name{ font-size: 0.92rem; }
  .bf-mask{ font-size: 0.88rem; }
  .bf-primary-pill{ padding: 6px 16px; font-size: 0.78rem; }
  .bf-icbtn{ width: 30px; height: 30px; }
  .bf-chevron{ width: 30px; height: 30px; }
  .bf-create-btn{ width: 100%; justify-content:center; }
  .bf-grid{ grid-template-columns: 1fr; column-gap: 14px; row-gap: 14px; }
  .bf-cell-wide{ grid-column: auto; }
  .bf-k{ font-size: 0.74rem; }
  .bf-v{ font-size: 0.88rem; }
}

/* ===== Add New Bank Account offcanvas (right-side, like IB Wallets) ===== */
.bf-add-oc{
  width: min(680px, 94vw) !important;
  background: #2b2b2b;
  border-left: 1px solid rgba(255,255,255,0.25);
  box-shadow: -22px 0 38px rgba(0,0,0,0.45);
  top: 18px;
  bottom: 24px;
  height: auto !important;
  border-radius: 0 !important;
  overflow: visible; /* allow close button to sit outside */
}
.bf-add-inner{
  position: relative;
  padding: 22px 24px 26px;
  color: #fff;
  height: 100%;
  overflow-y: auto; /* keep scrolling inside */
  font-size: 0.92rem;
}
.bf-add-close{
  position: absolute;
  left: auto;
  right: 18px;
  top: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.70);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bf-add-title{
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.2px;
}
.bf-add-divider{
  height: 1px;
  background: rgba(255,255,255,0.18);
  margin-top: 12px;
}
.bf-label{
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.bf-input{
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(91,110,155,0.85);
  background: transparent;
  color: #fff;
  font-size: 0.88rem;
}
.bf-input::placeholder{ color: rgba(255,255,255,0.45); }
.bf-input:focus{
  background: transparent;
  color: #fff;
  border-color: rgba(120,145,205,0.95);
  box-shadow: 0 0 0 3px rgba(10,91,226,0.15);
}
.bf-dd-btn{
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(91,110,155,0.85);
  background: transparent;
  color: #fff;
  padding: 0 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.88rem;
}
.bf-dd-btn:hover,
.bf-dd-btn:focus{
  background: transparent;
  color:#fff;
  border-color: rgba(91,110,155,0.85);
  box-shadow: none;
}
.bf-dd-btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(10,91,226,0.18);
  border-color: rgba(120,145,205,0.95);
}
.bf-dd-left{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.bf-dd-text{ min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bf-dd-ic{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex: 0 0 auto;
}
.bf-dd-ic img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.bf-dd-ic-bank{
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.bf-dd-menu{
  width: 100%;
  background: #282828;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 8px;
}
.bf-dd-item{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,0.90);
  border-radius: 10px;
  padding: 10px 10px;
  font-weight: 700;
}
.bf-dd-item:hover{ background: rgba(255,255,255,0.08); color:#fff; }
.bf-switch-lbl{
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  font-size: 0.88rem;
}
.bf-switch{ width: 42px; height: 22px; }
.bf-add-inner .form-check-input.bf-switch{
  cursor: pointer;
  background-color: rgba(255,255,255,0.18);
  border-color: rgba(219,233,255,0.28);
}
.bf-add-inner .form-check-input.bf-switch:checked{
  background-color: #0A5BE2;
  border-color: #0A5BE2;
}
.bf-add-inner .form-check-input.bf-switch:focus{
  box-shadow: 0 0 0 3px rgba(10,91,226,0.18);
}
.bf-submit-btn{
  height: 50px;
  border-radius: 12px;
  background: #0A5BE2;
  color: #fff;
  font-weight: 800;
  border: 0;
  font-size: 0.92rem;
}
.bf-submit-btn:hover{ background: #094fca; color:#fff; }

@media (max-width: 575.98px){
  .bf-add-oc{
    width: 100vw !important;
    max-width: 100vw !important;
    top: 0;
    bottom: 0;
    height: 100vh !important;
  }
  .bf-add-inner{ padding: 16px 16px 22px; }
  .bf-add-close{ left: auto; right: 12px; top: 12px; }
}

