@charset "UTF-8";
:root{
  --chase-blue:#005EB8;
  --Chase-blue:#005EB8;
  --chase-dark:#002855;
  --chase-navy:#003366;
  --chase-light:#E8F1F8;
  --chase-sky:#DCE8F5;
  --northstar-blue:#005EB8;
  --northstar-dark:#002855;
  --northstar-navy:#003366;
  --northstar-light:#E8F1F8;
  --northstar-sky:#DCE8F5;
  --ink:#1F2933;
  --muted:#5A6874;
  --line:#D9E2EC;
  --cream:#F5F7FA;
  --green:#1F8A4C;
  --gold:#F4C542;
  --red:#C0392B;
  --white:#FFFFFF;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;background:#fff;line-height:1.5}
a{color:var(--northstar-blue)}
img{max-width:100%;display:block}
button{font-family:inherit}

.prototype-banner{background:#FFF4D3;color:#70591C;text-align:center;font-size:12px;padding:9px 16px;border-bottom:1px solid #F0E2A8}

.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.header-inner{max-width:1280px;margin:0 auto;padding:0 24px;height:72px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--northstar-dark);font-weight:700;font-size:24px;letter-spacing:-0.5px}
.brand-name{color:var(--northstar-dark)}
.desktop-nav{display:flex;gap:6px;flex:1;align-items:center}
.desktop-nav a{color:var(--ink);text-decoration:none;font-size:14px;font-weight:600;padding:10px 12px;border-radius:4px;transition:background .15s}
.desktop-nav a:hover{background:var(--northstar-light);color:var(--northstar-blue)}
.header-actions{display:flex;align-items:center;gap:12px}
.header-link{color:var(--northstar-blue);font-size:14px;font-weight:600;text-decoration:none;padding:8px 10px}
.header-link:hover{text-decoration:underline}
.sign-in-button{border:2px solid var(--northstar-blue);border-radius:24px;background:#fff;color:var(--northstar-blue);font-weight:700;font-size:14px;padding:9px 22px;cursor:pointer;text-decoration:none;display:inline-block;transition:background .15s,color .15s}
.sign-in-button:hover{background:var(--northstar-blue);color:#fff}
.primary-button{border:0;border-radius:24px;background:var(--northstar-blue);color:#fff;font-weight:700;font-size:15px;padding:13px 26px;cursor:pointer;text-decoration:none;display:inline-block;transition:background .15s}
.primary-button:hover{background:var(--northstar-dark)}
.secondary-button{border:2px solid var(--northstar-blue);border-radius:24px;background:#fff;color:var(--northstar-blue);font-weight:700;font-size:15px;padding:11px 24px;cursor:pointer;text-decoration:none;display:inline-block}
.secondary-button:hover{background:var(--northstar-light)}
.menu-button{display:none;background:none;border:0;font-size:24px;color:var(--northstar-dark);cursor:pointer;margin-left:auto}

.hero{background:linear-gradient(135deg,var(--northstar-light) 0%,#fff 60%);padding:70px 24px 60px}
.hero-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:60px;flex-wrap:wrap}
.hero-copy{max-width:620px;flex:1 1 360px}
.eyebrow{color:var(--northstar-blue);text-transform:uppercase;letter-spacing:1.6px;font-weight:700;font-size:12px;margin:0 0 16px}
.hero h1{font-size:clamp(34px,4.5vw,56px);line-height:1.08;letter-spacing:-1.5px;margin:0 0 20px;color:var(--northstar-dark)}
.hero-text{font-size:18px;line-height:1.6;color:var(--muted);max-width:540px;margin:0 0 28px}
.hero-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.text-link{color:var(--northstar-blue);font-weight:700;text-decoration:none}
.text-link:hover{text-decoration:underline}
.hero-card{background:var(--northstar-dark);color:#fff;border-radius:16px;padding:28px;width:min(390px,100%);box-shadow:0 18px 40px rgba(0,40,85,.18);flex:0 0 360px}
.card-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;opacity:.85;margin-bottom:18px}
.status-dot{width:10px;height:10px;border-radius:50%;background:#63D4A1}
.balance-label{color:#A9BDD4;font-size:13px;margin:0 0 4px}
.hero-card strong{font-size:38px;letter-spacing:-1.5px;display:block;margin-bottom:18px}
.progress{height:8px;border-radius:10px;background:#223A5E;margin-bottom:10px}
.progress span{display:block;height:100%;background:#63D4A1;border-radius:inherit}
.goal-copy{color:#A9BDD4;font-size:13px;margin:0}

.quick-links{display:grid;grid-template-columns:repeat(4,1fr);max-width:1280px;margin:0 auto;padding:0 24px;border-bottom:1px solid var(--line)}
.quick-links a{padding:22px 8px;color:var(--ink);text-decoration:none;font-weight:700;font-size:15px;border-right:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.quick-links a:last-child{border-right:0}
.quick-links span{color:var(--northstar-blue);font-size:20px}

.section{padding:80px 24px}
.section-inner{max-width:1280px;margin:0 auto}
.section-heading{max-width:640px;margin-bottom:40px}
.section-heading p.eyebrow{margin-bottom:10px}
.section h2{font-size:clamp(28px,3vw,40px);letter-spacing:-1px;margin:0 0 12px;color:var(--northstar-dark)}
.section .lead{color:var(--muted);font-size:17px;line-height:1.6;max-width:620px}

.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.product-card{border:1px solid var(--line);border-radius:12px;padding:28px;background:#fff;transition:box-shadow .2s,transform .2s}
.product-card:hover{box-shadow:0 12px 30px rgba(0,40,85,.08);transform:translateY(-3px)}
.icon{height:48px;width:48px;border-radius:50%;display:grid;place-items:center;font-size:22px;margin-bottom:20px}
.icon.blue{background:#DCE8F5;color:var(--northstar-blue)}
.icon.yellow{background:#FFF3CD;color:#8A6D00}
.icon.coral{background:#FDE2DD;color:#A33A2A}
.icon.green{background:#DFF3E6;color:var(--green)}
.product-card h3{font-size:20px;margin:0 0 8px;color:var(--northstar-dark)}
.product-card p{color:var(--muted);line-height:1.55;margin:0 0 18px;font-size:15px}
.product-card a{color:var(--northstar-blue);font-size:14px;font-weight:700;text-decoration:none}
.product-card a:hover{text-decoration:underline}

.feature{background:var(--cream);padding:80px 24px}
.feature-inner{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.feature h2{font-size:clamp(28px,3vw,38px);letter-spacing:-1px;margin:0 0 14px;color:var(--northstar-dark)}
.feature p{color:var(--muted);font-size:17px;line-height:1.6;max-width:480px;margin:0 0 20px}
.chart-card{background:#fff;padding:28px;border-radius:14px;box-shadow:0 14px 35px rgba(0,40,85,.06)}
.chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.chart-header span{color:var(--muted);font-size:14px}
.chart-header b{color:var(--green);font-size:18px}
.chart{height:180px;border-bottom:1px solid var(--line);display:flex;align-items:flex-end;gap:12px;margin-top:12px}
.chart i{display:block;background:var(--northstar-blue);width:100%;border-radius:5px 5px 0 0}
.chart i:nth-child(1){height:30%}.chart i:nth-child(2){height:42%}.chart i:nth-child(3){height:35%}.chart i:nth-child(4){height:57%}.chart i:nth-child(5){height:52%}.chart i:nth-child(6){height:76%}.chart i:nth-child(7){height:92%;background:var(--green)}
.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:10px}

.wide-card{background:var(--northstar-dark);color:#fff;border-radius:14px;padding:46px;display:flex;justify-content:space-between;align-items:center;gap:40px;overflow:hidden;max-width:1280px;margin:0 auto}
.wide-card h3{font-size:26px;margin:0 0 10px}
.wide-card p{color:#B3C2D2;line-height:1.6;max-width:460px;margin:0 0 18px}
.wide-card .text-link{color:#7FB3FF}
.card-stack{width:230px;height:150px;position:relative;flex:0 0 230px}
.card-stack span{position:absolute;width:190px;height:115px;border-radius:12px}
.card-stack span:nth-child(1){background:#F4C542;transform:rotate(-14deg);right:0;top:15px}
.card-stack span:nth-child(2){background:#F4866B;transform:rotate(2deg);right:20px;top:25px}
.card-stack span:nth-child(3){background:var(--northstar-blue);transform:rotate(14deg);right:40px;top:35px}

.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.credit-card-tile{border:1px solid var(--line);border-radius:14px;padding:24px;background:#fff;display:flex;flex-direction:column}
.card-visual{height:150px;border-radius:12px;margin-bottom:18px;display:flex;align-items:flex-end;padding:14px;color:#fff;font-weight:700;font-size:16px;position:relative;overflow:hidden}
.card-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 40%,rgba(255,255,255,.15))}
.card-visual.blue{background:linear-gradient(135deg,#005EB8,#002855)}
.card-visual.gold{background:linear-gradient(135deg,#C9A227,#8A6D00)}
.card-visual.dark{background:linear-gradient(135deg,#2B2B2B,#000)}
.card-visual.green{background:linear-gradient(135deg,#1F8A4C,#0F5A30)}
.credit-card-tile h3{font-size:19px;margin:0 0 6px;color:var(--northstar-dark)}
.credit-card-tile .annual-fee{color:var(--muted);font-size:13px;margin:0 0 12px}
.credit-card-tile ul{list-style:none;padding:0;margin:0 0 16px;flex:1}
.credit-card-tile li{font-size:14px;color:var(--ink);padding:6px 0;border-bottom:1px solid var(--line);display:flex;gap:8px}
.credit-card-tile li::before{content:"";width:12px;height:7px;display:inline-block;border-left:2px solid var(--northstar-blue);border-bottom:2px solid var(--northstar-blue);transform:rotate(-45deg);margin-right:9px;vertical-align:middle}
.credit-card-tile .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}

.calculator{background:var(--cream);border-radius:14px;padding:32px;max-width:720px}
.calculator label{display:block;font-weight:600;font-size:14px;margin:12px 0 6px;color:var(--northstar-dark)}
.calculator input,.calculator select{width:100%;padding:12px 14px;border:1px solid #B7C4D2;border-radius:6px;font-size:15px}
.calculator .result{margin-top:20px;padding:18px;background:#fff;border-radius:10px;border:1px solid var(--line)}
.calculator .result strong{font-size:26px;color:var(--northstar-blue)}

.tabs{display:flex;gap:4px;border-bottom:2px solid var(--line);margin-bottom:24px;flex-wrap:wrap}
.tab{padding:12px 18px;border:0;background:none;font-weight:600;font-size:15px;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px}
.tab.active{color:var(--northstar-blue);border-bottom-color:var(--northstar-blue)}

.data-table{width:100%;border-collapse:collapse;margin-top:16px}
.data-table th,.data-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);font-size:14px}
.data-table th{color:var(--muted);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.data-table tr:hover td{background:var(--northstar-light)}

.site-footer{background:var(--northstar-dark);color:#C9D6E3;padding:50px 24px 24px;margin-top:60px}
.footer-inner{max-width:1280px;margin:0 auto}
.footer-top{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:32px;margin-bottom:32px}
.footer-brand .brand{color:#fff}
.footer-brand .brand-name{color:#fff}
.footer-brand p{color:#A9BDD4;font-size:13px;margin:12px 0 0;max-width:300px}
.footer-col h4{color:#fff;font-size:14px;margin:0 0 12px;font-weight:700}
.footer-col a{display:block;color:#C9D6E3;text-decoration:none;font-size:13px;padding:4px 0}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer-bottom{border-top:1px solid #2A4A70;padding-top:18px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;color:#A9BDD4}
.footer-bottom a{color:#A9BDD4;margin-left:14px;text-decoration:none}
.footer-bottom a:hover{color:#fff}

.modal{display:none;position:fixed;inset:0;background:rgba(0,20,50,.55);align-items:center;justify-content:center;padding:20px;z-index:60}
.modal.open{display:flex}
.modal-panel{position:relative;background:#fff;padding:36px;border-radius:14px;width:min(440px,100%);box-shadow:0 20px 70px rgba(0,20,50,.3)}
.close-modal{position:absolute;right:16px;top:12px;border:0;background:none;font-size:28px;color:var(--muted);cursor:pointer;line-height:1}
.modal-panel h2{font-size:26px;margin:0 0 8px;color:var(--northstar-dark)}
.modal-note{color:var(--muted);font-size:13px;margin:0 0 6px}
.modal-panel form{display:grid;gap:8px;margin-top:20px}
.modal-panel label{font-weight:600;font-size:13px;margin-top:6px;color:var(--northstar-dark)}
.modal-panel input{padding:12px 14px;border:1px solid #B7C4D2;border-radius:6px;font-size:15px;width:100%}
.modal-panel .primary-button{margin-top:14px;width:100%}
.form-message{font-size:13px;color:var(--green);margin-top:8px}

.signin-wrap{max-width:420px;margin:60px auto;padding:0 24px}
.signin-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:36px;box-shadow:0 12px 30px rgba(0,40,85,.06)}
.signin-card h1{font-size:26px;margin:0 0 6px;color:var(--northstar-dark)}
.signin-card .sub{color:var(--muted);font-size:14px;margin:0 0 20px}
.signin-card label{display:block;font-weight:600;font-size:13px;margin:14px 0 6px;color:var(--northstar-dark)}
.signin-card input{width:100%;padding:12px 14px;border:1px solid #B7C4D2;border-radius:6px;font-size:15px}
.signin-card .primary-button{width:100%;margin-top:20px}
.signin-card .help-links{display:flex;justify-content:space-between;margin-top:14px;font-size:13px}
.signin-card .help-links a{text-decoration:none}

.location-search{background:var(--northstar-light);padding:40px 24px}
.location-search .inner{max-width:1280px;margin:0 auto}
.location-search h1{font-size:32px;margin:0 0 8px;color:var(--northstar-dark)}
.location-search p{color:var(--muted);margin:0 0 18px}
.search-row{display:flex;gap:12px;flex-wrap:wrap}
.search-row input{flex:1;min-width:240px;padding:14px 16px;border:1px solid #B7C4D2;border-radius:6px;font-size:15px}
.search-row button{padding:14px 26px}
.location-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1280px;margin:30px auto;padding:0 24px}
.location-card{border:1px solid var(--line);border-radius:12px;padding:20px;background:#fff}
.location-card h3{font-size:17px;margin:0 0 6px;color:var(--northstar-dark)}
.location-card p{color:var(--muted);font-size:14px;margin:0 0 4px}
.location-card .tag{display:inline-block;background:var(--northstar-light);color:var(--northstar-blue);font-size:12px;font-weight:700;padding:3px 10px;border-radius:12px;margin-top:8px}

.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1280px;margin:0 auto;padding:0 24px}
.help-card{border:1px solid var(--line);border-radius:12px;padding:24px;background:#fff}
.help-card h3{font-size:18px;margin:0 0 8px;color:var(--northstar-dark)}
.help-card p{color:var(--muted);font-size:14px;margin:0 0 12px}
.help-card a{font-weight:700;text-decoration:none}

@media(max-width:900px){
  .product-grid,.cards-grid,.location-grid,.help-grid{grid-template-columns:repeat(2,1fr)}
  .feature-inner{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr 1fr}
  .wide-card{flex-direction:column}
  .card-stack{margin:0 auto}
  .hero-inner{flex-direction:column}
  .hero-card{flex:0 0 auto}
}
@media(max-width:700px){
  .desktop-nav{display:none}
  .menu-button{display:block}
  .header-inner{gap:12px}
  .sign-in-button{padding:8px 14px;font-size:13px}
  .product-grid,.cards-grid,.location-grid,.help-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .quick-links{grid-template-columns:1fr 1fr}
  .quick-links a{border-bottom:1px solid var(--line)}
  .section{padding:56px 20px}
  .feature{padding:56px 20px}
  .hero{padding:48px 20px 40px}
  .hero h1{font-size:34px}
  .hero-card{margin:24px auto 0}
  .wide-card{padding:28px}
}

/* logo */
.brand-logo{height:32px;max-height:36px;width:auto;display:inline-block;vertical-align:middle;object-fit:contain}
.site-footer .brand-logo{filter:brightness(0) invert(1)}

/* ============ Northstar.com-style homepage ============ */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.demo-bar{background:#fff;border-bottom:1px solid var(--line);padding:10px 24px;display:flex;align-items:center;gap:10px;justify-content:center;font-size:13px}
.demo-bar strong{font-size:16px;letter-spacing:.5px;color:#1a1a1a}

.home-header{position:static;border-bottom:0;padding:0}
.home-header .menu-button{display:none}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:10px 24px;border-bottom:1px solid var(--line);flex-wrap:wrap;gap:8px}
.audience-nav{display:flex;gap:4px}
.audience-nav a{color:var(--ink);text-decoration:none;font-size:14px;font-weight:600;padding:6px 10px;border-bottom:3px solid transparent}
.audience-nav a.active{color:var(--northstar-blue);border-bottom-color:var(--northstar-blue)}
.top-right{display:flex;align-items:center;gap:18px}
.top-right a{color:var(--ink);text-decoration:none;font-size:13.5px;font-weight:600}
.top-right a:hover{color:var(--northstar-blue)}
.top-right .caret{color:var(--northstar-blue);font-size:10px}
.search-button{background:none;border:0;font-size:16px;cursor:pointer;padding:4px}
.logo-row{display:flex;align-items:center;padding:14px 24px 6px}
.mobile-signin-btn{display:none}

/* Primary Navigation with Mega Dropdowns */
.main-nav{display:flex;gap:4px;padding:0 24px;background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:90}
.nav-item{position:relative}
.nav-item>a{display:inline-flex;align-items:center;gap:5px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:500;padding:14px 12px 15px;border-bottom:3px solid transparent;transition:color .12s,border-color .12s}
.nav-item:hover>a,.nav-item.active>a{color:var(--northstar-blue);border-bottom-color:var(--northstar-blue)}
.nav-caret{font-size:9px;color:#717171;transition:transform .2s ease;display:inline-block}
.nav-item:hover .nav-caret{transform:rotate(180deg);color:var(--northstar-blue)}

/* Dropdown Container */
.nav-dropdown{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #d9d9d9;border-top:2px solid var(--northstar-blue);box-shadow:0 14px 34px rgba(0,0,0,.15);border-radius:0 0 6px 6px;z-index:999;min-width:540px;padding:24px 28px;box-sizing:border-box}
.nav-item:hover .nav-dropdown,.nav-item:focus-within .nav-dropdown{display:flex;gap:32px}
.dropdown-col{flex:1;display:flex;flex-direction:column;gap:8px}
.dropdown-col h4{font-size:12.5px;text-transform:uppercase;letter-spacing:.8px;color:#666;margin:0 0 6px;font-weight:700;border-bottom:1px solid #eee;padding-bottom:6px}
.dropdown-col a{color:#262626;text-decoration:none;font-size:14px;padding:4px 0;transition:color .12s;font-weight:500;line-height:1.35}
.dropdown-col a:hover{color:var(--northstar-blue);text-decoration:underline}
.dropdown-col a.dropdown-cta{color:var(--northstar-blue);font-weight:700;margin-top:6px}
.dropdown-promo{width:210px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:16px;display:flex;flex-direction:column}
.dp-tag{font-size:10px;font-weight:800;color:var(--northstar-blue);letter-spacing:1px;text-transform:uppercase;margin-bottom:6px}
.dropdown-promo h5{font-size:14.5px;color:var(--northstar-dark);margin:0 0 6px;line-height:1.25}
.dropdown-promo p{font-size:12px;color:var(--muted);line-height:1.45;margin:0 0 12px;flex:1}
.dp-btn{background:#12773e;color:#fff !important;font-size:12.5px;font-weight:700;padding:8px 12px;border-radius:4px;text-align:center;text-decoration:none;display:inline-block;transition:background .15s}
.dp-btn:hover{background:#0e6132}

/* Clean Icon Grid */
.icon-grid-clean{display:flex;justify-content:center;gap:clamp(16px,3.8vw,48px);flex-wrap:wrap;padding:12px 0 32px}
.icon-grid-clean a{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--northstar-blue);text-decoration:none;font-size:14px;font-weight:600;min-width:84px;transition:transform .15s}
.icon-grid-clean a:hover{transform:translateY(-2px)}

/* Mobile Drawer */
.mobile-drawer-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:998;opacity:0;transition:opacity .25s ease}
.mobile-drawer-backdrop.open{display:block;opacity:1}
.mobile-drawer{position:fixed;top:0;left:0;bottom:0;width:min(340px,85vw);background:#fff;z-index:999;transform:translateX(-100%);transition:transform .28s cubic-bezier(.4,0,.2,1);box-shadow:4px 0 24px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow-y:auto}
.mobile-drawer.open{transform:translateX(0)}
.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}
.drawer-header .brand-logo{height:24px}
.drawer-close{background:none;border:none;font-size:24px;color:#555;cursor:pointer;padding:4px 8px;line-height:1}
.drawer-auth{display:flex;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line);background:#f8fafc}
.drawer-auth a{flex:1;text-align:center;padding:10px;font-size:14px;font-weight:700;border-radius:4px;text-decoration:none}
.drawer-auth .d-signin{background:var(--northstar-blue);color:#fff}
.drawer-auth .d-enroll{background:#fff;color:var(--northstar-blue);border:1px solid var(--northstar-blue)}
.drawer-nav{padding:12px 0}
.drawer-item{border-bottom:1px solid #f0f0f0}
.drawer-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:none;border:none;font-size:15px;font-weight:600;color:var(--northstar-dark);text-align:left;cursor:pointer}
.drawer-toggle .d-caret{font-size:11px;color:#777;transition:transform .2s}
.drawer-item.open .d-caret{transform:rotate(180deg)}
.drawer-sub{display:none;background:#f8fafc;padding:6px 20px 14px;flex-direction:column;gap:8px}
.drawer-item.open .drawer-sub{display:flex}
.drawer-sub a{color:#444;text-decoration:none;font-size:13.5px;padding:5px 0}
.drawer-sub a:hover{color:var(--northstar-blue)}

.hero-promo{background:var(--northstar-blue);color:#fff;padding:56px 24px}
.hero-promo-inner{max-width:1280px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:48px;flex-wrap:wrap}
.promo-copy{display:flex;gap:40px;align-items:flex-start;flex:1 1 420px}
.promo-block{display:flex;flex-direction:column;line-height:1}
.promo-enjoy{font-size:26px;font-weight:700;margin-bottom:2px}
.promo-amount{font-size:clamp(64px,8vw,110px);font-weight:800;letter-spacing:-3px}
.promo-text h1{font-size:clamp(28px,3.4vw,42px);margin:0 0 14px;line-height:1.15}
.promo-text p{font-size:16px;margin:0 0 22px;max-width:420px;line-height:1.5}
.promo-button{background:#12773e;color:#fff !important;font-weight:700;font-size:15px;padding:10px 22px;border-radius:6px;text-decoration:none;display:inline-block;transition:background .15s ease,transform .15s ease;box-shadow:0 2px 6px rgba(18,119,62,.2)}
.promo-button:hover{background:#0e6132;transform:translateY(-1px)}

.signin-box{background:#fff;color:var(--ink);border-radius:8px;padding:26px;width:min(400px,100%);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.signin-box label{display:block;font-size:13px;color:var(--muted);margin:12px 0 4px}
.signin-box input[type="text"],.signin-box input[type="password"]{width:100%;border:0;border-bottom:1px solid #9AA6B2;padding:8px 2px;font-size:15px;border-radius:0}
.signin-box input:focus{outline:none;border-bottom-color:var(--northstar-blue)}
.pw-row{display:flex;align-items:flex-end;gap:10px}
.pw-row>div{flex:1}
.show-pw{background:none;border:0;color:var(--northstar-blue);font-weight:700;font-size:14px;cursor:pointer;padding:8px 2px}
.show-pw.static{align-self:flex-end;margin-bottom:6px}
.remember-row{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:10px}
.checkbox-label{font-size:13px;color:var(--ink);display:flex;align-items:center;gap:8px;color:var(--ink)!important;margin:0!important}
.checkbox-label input{width:16px;height:16px}
.use-token{color:var(--northstar-blue);font-size:13px;text-decoration:none;font-weight:600}
.signin-submit{width:100%;margin-top:16px;background:var(--northstar-blue);color:#fff;border:0;border-radius:4px;font-weight:700;font-size:15px;padding:12px;cursor:pointer}
.signin-submit:hover{background:var(--northstar-dark)}
.or-row{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin:16px 0}
.or-row::before,.or-row::after{content:"";flex:1;height:1px;background:var(--line)}
.passwordless-btn{width:100%;background:#E8F1FA;color:var(--northstar-blue);border:0;border-radius:4px;font-weight:700;font-size:15px;padding:12px;cursor:pointer}
.passwordless-btn:hover{background:#DCE8F5}
.signin-links,.signin-links-col{display:flex;flex-direction:column;gap:8px;margin-top:16px;text-align:left}
.signin-links-col{margin-top:20px}
.arrow-link{color:var(--northstar-blue);font-size:13.5px;text-decoration:none;font-weight:600}
.arrow-link span{font-weight:700}
.demo-hint{margin-top:20px;background:var(--cream);border:1px solid var(--line);border-radius:8px;padding:12px 14px;font-size:12.5px;color:var(--muted)}
.demo-hint code{background:#fff;border:1px solid var(--line);border-radius:4px;padding:2px 6px;font-size:12px}

.choose{padding:64px 24px;max-width:1280px;margin:0 auto}
.choose h2{text-align:center;font-size:clamp(26px,3vw,36px);color:var(--northstar-dark);margin:0 0 34px}
.icon-row{display:flex;justify-content:center;gap:clamp(16px,4vw,64px);flex-wrap:wrap}
.icon-row a{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--northstar-blue);text-decoration:none;font-size:14px;font-weight:600}
.choice-icon{font-size:30px;font-family:system-ui;display:inline-flex}
.choice-icon svg{width:30px;height:30px}
.icon svg{width:22px;height:22px}
.head-icon svg{width:36px;height:36px}
.search-button svg{width:18px;height:18px;display:block}
.menu-button svg{width:24px;height:24px;display:block}
.carousel-dots{display:flex;justify-content:center;align-items:center;gap:10px;margin:26px 0 30px;color:var(--northstar-blue)}
.carousel-dots .dot{width:12px;height:12px;border-radius:50%;background:var(--northstar-blue);display:inline-block;border:2px solid var(--northstar-blue);cursor:pointer;padding:0}
.carousel-dots .dot:not(.active){background:#fff;width:9px;height:9px}
.car-arrow{font-size:26px;background:none;border:0;color:var(--northstar-blue);cursor:pointer;padding:2px 10px;line-height:1;border-radius:4px}
.car-arrow:hover{color:var(--northstar-dark)}
.car-arrow:focus-visible,.dot:focus-visible{outline:2px dotted var(--northstar-blue);outline-offset:3px}
.icon-row-wrap{position:relative}
.icon-row.slide[hidden]{display:none}
.promo-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.promo-card{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
.promo-card-head{color:#fff;padding:22px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.promo-card-head h3{margin:0;font-size:20px;font-weight:600;line-height:1.2}
.promo-card-head .head-icon{font-size:34px}
.promo-card-head.blue{background:var(--northstar-blue)}
.promo-card-head.navy{background:var(--northstar-navy)}
.promo-card-body{padding:22px 20px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
.promo-card-body h3{margin:0;font-size:19px;color:var(--northstar-dark);line-height:1.3}
.promo-card-body p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.55;flex:1}
.promo-card-body a{color:var(--northstar-blue);font-weight:700;font-size:14px;text-decoration:none}
.promo-card-body a:hover{text-decoration:underline}

@media(max-width:900px){
  .promo-cards{grid-template-columns:1fr}
  .hero-promo-inner{flex-direction:column;align-items:flex-start}
  .hero-promo .signin-box{display:none !important}
  .promo-copy{width:100%;max-width:100%}
}
@media(max-width:700px){
  .topbar{display:none}
  .home-header .logo-row{display:flex;justify-content:space-between;align-items:center;padding:12px 18px}
  .home-header .menu-button{display:block !important;order:1}
  .home-header .brand{order:2;margin:0 auto}
  .mobile-signin-btn{display:inline-block !important;order:3;background:var(--northstar-blue);color:#fff !important;padding:7px 16px;border-radius:4px;font-size:13.5px;font-weight:700;text-decoration:none}
  .main-nav{display:none !important}
  .promo-copy{flex-direction:column;gap:18px}
  .icon-grid-clean{display:grid !important;grid-template-columns:1fr 1fr;gap:26px 16px;padding:14px 0}
  .icon-row{display:grid !important;grid-template-columns:1fr 1fr;gap:24px 16px;padding:8px 0}
  .carousel-dots{display:none}
  .profile-list div{flex-direction:column;gap:2px}
  .profile-list dd{text-align:left}
}

/* ============ Enroll page ============ */
.enroll-wrap{max-width:760px;margin:40px auto;padding:0 20px}
.enroll-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:38px;box-shadow:0 12px 30px rgba(0,40,85,.06)}
.enroll-card h1{margin:0 0 6px;color:var(--northstar-dark);font-size:28px}
.enroll-card .sub{color:var(--muted);font-size:14px;margin:0 0 24px}
.form-section{color:var(--northstar-blue);font-size:14px;text-transform:uppercase;letter-spacing:1px;margin:26px 0 6px;border-bottom:1px solid var(--line);padding-bottom:8px;font-weight:700}
.enroll-card label{display:block;font-weight:600;font-size:13px;margin:14px 0 6px;color:var(--northstar-dark)}
.enroll-card input{width:100%;padding:12px 14px;border:1px solid #B7C4D2;border-radius:6px;font-size:15px}
.field-row{display:flex;gap:16px}
.field-col{flex:1}
.enroll-card .field-row label{margin-top:14px}
.enroll-card .primary-button{width:100%;margin-top:26px}
.existing-link{margin-top:18px;font-size:14px;color:var(--muted);text-align:center}
#enroll-message.ok,#signin-message.ok,#home-signin-message.ok{color:var(--green)}
@media(max-width:640px){.field-row{flex-direction:column;gap:0}}

/* ============ Dashboard ============ */
.activity-heading{margin-top:26px;color:var(--northstar-dark);font-size:16px;border-top:1px solid var(--line);padding-top:18px}
.tx-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}
.tx-row:last-child{border-bottom:0}
.tx-meta{display:flex;flex-direction:column;color:var(--ink)}
.tx-meta small{color:var(--muted);font-size:12px;margin-bottom:2px}
.tx-amount{font-weight:700;white-space:nowrap;color:var(--northstar-dark)}
.tx-amount.pos{color:var(--green)}
.tx-empty{color:var(--muted);font-size:14px}
.dash-wrap{max-width:1120px;margin:36px auto;padding:0 20px}
.dash-greeting h1{color:var(--northstar-dark);margin:0 0 4px;font-size:30px}
.dash-greeting p{color:var(--muted);margin:0 0 26px}
.dash-grid{display:grid;grid-template-columns:2fr 1fr;gap:22px}
.accounts-card{grid-column:1}
.profile-card{grid-column:2}
.kin-card{grid-column:1 / -1}
.dash-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 10px 24px rgba(0,40,85,.05)}
.dash-card h3{margin:0 0 16px;color:var(--northstar-dark);font-size:19px}
.account-row{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.account-row:last-child{border-bottom:0}
.account-name{font-weight:700;color:var(--northstar-dark)}
.account-name small{display:block;font-weight:400;color:var(--muted);margin-top:2px}
.account-balance{font-size:22px;font-weight:800;color:var(--northstar-blue);letter-spacing:-.5px}
.profile-list{margin:0}
.profile-list div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.profile-list div:last-child{border-bottom:0}
.profile-list dt{color:var(--muted);flex:0 0 auto;font-weight:600}
.profile-list dd{margin:0;text-align:right;color:var(--ink)}
.pin-row{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pin-row dt{color:var(--muted);font-weight:600;font-size:14px}
.pin-row span{font-size:20px;letter-spacing:4px}
.pin-btn{border:1px solid var(--northstar-blue);background:#fff;color:var(--northstar-blue);font-weight:700;font-size:13px;border-radius:20px;padding:7px 16px;cursor:pointer}
.pin-btn:hover{background:var(--northstar-light)}
.pin-btn+.pin-note{width:100%;margin:0;font-size:13px;color:var(--muted)}
.pin-btn+.pin-note.ok{color:var(--green)}
.dash-foot{margin-top:22px;color:var(--muted);font-size:13px}
@media(max-width:900px){
  .dash-grid{grid-template-columns:1fr}
  .accounts-card,.profile-card{grid-column:1}
}
@media(max-width:700px){
  .signin-wrap{margin-top:40px}
}

/* ============ Ad-style CTAs (from Northstar ad creative) ============ */
.cta-section {
  padding: 56px 24px;
  border-top: 1px solid #e6e6e6;
  background: #ffffff;
}
.cta-section:last-of-type {
  border-bottom: 1px solid #e6e6e6;
}
.cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.cta-image {
  flex: 0 0 46%;
  max-width: 480px;
  margin: 0;
  border-radius: 14px;
  overflow: visible;
  display: block;
}
.cta-copy {
  flex: 1;
  min-width: 280px;
}
.cta-copy h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  color: #262626;
  margin: 0 0 16px;
  letter-spacing: -0.6px;
  line-height: 1.18;
  font-weight: 700;
}
.cta-copy p {
  color: #555555;
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 540px;
}

/* Tile 1: Savings $200 Graphic */
.northstar-savings-tile,
.Chase-savings-tile,
.chase-savings-tile {
  width: 100%;
  aspect-ratio: 16 / 9.8;
  background: #0060d6;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 96, 214, 0.18);
  padding: 24px;
  box-sizing: border-box;
  user-select: none;
}
.savings-enjoy-text {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.1;
  text-align: center;
}
.savings-amount-text {
  font-size: clamp(74px, 8.8vw, 114px);
  font-weight: 800;
  letter-spacing: -3px;
  color: #ffffff;
  line-height: 0.95;
  margin-top: 6px;
  text-align: center;
}

/* Tile 2: Liberty Unlimited Credit Card */
.freedom-art {
  display: flex;
  justify-content: center;
}
.northstar-freedom-card,
.Chase-freedom-card,
.chase-freedom-card {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.58 / 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #071933 0%, #0d3b73 45%, #082142 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 30, 70, 0.28);
  padding: 22px 26px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}
.northstar-freedom-card::before,
.Chase-freedom-card::before,
.chase-freedom-card::before {
  content: '';
  position: absolute;
  top: 36%;
  left: -20%;
  width: 140%;
  height: 90px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(125, 211, 252, 0.6), transparent);
  transform: rotate(-14deg);
  filter: blur(14px);
  pointer-events: none;
}
.northstar-freedom-card::after,
.Chase-freedom-card::after,
.chase-freedom-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: radial-gradient(circle at 30% 90%, rgba(30, 58, 138, 0.6), transparent 70%);
  pointer-events: none;
}
.freedom-ribbon {
  position: absolute;
  top: 22px;
  right: -36px;
  width: 150px;
  background: #eef200;
  transform: rotate(38deg);
  text-align: center;
  padding: 4px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.freedom-ribbon span {
  font-size: 10px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
}
.freedom-header {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.freedom-octagon {
  width: 24px;
  height: 24px;
}
.freedom-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.freedom-title {
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.freedom-sub {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #cbd5e1;
  margin-top: 2px;
}
.freedom-mid {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 8px;
  z-index: 1;
}
.emv-chip {
  width: 44px;
  height: 34px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
  border-radius: 6px;
  border: 1px solid #94a3b8;
  position: relative;
  overflow: hidden;
}
.emv-chip .chip-line:first-child {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #64748b;
}
.emv-chip .chip-line:last-child {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 1px;
  background: #64748b;
}
.contactless-icon {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.85);
}
.freedom-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
}
.freedom-holder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 2px;
}
.freedom-visa {
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1;
}

/* promo-button defined above in hero-promo block */

.auto-inner{justify-content:space-between}
.auto-art{border:0;background:transparent;aspect-ratio:520/260}

.app-onboard{background:var(--northstar-blue);padding:56px 24px}
.app-onboard-inner{max-width:1000px;margin:0 auto;display:flex;flex-direction:column;gap:28px;align-items:center}
.app-heading{color:#fff;text-align:center;font-size:clamp(24px,3vw,38px);margin:0;letter-spacing:-.5px}
.app-sub{color:#E8F1FF;text-align:center;margin:0;max-width:720px;font-size:16px;line-height:1.5}
.app-shot{width:100%;border-radius:14px;box-shadow:0 18px 46px rgba(0,0,0,.35);display:block}
.shot-dashboard{max-width:960px;height:auto;object-fit:cover;aspect-ratio:16/9}

@media(max-width:960px){
  .cta-inner{flex-direction:column !important;text-align:center;gap:28px}
  .freedom-inner{flex-direction:column-reverse !important}
  .cta-copy p{margin-left:auto;margin-right:auto;max-width:520px}
  .savings-art,.freedom-art{width:100%;max-width:460px;margin:0 auto}
  .northstar-freedom-card,
  .Chase-freedom-card,
  .chase-freedom-card{max-width:400px;margin:0 auto}
  .northstar-savings-tile,
  .Chase-savings-tile,
  .chase-savings-tile{aspect-ratio:16/7}
}
@media(max-width:700px){
  .cta-section{padding:28px 16px}
  .cta-copy h2{font-size:22px}
  .savings-enjoy-text{font-size:clamp(22px,5.5vw,32px)}
  .savings-amount-text{font-size:clamp(56px,13vw,86px)}
  .freedom-title{font-size:20px}
  .freedom-visa{font-size:21px}
  .freedom-holder{font-size:11px;letter-spacing:1.2px}
  .promo-button{font-size:14px;padding:9px 18px}
}
@media(max-width:480px){
  .northstar-savings-tile,
  .Chase-savings-tile,
  .chase-savings-tile{aspect-ratio:16/8;padding:18px}
  .northstar-freedom-card,
  .Chase-freedom-card,
  .chase-freedom-card{padding:16px 18px}
  .savings-amount-text{font-size:clamp(48px,16vw,72px)}
  .signin-box{width:100%}
}


/* ==========================================================================
   NORTHSTAR MODERN DASHBOARD & ADMIN (Full Desktop + Responsive Mobile PWA)
   ========================================================================== */

.dash-main-container {
  max-width: 1380px;
  margin: 28px auto 60px;
  padding: 0 28px;
}

/* Greeting Bar */
.dash-greeting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dash-user-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.18);
}
.dash-greeting-row h1 {
  color: var(--northstar-dark);
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.dash-greeting-row p {
  color: var(--muted);
  margin: 0;
  font-size: 14.5px;
}
.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-btn-utility {
  background: #fff;
  border: 1px solid #D9E2EC;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .15s ease;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.dash-btn-utility:hover {
  background: var(--northstar-light);
  border-color: var(--northstar-blue);
  color: var(--northstar-blue);
  transform: translateY(-1px);
}
.dash-btn-utility.primary {
  background: var(--northstar-blue);
  border-color: var(--northstar-blue);
  color: #fff;
}
.dash-btn-utility.primary:hover {
  background: var(--northstar-dark);
}
/* ==========================================================================
   HERO STAGE: 2-Column Split (Debit Card + Snapshot & Accounts)
   ========================================================================== */
.dash-hero-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 30px;
}
.dash-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Featured Northstar Debit Card (Exact match to UI reference) */
.debit-card-visual {
  background: linear-gradient(135deg, #0b68d6 0%, #0056aa 55%, #003875 100%);
  border-radius: 22px;
  padding: 30px 32px 24px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 94, 184, 0.24);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.debit-card-visual:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 94, 184, 0.3);
}
.debit-card-visual::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.card-top-row .card-tag {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.95);
}
.card-top-row .visa-logo {
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 2.5px;
  color: #fff;
}
.card-bal-num {
  font-size: clamp(34px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 4px;
  color: #fff;
  line-height: 1.15;
}
.card-bal-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-pill-row {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}
.card-pill-row:hover {
  background: rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
}
.card-pill-left {
  display: flex;
  align-items: center;
}
.card-pill-row .plus-circ {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  margin-right: 12px;
}
.card-pill-row .acc-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}
.card-pill-row .card-exp {
  font-size: 13.5px;
  color: rgba(255,255,255,0.9);
}

/* Quick Action Pills Row */
.dash-action-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.dash-pill-btn {
  background: #fff;
  border: 1px solid #D9E2EC;
  border-radius: 24px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
  white-space: nowrap;
}
.dash-pill-btn:hover {
  background: var(--northstar-light);
  border-color: var(--northstar-blue);
  color: var(--northstar-blue);
  transform: translateY(-1px);
}
.dash-pill-btn.highlight {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: var(--northstar-blue);
}
.dash-pill-btn svg {
  width: 17px;
  height: 17px;
}

/* Snapshot Card (Matches Reference Image) */
.dash-snapshot {
  border: 1.5px dashed #93c5fd;
  background: #fff;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 4px 14px rgba(0,94,184,0.04);
}
.dash-snapshot-illus {
  flex: 0 0 76px;
  height: 66px;
}
.dash-snapshot-illus svg {
  width: 100%;
  height: 100%;
}
.dash-snapshot-info {
  flex: 1;
}
.dash-snapshot-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.dash-snapshot-head strong {
  font-size: 16.5px;
  color: var(--northstar-dark);
}
.dash-snapshot-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.dash-snapshot-text {
  font-size: 14.5px;
  color: #334155;
  margin: 0 0 8px;
}
.dash-snapshot-dots {
  display: flex;
  gap: 6px;
}
.dash-snapshot-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}
.dash-snapshot-dots span.active {
  width: 16px;
  border-radius: 10px;
  background: var(--northstar-blue);
}

/* Snapshot Metrics Breakdown */
.dash-snapshot-metrics {
  display: flex;
  gap: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.metric-col {
  display: flex;
  flex-direction: column;
}
.metric-col small {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}
.metric-col strong {
  font-size: 15px;
  color: var(--northstar-dark);
}
.metric-col strong.pos { color: #16a34a; }
.metric-col strong.neg { color: #dc2626; }

/* Accounts Box Widget */
.dash-accounts-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.dash-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dash-widget-head h3 {
  margin: 0;
  font-size: 17px;
  color: var(--northstar-dark);
}
.accounts-table-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.account-card-row:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}
.account-card-row.active {
  background: #eff6ff;
  border-color: var(--northstar-blue);
  box-shadow: 0 0 0 1px var(--northstar-blue);
}
.account-card-row .acc-info strong {
  display: block;
  font-size: 14.5px;
  color: var(--northstar-dark);
}
.account-card-row .acc-info small {
  font-size: 12.5px;
  color: var(--muted);
}
.account-card-row .acc-right {
  text-align: right;
}
.account-card-row .acc-balance {
  font-size: 16px;
  font-weight: 700;
  color: var(--northstar-dark);
  display: block;
}
.account-card-row .acc-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--northstar-blue);
}

/* ==========================================================================
   RECENT ACTIVITY SECTION: Wide Desktop Preview + Drawer Trigger
   ========================================================================== */
.dash-activity-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.activity-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.activity-section-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--northstar-dark);
}
.activity-section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.btn-open-history {
  background: #005EB8;
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, transform .15s ease;
}
.btn-open-history:hover {
  background: #003875;
  transform: translateY(-1px);
}
.activity-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.activity-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.activity-preview-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}
.activity-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.activity-icon-circ {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.activity-icon-circ.green { background: #dcfce7; color: #16a34a; }
.activity-icon-circ.blue { background: #e0f2fe; color: #0284c7; }
.activity-icon-circ.purple { background: #f3e8ff; color: #7c3aed; }
.activity-icon-circ.orange { background: #ffedd5; color: #ea580c; }
.activity-desc strong {
  display: block;
  font-size: 14.5px;
  color: var(--northstar-dark);
  margin-bottom: 2px;
}
.activity-desc small {
  font-size: 12.5px;
  color: var(--muted);
}
.activity-amt-right {
  text-align: right;
}
.activity-amt-right strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.activity-amt-right strong.pos { color: #16a34a; }
.activity-amt-right small {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   OPEN AN ACCOUNT: 4-Column Responsive Grid across Desktop
   ========================================================================== */
.open-accounts-section {
  margin-bottom: 30px;
}
.section-arrow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-arrow-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--northstar-dark);
}
.open-account-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.open-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.open-chip:hover {
  transform: translateY(-2px);
  border-color: var(--northstar-blue);
  box-shadow: 0 8px 24px rgba(0, 94, 184, 0.08);
}
.chip-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.chip-icon.purple { background: #ede9fe; color: #7c3aed; }
.chip-icon.green { background: #dcfce7; color: #16a34a; }
.chip-icon.pink { background: #fce7f3; color: #db2777; }
.chip-icon.blue { background: #e0f2fe; color: #0284c7; }
.chip-icon svg {
  width: 22px;
  height: 22px;
}
.chip-label strong {
  display: block;
  font-size: 15px;
  color: var(--northstar-dark);
  margin-bottom: 4px;
}
.chip-label small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   NORTHSTAR OFFERS: 4-Column Responsive Grid across Desktop
   ========================================================================== */
.offers-section {
  margin-bottom: 30px;
}
.offers-grid-wide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.offer-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: all .15s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.offer-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.offer-tile-img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.offer-tile-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.offer-tile-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.offer-tile-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--northstar-dark);
}
.offer-tile-body p {
  margin: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 13.5px;
}

/* Circular Arrow Button */
.circle-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--northstar-blue);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s, background .15s;
}
.circle-arrow-btn:hover {
  transform: scale(1.08);
  background: var(--northstar-dark);
}

/* ==========================================================================
   SLIDE-OUT / POP-OUT HISTORY & ACTIVITY DRAWER
   ========================================================================== */
.history-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 50, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.history-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(640px, 100vw);
  background: #fff;
  z-index: 1200;
  box-shadow: -10px 0 40px rgba(0, 20, 50, 0.22);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.history-drawer.open {
  transform: translateX(0);
}

.history-drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.history-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-drawer-title-group img {
  width: 26px;
  height: 26px;
}
.history-drawer-title-group h2 {
  margin: 0;
  font-size: 20px;
  color: var(--northstar-dark);
}
.history-drawer-title-group p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.btn-close-drawer {
  background: #e2e8f0;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.btn-close-drawer:hover {
  background: #cbd5e1;
  color: var(--northstar-dark);
}

.history-drawer-filters {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-search-row {
  position: relative;
}
.drawer-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.drawer-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.drawer-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.drawer-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.drawer-chip:hover {
  background: #e2e8f0;
}
.drawer-chip.active {
  background: var(--northstar-blue);
  border-color: var(--northstar-blue);
  color: #fff;
}

.drawer-summary-banner {
  display: flex;
  justify-content: space-around;
  padding: 12px 24px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.drawer-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.drawer-summary-item small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
}
.drawer-summary-item strong {
  font-size: 14.5px;
  color: var(--northstar-dark);
}
.drawer-summary-item strong.pos { color: #16a34a; }
.drawer-summary-item strong.neg { color: #dc2626; }

.history-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-tx-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition: all .15s;
}
.drawer-tx-card:hover {
  border-color: var(--northstar-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.drawer-tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.drawer-tx-icon.pos { background: #dcfce7; color: #16a34a; }
.drawer-tx-icon.neg { background: #fee2e2; color: #dc2626; }
.drawer-tx-desc strong {
  display: block;
  font-size: 14px;
  color: var(--northstar-dark);
}
.drawer-tx-desc small {
  font-size: 12px;
  color: var(--muted);
}
.drawer-tx-right {
  text-align: right;
}
.drawer-tx-right strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.drawer-tx-right strong.pos { color: #16a34a; }
.drawer-tx-right small {
  font-size: 10.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.history-drawer-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  display: flex;
  gap: 12px;
}
.btn-drawer-foot {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.btn-drawer-foot.primary {
  background: var(--northstar-blue);
  color: #fff;
  border: 0;
}
.btn-drawer-foot.primary:hover {
  background: var(--northstar-dark);
}
.btn-drawer-foot.secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--ink);
}
.btn-drawer-foot.secondary:hover {
  background: #f1f5f9;
}

/* Modals */
.dash-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 50, 0.55);
  z-index: 1300;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.dash-modal.open {
  display: flex;
}
.dash-modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  width: min(520px, 100%);
  box-shadow: 0 20px 60px rgba(0, 20, 50, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.dash-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dash-modal-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--northstar-dark);
}
.dash-modal-close {
  background: #f1f5f9;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dash-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-modal-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--northstar-dark);
  margin-bottom: -6px;
}
.dash-modal-form input, .dash-modal-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #B7C4D2;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}
.dash-modal-form .primary-button {
  width: 100%;
  margin-top: 8px;
}

/* Toast */
.northstar-toast,
.Chase-toast,
.chase-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--northstar-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 2000;
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  pointer-events: none;
}
.northstar-toast.show,
.Chase-toast.show,
.chase-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.northstar-toast.error,
.Chase-toast.error,
.chase-toast.error { background: var(--red); }

/* Responsive Grid Adjustments (PWA Multi-Screen) */
@media(max-width: 1100px) {
  .dash-hero-grid {
    grid-template-columns: 1fr;
  }
  .open-account-chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .offers-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 768px) {
  .activity-preview-grid {
    grid-template-columns: 1fr;
  }
  .dash-snapshot {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-snapshot-metrics {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    width: 100%;
  }
}
@media(max-width: 640px) {
  .dash-greeting-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-top-actions {
    width: 100%;
  }
  .open-account-chips-grid {
    grid-template-columns: 1fr 1fr;
  }
  .offers-grid-wide {
    grid-template-columns: 1fr;
  }
  .dash-action-pills {
    grid-template-columns: 1fr 1fr;
  }
  .history-drawer {
    width: 100vw;
  }
}

/* =========================================================================
   Admin Visibility Control (Hidden for regular customers)
   ========================================================================= */
.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: inline-flex !important;
}

body.is-admin a.admin-only.header-link,
body.is-admin a.admin-only.dash-btn-utility {
  display: inline-flex !important;
}

body.is-admin .footer-col a.admin-only,
body.is-admin .footer-bottom a.admin-only {
  display: inline-block !important;
}

/* =========================================================================
   Balance Privacy & Masking (Hide / Show Eye Toggle)
   ========================================================================= */
.btn-balance-eye {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
  transition: all .15s ease;
}

.btn-balance-eye:hover {
  background: #e2e8f0;
  color: var(--northstar-blue);
  border-color: var(--northstar-blue);
  transform: scale(1.05);
}

.btn-balance-eye svg {
  width: 14px;
  height: 14px;
}

.btn-card-eye {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all .15s ease;
}

.btn-card-eye:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: scale(1.05);
}

.btn-card-eye svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
}

.card-bal-num.is-hidden,
.dash-hero-balance-text.is-hidden,
.acc-balance.is-hidden {
  letter-spacing: 2.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

/* =========================================================================
   NORTHSTAR CORE OPERATIONS & ADMIN CONSOLE STYLES
   ========================================================================= */

.admin-site-header {
  border-bottom: 2px solid #004080;
}

.admin-portal-badge {
  background: #eff6ff;
  color: var(--northstar-blue);
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.admin-user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.admin-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.admin-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-greeting h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--northstar-navy);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.admin-greeting p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* KPI Overview Cards */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-kpi {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(0, 40, 85, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 40, 85, 0.08);
}

.admin-kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--northstar-blue);
}

.admin-kpi.green::before { background: #16a34a; }
.admin-kpi.gold::before { background: #d97706; }
.admin-kpi.purple::before { background: #7c3aed; }

.admin-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.admin-kpi-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--northstar-dark);
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.6px;
}

.admin-kpi-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

/* Two-Column Operations Layout */
.admin-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 28px;
  align-items: start;
}

/* Customer Directory Sidebar */
.admin-search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  margin: 12px 0 16px;
  background: #f8fafc;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--northstar-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.15);
}

#admin-cust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

#admin-cust-list::-webkit-scrollbar {
  width: 6px;
}
#admin-cust-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}
#admin-cust-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.cust-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.cust-card-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.cust-card-item.active {
  background: #f0f7ff;
  border-color: var(--northstar-blue);
  box-shadow: 0 2px 10px rgba(0, 94, 184, 0.12);
}

.cust-card-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--northstar-blue);
  border-radius: 10px 0 0 10px;
}

.cust-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cust-card-head strong {
  font-size: 14.5px;
  color: var(--northstar-dark);
}

.cust-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
}

.cust-badge.active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.cust-badge.frozen {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Selected Customer Banner */
.admin-cust-banner {
  background: linear-gradient(135deg, #0a2540 0%, #005eb8 100%) !important;
  color: #ffffff;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.2);
}

.admin-banner-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-banner-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-banner-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-banner-actions .primary-button.danger {
  background: #ef4444;
  border-color: #dc2626;
  color: #fff;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
}
.admin-banner-actions .primary-button.danger:hover {
  background: #dc2626;
}

.admin-banner-actions .secondary-button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}
.admin-banner-actions .secondary-button:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Account Balances Grid & Override */
.admin-accs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.admin-acc-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-acc-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.admin-acc-tile h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--northstar-navy);
  font-weight: 700;
}

.admin-acc-tile small {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 14px;
  display: block;
}

.admin-acc-bal {
  font-size: 26px;
  font-weight: 800;
  color: var(--northstar-dark);
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}

.quick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-btn:hover {
  background: var(--northstar-blue);
  color: #ffffff;
  border-color: var(--northstar-blue);
}

.admin-override-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.admin-override-box h4 {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--northstar-navy);
}

/* Post Transaction Form */
.admin-post-tx-form {
  display: grid;
  grid-template-columns: 120px 1.5fr 140px 140px auto;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-post-tx-form label,
.admin-override-box label,
.admin-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
}

.admin-post-tx-form input,
.admin-post-tx-form select,
.admin-override-box input,
.admin-override-box select,
#form-edit-kyc input,
#form-edit-kyc select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 13.5px;
  background: #ffffff;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-post-tx-form input:focus,
.admin-post-tx-form select:focus,
.admin-override-box input:focus,
.admin-override-box select:focus,
#form-edit-kyc input:focus,
#form-edit-kyc select:focus {
  outline: none;
  border-color: var(--northstar-blue);
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.12);
}

/* Data Table in Admin */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.admin-table-container .data-table {
  margin-top: 0;
  width: 100%;
  border-collapse: collapse;
}

.admin-table-container .data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table-container .data-table td {
  padding: 12px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table-container .data-table tr:last-child td {
  border-bottom: 0;
}

/* KYC Grid */
.admin-kyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Responsive Admin Layout */
@media (max-width: 1180px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-wrap {
    padding: 20px 16px 40px;
  }
  .admin-kpis {
    grid-template-columns: 1fr;
  }
  .admin-post-tx-form {
    grid-template-columns: 1fr;
  }
  .admin-kyc-grid {
    grid-template-columns: 1fr;
  }
  .admin-banner-identity {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* =========================================================================
   NORTHSTAR CONNECT DESKTOP & MOBILE REDESIGN
   ========================================================================= */

.northstar-connect-body,
.Chase-connect-body,
.chase-connect-body {
  background-color: #f4f6f8;
  color: #1a202c;
  min-height: 100vh;
}

/* 1. Northstar Connect Top Bar */
.northstar-connect-header {
  background-color: #00396b;
  border-bottom: 1px solid #002b52;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.connect-header-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.connect-logo {
  height: 24px;
  filter: brightness(0) invert(1);
}

.connect-desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 28px;
}

.connect-nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 20px 4px 17px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.connect-nav-item:hover {
  color: #cce3ff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.connect-nav-item.active {
  color: #ffffff;
  font-weight: 700;
  border-bottom-color: #ffffff;
}

.connect-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.connect-util-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.connect-util-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.connect-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.connect-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.connect-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.connect-notif-wrap {
  position: relative;
  cursor: pointer;
}

.connect-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  border: 2px solid #00396b;
}

.connect-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.15s ease;
}

.connect-user-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.connect-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ffffff;
}

.connect-user-name {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
}

.connect-caret {
  color: #cbd5e1;
  font-size: 10px;
}

.connect-logout-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.connect-logout-btn:hover {
  background: #ffffff;
  color: #00396b;
}

/* 2. Sub-Nav Bar (Overview | Reports | Business insights | Statements | Profile) */
.connect-subnav-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.connect-subnav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.connect-subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #475569;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.subnav-tab-btn:hover {
  color: #005eb8;
}

.subnav-tab-btn.active {
  color: #005eb8;
  border-bottom-color: #005eb8;
  font-weight: 700;
}

.subnav-tab-btn svg {
  width: 16px;
  height: 16px;
}

/* Container & Tabs */
.connect-page-container {
  max-width: 1380px;
  margin: 24px auto 60px;
  padding: 0 24px;
}

.connect-tab-content {
  display: none;
}

.connect-tab-content.active {
  display: block;
}

/* Entity Banner & Total Balance Bar */
.connect-entity-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.entity-selector-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.selector-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.connect-acc-select {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.entity-title {
  font-size: 22px;
  font-weight: 700;
  color: #0a2540;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.entity-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.entity-status-tag {
  color: #16a34a;
  font-weight: 700;
}

.entity-balance-right {
  text-align: right;
}

.total-bal-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-bal-val-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.total-bal-val {
  font-size: 32px;
  font-weight: 700;
  color: #0a2540;
  letter-spacing: -0.5px;
}

.total-bal-date {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Two-Column Grid */
.connect-two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

/* Accounts Stack */
.connect-accounts-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.connect-account-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.connect-account-card.featured {
  border-left: 5px solid #005eb8;
}

.connect-account-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.acc-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.acc-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acc-title-group h3 {
  margin: 0;
  font-size: 17.5px;
}

.acc-link-title {
  color: #005eb8;
  text-decoration: none;
  font-weight: 700;
}

.acc-link-title:hover {
  text-decoration: underline;
}

.acc-type-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.acc-type-pill.operating {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.acc-type-pill.treasury {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.acc-type-pill.savings {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.acc-routing-tag {
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

.btn-acc-more {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.acc-card-body-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.bal-metric-box small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.bal-metric-box .metric-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.bal-metric-box.primary .metric-num {
  font-size: 24px;
  color: #005eb8;
}

.bal-metric-box .metric-sub {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.metric-num.pos {
  color: #16a34a !important;
}

.metric-num.neg {
  color: #dc2626 !important;
}

.metric-num.active-tag {
  color: #16a34a;
  font-size: 14px;
  padding-top: 4px;
}

.acc-card-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-card-action {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-card-action.primary {
  background: #005eb8;
  color: #ffffff;
  border-color: #005eb8;
}

.btn-card-action.primary:hover {
  background: #004b94;
}

.btn-card-action svg {
  width: 14px;
  height: 14px;
}

.paperless-status {
  margin-left: auto;
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.check-circ {
  color: #16a34a;
  font-weight: 700;
}

/* Quick Payments Toolbar */
.connect-quick-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.connect-quick-toolbar::-webkit-scrollbar {
  display: none;
}

.toolbar-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.toolbar-btn:hover {
  background: #005eb8;
  color: #ffffff;
  border-color: #005eb8;
}

.toolbar-btn svg {
  width: 16px;
  height: 16px;
}

.toolbar-btn:hover svg {
  stroke: #ffffff;
}

/* Fraud Prevention Alert Banner */
.connect-fraud-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.fraud-icon-wrap {
  font-size: 28px;
}

.fraud-text-wrap strong {
  display: block;
  font-size: 14.5px;
  color: #92400e;
  margin-bottom: 2px;
}

.fraud-text-wrap p {
  font-size: 13px;
  color: #78350f;
  margin: 0;
  line-height: 1.45;
}

.fraud-link {
  color: #b45309;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}

.fraud-link:hover {
  text-decoration: underline;
}

/* Offers Section */
.connect-offers-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.offers-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.offers-header-row h3 {
  margin: 0;
  font-size: 17px;
  color: #0f172a;
}

.offers-link-btn {
  background: transparent;
  border: none;
  color: #005eb8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.offers-cards-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.offer-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.offer-card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.offer-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.offer-pill.purple { background: #8b5cf6; }
.offer-pill.red { background: #ef4444; }
.offer-pill.cyan { background: #06b6d4; }
.offer-pill.green { background: #10b981; }

.offer-card-info {
  padding: 10px 12px;
}

.offer-card-info strong {
  display: block;
  font-size: 13.5px;
  color: #0f172a;
}

.offer-card-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
}

/* Comprehensive Activity Ledger Section */
.connect-activity-ledger-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ledger-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.ledger-title-group h3 {
  margin: 0 0 2px;
  font-size: 19px;
  color: #0f172a;
}

.ledger-title-group p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.ledger-tools-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ledger-tool-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ledger-tool-btn:hover {
  background: #f1f5f9;
}

.ledger-tool-btn.primary {
  background: #005eb8;
  color: #ffffff;
  border-color: #005eb8;
}

.ledger-tool-btn.primary:hover {
  background: #004b94;
}

.ledger-export-wrap {
  position: relative;
}

.ledger-export-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  min-width: 190px;
  z-index: 50;
  overflow: hidden;
}

.export-option-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s ease;
}

.export-option-btn:hover {
  background: #f1f5f9;
  color: #005eb8;
}

/* Expandable Search & Filter Drawer */
.connect-search-drawer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.field-col label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.field-col input,
.field-col select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
}

.drawer-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-apply-filter {
  background: #005eb8;
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-reset-filter {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-count-label {
  margin-left: auto;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

/* Table */
.ledger-table-responsive-wrap {
  overflow-x: auto;
}

.connect-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.connect-ledger-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 12.5px;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.connect-ledger-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.connect-ledger-table tr:hover td {
  background: #f8fafc;
}

.tx-desc-cell strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.tx-desc-cell small {
  color: #94a3b8;
  font-size: 11.5px;
}

.tx-channel-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.tx-amt-num {
  font-weight: 700;
  font-size: 14.5px;
}

.tx-amt-num.pos { color: #16a34a; }
.tx-amt-num.neg { color: #0f172a; }

.tx-bal-num {
  font-family: monospace;
  font-size: 13px;
  color: #475569;
}

.btn-tx-details {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}

.ledger-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  margin-top: 12px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-open-full-drawer {
  background: transparent;
  border: none;
  color: #005eb8;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-open-full-drawer:hover {
  text-decoration: underline;
}

.ledger-footer-note {
  font-size: 12px;
  color: #94a3b8;
}

/* Right Sidebar Widgets */
.connect-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.connect-sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.connect-sidebar-widget .widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.connect-sidebar-widget .widget-head h3 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.widget-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.widget-badge.active {
  background: #dcfce7;
  color: #15803d;
}

.widget-badge.info {
  background: #eff6ff;
  color: #1d4ed8;
}

.signer-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.signer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #005eb8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.signer-info strong {
  display: block;
  font-size: 14.5px;
  color: #0f172a;
}

.signer-info small {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.signer-info .signer-phone {
  color: #005eb8;
  font-weight: 600;
}

.signer-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.btn-widget-link {
  width: 100%;
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #005eb8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-widget-link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.widget-intro-text {
  font-size: 13.5px;
  color: #334155;
  margin: 0 0 12px;
}

.insights-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.mini-metric-item small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.mini-metric-item strong {
  font-size: 13px;
}

.insights-cashflow-meter {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 8px;
}

.cashflow-bar.in { background: #10b981; }
.cashflow-bar.out { background: #005eb8; }

.cashflow-legend-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}

.legend-dot.in { background: #10b981; }
.legend-dot.out { background: #005eb8; }

.support-officer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.officer-badge {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  color: #00396b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.officer-info strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.officer-info small {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.support-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1e293b;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.support-link-item:hover {
  background: #f8fafc;
}

.support-link-item svg {
  width: 20px;
  height: 20px;
  stroke: #005eb8;
}

.support-link-item strong {
  display: block;
  font-size: 13.5px;
  color: #005eb8;
}

.support-link-item small {
  font-size: 11.5px;
  color: #64748b;
}

/* Tabs: Panels, Forms, Tables */
.connect-tab-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.panel-head-row {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.panel-head-row h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #0a2540;
}

.panel-head-row p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.report-builder-card,
.scheduled-reports-card,
.letters-card,
.statements-archive-card,
.tax-card {
  margin-bottom: 28px;
}

.report-builder-card h3,
.scheduled-reports-card h3,
.letters-card h3,
.statements-archive-card h3,
.tax-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #0f172a;
}

.report-form-actions {
  margin-top: 18px;
}

.connect-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.connect-data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.connect-data-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.format-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.format-badge.pdf { background: #fee2e2; color: #b91c1c; }
.format-badge.csv { background: #dcfce7; color: #15803d; }
.format-badge.email { background: #eff6ff; color: #1d4ed8; }

.status-pill.ready {
  background: #dcfce7;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-table-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-table-action.primary {
  background: #005eb8;
  color: #ffffff;
  border-color: #005eb8;
}

/* Letters Grid */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.letter-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 16px;
}

.letter-icon {
  font-size: 32px;
}

.letter-info h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #0f172a;
}

.letter-info p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.btn-download-letter {
  background: #005eb8;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-download-letter:hover {
  background: #004b94;
}

/* Insights Tab KPIs & Visuals */
.insights-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.insights-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
}

.insights-kpi-card small {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 4px;
}

.insights-kpi-card strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.kpi-note {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.insights-charts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.chart-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #0f172a;
}

.bar-chart-visual {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 200px;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.chart-month-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  transition: opacity 0.2s;
}

.bar.in { background: #10b981; }
.bar.out { background: #005eb8; }

.chart-month-col span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: #475569;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-swatch.in { background: #10b981; }
.legend-swatch.out { background: #005eb8; }

.category-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-item .cat-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
  color: #334155;
}

.cat-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.cat-bar .fill {
  height: 100%;
  border-radius: 4px;
}

/* Profile Page Grid */
.profile-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #005eb8;
}

.profile-card-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #0f172a;
}

.profile-role-badge {
  font-size: 12px;
  color: #16a34a;
  font-weight: 700;
}

.connect-dl-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.connect-dl-list div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13.5px;
}

.connect-dl-list dt {
  color: #64748b;
  font-weight: 500;
}

.connect-dl-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.pin-management-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pin-display-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile-Only Debit Card Hero Container (Hidden on Desktop) */
.mobile-only-hero-card {
  display: none;
}

/* Mobile Bottom Navigation Dock (Image 3 "After" Reference) */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  border-top: 1px solid #1f2937;
  padding: 6px 12px 10px;
  z-index: 1000;
  justify-content: space-around;
  align-items: flex-end;
}

.dock-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.dock-btn.active {
  color: #38bdf8;
}

.dock-btn svg {
  width: 22px;
  height: 22px;
}

.dock-label {
  font-size: 10.5px;
}

/* Center Floating Action Button with Sparkle Gradient */
.dock-center-fab {
  transform: translateY(-8px);
}

.fab-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.fab-circle svg {
  stroke: #ffffff;
  width: 22px;
  height: 22px;
}

/* =========================================================================
   RESPONSIVE MEDIA QUERIES (Desktop -> Tablet -> Mobile)
   ========================================================================= */

@media (max-width: 1080px) {
  .connect-two-col-layout {
    grid-template-columns: 1fr;
  }
  .insights-charts-grid {
    grid-template-columns: 1fr;
  }
  .profile-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .connect-desktop-nav {
    display: none;
  }
  .connect-util-btn {
    display: none;
  }
  .offers-cards-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .northstar-connect-body {
    padding-bottom: 70px; /* Space for mobile floating dock */
  }
  .connect-header-inner {
    padding: 0 16px;
  }
  .connect-page-container {
    padding: 0 14px;
    margin-top: 14px;
  }
  .connect-entity-banner {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .entity-balance-right {
    text-align: left;
    width: 100%;
  }
  .total-bal-val-row {
    justify-content: flex-start;
  }
  .total-bal-val {
    font-size: 26px;
  }
  .acc-card-body-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* Reveal signature mobile debit card */
  .mobile-only-hero-card {
    display: block;
    margin-bottom: 20px;
  }
  /* Show mobile floating dock */
  .mobile-bottom-dock {
    display: flex;
  }
  .site-footer {
    padding-bottom: 70px;
  }
}

/* =========================================================================
   AUTHENTIC CHASE CONNECT 1:1 REPLICATION (media_1795164663974_dd5374a3.png)
   ========================================================================= */

/* 1. Header Top Bar — Chase- and northstar- class aliases both supported */
.northstar-connect-topbar,
.Chase-connect-topbar,
.chase-connect-topbar {
  background-color: #002855;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.topbar-row-one {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
}

.topbar-hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 1px;
}

.connect-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.connect-brand-octagon {
  width: 22px;
  height: 22px;
}

.connect-brand-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.connect-brand-sm {
  font-size: 9px;
  font-weight: 700;
  vertical-align: top;
  margin-left: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.topbar-icon-btn svg {
  width: 20px;
  height: 20px;
}

.topbar-open-acc-btn {
  background-color: #ffffff;
  color: #002855;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-open-acc-btn:hover {
  background-color: #e2e8f0;
}

.topbar-signout-link {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: none;
}

.topbar-signout-link:hover {
  text-decoration: underline;
}

/* Row 2: Primary Nav Tabs */
.topbar-row-two {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.connect-primary-nav {
  display: flex;
  gap: 28px;
}

.primary-nav-tab {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 2px 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.primary-nav-tab:hover {
  color: #93c5fd;
}

.primary-nav-tab.active {
  color: #ffffff;
  font-weight: 700;
  border-bottom-color: #38bdf8;
}

/* 2. Subnav Strip (White bar with [Overview] pill) */
/* Authentic Chase Connect Sub-navigation bar */
.connect-subnav-strip {
  background-color: #ffffff;
  border-bottom: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.connect-subnav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.connect-subnav-container::-webkit-scrollbar {
  display: none;
}

.subnav-pill-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.subnav-pill-btn:hover,
.subnav-pill-btn:focus {
  text-decoration: none;
  color: #005eb8;
}

.subnav-pill-btn.active {
  background-color: #f0f7ff;
  border: 1px solid #005eb8;
  color: #005eb8;
  font-weight: 700;
}

/* 3. Main Workspace Layout */
.connect-main-layout {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.connect-greeting-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 16px;
  letter-spacing: -0.3px;
}

/* 4. Split Grid: Left Bank Accounts / Right Widgets */
.connect-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

/* 5. Showing Filter Bar (Red box from user screenshot) */
.connect-showing-strip {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #005eb8;
  border-radius: 4px 4px 0 0;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.showing-left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showing-label {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.connect-dropdown-wrapper {
  position: relative;
}

.connect-dropdown-trigger {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.connect-dropdown-trigger:hover {
  border-color: #005eb8;
}

.dropdown-arrow-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.connect-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 9px 14px;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-item.selected {
  color: #005eb8;
  font-weight: 700;
}

.item-check {
  display: inline-block;
  width: 16px;
  color: #005eb8;
  font-weight: 700;
}

.showing-right-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showing-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.showing-icon-btn:hover {
  background: #eff6ff;
}

.showing-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #005eb8;
}

/* 6. Bank Accounts Card */
.connect-bank-accounts-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.bank-accounts-card-header {
  padding: 16px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.bank-acc-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.btn-acc-chevron {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-acc-chevron svg {
  width: 18px;
  height: 18px;
  stroke: #475569;
}

.bank-acc-entity-bar {
  padding: 6px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.entity-name-text {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.entity-total-balance-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.total-bal-label-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.total-bal-num-text {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

/* Individual Account Items */
.account-item-block {
  padding: 18px 20px 22px;
}

.acc-item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.acc-blue-title-link {
  font-size: 16px;
  font-weight: 700;
  color: #005eb8;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.acc-blue-title-link:hover {
  text-decoration: underline;
}

.acc-item-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dark-navy-action {
  background-color: #002855;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-dark-navy-action:hover {
  background-color: #001f42;
}

.btn-white-blue-action {
  background-color: #ffffff;
  color: #005eb8;
  border: 1px solid #005eb8;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-white-blue-action:hover {
  background-color: #eff6ff;
}

.acc-item-balance-row {
  margin-bottom: 14px;
}

.acc-big-balance-num {
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  display: block;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.acc-big-balance-sub {
  font-size: 12.5px;
  color: #64748b;
  display: block;
  margin-top: 4px;
}

.acc-item-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.acc-item-three-cols .stat-col {
  display: flex;
  flex-direction: column;
}

.acc-item-three-cols .stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.acc-item-three-cols .stat-sublabel {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.see-weekly-link {
  font-size: 12px;
  color: #005eb8;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

.see-weekly-link:hover {
  text-decoration: underline;
}

.acc-divider-line {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0;
}

/* 7. Right Sidebar Widgets (The 3 Exact Widgets) */
.connect-right-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-widget-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.side-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #0a2540;
  margin: 0 0 14px;
}

/* Widget 1: View authorized signers */
.widget-clickable-row {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.widget-clickable-row:hover {
  opacity: 0.85;
}

.widget-card-graphic {
  width: 38px;
  height: 26px;
  background: #005eb8;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 94, 184, 0.3);
}

.mini-card-chip {
  width: 8px;
  height: 6px;
  background: #facc15;
  border-radius: 1.5px;
  position: absolute;
  top: 6px;
  left: 6px;
}

.widget-desc-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.35;
}

.widget-chevron-right {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Widget 2: Business insights */
.insights-entity-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.insights-chart-icon-box {
  width: 30px;
  height: 30px;
  background: #eff6ff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insights-chart-icon-box svg {
  width: 16px;
  height: 16px;
}

.insights-entity-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.insights-metric-link {
  font-size: 13px;
  font-weight: 600;
  color: #005eb8;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}

.insights-metric-link:hover {
  text-decoration: underline;
}

.insights-big-amount-row {
  margin-bottom: 12px;
}

.insights-big-amount {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}

.insights-carousel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.carousel-arrow {
  background: transparent;
  border: none;
  color: #005eb8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
}

.carousel-dots-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.carousel-dots-group .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.carousel-dots-group .dot.active {
  background: #005eb8;
}

.insights-bottom-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #005eb8;
  text-decoration: none;
  display: inline-block;
}

.insights-bottom-link:hover {
  text-decoration: underline;
}

/* Widget 3: Help & support */
.support-subheading {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.support-clickable-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.support-clickable-row:hover {
  opacity: 0.85;
}

.support-desc-text {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Responsive Overrides */
@media (max-width: 1080px) {
  .connect-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-row-one {
    padding: 0 16px;
  }
  .topbar-row-two {
    padding: 0 16px;
    overflow-x: auto;
  }
  .connect-subnav-container {
    padding: 8px 16px;
  }
  .connect-main-layout {
    padding: 0 16px;
  }
  .acc-item-three-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bank-acc-entity-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------------------
   Sign-in loading overlay (shown while authenticating)
   --------------------------------------------------------------------------- */
#northstar-signin-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 46, 92, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.ns-loading-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 36px;
  text-align: center;
  min-width: 250px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.ns-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid #dbe7f3;
  border-top-color: #005eb8;
  border-radius: 50%;
  animation: ns-spin 0.8s linear infinite;
}

@keyframes ns-spin {
  to { transform: rotate(360deg); }
}

.ns-loading-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0a2e5c;
}

.ns-loading-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

/* =========================================================================
   AUTHENTIC CHASE SLIDE-OUT NAVIGATION DRAWER (media_1795209287111_5887331c.png)
   ========================================================================= */

.chase-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99990;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.chase-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.chase-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background-color: #222222 !important;
  color: #ffffff !important;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.chase-nav-drawer.open {
  transform: translateX(0);
}

/* Close button row */
.chase-drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 10px;
  background-color: #222222;
}

.chase-drawer-close-btn {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.chase-drawer-close-btn:hover,
.chase-drawer-close-btn:focus {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.chase-drawer-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Primary links group */
.chase-drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chase-drawer-nav-list li {
  border-bottom: 1px solid #333333;
}

.chase-drawer-link {
  display: block;
  padding: 14px 20px;
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 0.15s ease;
}

.chase-drawer-link:hover {
  background-color: #2c2c2c;
  color: #ffffff !important;
}

/* Section titles */
.chase-drawer-section-title {
  background-color: #1a1a1a;
  color: #a3a3a3;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 20px 8px;
  border-bottom: 1px solid #2e2e2e;
}

/* Accordion rows */
.chase-drawer-accordion {
  border-bottom: 1px solid #333333;
}

.chase-drawer-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ffffff;
  text-align: left;
  transition: background-color 0.15s ease;
}

.chase-drawer-acc-trigger:hover {
  background-color: #2c2c2c;
}

.chase-drawer-acc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chase-drawer-acc-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #ffffff;
}

.chase-drawer-acc-label {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chase-drawer-acc-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  stroke: #ffffff;
  flex-shrink: 0;
}

.chase-drawer-accordion.open .chase-drawer-acc-chevron {
  transform: rotate(180deg);
}

.chase-drawer-acc-content {
  display: none;
  background-color: #171717;
  padding: 6px 0;
}

.chase-drawer-accordion.open .chase-drawer-acc-content {
  display: block;
}

.chase-drawer-sublink {
  display: block;
  padding: 10px 20px 10px 54px;
  color: #d1d5db !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.15s ease;
}

.chase-drawer-sublink:hover {
  background-color: #262626;
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Bottom footer links */
.chase-drawer-footer {
  margin-top: auto;
  padding: 24px 20px 32px;
  background-color: #1a1a1a;
  border-top: 1px solid #333333;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chase-drawer-footer-link {
  color: #bfbfbf !important;
  text-decoration: underline !important;
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 2px;
}

.chase-drawer-footer-link:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   Mobile Responsiveness & New Feature Adaptations (Customer Service, SMTP, Holds)
   ========================================================================== */

/* 1. Contact Form & Admin SMTP Grid Breakpoints */
@media (max-width: 768px) {
  .contact-form-grid,
  .admin-smtp-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* 2. Client Messages & Customer Service Modal Responsiveness */
@media (max-width: 640px) {
  #modal-client-messages .dash-modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 16px 14px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    border-radius: 10px !important;
  }

  #modal-client-messages .dash-modal-header h3 {
    font-size: 16px !important;
  }

  .message-detail-box {
    padding: 12px !important;
  }
}

/* 3. Chase Connect Topbar Mobile Polish */
@media (max-width: 680px) {
  .topbar-open-acc-btn {
    display: none !important;
  }

  .topbar-right {
    gap: 10px !important;
  }

  .connect-brand-text {
    display: none !important;
  }
}

@media (max-width: 480px) {
  #btn-topbar-search,
  #btn-topbar-help {
    display: none !important;
  }

  .topbar-right {
    gap: 8px !important;
  }

  .topbar-icon-btn {
    padding: 3px !important;
  }

  .topbar-signout-link {
    font-size: 12px !important;
    padding: 2px 4px !important;
  }
}

/* 4. Table Responsiveness for Admin & Customer Ledgers */
.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .admin-table-responsive table {
    min-width: 640px;
  }

  .connect-ledger-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .connect-ledger-table {
    min-width: 620px;
  }
}

/* 5. Transaction Hold & Security Banner Styling */
.tx-blocked-row {
  background-color: #fff1f2 !important;
}

.tx-blocked-amount {
  text-decoration: line-through !important;
  color: #991b1b !important;
  opacity: 0.8;
}

.badge-blocked {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #f87171 !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-active {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
  font-weight: 600 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
}

