/* CustomBank Demo Portal (CBDP) - clean, neat UI (demo-only) */
:root{
  --cbdp-accent:#1f6feb;
  --cbdp-bg:#0b1220;
  --cbdp-card:#0f1a2f;
  --cbdp-card2:#0c1629;
  --cbdp-text:#e6edf3;
  --cbdp-muted:#9fb0c0;
  --cbdp-border:rgba(255,255,255,.08);
  --cbdp-danger:#ff6b6b;
  --cbdp-success:#2ee59d;
}

.cbdp-wrap{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--cbdp-text);
}
.cbdp-wrap *{ box-sizing:border-box; }

.cbdp-shell{
  min-height: calc(100vh - 80px);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(31,111,235,.25), transparent 60%),
              radial-gradient(900px 600px at 80% 30%, rgba(46,229,157,.12), transparent 55%),
              linear-gradient(180deg, var(--cbdp-bg), #060a12);
  border-radius: 18px;
  overflow:hidden;
  display:flex;
  border:1px solid var(--cbdp-border);
}

.cbdp-login-card{
  max-width: 460px;
  margin: 40px auto;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--cbdp-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
}

.cbdp-brand{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom: 16px;
}

.cbdp-logo{
  width:44px;
  height:44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 35%),
    linear-gradient(135deg, var(--cbdp-accent), rgba(255,255,255,.14));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.cbdp-brand-title{ font-weight: 750; letter-spacing:.2px; }
.cbdp-banner{ color: var(--cbdp-muted); font-size: 12px; margin-top: 2px; }

.cbdp-form label{ display:block; margin: 12px 0; }
.cbdp-form label span{ display:block; color: var(--cbdp-muted); font-size: 12px; margin-bottom: 6px; }
.cbdp-form input, .cbdp-form textarea, .cbdp-form select{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border:1px solid var(--cbdp-border);
  background: rgba(255,255,255,.04);
  color: var(--cbdp-text);
  outline:none;
}
.cbdp-form input:focus, .cbdp-form textarea:focus, .cbdp-form select:focus{
  border-color: rgba(31,111,235,.6);
  box-shadow: 0 0 0 4px rgba(31,111,235,.15);
}

.cbdp-remember{ display:flex; align-items:center; gap:10px; color: var(--cbdp-muted); font-size: 13px; }
.cbdp-remember input{ width:auto; }

.cbdp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 12px;
  padding: 11px 14px;
  border:1px solid var(--cbdp-border);
  background: rgba(255,255,255,.06);
  color: var(--cbdp-text);
  text-decoration:none;
  cursor:pointer;
  font-weight: 700;
}
.cbdp-btn-primary{
  background: linear-gradient(135deg, var(--cbdp-accent), rgba(255,255,255,.10));
  border-color: rgba(255,255,255,.18);
}
.cbdp-btn:hover{ filter: brightness(1.05); }

.cbdp-login-footer{
  margin-top: 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.cbdp-link, .cbdp-login-footer a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  border-bottom: 1px dashed rgba(255,255,255,.25);
}
.cbdp-link:hover, .cbdp-login-footer a:hover{ border-bottom-color: rgba(255,255,255,.65); }

.cbdp-muted{ color: var(--cbdp-muted); }
.cbdp-muted.small{ font-size: 12px; margin-top: 8px; }

.cbdp-sidebar{
  width: 280px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-right: 1px solid var(--cbdp-border);
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.cbdp-sb-header{ display:flex; gap:12px; align-items:center; }
.cbdp-nav{ display:flex; flex-direction:column; gap:8px; }
.cbdp-nav-link{
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration:none;
  color: var(--cbdp-text);
  background: rgba(255,255,255,.03);
}
.cbdp-nav-link.is-active{
  border-color: rgba(31,111,235,.45);
  background: rgba(31,111,235,.18);
}
.cbdp-sb-footer{ margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; }

.cbdp-main{ flex:1; padding: 18px; }
.cbdp-topbar{ display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom: 16px; }
.cbdp-h2{ margin: 0; font-size: 22px; letter-spacing:.2px; }

.cbdp-pill{
  background: rgba(255,255,255,.04);
  border:1px solid var(--cbdp-border);
  border-radius: 999px;
  padding: 10px 12px;
  text-align:right;
  min-width: 150px;
}
.cbdp-pill-label{ color: var(--cbdp-muted); font-size: 11px; }
.cbdp-pill-value{ font-weight: 800; font-size: 16px; }

.cbdp-content{ display:block; }
.cbdp-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cbdp-grid.two{ grid-template-columns: 1fr 1fr; }
@media (max-width: 980px){
  .cbdp-shell{ display:block; }
  .cbdp-sidebar{ width:auto; border-right:0; border-bottom:1px solid var(--cbdp-border); }
  .cbdp-grid{ grid-template-columns: 1fr; }
}

.cbdp-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--cbdp-border);
  border-radius: 16px;
  padding: 16px;
}

.cbdp-card-title{ font-weight: 800; margin-bottom: 10px; }
.cbdp-divider{ height:1px; background: var(--cbdp-border); margin: 12px 0; }

.cbdp-balance-row{ display:flex; gap: 18px; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; }
.cbdp-balance{ font-size: 22px; font-weight: 850; }
.cbdp-score{ font-size: 26px; font-weight: 900; margin-top: 2px; }

.cbdp-form-inline label{ margin: 10px 0; }
.cbdp-form-inline .cbdp-btn{ margin-top: 6px; }

.cbdp-alert{
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--cbdp-border);
  margin-bottom: 12px;
  background: rgba(255,255,255,.03);
}
.cbdp-alert-danger{ border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.10); }
.cbdp-alert-success{ border-color: rgba(46,229,157,.35); background: rgba(46,229,157,.10); }

.cbdp-table-wrap{ overflow:auto; }
.cbdp-table{ width:100%; border-collapse:collapse; }
.cbdp-table th, .cbdp-table td{
  padding: 10px 8px;
  border-bottom: 1px solid var(--cbdp-border);
  text-align:left;
  white-space:nowrap;
}
.cbdp-table th{ color: var(--cbdp-muted); font-weight: 750; font-size: 12px; }
.cbdp-table td.right{ text-align:right; }

.cbdp-switch{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--cbdp-border);
  background: rgba(255,255,255,.03);
}
.cbdp-switch input{ width:auto; }


.cbdp-logo-img{ width:44px; height:44px; border-radius:14px; object-fit:cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
