/* ============ shared bank styles: 1:1 login pages + dashboard + home ========= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif); color: #1a1a1a; background: #fff; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: 'SF Mono', 'Cascadia Code', Consolas, Menlo, monospace; }
.ic { flex-shrink: 0; vertical-align: middle; }

/* real store badges (custom SVG icons, no emojis) */
.store-badge { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #c6cdd4; border-radius: 7px; padding: 7px 14px; font-size: 12px; color: #333; font-weight: 600; background: #fff; }
.store-badge svg { color: #47525e; }

.lp-error { background: #fdecec; border: 1px solid #f0b1b1; color: #a41111; border-radius: 6px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.lp-error-x { font-weight: 700; font-size: 12px; }

/* ======================================================== SCOTIABANK ======== */

.lp-scotia { background: #fff; }
.sc-hdr { background: #fff; border-bottom: 1px solid #e0e0e0; }
.sc-hdr-inner { max-width: 1140px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sc-logo .logo { height: 34px; width: auto; color: #EC111A; display: block; }
.sc-utility { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #555; }
.sc-utility a:hover { color: #EC111A; text-decoration: underline; }
.sc-utility-divider { width: 1px; height: 16px; background: #ddd; }
.sc-signin-link { display: inline-flex; align-items: center; gap: 6px; background: #EC111A; color: #fff !important; font-weight: 700; padding: 8px 16px; border-radius: 4px; }
.sc-signin-link:hover { background: #c50e15; text-decoration: none !important; }

.sc-main { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; padding: 52px 24px 64px; align-items: start; }
.sc-promo-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: #EC111A; }
.sc-promo h1 { font-size: 33px; line-height: 1.15; letter-spacing: -0.5px; margin: 10px 0 22px; color: #232323; }
.sc-promo-list { list-style: none; }
.sc-promo-list li { padding: 7px 0 7px 30px; position: relative; color: #444; font-size: 15px; }
.sc-promo-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 18px; height: 3px; background: #EC111A; border-radius: 2px; }
.sc-promo-note { margin-top: 26px; font-size: 14.5px; color: #333; }
.sc-promo-note a { color: #C50E15; font-weight: 700; text-decoration: underline; }

.sc-right { display: flex; flex-direction: column; align-items: stretch; }
.sc-card { border: 1px solid #e3e3e3; border-top: 4px solid #EC111A; border-radius: 8px; padding: 30px 32px 26px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.sc-card-title { font-size: 25px; letter-spacing: -0.3px; }
.sc-card-sub { color: #777; font-size: 14px; margin: 4px 0 18px; }
.sc-label { display: block; font-size: 13.5px; font-weight: 600; color: #333; margin-bottom: 14px; }
.sc-input { width: 100%; margin-top: 6px; display: block; padding: 12px 13px; font-size: 15px; border: 1.5px solid #c8ccd1; border-radius: 4px; }
.sc-input:focus { outline: none; border-color: #EC111A; box-shadow: 0 0 0 3px rgba(236,17,26,0.12); }
.sc-btn { width: 100%; background: #EC111A; color: #fff; font-size: 15.5px; font-weight: 700; border: none; border-radius: 4px; padding: 13px; margin-top: 4px; }
.sc-btn:hover { background: #c50e15; }
.sc-links { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; font-size: 13.5px; }
.sc-links a { color: #C50E15; font-weight: 600; }
.sc-links a:hover { text-decoration: underline; }
.sc-secure { display: flex; gap: 12px; background: #f8f8f8; border: 1px solid #ececec; border-radius: 8px; padding: 16px; margin-top: 18px; }
.sc-secure p { font-size: 12.5px; color: #666; line-height: 1.55; }
.sc-secure svg { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px) { .sc-main { grid-template-columns: 1fr; } .sc-promo { display: none; } }

/* =============================================================== TD ======== */

.lp-td { background: #fff; }
.td-hdr { background: #008A00; color: #fff; }
.td-hdr-inner { max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 26px; }
.td-logo .logo { height: 36px; width: auto; color: #fff; display: block; }
.td-hdr-links { display: flex; align-items: center; gap: 10px; font-size: 13px; flex: 1; }
.td-hdr-links a:hover { text-decoration: underline; }
.td-dot { opacity: 0.5; font-size: 10px; }
.td-hdr-right { display: flex; align-items: center; gap: 14px; font-size: 12.5px; }
.td-hdr-right a:hover { text-decoration: underline; }
.td-login-pill { background: #fff; color: #006900; font-weight: 700; padding: 6px 13px; border-radius: 4px; font-size: 12.5px; }

.td-main { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 56px; padding: 64px 24px 72px; align-items: start; }
.td-h1 { font-size: 34px; letter-spacing: -0.6px; color: #1c1c1c; }
.td-sub { color: #777; font-size: 15px; margin: 6px 0 26px; }
.td-form { max-width: 430px; }
.td-label { display: block; font-size: 13.5px; font-weight: 700; color: #262626; margin-bottom: 16px; }
.td-input { width: 100%; margin-top: 6px; display: block; padding: 12px 13px; font-size: 15px; border: 1.5px solid #c8ccd1; border-radius: 4px; background: #fbfcfa; }
.td-input:focus { outline: none; border-color: #008A00; box-shadow: 0 0 0 3px rgba(0,138,0,0.12); background: #fff; }
.td-remember { margin: -4px 0 18px; }
.td-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #444; }
.td-check input { width: 16px; height: 16px; accent-color: #008A00; }
.td-btn { background: #008A00; color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: 4px; padding: 13px 40px; }
.td-btn:hover { background: #006900; }
.td-links { margin-top: 20px; font-size: 13.5px; color: #999; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.td-links a { color: #007A33; font-weight: 600; }
.td-links a:hover { text-decoration: underline; }

.td-sec-col { display: flex; flex-direction: column; gap: 16px; }
.td-sec-box { background: #f4f6f2; border: 1px solid #e3e8dd; border-radius: 8px; padding: 22px; }
.td-sec-box.alt { background: #fff; }
.td-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.td-sec-head h2 { font-size: 17px; letter-spacing: -0.2px; }
.td-sec-p { font-size: 13px; color: #555; line-height: 1.55; margin-bottom: 10px; }
.td-sec-list { list-style: none; }
.td-sec-list li { font-size: 13px; color: #444; padding: 6px 0 6px 22px; position: relative; line-height: 1.45; }
.td-sec-list li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 10px; height: 2.5px; background: #54B848; border-radius: 2px; }
.td-sec-list li a { color: #007A33; }
.td-sec-list li a:hover { text-decoration: underline; }
.td-sec-link { display: inline-block; margin-top: 10px; font-size: 13px; color: #007A33; font-weight: 600; }
.td-sec-link:hover { text-decoration: underline; }

@media (max-width: 920px) { .td-main { grid-template-columns: 1fr; } }

/* ============================================================== BMO ======== */

.lp-bmo { background: #fff; }
.bmo-hdr { background: #003B5C; color: #fff; }
.bmo-hdr-inner { max-width: 1140px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bmo-logo .logo { height: 32px; width: auto; color: #fff; display: block; }
.bmo-hdr-links { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.bmo-hdr-links a:hover { text-decoration: underline; }
.bmo-lang { border: 1px solid rgba(255,255,255,0.45); padding: 2px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; }

.bmo-main { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 54px 24px 70px; align-items: start; }
.bmo-promo h1 { font-size: 31px; line-height: 1.2; letter-spacing: -0.4px; color: #0e2a3d; margin-bottom: 20px; }
.bmo-promo-list { list-style: none; }
.bmo-promo-list li { padding: 7px 0 7px 30px; position: relative; color: #444; font-size: 15px; }
.bmo-promo-list li::before { content: '\2713'; position: absolute; left: 0; color: #0079C1; font-weight: 800; }
.bmo-promo-note { margin-top: 24px; font-size: 13.5px; color: #666; background: #f2f7fb; border-left: 4px solid #0079C1; padding: 12px 16px; border-radius: 0 6px 6px 0; line-height: 1.55; }

.bmo-right { display: flex; flex-direction: column; gap: 16px; }
.bmo-card { border: 1px solid #dbe4ec; border-radius: 10px; padding: 30px 32px 26px; box-shadow: 0 10px 30px rgba(0,59,92,0.10); }
.bmo-card-title { font-size: 25px; color: #0e2a3d; letter-spacing: -0.3px; }
.bmo-card-sub { color: #78889a; font-size: 14px; margin: 4px 0 18px; }
.bmo-label { display: block; font-size: 13.5px; font-weight: 600; color: #0e2a3d; margin-bottom: 14px; }
.bmo-input { width: 100%; margin-top: 6px; display: block; padding: 12px 13px; font-size: 15px; border: 1.5px solid #b9c6d2; border-radius: 5px; }
.bmo-input:focus { outline: none; border-color: #0079C1; box-shadow: 0 0 0 3px rgba(0,121,193,0.13); }
.bmo-remember { margin: -4px 0 16px; }
.bmo-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #444; }
.bmo-check input { width: 16px; height: 16px; accent-color: #0079C1; }
.bmo-btn { width: 100%; background: #0079C1; color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: 5px; padding: 13px; }
.bmo-btn:hover { background: #00558C; }
.bmo-links { margin-top: 18px; font-size: 13.5px; color: #9aa8b5; display: flex; gap: 10px; align-items: center; }
.bmo-links a { color: #0079C1; font-weight: 600; }
.bmo-links a:hover { text-decoration: underline; }
.bmo-help { background: #f6f9fc; border: 1px solid #e2eaf1; border-radius: 10px; padding: 18px 22px; }
.bmo-help h3 { font-size: 14.5px; margin-bottom: 8px; color: #0e2a3d; }
.bmo-help ul { list-style: none; }
.bmo-help li { font-size: 13.5px; padding: 5px 0; }
.bmo-help li a { color: #0079C1; }
.bmo-help li a:hover { text-decoration: underline; }

@media (max-width: 900px) { .bmo-main { grid-template-columns: 1fr; } .bmo-promo { display: none; } }

/* ============================================================== RBC ======== */

.lp-rbc { background: #fff; }
.rbc-hdr { background: #0051A5; color: #fff; }
.rbc-hdr-inner { max-width: 1140px; margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; gap: 22px; }
.rbc-logo .logo { height: 36px; width: auto; color: #fff; display: block; }
.rbc-hdr-links { display: flex; gap: 16px; font-size: 12.5px; flex: 1; }
.rbc-hdr-links a:hover { text-decoration: underline; }
.rbc-lang { border: 1px solid rgba(255,255,255,0.5); padding: 2px 8px; border-radius: 3px; font-weight: 700; font-size: 11px; }
.rbc-hdr-right { display: flex; gap: 14px; font-size: 12.5px; }
.rbc-hdr-right a:hover { text-decoration: underline; }

.rbc-main { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding: 56px 24px 72px; align-items: start; }
.rbc-promo h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; color: #0a2c52; margin-bottom: 22px; }
.rbc-promo-list { list-style: none; margin-bottom: 22px; }
.rbc-promo-list li { padding: 9px 0 9px 34px; position: relative; color: #3c4c5e; font-size: 15px; line-height: 1.5; }
.rbc-promo-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 19px; height: 11px; background: #FFCC00; clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%, 38% 50%); }
.rbc-promo-note { font-size: 14px; color: #44566a; }
.rbc-promo-note a { color: #0051A5; font-weight: 700; text-decoration: underline; }
.rbc-app { margin-top: 30px; padding-top: 22px; border-top: 1px solid #e8ebee; }
.rbc-app span { font-size: 13px; font-weight: 700; color: #0a2c52; display: block; margin-bottom: 10px; }
.rbc-app-badges { display: flex; gap: 10px; }
.rbc-badge { border: 1.5px solid #c6cdd4; border-radius: 6px; padding: 7px 14px; font-size: 12px; color: #333; font-weight: 600; background: #fff; }

.rbc-right { display: flex; flex-direction: column; align-items: stretch; }
.rbc-card { background: #fff; border: 1px solid #dfe4e9; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 34px rgba(0,56,110,0.12); }
.rbc-card-top { height: 5px; background: linear-gradient(90deg, #FFCC00 0%, #FFCC00 34%, #0051A5 34%, #0051A5 100%); }
.rbc-card-title { font-size: 21px; color: #0a2c52; padding: 24px 30px 0; letter-spacing: -0.2px; }
.rbc-card form { padding: 18px 30px 26px; }
.rbc-label { display: block; font-size: 13.5px; font-weight: 700; color: #0a2c52; margin-bottom: 15px; }
.rbc-input { width: 100%; margin-top: 6px; display: block; padding: 12px 13px; font-size: 15px; border: 1.5px solid #b9c4cf; border-radius: 4px; }
.rbc-input:focus { outline: none; border-color: #0051A5; box-shadow: 0 0 0 3px rgba(0,81,165,0.12); }
.rbc-btn { width: 100%; background: #0051A5; color: #fff; font-size: 15.5px; font-weight: 700; border: none; border-radius: 4px; padding: 13px; }
.rbc-btn:hover { background: #003C7D; }
.rbc-links { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 0 30px 24px; color: #99a4b1; flex-wrap: wrap; }
.rbc-links a { color: #0051A5; font-weight: 600; }
.rbc-links a:hover { text-decoration: underline; }
.rbc-secure { font-size: 12px; color: #7c8794; margin-top: 16px; line-height: 1.6; max-width: 460px; }

@media (max-width: 920px) { .rbc-main { grid-template-columns: 1fr; } .rbc-promo { display: none; } }

/* ============================================================= CIBC ======== */

.lp-cibc { background: #f4f4f2; min-height: 100vh; }
.cibc-hdr { background: #fff; border-bottom: 1px solid #e5e5e3; }
.cibc-hdr-inner { max-width: 1200px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 26px; }
.cibc-logo .logo { height: 26px; width: auto; color: #003057; display: block; }
.cibc-hdr-links { display: flex; gap: 16px; font-size: 13px; color: #44515c; flex: 1; }
.cibc-hdr-links a:hover { color: #003057; text-decoration: underline; }
.cibc-hdr-right { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: #44515c; }
.cibc-hdr-right a:hover { text-decoration: underline; }
.cibc-register { color: #003057; font-weight: 700; text-decoration: underline; }

.cibc-main { max-width: 1200px; margin: 0 auto; padding: 60px 24px 70px; display: flex; justify-content: center; }
.cibc-card { background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,48,87,0.10); padding: 38px 44px 30px; width: 100%; max-width: 480px; height: fit-content; border-top: 5px solid #FFC72C; }
.cibc-title { font-size: 28px; letter-spacing: -0.4px; color: #0d2b45; }
.cibc-sub { color: #76828e; font-size: 14px; margin: 5px 0 22px; }
.cibc-label { display: block; font-size: 13.5px; font-weight: 700; color: #0d2b45; margin-bottom: 15px; }
.cibc-input { width: 100%; margin-top: 6px; display: block; padding: 12px 13px; font-size: 15px; border: 1.5px solid #c2cbd3; border-radius: 4px; background: #fbfbfa; }
.cibc-input:focus { outline: none; border-color: #003057; box-shadow: 0 0 0 3px rgba(0,48,87,0.12); background: #fff; }
.cibc-btn { width: 100%; background: #003057; color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: 4px; padding: 13px; margin-top: 4px; }
.cibc-btn:hover { background: #002240; }
.cibc-links { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-top: 18px; color: #9aa5af; flex-wrap: wrap; }
.cibc-links a { color: #003057; font-weight: 600; text-decoration: underline; }
.cibc-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ececea; }
.cibc-note p { font-size: 12px; color: #8d98a2; line-height: 1.6; }
.cibc-note a { color: #003057; text-decoration: underline; }

/* ======================================================= shared footer ===== */

.lp-footer { background: var(--footer); color: #cfcfcf; }
.lp-footer-inner { max-width: 1140px; margin: 0 auto; padding: 20px 24px; text-align: center; }
.lp-footer-nav { display: flex; gap: 20px; justify-content: center; font-size: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.lp-footer-nav a:hover { text-decoration: underline; }
.lp-footer p { font-size: 11px; color: #a5a5a5; line-height: 1.7; }
.sc-footer { background: #3d3d3d; }
.td-footer { background: #2b2b2b; }
.bmo-footer { background: #00293e; }
.rbc-footer { background: #00263e; }
.cibc-footer { background: #002240; }

/* ======================================================== dashboard ======== */

.db-body { background: #f2f3f5; min-height: 100vh; }
.db-header { background: var(--header); color: var(--header-text); }
.db-header-inner { max-width: 1100px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.db-header .logo { height: 36px; width: auto; display: block; color: #fff; }
.db-header-right { display: flex; align-items: center; gap: 18px; }
.db-user-chip { font-size: 14px; font-weight: 600; }
.db-logout { color: var(--header-text); font-size: 13.5px; border: 1.5px solid rgba(255,255,255,0.55); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.db-logout:hover { background: rgba(255,255,255,0.14); }

.db-nav { background: var(--nav-bg); border-bottom: 1px solid #e2e2e2; position: sticky; top: 0; z-index: 10; }
.db-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; gap: 6px; overflow-x: auto; }
.db-nav-link { padding: 15px 16px; color: var(--nav-text); font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.db-nav-link:hover { color: var(--nav-active); }
.db-nav-link.active { color: var(--nav-active); border-bottom-color: var(--nav-active); font-weight: 700; }

/* TD EasyWeb-style dark subnav */
.bank-td .db-nav { background: #37424a; border-bottom: none; }
.bank-td .db-nav-link { color: #d7dee3; }
.bank-td .db-nav-link.active { color: #54B848; border-bottom-color: #54B848; }

/* RBC + CIBC gold active accent */
.bank-rbc .db-nav-link.active { border-bottom-color: #FFCC00; color: #00336B; }
.bank-cibc .db-nav-link.active { border-bottom-color: #FFC72C; color: #002240; }

.db-main { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }

.db-greet { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.db-greet h1 { font-size: 26px; letter-spacing: -0.4px; }
.db-lastlogin { color: #777; font-size: 13px; margin-top: 5px; }
.db-date { color: #777; font-size: 13px; padding-bottom: 4px; }

.db-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acct-card { background: #fff; border-radius: 13px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); padding: 20px 22px; transition: transform .12s, box-shadow .12s; border: 1px solid #ececec; display: block; }
.acct-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }
.acct-kind { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--nav-active); margin-bottom: 5px; }
.acct-name { font-size: 15px; font-weight: 600; color: #333; }
.acct-mask { font-size: 12.5px; color: #8a8a8a; margin: 4px 0 12px; font-family: 'SF Mono', Consolas, Menlo, monospace; }
.acct-balance { font-size: 30px; font-weight: 700; letter-spacing: -0.6px; }
.acct-view { display: inline-block; margin-top: 12px; color: var(--link); font-size: 13px; font-weight: 600; }

.secret { white-space: nowrap; }
.reveal-btn { border: none; background: transparent; font-size: 14px; padding: 1px 4px; opacity: 0.55; vertical-align: middle; }
.reveal-btn:hover { opacity: 1; }

.db-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.db-widget { background: #fff; border-radius: 13px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); border: 1px solid #ececec; padding: 20px 22px; }
.db-widget h3 { font-size: 15.5px; margin-bottom: 16px; }

.debit-card { background: var(--cardg); border-radius: 15px; padding: 22px 24px; color: #fff; min-height: 195px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 12px 28px rgba(0,0,0,0.25); position: relative; overflow: hidden; }
.debit-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,0.09); }
.dc-top { display: flex; justify-content: space-between; align-items: center; }
.dc-chip { width: 44px; height: 32px; background: var(--chip); border-radius: 6px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.dc-type { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.9; }
.dc-num { font-family: 'SF Mono', Consolas, Menlo, monospace; font-size: 19px; letter-spacing: 2.5px; }
.dc-num .reveal-btn { color: #fff; opacity: 0.75; }
.dc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dc-exp small { display: block; font-size: 9.5px; text-transform: uppercase; opacity: 0.75; }
.dc-exp span { font-size: 14px; font-family: 'SF Mono', Consolas, Menlo, monospace; }
.dc-holder { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-align: right; }
.dc-brand { position: absolute; right: 22px; bottom: 8px; font-size: 10px; opacity: 0.7; letter-spacing: 0.5px; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-btn { background: #f4f5f7; border: 1.5px solid #dcdfe3; border-radius: 9px; padding: 12px 10px; font-size: 13.5px; font-weight: 600; color: #333; transition: all .12s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: left; }
.quick-btn:hover { border-color: var(--nav-active); color: var(--nav-active); }
.db-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid #ececec; }
.db-total span { font-size: 13px; color: #777; }
.db-total strong { font-size: 20px; }

.txn-widget { margin-top: 16px; }
.txn-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.txn-head h3 { margin-bottom: 0; }
.txn-tabs { display: flex; gap: 8px; }
.txn-tab { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: #f0f1f3; color: #555; }
.txn-tab.active { background: var(--brand); color: #fff; }
.txn-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.txn-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: #888; padding: 10px 10px; border-bottom: 1.5px solid #e8e8e8; }
.txn-table td { padding: 11px 10px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.txn-table tr:last-child td { border-bottom: none; }
.txn-date { color: #777; white-space: nowrap; }
.txn-amt, .txn-bal { text-align: right; font-family: 'SF Mono', Consolas, Menlo, monospace; font-size: 13.5px; white-space: nowrap; }
.txn-amt.pos { color: #0f7b2f; }
.txn-amt.neg { color: #c0392b; }
.txn-empty { color: #999; font-size: 14px; padding: 24px 0; }

.db-footer { background: var(--footer); color: #c9c9c9; text-align: center; padding: 20px 16px; font-size: 11px; line-height: 1.7; }

/* ================================================== SCOTIA dashboard ======= */
/* New Scotia OnLine: white global sidebar + light gray content, Account
   Summary rows with account number beside name and right-aligned balance. */
.scdb { background: #f0f0f2; min-height: 100vh; }
.scdb-wrap { display: flex; min-height: 100vh; }
.scdb-side { width: 248px; background: #fff; border-right: 1px solid #e6e6e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20; }
.scdb-logo { padding: 20px 22px 16px; border-bottom: 1px solid #eee; }
.scdb-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.scdb-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #3c3c3c; }
.scdb-nav-link:hover { background: #f5f5f6; color: #EC111A; }
.scdb-nav-link.active { background: #fdeff0; color: #EC111A; font-weight: 700; }
.scdb-side-bottom { border-top: 1px solid #eee; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scdb-user { display: flex; align-items: center; gap: 10px; }
.scdb-avatar { width: 32px; height: 32px; border-radius: 50%; background: #EC111A; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.scdb-username { font-size: 14px; font-weight: 700; color: #2c2c2c; }
.scdb-logout { font-size: 13px; color: #EC111A; font-weight: 600; }
.scdb-logout:hover { text-decoration: underline; }

.scdb-main { flex: 1; padding: 26px 34px 60px; min-width: 0; }
.scdb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.scdb-h1 { font-size: 24px; letter-spacing: -0.4px; color: #262626; }
.scdb-classic { font-size: 12.5px; color: #5b6770; text-decoration: underline; }
.scdb-classic:hover { color: #EC111A; }
.scdb-greetbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.scdb-greetbar h2 { font-size: 19px; color: #2f2f2f; }
.scdb-greetbar .db-date { padding-bottom: 3px; }

.scdb-quickrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.scdb-qbtn { background: #fff; border: 1.5px solid #d9d9dc; color: #2f2f2f; border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ew-ql li a { display: inline-flex; align-items: center; gap: 8px; }
.scdb-qbtn:hover { border-color: #EC111A; color: #EC111A; }

.scdb-accounts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.scdb-acct { background: #fff; border: 1px solid #e6e6e8; border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: box-shadow .12s, border-color .12s; }
.scdb-acct:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); border-color: #d4d4d8; }
.scdb-acct-name { font-size: 15.5px; font-weight: 700; color: #2b2b2b; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scdb-acct-num { font-size: 12.5px; font-weight: 500; color: #8a8a8a; font-family: 'SF Mono', Consolas, Menlo, monospace; }
.scdb-acct-kind { font-size: 12px; color: #8a8a8a; margin-top: 3px; }
.scdb-acct-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.scdb-balance { font-size: 20px; font-weight: 700; color: #1f1f1f; letter-spacing: -0.3px; }
.scdb-chevron { font-size: 26px; color: #b9b9bd; line-height: 1; }
.scdb-acct:hover .scdb-chevron { color: #EC111A; }

.scdb-card-meta { font-size: 13px; color: #6a6a6a; margin-top: 12px; }

@media (max-width: 900px) {
  .scdb-wrap { flex-direction: column; }
  .scdb-side { width: 100%; height: auto; position: static; }
  .scdb-nav { flex-direction: row; flex-wrap: wrap; }
  .scdb-main { padding: 20px 16px 40px; }
}

/* ==================================================== TD EasyWeb dash ======= */
.td-mark { display: inline-flex; align-items: center; gap: 9px; }
.td-wordmark { display: flex; flex-direction: column; line-height: 1.05; font-size: 13px; letter-spacing: 1.5px; font-family: Arial, Helvetica, sans-serif; }
.td-wordmark b { font-weight: 700; }

.ewdb { background: #f2f2f2; }
.ew-hdr { background: #008A00; color: #fff; }
.ew-hdr-inner { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ew-logo .td-mark { color: #fff; }
.ew-hdr-right { display: flex; align-items: center; gap: 16px; }
.ew-hi { font-size: 14px; }
.ew-hi strong { font-weight: 700; }

.bank-td .db-nav { background: #37424a; }
.bank-td .db-nav-inner { max-width: 1200px; }
.bank-td .db-nav-link { color: #d7dee3; }
.bank-td .db-nav-link.active { color: #54B848; border-bottom-color: #54B848; }

.ew-main { max-width: 1200px; margin: 0 auto; padding: 24px 24px 60px; }
.ew-greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.ew-greet h1 { font-size: 24px; letter-spacing: -0.4px; }

.ew-cols { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.ew-group-label { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #6b6b6b; padding-bottom: 8px; border-bottom: 2px solid #008A00; display: inline-block; margin-bottom: 10px; }
.ew-group-label.ew-gap { margin-top: 22px; }
.ew-accounts { display: flex; flex-direction: column; gap: 8px; }
.ew-acct { background: #fff; border: 1px solid #e4e4e4; border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: box-shadow .12s; }
.ew-acct:hover { box-shadow: 0 5px 16px rgba(0,0,0,0.09); }
.ew-acct-name { font-size: 14.5px; font-weight: 700; color: #2c2c2c; }
.ew-acct-num { font-size: 13px; color: #007A33; font-family: 'SF Mono', Consolas, Menlo, monospace; margin-top: 3px; }
.ew-acct-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ew-balance { font-size: 18px; font-weight: 700; }
.ew-chevron { font-size: 24px; color: #b4b4b4; line-height: 1; }
.ew-acct:hover .ew-chevron { color: #008A00; }
.ew-cardrow { background: #fff; border: 1px solid #e4e4e4; border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ew-cardright .ew-exp { font-size: 13px; color: #777; }

.ew-range { font-size: 12.5px; color: #777; margin-top: 4px; }
.td-txn th, .td-txn td { white-space: nowrap; }

.ew-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 64px; }
.ew-box { background: #fff; border: 1px solid #e4e4e4; border-radius: 8px; padding: 18px 20px; }
.ew-box-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6b6b6b; display: block; margin-bottom: 10px; }
.ew-totalbox { text-align: left; }
.ew-total { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.5px; color: #1c1c1c; }
.ew-total-sub { font-size: 12px; color: #8a8a8a; display: block; margin-top: 4px; }
.ew-ql { list-style: none; }
.ew-ql li { padding: 7px 0; border-bottom: 1px solid #f2f2f2; font-size: 13.5px; }
.ew-ql li:last-child { border-bottom: none; }
.ew-ql a { color: #007A33; font-weight: 600; }
.ew-ql a:hover { text-decoration: underline; }
.ew-appbox p { font-size: 12.5px; color: #666; line-height: 1.55; margin-bottom: 10px; }
.ew-badges { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 920px) { .ew-cols { grid-template-columns: 1fr; } .ew-side { position: static; } }

/* ==================================================== BMO dashboard ======== */
.bmodb { background: #f5f6f7; min-height: 100vh; }
.bmodb-wrap { display: flex; min-height: 100vh; }
.bmodb-side { width: 250px; background: #001928; color: #e8eef2; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 20; }
.bmodb-logo { padding: 22px 22px 18px; border-bottom: 1px solid rgba(255,255,255,0.09); }
.bmodb-nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.bmodb-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #c3d0da; }
.bmodb-nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.bmodb-nav-link.active { background: #0075be; color: #fff; font-weight: 700; }
.bmodb-side-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding: 16px; }
.bmodb-logout { color: #8fd0f7; font-size: 13.5px; font-weight: 600; }
.bmodb-logout:hover { text-decoration: underline; }

.bmodb-main { flex: 1; padding: 28px 34px 60px; min-width: 0; }
.bmodb-greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.bmodb-greet h1 { font-size: 26px; letter-spacing: -0.4px; color: #001928; }

.bmodb-quick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; background: #fff; border: 1px solid #e5e9ec; border-radius: 12px; padding: 14px 16px; }
.bmodb-quick-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7a86; margin-right: 4px; }
.bmodb-pill { background: #0075be; color: #fff; border: none; border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.bmodb-pill:hover { background: #00558c; }

.bmodb-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.bmodb-sec-h { font-size: 17px; color: #001928; margin-bottom: 12px; }
.bmodb-accounts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.bmodb-acct { background: #fff; border: 1px solid #e5e9ec; border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 1px 3px rgba(19,40,71,0.08); transition: box-shadow .12s; }
.bmodb-acct:hover { box-shadow: 0 3px 14px rgba(19,40,71,0.15); }
.bmodb-acct-name { font-size: 15px; font-weight: 700; color: #001928; }
.bmodb-acct-num { font-size: 12.5px; color: #8a8a8a; font-family: 'SF Mono', Consolas, Menlo, monospace; margin-top: 3px; }
.bmodb-acct-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.bmodb-balance { font-size: 19px; font-weight: 700; color: #001928; }

.bmodb-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.bmodb-box { background: #fff; border: 1px solid #e5e9ec; border-radius: 12px; padding: 18px 20px; }
.bmodb-box-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7a86; display: block; margin-bottom: 8px; }
.bmodb-total { display: block; font-size: 26px; font-weight: 800; color: #001928; letter-spacing: -0.5px; }
.bmodb-total-sub { font-size: 12px; color: #8a949c; display: block; margin-top: 4px; }
.bmodb-box p { font-size: 12.5px; color: #666; line-height: 1.55; margin-bottom: 10px; }

@media (max-width: 960px) {
  .bmodb-wrap { flex-direction: column; }
  .bmodb-side { width: 100%; height: auto; position: static; }
  .bmodb-nav { flex-direction: row; flex-wrap: wrap; }
  .bmodb-grid { grid-template-columns: 1fr; }
  .bmodb-rail { position: static; }
  .bmodb-main { padding: 20px 16px 40px; }
}

/* ==================================================== RBC dashboard ======== */
.rbc-mark { display: inline-flex; align-items: center; gap: 10px; }
.rbc-wordmark { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-weight: 700; letter-spacing: 1px; line-height: 1; }

.rbcdb { background: #f4f6f9; }
.rbcdb-hdr { background: #0051A5; color: #fff; }
.rbcdb-hdr-inner { max-width: 1180px; margin: 0 auto; padding: 9px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rbcdb-hdr-right { display: flex; align-items: center; gap: 16px; }
.rbcdb-hi { font-size: 14px; }
.rbcdb-hi strong { font-weight: 700; }

.rbcdb-main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 60px; }
.rbcdb-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid #0051A5; margin-bottom: 16px; }
.rbcdb-h1 { font-size: 23px; letter-spacing: -0.4px; color: #0a2c52; }
.rbcdb-title-right { display: flex; gap: 16px; font-size: 12.5px; flex-wrap: wrap; }
.rbcdb-title-right a { color: #0051A5; font-weight: 600; }
.rbcdb-title-right a:hover { text-decoration: underline; }
.rbcdb-gold { color: #b8860b !important; }
.rbcdb-greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rbcdb-greet h2 { font-size: 19px; color: #0a2c52; }

.rbcdb-cols { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.rbcdb-group { margin-bottom: 22px; }
.rbcdb-group-h { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #5a6b7d; border-bottom: 2px solid #dfe6ee; padding-bottom: 7px; margin-bottom: 10px; }
.rbcdb-accts { display: flex; flex-direction: column; gap: 8px; }
.rbcdb-acct { background: #fff; border: 1px solid #e2e8ef; border-radius: 6px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: box-shadow .12s; }
.rbcdb-acct:hover { box-shadow: 0 5px 16px rgba(10,44,82,0.1); }
.rbcdb-acct-name { font-size: 14.5px; font-weight: 700; color: #0a2c52; }
.rbcdb-acct-num { font-size: 13px; color: #0051A5; font-family: 'SF Mono', Consolas, Menlo, monospace; margin-top: 3px; }
.rbcdb-acct-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.rbcdb-balance { font-size: 18px; font-weight: 700; }
.rbcdb-cardrow { background: #fff; border: 1px solid #e2e8ef; border-radius: 6px; padding: 18px; display: flex; gap: 20px; align-items: center; }
.rbcdb-cardmeta .db-lastlogin { margin-top: 4px; }

.rbcdb-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 64px; }
.rbcdb-box { background: #fff; border: 1px solid #e2e8ef; border-radius: 6px; padding: 18px 20px; }
.rbcdb-box-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #5a6b7d; display: block; margin-bottom: 8px; }
.rbcdb-total { display: block; font-size: 25px; font-weight: 800; color: #0a2c52; letter-spacing: -0.4px; }
.rbcdb-total-sub { font-size: 12px; color: #8a97a5; display: block; margin-top: 4px; }
.rbcdb-box p { font-size: 12.5px; color: #666; line-height: 1.55; margin-bottom: 10px; }

@media (max-width: 920px) { .rbcdb-cols { grid-template-columns: 1fr; } .rbcdb-side { position: static; } }

/* ==================================================== CIBC dashboard ======== */
.cibcdb { background: #fff; }
.cibcdb-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.cibcdb-hdr { background: #fff; border-bottom: 1px solid #e6e6e6; }
.cibcdb-hdr-inner { max-width: 1180px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cibcdb-hdr-right { display: flex; align-items: center; gap: 16px; }
.cibcdb-hi { font-size: 14px; color: #333; }
.cibcdb-hi strong { font-weight: 700; }
.cibcdb-signout { color: #8B1D41; border-color: #8B1D41; }

.cibcdb-body { display: flex; flex: 1; max-width: 1180px; margin: 0 auto; width: 100%; }
.cibcdb-nav { width: 230px; border-right: 1px solid #ececec; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.cibcdb-nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #444; }
.cibcdb-nav-link:hover { background: #f6f6f4; color: #8B1D41; }
.cibcdb-nav-link.active { background: #f7edf0; color: #8B1D41; font-weight: 700; }
.cibcdb-nav-est { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ececec; }
.cibcdb-est { font-size: 13px; color: #8B1D41; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cibcdb-est:hover { text-decoration: underline; }

.cibcdb-main { flex: 1; padding: 26px 30px 60px; min-width: 0; }
.cibcdb-greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.cibcdb-greet h1 { font-size: 24px; letter-spacing: -0.4px; color: #1f1f1f; }

.cibcdb-cards { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 20px; align-items: stretch; }
.cibcdb-totalcard { background: linear-gradient(150deg, #8B1D41 0%, #C41F3E 100%); border-radius: 12px; color: #fff; padding: 22px 24px; }
.cibcdb-totalcard .cibcdb-box-label { color: rgba(255,255,255,0.8); }
.cibcdb-totalcard strong { display: block; font-size: 28px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.5px; }
.cibcdb-total-sub { font-size: 12px; opacity: 0.75; }
.cibcdb-total-actions { display: flex; gap: 10px; margin-top: 18px; }
.cibcdb-btn { background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.45); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.cibcdb-btn:hover { background: rgba(255,255,255,0.26); }
.cibcdb-box-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }

.cibcdb-accounts { display: flex; flex-direction: column; gap: 10px; }
.cibcdb-acct { background: #fafaf8; border: 1px solid #e9e9e5; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: box-shadow .12s; }
.cibcdb-acct:hover { box-shadow: 0 5px 16px rgba(139,29,65,0.1); background: #fff; }
.cibcdb-acct-name { font-size: 15px; font-weight: 700; color: #1f1f1f; }
.cibcdb-acct-num { font-size: 12.5px; color: #8B1D41; font-family: 'SF Mono', Consolas, Menlo, monospace; margin-top: 3px; }
.cibcdb-acct-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cibcdb-balance { font-size: 19px; font-weight: 700; color: #1f1f1f; }

.cibcdb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

@media (max-width: 960px) {
  .cibcdb-body { flex-direction: column; }
  .cibcdb-nav { width: 100%; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid #ececec; }
  .cibcdb-nav-est { display: none; }
  .cibcdb-cards { grid-template-columns: 1fr; }
  .cibcdb-grid2 { grid-template-columns: 1fr; }
  .cibcdb-main { padding: 20px 16px 40px; }
}

/* ============================================ CIBC 2-step sign-on (real) ==== */
.cibc2 { background: #fff; }
.cibc2-top { display: flex; align-items: center; justify-content: space-between; max-width: 520px; margin: 0 auto; padding: 14px 20px 0; }
.cibc2-lang { font-size: 13px; color: #44515c; }
.cibc2-lang .cur { font-weight: 700; color: #1f1f1f; }
.cibc2-lang .sep { margin: 0 7px; color: #c5cbd1; }
.cibc2-lang a:hover { text-decoration: underline; }
.cibc2-hdr { border-bottom: 1px solid #ececec; }
.cibc2-hdr .cibc2-logo { max-width: 520px; margin: 0 auto; padding: 18px 20px 14px; }
.cibc2-main { display: flex; justify-content: center; padding: 44px 20px 40px; }
.cibc2-card { width: 100%; max-width: 440px; }
.cibc2-title { font-size: 24px; color: #1f1f1f; letter-spacing: -0.3px; margin-bottom: 22px; }
.cibc2-remember { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #444; margin: -2px 0 20px; }
.cibc2-remember input { width: 17px; height: 17px; accent-color: #003057; }
.cibc2 .cibc-btn { background: #003057; }
.cibc2 .cibc-btn:hover { background: #002240; }
.cibc2-back { display: inline-block; margin: 12px 0 0 16px; font-size: 14px; color: #003057; font-weight: 600; text-decoration: underline; }
.cibc2-step2 .cibc2-card-shown { font-size: 14.5px; color: #44515c; margin-bottom: 18px; }
.cibc2-step2 .cibc2-card-shown strong { font-family: 'SF Mono', Consolas, Menlo, monospace; font-size: 15px; color: #1f1f1f; margin-left: 6px; }
.cibc2-help { margin-top: 30px; padding-top: 22px; border-top: 1px solid #ececec; }
.cibc2-help p { font-size: 13.5px; color: #44515c; margin-bottom: 8px; }
.cibc2-help a { color: #C41F3E; font-weight: 600; text-decoration: underline; }
.cibc2-footer { background: #f7f7f5; border-top: 1px solid #ececec; padding: 18px 20px 22px; }
.cibc2-footer p { text-align: center; font-size: 11.5px; color: #7c858c; margin-bottom: 10px; }
.cibc2-footer .lp-footer-nav { justify-content: center; gap: 14px; }
.cibc2-footer .lp-footer-nav a { font-size: 11.5px; color: #7c858c; }
.cibc2-footer .lp-footer-nav a:hover { text-decoration: underline; }

/* ================================================ MOBILE HAMBURGER NAV ===== */
/* 3-bar burger + slide-in drawer. Hidden on desktop; shown on phones. */
.mburger { display: none; }
.mtop { display: none; }
.mdrawer { display: none; }
.mdrawer-overlay { display: none; }

@media (max-width: 760px) {
  .mburger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; flex-shrink: 0; }
  .mburger span { display: block; width: 23px; height: 2.6px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .15s; }
  body.menu-open .mburger span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  body.menu-open .mburger span:nth-child(2) { opacity: 0; }
  body.menu-open .mburger span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }

  /* fixed brand top bar (banks without a desktop header) */
  .mtop { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 58px; color: #fff; align-items: center; justify-content: space-between; padding: 0 12px; z-index: 60; box-shadow: 0 2px 12px rgba(0,0,0,0.28); }
  .mtop-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .mtop-logo { display: flex; align-items: center; min-width: 0; overflow: hidden; }
  .mtop-logout { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 7px 13px; white-space: nowrap; }
  .mnav-body { padding-top: 58px; }

  /* slide-in drawer */
  .mdrawer { display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: 282px; max-width: 84vw; background: #fff; z-index: 80; transform: translateX(-103%); transition: transform .24s ease; flex-direction: column; box-shadow: 8px 0 30px rgba(0,0,0,0.25); }
  body.menu-open .mdrawer { transform: translateX(0); }
  .mdrawer-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.menu-open .mdrawer-overlay { opacity: 1; pointer-events: auto; }
  .mdrawer-links { flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
  .mnav-link { display: flex; align-items: center; gap: 13px; padding: 14px 14px; font-size: 15px; font-weight: 500; color: #2f2f2f; border-radius: 10px; border-left: 4px solid transparent; min-height: 48px; }
  .mnav-link:active { background: #f4f4f6; }
  .mnav-link.active { color: var(--brand, #2563eb); border-left-color: var(--brand, #2563eb); background: rgba(0,0,0,0.035); font-weight: 700; }
  .mdrawer-bottom { border-top: 1px solid #ececec; padding: 12px 10px 16px; }
  .mnav-logout { display: flex; align-items: center; gap: 12px; padding: 14px; font-size: 15px; font-weight: 600; color: #c0392b; border-radius: 10px; }

  /* hide desktop navs on phones — drawer replaces them */
  .scdb-side, .bmodb-side, .cibcdb-nav, .db-nav { display: none !important; }
  .scdb-wrap, .bmodb-wrap { flex-direction: column; }
  .cibcdb-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .ew-hdr-right { flex-shrink: 1; }
  .ew-hi, .rbcdb-hi, .cibcdb-hi { display: none; }
  .td-wordmark { font-size: 11px; letter-spacing: 1px; }
  .rbc-wordmark { font-size: 21px; }
  .ew-hdr-inner, .rbcdb-hdr-inner, .cibcdb-hdr-inner { gap: 8px; }
}

/* ================================================= ACCOUNT DETAIL PAGE ====== */
.accdetail { background: #f2f3f5; min-height: 100vh; }
.accd-hdr { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 22px; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgba(0,0,0,0.14); }
.accd-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.accd-back:hover { text-decoration: underline; }
.accd-logo { display: flex; align-items: center; min-width: 0; }
.accd-logout { font-size: 13px; font-weight: 600; border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 13px; opacity: 0.9; }
.accd-logout:hover { opacity: 1; }
.accd-main { max-width: 1000px; margin: 0 auto; padding: 30px 24px 60px; }
.accd-head { background: #fff; border: 1px solid #e7e7ea; border-radius: 14px; padding: 26px 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.accd-type { font-size: 11.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--nav-active); margin-bottom: 6px; }
.accd-name { font-size: 25px; letter-spacing: -0.4px; color: #232323; }
.accd-num { font-size: 13.5px; color: #777; margin-top: 8px; font-family: 'SF Mono', Consolas, Menlo, monospace; }
.accd-lastlogin { font-size: 12.5px; color: #999; margin-top: 6px; }
.accd-balance { text-align: right; }
.accd-balance span { font-size: 12.5px; color: #777; display: block; margin-bottom: 4px; }
.accd-balance strong { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; color: #1c1c1c; }
.accd-txn { background: #fff; border: 1px solid #e7e7ea; border-radius: 14px; padding: 22px 24px; }
.accd-txn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.accd-txn-head h2 { font-size: 16.5px; }
.accd-count { font-size: 12.5px; color: #8a8a8a; }
.accd-txn-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
  .accd-hdr { padding: 10px 14px; }
  .accd-back span { display: none; }
  .accd-main { padding: 18px 14px 40px; }
  .accd-head { padding: 20px 18px; flex-direction: column; }
  .accd-balance { text-align: left; }
  .accd-balance strong { font-size: 27px; }
  .accd-txn { padding: 16px 12px; }
  .accd-txn-scroll .txn-table { min-width: 480px; }
}

/* ====================================================== MOBILE PASS ======== */
/* Root-cause fixes: grid/flex children must shrink below content width,
   transaction tables scroll inside their card. */
.ew-cols > *, .rbcdb-cols > *, .bmodb-grid > *, .db-grid2 > *, .cibcdb-grid2 > *, .db-cards > *, .cibcdb-cards > * { min-width: 0; }
.txn-widget { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.txn-table { min-width: 480px; }
@media (max-width: 900px) { .scdb-wrap > * { min-width: 0; } }

/* Phones: ≥44px touch targets, 16px inputs (no iOS zoom), stacked layouts. */
@media (max-width: 640px) {
  /* ---- global form fixes ---- */
  .lp-input, .sc-input, .td-input, .bmo-input, .rbc-input, .cibc-input { font-size: 16px !important; padding: 13px 14px; }
  .a-input, select.a-input { font-size: 16px; }
  .lp-btn, .sc-btn, .td-btn, .bmo-btn, .rbc-btn, .cibc-btn { width: 100%; padding: 15px; font-size: 16px; }
  .cibc2-back { margin-left: 0; margin-top: 16px; display: block; text-align: center; }

  /* ---- login pages ---- */
  .lp-header-inner, .sc-hdr-inner, .bmo-hdr-inner, .rbc-hdr-inner, .cibc-hdr-inner { flex-wrap: wrap; gap: 10px; }
  .sc-utility, .bmo-hdr-links, .rbc-hdr-links, .cibc-hdr-links, .cibc-hdr-right, .rbc-hdr-right, .td-hdr-links, .td-hdr-right { font-size: 12px; gap: 10px; flex-wrap: wrap; }
  .td-hdr-links { display: none; }
  .sc-main, .bmo-main, .rbc-main, .td-main { padding: 28px 16px 40px; gap: 20px; grid-template-columns: 1fr; }
  .sc-card, .bmo-card { padding: 22px 20px; border-radius: 10px; }
  .rbc-card form { padding: 16px 20px 22px; }
  .rbc-card-title { padding: 18px 20px 0; font-size: 19px; }
  .rbc-links { padding: 0 20px 20px; }
  .sc-promo h1, .bmo-promo h1, .rbc-promo h1, .td-h1 { font-size: 25px; }
  .td-form-col { max-width: 100%; }
  .lp-footer-inner { padding: 16px; }
  .lp-footer-nav { gap: 12px; font-size: 11px; }

  /* ---- dashboard shared ---- */
  .db-header-inner { padding: 10px 14px; gap: 10px; }
  .db-header .logo { height: 30px !important; }
  .db-user-chip { font-size: 12.5px; }
  .db-nav-inner { padding: 0 10px; -webkit-overflow-scrolling: touch; }
  .db-nav-link { padding: 13px 12px; font-size: 13.5px; }
  .db-main { padding: 18px 14px 40px; }
  .db-greet, .ew-greet, .scdb-greetbar, .rbcdb-greet, .bmodb-greet, .cibcdb-greet { flex-direction: column; align-items: flex-start; gap: 6px; }
  .db-greet h1, .scdb-h1, .ew-greet h1, .bmodb-greet h1, .cibcdb-greet h1 { font-size: 21px; }
  .db-date { display: none; }
  .db-grid2, .cibcdb-grid2 { grid-template-columns: 1fr !important; }
  .debit-card { min-height: 170px; padding: 18px; }
  .dc-num { font-size: 16.5px; letter-spacing: 1.8px; }
  .dc-num .secret { font-size: 15px; }
  .quick-btn, .scdb-qbtn, .bmodb-pill, .cibcdb-btn { font-size: 14px; padding: 13px 12px; }
  .txn-widget { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .txn-tabs { gap: 6px; }
  .txn-tab { padding: 9px 14px; font-size: 13px; }

  /* ---- scotia sidebar dash ---- */
  .scdb-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scdb-main { padding: 20px 14px 40px; }
  .scdb-acct { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .scdb-acct-right { width: 100%; justify-content: space-between; }
  .scdb-balance { font-size: 22px; }
  .scdb-quickrow { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .scdb-qbtn { white-space: nowrap; }

  /* ---- TD easyweb dash ---- */
  .ew-main { padding: 18px 14px 40px; }
  .ew-acct, .rbcdb-acct, .bmodb-acct, .cibcdb-acct { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .ew-acct-right, .rbcdb-acct-right, .bmodb-acct-right, .cibcdb-acct-right { width: 100%; justify-content: space-between; }
  .ew-balance, .rbcdb-balance, .bmodb-balance, .cibcdb-balance { font-size: 20px; }
  .ew-side, .rbcdb-side, .bmodb-rail { position: static; }
  .ew-range { font-size: 12px; }

  /* ---- BMO dash ---- */
  .bmodb-main { padding: 20px 14px 40px; }
  .bmodb-quick { flex-wrap: wrap; padding: 12px 12px; }
  .bmodb-pill { flex: 1 1 auto; justify-content: center; padding: 12px 14px; }

  /* ---- RBC dash ---- */
  .rbcdb-titlebar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rbcdb-title-right { gap: 10px; }
  .rbcdb-main { padding: 18px 14px 40px; }
  .rbcdb-cardrow { flex-direction: column; align-items: stretch; }

  /* ---- CIBC dash ---- */
  .cibcdb-main { padding: 20px 14px 40px; }
  .cibcdb-hdr-inner { padding: 11px 14px; }
  .cibcdb-nav { padding: 10px 8px; }
  .cibcdb-totalcard { padding: 18px 20px; }
  .cibcdb-totalcard strong { font-size: 24px; }

  /* ---- home ---- */
  .home-header { padding: 40px 16px 24px; }
  .home-main { padding: 6px 16px 40px; }
  .home-card-body { padding: 16px; }
}

@media (max-width: 860px) {
  .db-cards, .db-grid2 { grid-template-columns: 1fr; }
}

/* ============================================================== home (CDIC theme) ==
   Modelled on cdic.ca: articulat-cf type, #6e298c purple, #f5f6f7 gray,
   dark purple-gradient hero with the Canada wordmark, white card grid. */
.cdic-home { font-family: 'ArticulatCF', Arial, Helvetica, sans-serif; background: #f5f6f7; color: #404041; }
.cdic-skip { position: absolute; left: -9999px; }
.cdic-skip:focus { left: 8px; top: 8px; background: #6e298c; color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 99; }

.cdic-topbar { background: #fff; border-bottom: 1px solid #e7e9ec; position: sticky; top: 0; z-index: 40; }
.cdic-topbar-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cdic-brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.cdic-logo-img { height: 44px; width: auto; display: block; flex-shrink: 0; }
.cdic-brand-text { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; color: #404041; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cdic-brand-text strong { font-size: 19px; font-weight: 700; color: #6e298c; letter-spacing: 0.5px; }
.cdic-brand-text em { font-style: normal; color: #71717a; font-size: 11.5px; font-family: Arial, Helvetica, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdic-topnav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.cdic-topnav a { color: #404041; }
.cdic-topnav a:hover { color: #6e298c; text-decoration: underline; }

.cdic-hero { background: linear-gradient(135deg, #2b1235 0%, #4a1c60 45%, #6e298c 100%); color: #fff; }
.cdic-hero-inner { max-width: 1120px; margin: 0 auto; padding: 64px 24px 72px; }
.cdic-wordmark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.cdic-wordmark span { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.cdic-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; max-width: 720px; }
.cdic-hero-sub { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; opacity: 0.85; margin: 18px 0 26px; max-width: 620px; }
.cdic-hero-link { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: #6e298c; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 12px 24px; }
.cdic-hero-link:hover { background: #f3e8f8; }

.cdic-main { max-width: 1120px; margin: 0 auto; padding: 52px 24px 64px; }
.cdic-sec-h { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -0.4px; color: #404041; }
.cdic-sec-sub { font-family: Arial, Helvetica, sans-serif; color: #71717a; font-size: 14.5px; margin: 6px 0 28px; }
.cdic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cdic-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.07); border: 1px solid #e8eaee; transition: transform .14s, box-shadow .14s; display: block; }
.cdic-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.13); }
.cdic-card-head { padding: 26px 20px; display: flex; align-items: center; justify-content: center; min-height: 86px; background: #fff; border-bottom: 1px solid #f0f1f4; }
.cdic-card-head .logo { color: #404041; }
.cdic-card-head .logo-file { max-width: 150px; max-height: 44px; }
.cdic-card-head .rbc-mark { flex-shrink: 0; }
.cdic-card-body { padding: 18px 20px 20px; }
.cdic-card-body h3 { font-size: 17px; font-weight: 700; color: #404041; letter-spacing: -0.2px; }
.cdic-card-body p { font-family: Arial, Helvetica, sans-serif; color: #71717a; font-size: 13px; margin: 5px 0 16px; min-height: 32px; }
.cdic-card-btn { display: inline-flex; align-items: center; gap: 8px; background: #6e298c; color: #fff; font-weight: 600; font-size: 13.5px; border-radius: 999px; padding: 9px 16px; }
.cdic-card:hover .cdic-card-btn { background: #8b4dae; }

.cdic-footer { background: #404041; color: #cfd1d4; }
.cdic-footer-inner { max-width: 1120px; margin: 0 auto; padding: 34px 24px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cdic-footer-nav { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
.cdic-footer-nav a { color: #e3e4e6; font-weight: 600; }
.cdic-footer-nav a:hover { text-decoration: underline; }
.cdic-footer p { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #9a9ca1; }
.cdic-wordmark.dark span { color: #e3e4e6; }

@media (max-width: 760px) {
  .cdic-topnav { display: none; }
  .cdic-topbar-inner { padding: 10px 18px; }
  .cdic-logo-img { height: 34px; }
  .cdic-brand { gap: 10px; }
  .cdic-brand-text em { display: none; }
  .cdic-brand-text strong { font-size: 17px; }
  .cdic-hero-inner { padding: 44px 18px 52px; }
  .cdic-main { padding: 36px 18px 48px; }
  .cdic-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cdic-card-head { padding: 18px 12px; min-height: 72px; }
}
@media (max-width: 480px) {
  .cdic-grid { grid-template-columns: 1fr; }
  .cdic-card-body p { min-height: 0; }
}
