:root{
  --bg:#f4f6f9;
  --text:#0f172a;
  --muted:#64748b;
  --border:#d7deea;
  --panel:#ffffff;
  --shadow:0 8px 22px rgba(15,23,42,.10);
  --radius:12px;
  --radius2:16px;
  --blue:#0b6bd6;
  --blue2:#0a59b5;
  --focus:0 0 0 3px rgba(11,107,214,.18);
  --max:1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
}

/* Shared */
.wrap{max-width:var(--max); margin:0 auto; padding:22px 18px 40px;}
.muted{color:var(--muted)}
.link{color:var(--blue); text-decoration:none;}
.link:hover{text-decoration:underline}
.input, .select{
  width:100%;
  padding:10px 10px;
  border:1px solid var(--border);
  background:#fff;
  font-size:14px;
  outline:none;
}
.input:focus, .select:focus{box-shadow:var(--focus); border-color:rgba(11,107,214,.55)}
.lbl{font-size:12.5px; color:#0b1220; margin-bottom:6px; display:block}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background:#0b1220;
  color:#fff;
  padding:10px 12px;
  font-size:13px;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  z-index:9999;
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}

/* App header (bank-style) */
.appbar{
  background:linear-gradient(180deg,#0b1220 0%, #0b1220 45%, #0b1220 100%);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.appbar__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.appbar__left{display:flex; align-items:center; gap:12px}
.appmark{
  width:10px; height:10px;
  background:#fff;
  opacity:.92;
}
.apptitle__h{font-weight:700; letter-spacing:.2px}
.apptitle__s{font-size:12px; color:rgba(255,255,255,.78); margin-top:2px}

.nav{display:flex; gap:18px; align-items:center; flex-wrap:wrap}
.nav__item{
  color:rgba(255,255,255,.86);
  text-decoration:none;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 6px;
}
.nav__item:hover{color:#fff; text-decoration:underline}
.nav__ico{font-size:14px; opacity:.9}

.appbar__right{display:flex; align-items:center; gap:10px}
.userMenu{
  padding:10px 10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:13px;
  outline:none;
}
.userMenu:focus{box-shadow:var(--focus);}

.btnPrimary{
  border:0;
  background:var(--blue);
  color:#fff;
  padding:10px 14px;
  font-weight:700;
  font-size:13.5px;
  cursor:pointer;
}
.btnPrimary:hover{background:var(--blue2)}
.btnSecondary{
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  color:var(--blue);
  padding:10px 14px;
  font-weight:700;
  font-size:13.5px;
  cursor:pointer;
}
.btnSecondary:hover{background:rgba(15,23,42,.03)}

/* Layout */
.layout{display:grid; grid-template-columns: 1.05fr .95fr; gap:18px;}
.card{
  background:var(--panel);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:var(--shadow);
}
.card__head{
  padding:16px 16px 10px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.card__title{font-weight:800}
.card__meta{font-size:13px; color:var(--muted)}
.fineprint{padding:12px 16px; font-size:12px; color:var(--muted); border-top:1px solid rgba(15,23,42,.06);}

/* Lists */
.sectionHead{
  margin-top:8px;
  padding:12px 16px 8px;
  font-weight:800;
  display:flex;
  justify-content:space-between;
  border-top:1px solid rgba(15,23,42,.06);
}
.sectionHead__right{font-weight:600; color:var(--muted); font-size:13px}

.list{display:flex; flex-direction:column}
.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  text-decoration:none;
  color:inherit;
  border-top:1px solid rgba(15,23,42,.06);
}
.row:hover{background:rgba(15,23,42,.03)}
.row:active{background:rgba(15,23,42,.05)}
.row__name{font-weight:800; color:var(--blue)}
.row__sub{font-size:12.5px; color:var(--muted); margin-top:3px}
.row__right{display:flex; align-items:center; gap:14px}
.row__amt{font-weight:800}
.row__kebab{color:rgba(15,23,42,.45)}

/* Right column widgets */
.searchRow{
  display:flex; align-items:center; gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.searchRow__ico{opacity:.6}
.searchInput{
  border:1px solid var(--border);
  padding:10px 10px;
  width:100%;
  outline:none;
}
.searchInput:focus{box-shadow:var(--focus); border-color:rgba(11,107,214,.55)}
.boxTitle{padding:12px 16px; font-weight:800}
.formGrid{display:grid; grid-template-columns:1fr; gap:10px; padding:0 16px 16px}
.row2{display:grid; grid-template-columns: 1fr 120px; gap:10px}

/* Ads */
.ad{padding:14px 16px}
.ad__k{font-weight:900; margin-bottom:6px}
.ad__s{font-size:13px; color:var(--muted); margin-bottom:8px}
.linksCol{display:flex; flex-direction:column; gap:8px; padding:0 16px 16px}

/* Account page */
.back{display:inline-block; padding:14px 16px 0; color:var(--blue); text-decoration:none; font-weight:700}
.back:hover{text-decoration:underline}
.acctHead{
  display:flex; justify-content:space-between; align-items:flex-start;
  padding:10px 16px 14px;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.acctHead__name{font-size:20px; font-weight:900}
.acctHead__sub{font-size:13px; color:var(--muted); margin-top:4px}
.acctHead__bal{font-weight:900; font-size:18px}

/* Toolbar + pager */
.toolbar{
  display:flex; gap:18px; flex-wrap:wrap;
  padding:12px 16px;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.toolbar__group{display:flex; flex-direction:column; gap:6px}
.pager{display:flex; gap:8px}
.pg{
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  padding:8px 10px;
  cursor:pointer;
  font-weight:800;
}
.pg:hover{background:rgba(15,23,42,.03)}
.pg--on{background:rgba(11,107,214,.10); border-color:rgba(11,107,214,.35); color:var(--blue)}

/* Table */
.table{width:100%; border-collapse:collapse}
.table th{
  text-align:left;
  font-size:12.5px;
  color:var(--muted);
  padding:10px 16px;
  border-bottom:1px solid rgba(15,23,42,.10);
}
.table td{
  padding:12px 16px;
  border-bottom:1px solid rgba(15,23,42,.06);
  font-size:13.5px;
}
.amtPlus{color:#0a7a2f; font-weight:800}
.amtMinus{color:#b00020; font-weight:800}

/* Statements */
.statementForm{
  display:grid;
  grid-template-columns: 1fr 1fr 220px;
  gap:12px;
  padding:12px 16px 16px;
  border-top:1px solid rgba(15,23,42,.06);
}
.stmtBtns{display:flex; gap:10px; align-items:flex-end}
.stmtView{padding:12px 0 0}
.stmtHead{
  display:flex; justify-content:space-between; align-items:center;
  padding:0 16px 12px;
}
.stmtHead__h{font-weight:900}

/* Settings */
.settingsGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  padding:12px 16px 16px;
  border-top:1px solid rgba(15,23,42,.06);
}
.settingsBlock{border:1px solid rgba(15,23,42,.08); padding:12px}
.blockTitle{font-weight:900; margin-bottom:6px}
.checkRow{display:flex; gap:10px; align-items:center; margin:10px 0; font-size:13.5px}
.listMini{margin-top:10px; display:flex; flex-direction:column; gap:8px}
.miniRow{padding:10px; border:1px solid rgba(15,23,42,.08)}

/* Messages / Alerts */
.msgList{padding:12px 16px 16px; border-top:1px solid rgba(15,23,42,.06)}
.msgRow{
  width:100%;
  text-align:left;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  padding:12px;
  cursor:pointer;
  margin-bottom:10px;
}
.msgRow:hover{background:rgba(15,23,42,.03)}
.msgRow__h{font-weight:900; margin-bottom:4px}

/* Interaction feedback */
a, button { -webkit-tap-highlight-color: rgba(11,107,214,.18); }
a:active, button:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline:none; box-shadow: var(--focus); }

/* Responsive */
@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .statementForm{grid-template-columns:1fr}
  .settingsGrid{grid-template-columns:1fr}
}
.hidden{display:none}

/* Small pill label */
.pill{
  display:inline-block;
  font-size:11px;
  padding:2px 6px;
  border:1px solid var(--border);
  color:var(--muted);
  margin-left:6px;
  vertical-align:middle;
}

/* Ghost button (table actions) */
.btnGhost{
  border:1px solid var(--border);
  background:#fff;
  padding:6px 10px;
  font-size:13px;
  cursor:pointer;
}
.btnGhost:hover{border-color:rgba(11,107,214,.55); box-shadow:var(--focus)}

/* Layout helper */
.layout--single{grid-template-columns: 1fr; gap:18px;}
.formGrid--wide{grid-template-columns: 1fr; }


/* =========================
   LOGIN (Secure Sign-In)
   ========================= */
.shell{min-height:100vh;}
.grid{min-height:100vh; display:grid; grid-template-columns: 1.15fr 0.85fr;}
.hero{position:relative; overflow:hidden;}
.hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,15,30,.15), rgba(7,15,30,.70)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1200'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%231b4f7a' offset='0'/%3E%3Cstop stop-color='%2307151e' offset='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='1200' fill='url(%23g)'/%3E%3Cpath d='M0 840 L280 620 L520 760 L760 520 L980 680 L1200 510 L1600 760 L1600 1200 L0 1200 Z' fill='%2311273b' opacity='0.72'/%3E%3Cpath d='M0 920 L330 740 L560 860 L820 650 L1050 820 L1320 650 L1600 860 L1600 1200 L0 1200 Z' fill='%230a1a2a' opacity='0.82'/%3E%3Cpath d='M220 700 L420 520 L520 610 L610 520 L760 690 L540 710 Z' fill='%23ffffff' opacity='0.10'/%3E%3C/svg%3E");
  background-size:cover;
  background-position:center;
}
.hero__overlay{display:none;}
.hero__content{
  position:absolute; left:48px; bottom:54px; right:48px;
  color:#fff;
  text-shadow:0 10px 30px rgba(0,0,0,.25);
}
.hero__kicker{font-size:26px; font-weight:750; letter-spacing:.2px;}
.hero__sub{margin-top:6px; opacity:.90; font-size:14px; font-weight:600;}

.panel{
  background:var(--panel);
  border-left:1px solid rgba(0,0,0,.06);
  display:flex;
}
.panel__inner{
  width:100%;
  max-width:520px;
  padding:56px 44px 32px;
  margin:0 auto;
}
.h1{font-size:36px; margin:0 0 18px; letter-spacing:-.5px;}
.h2{font-size:18px; margin:0 0 12px;}
.rule{border:none; border-top:1px solid rgba(0,0,0,.08); margin:22px 0;}

.form{display:grid; gap:14px;}
.field{display:grid; gap:8px;}
.label{font-size:13px; color:#111827; font-weight:650;}
.hint{font-size:12.5px; color:var(--muted);}
.error{font-size:12.5px; color:#b42318; min-height:16px;}

.control{position:relative; display:flex; align-items:center;}
.control__icon{
  position:absolute; right:12px; opacity:.55; font-size:14px; pointer-events:none;
}
.input{
  border-radius:6px;
  padding:12px 38px 12px 12px;
  font-size:14px;
  border:1px solid var(--border);
  background:#fff;
}
.reveal{
  position:absolute; right:10px;
  border:none; background:transparent;
  color:var(--blue);
  font-weight:650;
  padding:6px 8px;
  cursor:pointer;
}
.masked{font-weight:700; letter-spacing:.2px; margin-top:4px;}
.row{display:flex; justify-content:space-between; align-items:flex-start; gap:12px;}

.btn{
  border:1px solid rgba(15,23,42,.18);
  background:#fff;
  color:#0b1220;
  padding:11px 14px;
  font-weight:700;
  cursor:pointer;
  border-radius:6px;
}
.btn:hover{border-color:rgba(15,23,42,.26)}
.btn:focus{outline:none; box-shadow:var(--focus); border-color:rgba(11,107,214,.55)}
.btn--primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}
.btn--primary:hover{background:var(--blue2); border-color:var(--blue2)}
.btn--ghost{background:transparent;}

.links{display:flex; gap:14px; flex-wrap:wrap; margin-top:4px;}
.more{display:inline-block; margin-top:10px;}

.notices{margin-top:4px;}
.notice{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.notice__title{color:var(--blue); text-decoration:none; font-size:13.5px;}
.notice__title:hover{text-decoration:underline;}
.notice__btn{
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  width:28px; height:28px;
  display:grid; place-items:center;
  cursor:pointer;
  border-radius:6px;
}

.footer{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top:16px;
  font-size:12.5px;
}
.footer__link{color:var(--blue); text-decoration:none;}
.footer__link:hover{text-decoration:underline;}

.hidden{display:none !important}

/* Responsive */
@media (max-width: 980px){
  .grid{grid-template-columns: 1fr;}
  .hero{min-height:280px;}
  .hero__content{left:24px; right:24px; bottom:24px;}
  .panel{border-left:none; border-top:1px solid rgba(0,0,0,.06);}
  .panel__inner{padding:28px 18px 24px;}
  .h1{font-size:30px;}
}


/* ---- Numeric typography (more bank-like) ---- */
.num, .numStrong, .acctHead__bal, .cardNum, .amtPlus, .amtMinus {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.2px;
}
.numStrong{font-weight:800}
.acctHead__bal{font-weight:800}

/* Account transactions footer */
.txFoot{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:12px 0 6px; border-top:1px solid var(--border);
  margin-top:10px;
}
.txFoot__left{color:var(--muted); font-size:12px}
.txFoot__right{font-size:12px}
.emptyRow{padding:18px 10px; color:var(--muted); text-align:center}
