:root {
  --green-dark: #1a5c38;
  --green-mid: #2e7d52;
  --green-accent: #4caf76;
  --green-btn: #5bc25e;
  --teal-link: #1a7a6e;
  --text-dark: #222;
  --text-mid: #444;
  --text-light: #666;
  --border: #ddd;
  --bg-light: #f0f2f5;
  --bg-footer: #e8edf2;
  --white: #fff;
  --fdic-bg: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
}

/* ── FDIC Bar ── */
.fdic-bar {
  background: var(--fdic-bg);
  border-bottom: 1px solid #ddd;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-style: italic;
  color: #333;
}
.fdic-badge {
  background: #003087;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ── Header ── */
header {
  background: var(--green-dark);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 42px;
  height: 42px;
  border: 2.5px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 26px; height: 26px; }
.logo-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
header.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.menu-open .hamburger span:nth-child(2) { opacity: 0; }
header.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav Bar ── */
.nav-bar {
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  overflow-x: auto;
}
.nav-bar a {
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-bar a:first-child { padding-left: 0; }
.nav-bar a:last-child { border-right: none; }
.nav-bar a:hover { color: var(--green-dark); }

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-light);
  z-index: 200;
  padding: 0;
}
.mobile-menu.open { display: block; }
.mobile-menu-header {
  background: var(--green-dark);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.mobile-menu-header .logo-text { font-size: 22px; color: #fff; font-weight: 700; }
.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
}
.mobile-menu-nav {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 10px 16px;
  margin-bottom: 28px;
  gap: 10px;
}
.mobile-search input {
  border: none;
  outline: none;
  font-size: 16px;
  flex: 1;
  color: var(--text-mid);
  font-family: 'Source Sans 3', sans-serif;
}
.mobile-search .search-icon {
  width: 36px; height: 36px;
  background: none;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-search .search-icon svg { width: 16px; height: 16px; stroke: var(--green-dark); }
.mobile-menu-nav a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-nav a:last-child { border-bottom: none; }

/* ── Main Content ── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* ── Login Card ── */
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.login-card h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }
.select-wrapper {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  padding: 12px 16px 8px;
  cursor: pointer;
}
.select-wrapper label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.select-wrapper select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: 'Source Sans 3', sans-serif;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-mid);
  font-size: 18px;
}

/* Dropdown */
.custom-select { position: relative; }
.select-display {
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px 8px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.select-display:hover { border-color: var(--green-mid); }
.select-display.open { border-color: var(--green-mid); border-radius: 4px 4px 0 0; }
.select-display-inner label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.select-display-inner span {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
}
.select-chevron {
  font-size: 18px;
  color: var(--text-mid);
  transition: transform 0.2s;
  user-select: none;
}
.select-display.open .select-chevron { transform: rotate(180deg); }
.dropdown-options {
  display: none;
  position: absolute;
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: none;
  z-index: 10;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dropdown-options.open { display: block; }
.dropdown-options div {
  padding: 14px 16px;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
  font-weight: 500;
}
.dropdown-options div:last-child { border-bottom: none; }
.dropdown-options div:hover { background: var(--bg-light); }
.dropdown-options div.selected { font-weight: 700; background: #f8fffe; }

.input-wrapper {
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.input-wrapper:focus-within { border-color: var(--green-mid); }
.input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
}
.input-wrapper input::placeholder { color: #aaa; }

.btn-go {
  width: 100%;
  padding: 17px;
  background: var(--green-btn);
  border: none;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-go:hover { background: #4aaf52; }
.btn-go:active { transform: scale(0.99); }

/* Spinner styles */
.btn-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-go.loading .spinner { display: block; }
.btn-go.loading .btn-text { display: none; }

.login-links { display: flex; flex-direction: column; gap: 10px; }
.login-links a {
  color: var(--teal-link);
  text-decoration: none;
  font-size: 15px;
}
.login-links a:hover { text-decoration: underline; }

.login-error-message {
  color: #bf1e2e;
  font-size: 14px;
  margin: 0 0 16px;
  min-height: 18px;
}

.action-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.action-card:hover { background: var(--bg-light); }
.action-card a {
  color: var(--green-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Technical Support Section ── */
.support-section {
  padding: 36px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.support-section h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--teal-link);
  margin-bottom: 10px;
}
.support-section p { font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.support-section a { color: var(--teal-link); text-decoration: none; font-size: 15px; }
.support-section a:hover { text-decoration: underline; }
.hours-box {
  background: #f2f2f2;
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 14px;
  margin-bottom: 28px;
}
.hours-box strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.hours-box p { font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }

.security-links { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.security-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-link);
  text-decoration: none;
  font-size: 15px;
}
.security-links a:hover { text-decoration: underline; }
.sec-icon {
  width: 28px; height: 28px;
  background: var(--green-btn);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sec-icon svg { width: 14px; height: 14px; fill: #fff; }

.phish-banner {
  background: #1a4d7a;
  border-radius: 6px;
  padding: 22px 18px;
  color: #fff;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.phish-banner p:last-child {
  font-size: 15px;
  font-weight: 400;
  margin-top: 6px;
  opacity: 0.9;
}

/* ── Footer ── */
footer {
  background: var(--bg-footer);
  padding: 36px 20px 20px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  flex-direction: column;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo-icon {
  width: 46px; height: 46px;
}
.footer-logo-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.1;
}
.footer-logo-text p {
  font-size: 11px;
  color: var(--green-dark);
  font-style: italic;
}

.footer-quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.footer-quick-links a {
  display: flex; align-items: center; gap: 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.footer-quick-links a svg { width: 20px; height: 20px; stroke: var(--green-dark); }
.footer-quick-links a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 9px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--green-dark); }

.footer-divider { border: none; border-top: 1px solid #c5cdd8; margin-bottom: 20px; }

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.social-btn {
  width: 38px; height: 38px;
  background: var(--text-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--green-dark); }
.social-btn svg { width: 18px; height: 18px; fill: #fff; }

.footer-legal { font-size: 13px; color: var(--text-mid); margin-bottom: 20px; }
.footer-legal a {
  display: inline;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  margin-right: 16px;
}
.footer-legal a:hover { text-decoration: underline; }
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 16px;
}
.footer-links-row a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
}
.footer-links-row a.underline { text-decoration: underline; }
.footer-links-row a:hover { text-decoration: underline; }

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.5;
}
.ext-icon { display: inline-block; width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.footer-copy { font-size: 13px; color: var(--text-mid); }

/* Hide all pages by default; show home page */
.page { display: none; }
#page-home { display: block; }

/* ── Dashboard shell ── */
#page-dashboard {
  background: #f2f4f6;
  min-height: 100vh;
  font-family: 'Source Sans 3', sans-serif;
  padding-bottom: 40px;
}

/* ── Dash Header ── */
.dash-header {
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 90;
}
.profile-header {
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-height: 72px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  box-shadow: 0 18px 32px rgba(0,0,0,0.14);
}
.profile-header .dash-title {
  font-size: 18px;
}
.profile-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  margin-top: 4px;
}
.profile-session {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  margin-right: 18px;
  white-space: nowrap;
}
.profile-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 16px 96px;
}
.card {
  background: #fff;
  border: 1px solid #e9eff2;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(18, 48, 36, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}
.profile-hero {
  padding: 26px 28px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.profile-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--green-dark);
}
.profile-meta {
  color: #c7dbce;
  font-size: 14px;
  margin-top: 8px;
}
.profile-balance-group {
  margin-top: 28px;
}
.profile-balance-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #677a84;
  margin-bottom: 10px;
}
.profile-balance-amount {
  font-size: 46px;
  font-weight: 900;
  color: #122f21;
  line-height: 1;
}
.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.profile-details-grid div {
  color: #4c5b64;
  font-size: 14px;
}
.profile-details-grid span {
  display: block;
  color: #7a8a96;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 18px;
}
.action-btn {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  background: #f7fbfa;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  color: #1b4a2e;
  font-weight: 700;
  text-align: left;
}
.action-btn:hover {
  transform: translateY(-2px);
  background: #eef7f2;
}
.profile-message {
  margin: 0 18px 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff4f4;
  color: #80222e;
  font-size: 14px;
  border: 1px solid #f2c7ca;
}
.profile-message.error {
  background: #fff0f0;
  border-color: #efa5aa;
}
.account-history {
  padding: 18px 0 24px;
}
.history-meta {
  color: #54616a;
  font-size: 14px;
  padding: 0 20px 14px;
}
.history-table-wrap {
  overflow-x: auto;
  padding: 0 16px 20px;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.history-table th,
.history-table td {
  padding: 14px 12px;
  text-align: left;
}
.history-table th {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #62717a;
}
.history-table tr {
  border-bottom: 1px solid #e8eff1;
}
.history-table td {
  font-size: 15px;
  color: #2f3a43;
}
.history-table td.amount {
  font-weight: 700;
}
.history-table td.status {
  text-align: right;
}
.history-table td.status span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-block;
}
.status-completed {
  background: #e9f8ed;
  color: #195c2f;
}
.status-pending {
  background: #fff8e5;
  color: #8a6200;
}
.status-failed {
  background: #fde8e9;
  color: #a93c40;
}
.fixed-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(47, 62, 71, 0.08);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 8px 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
}
.fixed-bottom-nav a {
  color: #677d8a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.fixed-bottom-nav a:hover,
.fixed-bottom-nav a.active {
  color: var(--green-dark);
  background: rgba(47, 133, 90, 0.08);
  transform: translateY(-1px);
}
.nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-icon svg {
  width: 24px;
  height: 24px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.dash-hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.dash-hamburger-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.dash-title { color: #fff; font-size: 18px; font-weight: 600; }
.dash-header-right { display: flex; align-items: center; gap: 16px; }
.dash-icon-btn {
  background: none; border: none; cursor: pointer;
  color: #fff; display: flex; align-items: center; text-decoration: none;
}
.dash-icon-btn svg { width: 22px; height: 22px; }

/* ── Tabs ── */
.dash-tabs {
  background: var(--green-dark);
  display: flex;
  padding: 0 16px;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.dash-tab {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 11px 18px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  user-select: none;
}
.dash-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}
.dash-tab:hover { color: #fff; }

.page-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 16px 120px;
}
.page-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-subtitle {
  color: #5a6c71;
  margin-bottom: 22px;
  font-size: 15px;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.summary-card,
.form-panel,
.table-card {
  background: #fff;
  border: 1px solid #e8eff2;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(18, 48, 36, 0.08);
}
.summary-card {
  padding: 24px;
}
.summary-card h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #1f433b;
}
.summary-card p {
  color: #556969;
  line-height: 1.7;
}
.info-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef7ef;
  color: #1a5c38;
  font-size: 12px;
  font-weight: 700;
  margin-top: 14px;
}
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}
.button-primary {
  background: var(--green-dark);
  color: #fff;
  padding: 14px 24px;
}
.button-secondary {
  background: #f2f7f3;
  color: #1b4a2e;
  padding: 14px 24px;
}
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}
.table-card {
  overflow: hidden;
}
.table-card table {
  width: 100%;
  border-collapse: collapse;
}
.table-card th,
.table-card td {
  padding: 16px;
  border-bottom: 1px solid #eef2f4;
}
.table-card th {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6a7d84;
  background: #f7fafb;
}
.table-card td {
  color: #2f393f;
  font-size: 15px;
}
.status-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-completed {
  background: #e9f8ed;
  color: #195c2f;
}
.status-pending {
  background: #fff8e5;
  color: #8a6200;
}
.status-failed {
  background: #fde8e9;
  color: #a93c40;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.form-row label {
  display: block;
  margin-bottom: 8px;
  color: #455a61;
  font-size: 13px;
  font-weight: 700;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #d6dde1;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  background: #fcfeff;
  color: #22303a;
}
.form-row textarea {
  min-height: 120px;
  resize: vertical;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-link-list {
  display: grid;
  gap: 10px;
}
.page-link-list a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}
.page-link-list a:hover {
  text-decoration: underline;
}
.page-alert {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff8e5;
  border: 1px solid #f2de9e;
  color: #735b00;
}
.page-alert.error {
  background: #fff0f0;
  border-color: #efbac1;
  color: #a92d3c;
}
.page-footnote {
  font-size: 13px;
  color: #5f7075;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .dashboard-actions-grid,
  .page-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .dash-tabs {
    flex-wrap: wrap;
  }
}

/* ── Deposits section ── */
.dash-section-header {
  background: #fff;
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e8e8;
}
.dash-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
}
.dash-ellipsis {
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 1px;
}

/* ── Account rows ── */
.account-group {
  background: #fff;
  margin-bottom: 2px;
}
.account-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 4px;
  background: #f8f9fa;
  border-bottom: 1px solid #ebebeb;
}
.account-main-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.account-main-balance {
  font-size: 17px;
  font-weight: 700;
  color: var(--teal-link);
}
.account-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 12px 28px;
  background: #fff;
}
.account-sub-name {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.account-sub-balance {
  font-size: 15px;
  color: var(--teal-link);
  font-weight: 600;
}

/* ── Total row ── */
.account-total-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #ebebeb;
  font-size: 15px;
  color: #555;
}
.account-total-row strong { color: var(--text-dark); }

/* ── Action links ── */
.account-actions {
  display: flex;
  gap: 0;
  padding: 10px 16px 14px;
  background: #fff;
}
.account-action-link {
  color: var(--green-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid #ccc;
}
.account-action-link:last-child { border-right: none; }

/* ── Insights ── */
.insights-section {
  background: #fff;
  margin-top: 12px;
  padding: 18px 16px 0;
}
.insights-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.insights-heading h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Libre Baskerville', serif;
  color: var(--text-dark);
}
.new-badge {
  background: #7ec8e3;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}
.insight-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.insight-card-content { flex: 1; }
.insight-date { font-size: 12px; color: #888; margin-bottom: 4px; }
.insight-card h4 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.insight-card p { font-size: 14px; color: #555; line-height: 1.45; margin-bottom: 12px; }
.insight-card-btn {
  display: inline-block;
  border: 1.5px solid var(--teal-link);
  color: var(--teal-link);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.insight-card-btn:hover { background: var(--teal-link); color: #fff; }
.insight-card-image {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grocery-illustration {
  width: 90px;
  height: 90px;
  background: #e8e4f8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.insight-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #888;
  font-size: 16px;
  cursor: pointer;
}
.insight-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 12px;
}
.insight-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-link);
  opacity: 0.4;
}
.insight-dot.active { opacity: 1; }

/* ── Money Manager link ── */
.money-manager-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}
.money-manager-bar a {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-decoration: none;
  text-transform: uppercase;
}
.money-manager-bar .expand-icon { color: #999; cursor: pointer; font-size: 18px; }

/* ── Dashboard "back to site" link ── */
.dash-back {
  text-align: center;
  padding: 20px;
  font-size: 13px;
}
.dash-back a {
  color: var(--teal-link);
  text-decoration: none;
  font-weight: 600;
}

/* ═══════════════════════════════
   SIDEBAR DRAWER
═══════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
}
.sidebar-overlay.open { display: block; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: #2d3025;
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  background: var(--green-dark);
  padding: 20px 16px 14px;
  position: relative;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.sidebar-logo .logo-icon { width: 36px; height: 36px; }
.sidebar-logo-name { color: #fff; font-size: 20px; font-weight: 700; }
.sidebar-greeting { color: #fff; font-size: 15px; }
.sidebar-greeting strong { font-weight: 700; }
.sidebar-last-login { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 8px 0; }
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: #e8e8e8;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-item:hover { background: rgba(255,255,255,0.07); }
.sidebar-item.active {
  background: var(--green-accent);
  color: #fff;
  font-weight: 600;
}
.sidebar-item .arrow { color: rgba(255,255,255,0.5); font-size: 18px; }
.sidebar-item.active .arrow { color: #fff; }

.sidebar-zelle-icon {
  width: 36px; height: 36px;
  background: #a855f7;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  font-family: serif;
}

.sidebar-footer {
  padding: 16px 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-footer-item:hover { color: #fff; }
.sidebar-footer-item svg { width: 18px; height: 18px; }
