/* =========================================================
   TD Bank — online banking styles
   ========================================================= */

@font-face { font-family: "TD Graphik"; src: url("assets/fonts/TDGraphik-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TD Graphik"; src: url("assets/fonts/TDGraphik-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "TD Graphik"; src: url("assets/fonts/TDGraphik-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TD Graphik"; src: url("assets/fonts/TDGraphik-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #008a00;
  --green-bright: #00a221;
  --green-dark: #1a5336;
  --green-ink: #1a5336;
  --mint: #eaf7ee;
  --mint-soft: #f3faf5;
  --ink: #10211a;
  --ink-2: #253730;
  --muted: #5f7269;
  --muted-2: #7d8f86;
  --line: #dfe7e2;
  --line-soft: #edf2ef;
  --bg: #f5f8f6;
  --white: #ffffff;
  --amber: #8a5a00;
  --amber-bg: #fff7e6;
  --danger: #b3261e;
  --danger-bg: #fdf0ef;
  --shadow-sm: 0 1px 2px rgba(16, 33, 26, .05), 0 2px 6px rgba(16, 33, 26, .04);
  --shadow-md: 0 8px 24px -12px rgba(16, 33, 26, .28);
  --shadow-lg: 0 30px 60px -24px rgba(16, 33, 26, .35);
  --radius: 14px;
  --radius-lg: 20px;
  --shell: 1200px;
  --font: "TD Graphik", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
strong { font-weight: 650; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(0, 132, 61, .8);
}
.btn--primary:hover { background: #007237; }
.btn--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-2);
}
.btn--ghost:hover { border-color: #c8d5cd; background: #fbfdfc; }
.btn--block { width: 100%; height: 50px; font-size: 15.5px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.link-muted {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-muted:hover { color: var(--green); border-color: currentColor; }

/* ---------- Demo pill ---------- */
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff3d6;
  border: 1px solid #f0d9a0;
  color: #7a4d00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.demo-pill--soft {
  background: var(--mint);
  border-color: #cfe8d8;
  color: var(--green-dark);
}

/* =========================================================
   Disclaimer gate
   ========================================================= */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(84, 184, 72, .18), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(0, 132, 61, .18), transparent 60%),
    rgba(8, 20, 14, .72);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.gate[hidden] { display: none; }

.gate-card {
  width: 100%;
  max-width: 540px;
  background: #fff;
  border-radius: 22px;
  padding: 32px 34px 26px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .4) inset;
  animation: gateIn .35s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.gate-brand-text {
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -.2px;
}
.gate-brand-text em {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 4px;
  vertical-align: 3px;
}

.gate-card h1 {
  margin: 16px 0 10px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.gate-lead {
  color: var(--ink-2);
  font-size: 14.8px;
  line-height: 1.6;
}
.gate-lead strong { color: var(--danger); }

.gate-list {
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
}
.gate-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.gate-tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.gate-tick .icon { width: 12px; height: 12px; }

.gate-fine {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

/* =========================================================
   Sign in
   ========================================================= */
.signin {
  min-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
}
.signin[hidden] { display: none; }

.signin-art {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(800px 500px at 80% 10%, rgba(132, 220, 120, .35), transparent 60%),
    radial-gradient(600px 600px at 10% 100%, rgba(0, 90, 43, .9), transparent 70%),
    linear-gradient(145deg, #006b33 0%, #00843d 48%, #005c2c 100%);
  overflow: hidden;
}
.signin-art::before,
.signin-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, .07);
}
.signin-art::before { width: 460px; height: 460px; right: -150px; top: -120px; }
.signin-art::after { width: 300px; height: 300px; left: -120px; bottom: 40px; border-width: 30px; }

.signin-art-inner { position: relative; z-index: 1; margin-top: auto; margin-bottom: auto; max-width: 420px; }
.signin-art-inner h2 {
  margin: 26px 0 14px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -1px;
}
.signin-art-inner p {
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  max-width: 34ch;
  line-height: 1.55;
}

.signin-art-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.signin-art-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  font-size: 12.5px;
  font-weight: 600;
}
.signin-art-badges .icon { width: 15px; height: 15px; }

.signin-art-fine {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .02em;
}

.signin-panel {
  display: grid;
  place-items: center;
  padding: 40px 28px;
  background: #fff;
}
.signin-box { width: 100%; max-width: 370px; }
.signin-box h1 {
  margin: 18px 0 6px;
  font-size: 30px;
  letter-spacing: -.6px;
}
.signin-sub { color: var(--muted); font-size: 14.5px; }

.signin-form { margin-top: 26px; display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }
.field > span {
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-2);
}
.field .optional { font-style: normal; font-weight: 500; color: var(--muted-2); }
.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235f7269' stroke-width='1.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 132, 61, .14);
}
.field-password { position: relative; }
.field-reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.field-reveal:hover { background: var(--mint); }

.signin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input { accent-color: var(--green); width: 15px; height: 15px; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.is-loading .spinner { display: block; }
.is-loading .btn-label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

.signin-note {
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--mint-soft);
  border: 1px solid #dcece2;
  color: var(--green-ink);
  font-size: 12.5px;
  line-height: 1.45;
}
.signin-legal {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* =========================================================
   App shell
   ========================================================= */
.app[hidden] { display: none; }

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #efdcae;
  background: #fff7e6;
  color: #7a4d00;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
}
.demo-badge strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.demo-badge:hover { background: #fff1d2; }

.utility {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  font-size: 12.5px;
  color: var(--muted);
}
.utility-left { font-weight: 600; color: var(--ink-2); }
.utility-nav { display: flex; align-items: center; gap: 18px; }
.utility-nav a { text-decoration: none; }
.utility-nav a:hover { color: var(--green); }
.utility-nav button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 650;
  cursor: pointer;
}
.utility-nav button:hover { color: var(--green); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: none;
}
.brand-word {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.4px;
}
.mainnav { display: flex; align-items: center; gap: 4px; height: 100%; }
.mainnav-link {
  position: relative;
  height: 100%;
  padding: 0 13px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 560;
  cursor: pointer;
}
.mainnav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background .16s ease;
}
.mainnav-link:hover { color: var(--green); }
.mainnav-link.is-active { color: var(--green-dark); font-weight: 680; }
.mainnav-link.is-active::after { background: var(--green); }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--mint-soft); color: var(--green-dark); }
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 2px #fff;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-left: 6px;
}
.avatar:hover { background: var(--green-dark); }
.avatar--sm { width: 34px; height: 34px; font-size: 11.5px; cursor: default; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 34px;
  padding-top: 30px;
  padding-bottom: 60px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.side-user strong { display: block; font-size: 14px; font-weight: 650; }
.side-user span:not(.avatar) { font-size: 12px; color: var(--muted); }

.side-nav { display: grid; gap: 2px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 540;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.side-link .icon { width: 18px; height: 18px; color: var(--muted); }
.side-link:hover { background: #fff; color: var(--green-dark); }
.side-link:hover .icon { color: var(--green); }
.side-link.is-active {
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 680;
}
.side-link.is-active .icon { color: var(--green); }

.side-promo {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dcece2;
  background: linear-gradient(160deg, #f2fbf5, #ffffff);
}
.side-promo-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}
.side-promo strong { display: block; margin-top: 4px; font-size: 13.5px; }
.goal-bar {
  height: 6px;
  border-radius: 999px;
  background: #dfeae3;
  margin: 9px 0 6px;
  overflow: hidden;
}
.goal-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
}
.side-promo p { font-size: 11.5px; color: var(--muted); }
.side-fine { font-size: 10.5px; color: var(--muted-2); line-height: 1.4; }

/* ---------- Views ---------- */
.view { display: none; animation: viewIn .28s ease both; }
.view.is-active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 27px;
  letter-spacing: -.6px;
  line-height: 1.2;
}
.page-sub { color: var(--muted); font-size: 13px; margin-top: 5px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid #d9ecdf;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(84, 184, 72, .22), transparent 65%),
    linear-gradient(150deg, #f4fbf6 0%, #ffffff 60%);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.hero-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-amount {
  display: block;
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -1.6px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  color: var(--ink);
}
.hero-note { font-size: 12.5px; color: var(--muted); }
.hero-split { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-small {
  display: block;
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 12px;
}
.section-head h2 {
  font-size: 16.5px;
  letter-spacing: -.2px;
  font-weight: 680;
}
.section-head:first-of-type { margin-top: 0; }

/* ---------- Account cards ---------- */
.accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.account {
  position: relative;
  text-align: left;
  width: 100%;
  padding: 18px 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  overflow: hidden;
}
.account::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
  opacity: .85;
}
.account:hover {
  border-color: #c9dccf;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.account-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.account-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.account-name {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
  margin-top: 3px;
}
.account-balance {
  display: block;
  font-size: 27px;
  font-weight: 730;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin: 14px 0 2px;
}
.account-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 11px;
  margin-top: 12px;
}
.account-meta .acct-num { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.account-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 650;
  font-size: 12.5px;
}
.account-go .icon { width: 14px; height: 14px; }

.account--savings::before { background: var(--green-bright); }

/* ---------- Quick actions ---------- */
.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.quick-btn:hover { border-color: #bcd6c5; box-shadow: var(--shadow-sm); }
.quick-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.quick-ico .icon { width: 17px; height: 17px; }

/* ---------- Panels & transactions ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel--pad { padding: 20px 22px; }
.panel-title { font-size: 15.5px; font-weight: 680; letter-spacing: -.1px; }
.panel-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.panel-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.txn-list { display: grid; }
.txn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.txn:last-child { border-bottom: 0; }
.txn:hover { background: #fafcfb; }
.txn-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f0f4f2;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  flex: none;
}
.txn-ico--in { background: var(--mint); color: var(--green-dark); }
.txn-body { min-width: 0; }
.txn-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txn-meta {
  display: flex;
  gap: 8px;
  font-size: 11.8px;
  color: var(--muted);
  margin-top: 2px;
  flex-wrap: wrap;
}
.txn-amt {
  text-align: right;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.txn-amt--in { color: var(--green-dark); }
.txn-date { display: block; font-size: 11.5px; color: var(--muted-2); font-weight: 500; margin-top: 2px; }
.txn-list--full .txn { padding: 14px 22px; }

.tag {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff4d9;
  color: #7a5200;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.view-fine {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------- Cards page ---------- */
.cards-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.debit-card {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 18px;
  padding: 22px 24px;
  color: #fff;
  background:
    radial-gradient(120% 130% at 0% 0%, #12a45b 0%, #00843d 45%, #004d26 100%);
  box-shadow: 0 24px 44px -22px rgba(0, 60, 30, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.debit-card::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 42px solid rgba(255, 255, 255, .07);
  right: -26%;
  top: -32%;
  pointer-events: none;
}
.debit-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 184, 72, .35), transparent 70%);
  left: -60px;
  bottom: -110px;
}
.debit-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.debit-type {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .82);
}
.debit-mid { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.chip {
  width: 40px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f6e2a8, #c9a94f 45%, #f1dc9d 70%, #b7963f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
  position: relative;
}
.chip::after {
  content: "";
  position: absolute;
  inset: 7px 9px;
  border: 1px solid rgba(80, 60, 10, .35);
  border-radius: 2px;
}
.contactless { width: 22px; height: 22px; color: rgba(255, 255, 255, .78); }
.debit-number {
  font-size: clamp(15px, 2.1vw, 19px);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .95);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.debit-bottom {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  position: relative;
  z-index: 1;
}
.debit-cap {
  display: block;
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 2px;
}
.debit-val {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .94);
}
.debit-network {
  margin-left: auto;
  font-size: 19px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.5px;
  color: rgba(255, 255, 255, .92);
}
.card-caption {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: center;
}

.card-status { margin-top: 18px; display: grid; gap: 14px; }
.card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.card-status-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
  font-weight: 650;
  margin-bottom: 2px;
}
.card-status-row strong { font-weight: 620; }
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge--ok { background: var(--mint); color: var(--green-dark); }
.badge--off { background: var(--danger-bg); color: var(--danger); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.switch-row:last-of-type { border-bottom: 0; }
.switch-row strong { display: block; font-size: 13.8px; font-weight: 620; }
.switch-row em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.switch-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cfdad4;
  flex: none;
  transition: background .18s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  transition: transform .18s ease;
}
.switch-row input:checked + .switch { background: var(--green); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(0, 132, 61, .25); }

/* ---------- Transfer ---------- */
.transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 22px;
  align-items: start;
}
.transfer-fields { display: grid; gap: 16px; }
.swap-row { display: flex; align-items: center; gap: 12px; }
.swap-line { flex: 1; height: 1px; background: var(--line); }
.swap-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.swap-btn:hover { background: var(--mint); transform: rotate(180deg); }
.swap-btn .icon { width: 17px; height: 17px; }

.amount-field { position: relative; }
.amount-prefix {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.amount-field input { padding-left: 30px; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.field-hint { font-size: 11.5px; color: var(--muted-2); }

.quick-amounts { display: flex; gap: 8px; margin: 16px 0 18px; flex-wrap: wrap; }
.chip-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 620;
  cursor: pointer;
  transition: all .15s ease;
}
.chip-btn:hover { border-color: var(--green); color: var(--green-dark); background: var(--mint-soft); }

.form-error {
  margin: 14px 0 0;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--danger-bg);
  border: 1px solid #f3d3d0;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 550;
}

.review { margin-bottom: 18px; animation: viewIn .25s ease both; }
.review[hidden] { display: none; }
.review-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.review-list { margin: 16px 0 18px; display: grid; gap: 0; }
.review-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 620; text-align: right; }
.review-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.review-fine { margin-top: 12px; font-size: 11px; color: var(--muted-2); }

.side-info .info-list { margin: 14px 0 0; display: grid; gap: 10px; }
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.info-list strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Activity filters ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { color: var(--ink); border-color: #c9d8d0; }
.filter.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0 30px;
  margin-top: 10px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.footer-brand em {
  font-style: normal;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
}
.footer-inner > p { flex: 1; min-width: 260px; max-width: 640px; line-height: 1.55; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--green); }

/* ---------- Mobile nav ---------- */
.mobilenav { display: none; }

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #10211a;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5);
  animation: toastIn .22s ease both;
}
.toast.is-out { animation: toastOut .2s ease both; }
.toast .icon { width: 16px; height: 16px; color: #8fe0a7; margin-top: 1px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .cards-layout { grid-template-columns: 1fr; }
  .transfer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .mainnav { display: none; }
  .layout { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 90px; }
  .sidebar { display: none; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobilenav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobilenav-link {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 9px;
  }
  .mobilenav-link .icon { width: 21px; height: 21px; }
  .mobilenav-link.is-active { color: var(--green); }
  .footer { padding-bottom: 90px; }
  .toast-stack { bottom: 84px; }
}

@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; }
  .signin-art { padding: 34px 28px 30px; min-height: 230px; }
  .signin-art-inner { margin: 0; max-width: none; }
  .signin-art-inner h2 { font-size: 27px; margin: 18px 0 8px; }
  .signin-art-inner p { font-size: 14px; }
  .signin-art-badges { margin-top: 18px; }
  .signin-art-fine { display: none; }
  .signin-panel { padding: 32px 24px 48px; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .utility { display: none; }
  .header-inner { height: 62px; gap: 12px; }
  .brand-word { font-size: 17.5px; }
  .demo-badge-long { display: none; }
  .header-tools .icon-btn:first-child { display: none; }
  .page-head { align-items: flex-start; margin-bottom: 18px; }
  .page-head h1 { font-size: 23px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .hero { padding: 20px; }
  .hero-amount { font-size: 33px; letter-spacing: -1.2px; }
  .hero-split { gap: 26px; width: 100%; }
  .accounts { grid-template-columns: 1fr; }
  .quick { gap: 10px; }
  .quick-btn { padding: 10px; font-size: 12.5px; }
  .txn { padding: 12px 14px; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; }
  .txn-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 11px; }
  .txn-list--full .txn { padding: 12px 14px; }
  .gate-card { padding: 26px 22px 22px; border-radius: 18px; }
  .gate-card h1 { font-size: 23px; }
  .debit-card { padding: 18px; border-radius: 15px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .toast-stack { right: 12px; left: 12px; bottom: 80px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Session notice (every session) ---------- */
.sess-notice { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(0, 45, 26, .55); backdrop-filter: blur(3px); }
.sess-notice[hidden] { display: none; }
.sess-card { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; padding: 30px 30px 26px; box-shadow: 0 40px 80px -30px rgba(0, 32, 16, .6); }
.sess-logo { width: 58px; height: auto; display: block; margin-bottom: 18px; }
.sess-card h1 { font-size: 22px; letter-spacing: -.4px; color: var(--green-ink); margin: 0 0 10px; }
.sess-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.sess-fine { margin-top: 10px; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sess-card .btn { margin-top: 20px; }

/* ---------- TD web top bars ---------- */
.signin { display: block; min-height: 0; }
.tw-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #fff; border-bottom: 1px solid #e6e6e6; }
.tw-hamburger { display: grid; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.tw-hamburger span { display: block; width: 26px; height: 3px; border-radius: 2px; background: #00843d; }
.tw-login-link { display: inline-flex; align-items: center; gap: 8px; color: #00843d; font-size: 19px; font-weight: 600; text-decoration: none; }
.tw-login-link:hover { text-decoration: underline; }
.tw-fdicbar { display: flex; align-items: center; gap: 12px; padding: 12px 26px; background: #fff; border-bottom: 1px solid #ececec; flex-wrap: wrap; }
.tw-tdlogo { width: 40px; height: 40px; }
.tw-fdicdiv { width: 1px; height: 40px; background: #d5d5d5; }
.tw-fdiclogo { width: 66px; height: auto; }
.tw-fdictext { font-style: italic; font-size: 14.5px; color: #2a2a2a; }
.demo-notice {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 34px;
  padding: 7px 22px;
  background: linear-gradient(90deg, #00432a 0%, #005a2b 55%, #00843d 100%);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.demo-notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd54a;
  box-shadow: 0 0 0 0 rgba(255, 213, 74, .7);
  animation: noticePulse 1.6s ease-out infinite;
  flex: none;
}
@keyframes noticePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 213, 74, .65); }
  70% { box-shadow: 0 0 0 7px rgba(255, 213, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0); }
}
.demo-notice-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.demo-notice-text strong { font-weight: 700; }
.demo-notice-sep { opacity: .5; }
#noticeClock {
  font-family: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.demo-notice-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
}

/* ---------- Real TD logo images ---------- */
.signin-art-logo {
  display: block;
  width: 64px;
  height: auto;
  padding: 9px 8px 7px;
  background: rgba(255, 255, 255, .95);
  border-radius: 14px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.signin-logo {
  display: block;
  width: 54px;
  height: auto;
  margin-bottom: 6px;
}
.brand-logo { width: 34px; height: auto; display: block; }
.side-user-logo { width: 30px; height: auto; display: block; }
.card-logo {
  width: 40px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .97;
}
.footer-fdic {
  height: 13px;
  width: auto;
  vertical-align: -2px;
  margin: 0 3px;
}
.footer-brand .brand-logo { width: 24px; }

@media (max-width: 900px) {
  .demo-notice { font-size: 11.5px; padding: 7px 14px; }
  .demo-notice-text { flex-wrap: wrap; white-space: normal; overflow: visible; }
  .demo-notice-live { margin-left: 0; }
  #noticeDate { display: none; }
}

/* ---------- TD online banking hero + login ---------- */
.tw-hero {
  position: relative;
  padding: 26px 40px 0;
  background: #fff;
}
.tw-welcome { color: #1a5336; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.5px; margin: 0 0 18px; }
.tw-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 60px; max-width: 1120px; align-items: start; }
.tw-logincard { border: 1px solid #d9ddd9; background: #fff; padding: 34px 30px 30px; box-shadow: 0 20px 50px -35px rgba(0, 0, 0, .45); }
.tw-form { display: grid; gap: 15px; }
.tw-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #b9c2bb; border-radius: 4px; background: #fff; font-size: 15px; color: #222; }
.tw-input:focus { outline: none; border-color: #00843d; box-shadow: 0 0 0 2px rgba(0, 132, 61, .25); }
.tw-input::placeholder { color: #6b6b6b; }
.tw-pwfield { position: relative; }
.tw-pwfield .tw-input { padding-right: 44px; }
.tw-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: 5px; display: grid; }
.tw-remember { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: #333; cursor: pointer; }
.tw-remember input { width: 20px; height: 20px; accent-color: #00843d; }
.tw-loginbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid #9aa39d; background: #fff; color: #6b6b6b; font-size: 15.5px; font-weight: 600; border-radius: 3px; cursor: not-allowed; }
.tw-loginbtn:not(:disabled) { background: #00843d; border-color: #00843d; color: #fff; cursor: pointer; }
.tw-loginbtn:not(:disabled):hover { background: #007237; }
.tw-forgot { color: #00843d; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.tw-forgot:hover { text-decoration: underline; }
.tw-chev { font-weight: 700; }

/* ---------- Login right column ---------- */
.tw-aside { padding-top: 6px; max-width: 430px; }
.tw-aside-link { display: block; color: #00843d; font-weight: 700; font-size: 16.5px; text-decoration: none; margin: 14px 0; }
.tw-aside-link:hover { text-decoration: underline; }
.tw-security { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; border-top: 1px solid #d8ded9; padding-top: 16px; }
.tw-security p { font-size: 15px; line-height: 1.5; color: #333; }
.tw-lockico { flex: none; margin-top: 3px; }
/* ---------- Welcome banner ---------- */
.tw-banner {
  max-width: 1120px;
  height: 360px;
  margin: 32px 0 0;
  border-radius: 4px;
  background: #eef2ef url("assets/tdOnceLogin_tablet_portraitOnly.png") center 32% / cover no-repeat;
}

/* ---------- Promo bar ---------- */
.tw-promo { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding: 16px 24px; background: rgba(38, 44, 40, .88); color: #fff; font-size: 17px; }
.tw-apply { background: #f5a623; color: #1c1c1c; border: 0; border-radius: 4px; font-weight: 700; font-size: 15.5px; padding: 12px 30px; cursor: pointer; }
.tw-apply:hover { background: #ffb83d; }
/* ---------- Login footer ---------- */
.tw-footer { background: #fff; border-top: 1px solid #e6e6e6; padding: 30px 40px 40px; }
.tw-contact { display: inline-block; color: #00843d; font-size: 26px; font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.tw-contact:hover { text-decoration: underline; }
.tw-footlinks { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 16px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.tw-footlinks a { color: #00843d; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.tw-footlinks a:hover { text-decoration: underline; }
.tw-legal { margin-top: 16px; font-size: 12.5px; color: #555; line-height: 1.6; max-width: 900px; }
.tw-loginbtn.is-loading .btn-label { opacity: .7; }
@media (max-width: 820px) {
  .tw-grid { grid-template-columns: 1fr; gap: 24px; }
  .tw-hero { padding: 22px 20px 0; }
  .tw-banner { height: 260px; margin-top: 24px; }
}
@media (max-width: 560px) {
  .tw-banner { height: 200px; }
}

/* =========================================================
   TD public header (utility strip + main nav + flyouts)
   ========================================================= */
.td-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid #e6e6e6; }
.td-utility { border-bottom: 1px solid #e9e9e9; }
.td-utility-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.td-segments { display: flex; align-items: center; min-width: 0; }
.td-segments a { display: inline-block; font-size: 12.5px; font-weight: 600; color: #4a4a4a; text-decoration: none; padding: 9px 10px 8px; border-bottom: 3px solid transparent; white-space: nowrap; }
.td-segments a:hover { color: #00843d; }
.td-segments a.is-active { color: #00843d; border-bottom-color: #00843d; }
.td-utility-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.td-tool { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: #3c3c3c; padding: 8px 9px; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.td-tool svg { color: #4a4a4a; }
.td-tool:hover, .td-tool:hover svg { color: #00843d; }
.td-caret { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 2px; vertical-align: middle; opacity: .7; }
.td-caret--white { border-top-color: #fff; opacity: .9; }
.td-login-wrap { position: relative; margin-left: 6px; }
.td-login-btn { display: inline-flex; align-items: center; gap: 8px; background: #00843d; color: #fff; border: 0; border-radius: 4px; padding: 7px 16px; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.td-login-wrap:hover .td-login-btn { background: #007237; }
.td-login-btn:hover { background: #007237; }
.td-login-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 580px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.42); padding: 24px 26px 26px; display: none; z-index: 90; }
.td-login-wrap:hover .td-login-menu,
.td-login-wrap:focus-within .td-login-menu,
.td-login-wrap.is-open .td-login-menu { display: block; }
.td-menu-head { font-size: 18px; font-weight: 700; color: #10211a; margin: 0 0 18px; }
.td-menu-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.td-menu-cols h4 { font-size: 13px; font-weight: 750; color: #10211a; margin: 0 0 10px; }
.td-menu-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.td-menu-cols a { font-size: 12.5px; color: #444; text-decoration: none; line-height: 1.35; }
.td-menu-cols a:hover { color: #00843d; text-decoration: underline; }

.td-mainnav-bar { background: #fff; }
.td-mainnav-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; gap: 30px; }
.td-brand { display: flex; align-items: center; flex: none; }
.td-brand img { width: 46px; height: auto; display: block; }
.td-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; flex: none; }
.td-hamburger span { display: block; width: 24px; height: 3px; border-radius: 2px; background: #00843d; }
.td-mainnav { display: flex; align-items: stretch; height: 100%; min-width: 0; }
.td-nav-item { display: flex; align-items: stretch; }
.td-nav-link { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 16px; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: 15px; font-weight: 600; color: #1c1c1c; cursor: pointer; white-space: nowrap; text-decoration: none; }
.td-nav-link:hover, .td-nav-item:hover > .td-nav-link { color: #00843d; border-bottom-color: #00843d; }
.td-flyout { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e6e6e6; border-top: 0; box-shadow: 0 26px 44px -22px rgba(0,0,0,.4); padding: 26px 30px 24px; display: none; z-index: 80; }
.td-nav-item:hover .td-flyout, .td-nav-item:focus-within .td-flyout { display: block; }
.td-flyout-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.td-flyout-cols--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.td-flyout h4 { font-size: 13.5px; font-weight: 750; color: #10211a; margin: 0 0 11px; }
.td-flyout ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.td-flyout a { font-size: 13px; color: #333; text-decoration: none; line-height: 1.35; }
.td-flyout a:hover { color: #00843d; text-decoration: underline; }
.td-flyout-promo { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eee; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.td-promo-tile { background: #f4faf6; border: 1px solid #dcece2; border-radius: 8px; padding: 15px 17px; }
.td-promo-tile strong { display: block; font-size: 13.8px; color: #10211a; margin-bottom: 6px; }
.td-promo-tile p { font-size: 12.5px; color: #4a5a52; line-height: 1.45; margin: 0 0 8px; }
.td-promo-tile a { font-weight: 700; color: #00843d; }
.td-open-account { margin-left: auto; flex: none; background: none; border: 1px solid #00843d; color: #00843d; border-radius: 3px; padding: 9px 16px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.td-open-account:hover { background: #00843d; color: #fff; }

@media (max-width: 1120px) {
  .td-tool-label { display: none; }
  .td-segments a { padding: 9px 8px 8px; font-size: 12px; }
  .td-mainnav-inner { gap: 20px; }
  .td-nav-link { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 900px) {
  .td-open-account { display: none; }
}
@media (max-width: 768px) {
  .td-segments { display: none; }
  .td-mainnav { display: none; }
  .td-open-account { display: none; }
  .td-hamburger { display: flex; }
  .td-country { display: none; }
  .td-utility-inner { justify-content: flex-end; min-height: 34px; }
  .td-mainnav-inner { justify-content: space-between; height: 60px; }
  .td-brand img { width: 40px; }
}

/* =========================================================
   Mobile hardening + iOS / PWA
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
button, a { -webkit-tap-highlight-color: transparent; }
.td-hamburger span { transition: transform .2s ease, opacity .2s ease; }

/* iOS zooms the page when an input < 16px gains focus. Pin to 16px on phones. */
@media (max-width: 760px) {
  .tw-input, input, select, textarea { font-size: 16px; }
  .tw-input { height: 48px; }
  .tw-loginbtn { height: 48px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
}

/* Fixed bottom bars respect the home-indicator inset. */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobilenav { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* Functional hamburger drawer on the public header */
@media (max-width: 768px) {
  body.td-menu-open .td-mainnav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 26px 44px -20px rgba(0, 0, 0, .38);
    max-height: 72vh;
    overflow: auto;
  }
  body.td-menu-open .td-mainnav .td-nav-item { display: block; }
  body.td-menu-open .td-mainnav .td-nav-link {
    width: 100%;
    height: auto;
    padding: 15px 22px;
    justify-content: space-between;
    border-bottom: 1px solid #f1f1f1;
    font-size: 16px;
  }
  body.td-menu-open .td-mainnav .td-flyout { display: none; }
  body.td-menu-open .td-mainnav .td-nav-plain { display: block; padding: 15px 22px; }
  body.td-menu-open .td-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.td-menu-open .td-hamburger span:nth-child(2) { opacity: 0; }
  body.td-menu-open .td-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* =========================================================
   Official-style overlay, modal, drawer + notification centre
   ========================================================= */
.td-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(16, 33, 26, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.td-overlay.is-open { opacity: 1; pointer-events: auto; }
.toast-stack { z-index: 950; }

.td-modal {
  position: fixed; z-index: 910; left: 50%; top: 50%;
  width: min(580px, calc(100vw - 28px)); max-height: min(82vh, 780px);
  background: #fff; border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0, 32, 16, .6);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translate(-50%, -48%) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}
.td-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.td-modal-head, .td-drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; }
.td-modal-logo { width: 32px; height: auto; flex: none; }
.td-modal-title { font-size: 17px; font-weight: 700; color: var(--green-ink); margin: 0; flex: 1; min-width: 0; }
.td-modal-close { border: 0; background: none; cursor: pointer; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); display: grid; place-items: center; flex: none; }
.td-modal-close:hover { background: var(--mint-soft); color: var(--ink); }
.td-modal-close .icon { width: 18px; height: 18px; }
.td-modal-body { padding: 18px 20px; overflow: auto; }
.td-modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex: none; background: var(--mint-soft); }

.td-drawer {
  position: fixed; z-index: 910; top: 0; right: 0; height: 100dvh;
  width: min(410px, 94vw); background: #fff;
  box-shadow: -30px 0 80px -40px rgba(0, 32, 16, .55);
  display: flex; flex-direction: column;
  transform: translateX(103%); transition: transform .22s ease;
}
.td-drawer.is-open { transform: translateX(0); }
.td-drawer-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }

.notif { display: flex; gap: 13px; width: 100%; text-align: left; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; cursor: pointer; position: relative; font: inherit; }
.notif:hover { background: var(--mint-soft); }
.notif.is-unread { background: #f2fbf5; }
.notif-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); flex: none; }
.notif-ico .icon { width: 19px; height: 19px; }
.notif-body { display: grid; gap: 3px; min-width: 0; }
.notif-title { font-weight: 650; font-size: 14px; color: var(--ink); }
.notif-text { font-size: 13px; color: var(--muted); line-height: 1.45; }
.notif-time { font-size: 12px; color: var(--muted-2); }
.notif-dot { position: absolute; top: 17px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

.td-searchbox { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 50px; margin-bottom: 16px; }
.td-searchbox .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.td-searchbox input { border: 0; flex: 1; height: 100%; font-size: 16px; outline: none; background: none; }
.td-sheet-label { font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); margin: 4px 0 10px; }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chips .chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; }
.td-chips .chip-btn:hover { border-color: var(--green); color: var(--green); }

.os-row { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line-soft); }
.os-row:last-child { border-bottom: 0; }
.os-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--mint); color: var(--green); flex: none; }
.os-ico .icon { width: 20px; height: 20px; }
.os-main { flex: 1; min-width: 0; }
.os-title { font-weight: 650; font-size: 14.5px; color: var(--ink); }
.os-sub { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.os-side { text-align: right; flex: none; }

.td-info-card { background: var(--mint-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.td-info-card strong { display: block; color: var(--green-ink); font-size: 14px; margin-bottom: 4px; }
.td-info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.td-field { display: grid; gap: 7px; margin-bottom: 14px; }
.td-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.td-field input, .td-field select { height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; font-size: 16px; background: #fff; width: 100%; }
.td-field input:focus, .td-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 132, 61, .15); }

.td-reveal { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 12px; }
.td-reveal .cap { font-size: 12px; color: var(--muted-2); display: block; margin-bottom: 3px; }
.td-reveal .val { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 15.5px; letter-spacing: .04em; color: var(--ink); }
.td-reveal .btn { flex: none; }

.td-menu-list { display: grid; }
.td-menu-item { display: flex; align-items: center; gap: 13px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; text-align: left; font: inherit; cursor: pointer; width: 100%; color: var(--ink); }
.td-menu-item:last-child { border-bottom: 0; }
.td-menu-item:hover { color: var(--green); }
.td-menu-item > .icon { width: 20px; height: 20px; color: var(--green); flex: none; }
.td-menu-item .os-sub { margin-top: 3px; }

@media (max-width: 560px) {
  .td-drawer { width: 100vw; }
  .td-modal { width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; top: auto; bottom: 0; left: 0; transform: translateY(3%); max-height: 88vh; }
  .td-modal.is-open { transform: translateY(0); }
}


