:root {
  --achieva-burgundy: #8e0c3a;
  --achieva-burgundy-dark: #6a092b;
  --achieva-light-blue: #ccecfc;
  --achieva-sky: #6ec1e4;
  --achieva-gray: #484a4c;
  --achieva-gray-light: #f4f4f4;
  --achieva-white: #ffffff;
  --achieva-black: #1a1a1a;
  --font-family: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--achieva-gray);
  background: var(--achieva-white);
}

a {
  color: var(--achieva-burgundy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.alert-banner {
  background: var(--achieva-light-blue);
  color: var(--achieva-gray);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.site-header {
  background: var(--achieva-white);
  border-bottom: 1px solid #e5e5e5;
}

.header-upper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding: 8px 32px;
  font-size: 13px;
  font-weight: 600;
}

.header-upper a {
  color: var(--achieva-gray);
  text-decoration: none;
}

.header-upper a:hover {
  color: var(--achieva-burgundy);
}

.btn-login-header {
  background: var(--achieva-burgundy);
  color: var(--achieva-white) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-login-header:hover {
  background: var(--achieva-burgundy-dark);
  text-decoration: none;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 48px;
  height: 48px;
  background: var(--achieva-burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 22px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  color: var(--achieva-burgundy);
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--achieva-gray);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
}

.main-nav > li > a,
.nav-dropdown-toggle {
  color: var(--achieva-gray);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-nav > li > a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown-item.open .nav-dropdown-toggle {
  color: var(--achieva-burgundy);
  background: rgba(142, 12, 58, 0.06);
}

.nav-dropdown-item {
  position: relative;
}

.nav-chevron {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-dropdown-item.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 680px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 24px;
  z-index: 1000;
  margin-top: 4px;
}

.nav-dropdown-item.open .nav-dropdown-menu {
  display: block;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.dropdown-column-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--achieva-burgundy);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--achieva-light-blue);
}

.dropdown-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-column li {
  margin-bottom: 6px;
}

.dropdown-column a {
  color: var(--achieva-gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: block;
  padding: 4px 0;
}

.dropdown-column a:hover {
  color: var(--achieva-burgundy);
  text-decoration: underline;
}

.site-header {
  position: relative;
  z-index: 100;
}

.hero {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 40%, #8e0c3a 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(110, 193, 228, 0.25), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
  color: white;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  line-height: 1.15;
}

.hero p {
  font-size: 18px;
  margin: 0 0 24px;
  max-width: 560px;
}

.btn-primary {
  display: inline-block;
  background: var(--achieva-burgundy);
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.btn-primary:hover {
  background: var(--achieva-burgundy-dark);
  text-decoration: none;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
}

.section h2 {
  color: var(--achieva-burgundy);
  font-size: 28px;
  margin: 0 0 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  background: white;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--achieva-gray);
}

.product-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.about-section {
  background: var(--achieva-gray-light);
}

.about-section h2 {
  color: var(--achieva-burgundy);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.quick-link {
  background: white;
  border: 2px solid var(--achieva-burgundy);
  color: var(--achieva-burgundy);
  text-align: center;
  padding: 20px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.quick-link:hover {
  background: var(--achieva-burgundy);
  color: white;
  text-decoration: none;
}

.site-footer {
  background: #2d2d2d;
  color: #ccc;
  padding: 40px 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.site-footer h4 {
  color: white;
  margin: 0 0 12px;
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #ccc;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #444;
  font-size: 12px;
  text-align: center;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wordmark-bar {
  background: var(--achieva-burgundy);
  text-align: center;
  padding: 20px;
}

.wordmark-bar .logo-text strong,
.wordmark-bar .logo-text span {
  color: white;
}

.login-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: calc(100vh - 88px);
}

.login-panel {
  background: white;
  padding: 32px 40px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.login-panel h1 {
  color: var(--achieva-gray);
  font-size: 28px;
  margin: 0 0 8px;
}

.login-divider {
  border: none;
  border-top: 2px solid var(--achieva-burgundy);
  margin: 16px 0 24px;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #484a4c;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}

.login-form .btn-login {
  width: 70%;
  display: block;
  margin: 0 auto 20px;
  padding: 12px;
  background: var(--achieva-burgundy);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.login-form .btn-login:hover {
  background: var(--achieva-burgundy-dark);
}

.login-links {
  text-align: center;
  font-size: 14px;
  margin: 16px 0;
}

.login-links a {
  color: var(--achieva-burgundy);
  font-weight: 600;
}

.login-help {
  text-align: center;
  font-size: 13px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.login-error {
  color: #c0392b;
  font-size: 13px;
  text-align: center;
  margin-bottom: 12px;
  display: none;
}

.login-hint {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
}

.login-demo-id {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--achieva-burgundy, #8b0037);
  margin: 0 0 10px;
}

.login-error.visible {
  display: block;
}

.promo-panel {
  position: relative;
  background: #111 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  align-items: flex-end;
}

.promo-overlay {
  background: rgba(0, 0, 0, 0.85);
  padding: 48px;
  width: 100%;
}

.promo-overlay .label {
  color: var(--achieva-sky);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.promo-overlay h2 {
  color: white;
  font-size: 32px;
  margin: 0 0 12px;
  line-height: 1.2;
}

.promo-overlay p {
  color: #ddd;
  margin: 0;
  font-size: 16px;
}

.promo-overlay a {
  color: var(--achieva-sky);
}

/* Dashboard */
.dashboard-page {
  min-height: 100vh;
  background: #eef1f4;
}

/* Trustfi-style dashboard */
.trustfi-dashboard {
  background: var(--achieva-burgundy);
}

.trustfi-header {
  background: var(--achieva-burgundy);
  padding: 0 32px;
}

.trustfi-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.trustfi-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
  flex-shrink: 0;
}

.trustfi-logo-mark {
  color: white;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.trustfi-logo-tag {
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.trustfi-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.trustfi-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.trustfi-nav a:hover,
.trustfi-nav a.active {
  color: white;
  border-bottom-color: white;
  text-decoration: none;
}

.trustfi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.trustfi-avatar:hover {
  background: rgba(255, 255, 255, 0.25);
}

.trustfi-shell {
  padding: 0 32px 48px;
}

.trustfi-card {
  max-width: 1280px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 32px 36px 40px;
}

.trustfi-dashboard-head {
  margin-bottom: 28px;
}

.trustfi-dashboard-head h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  color: #2d2d2d;
}

.trustfi-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.trustfi-tabs a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0 0 12px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
}

.trustfi-tabs a.active {
  color: #1a7fb8;
  border-bottom-color: #1a7fb8;
}

.trustfi-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.account-group {
  margin-bottom: 28px;
}

.account-group-label {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.account-row-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
  margin: 0 -8px;
  padding: 14px 8px;
  border-radius: 6px;
}

.account-row-link:hover {
  background: #fafafa;
  text-decoration: none;
}

.account-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.account-dot.checking {
  background: #1a7fb8;
}

.account-dot.savings {
  background: #2e7d32;
}

.account-dot.credit {
  background: #e6a817;
}

.account-row-info {
  flex: 1;
  min-width: 0;
}

.account-type {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.3px;
}

.account-num {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.account-row-balance-wrap {
  text-align: right;
}

.account-row-balance {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.account-available {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.trustfi-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trustfi-widget {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.trustfi-widget:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trustfi-widget h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.widget-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-select {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 4px;
  font-family: inherit;
  color: #666;
}

.widget-settings {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.widget-balance {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-amount {
  font-size: 26px;
  font-weight: 700;
  color: #333;
}

.widget-trend.up {
  color: #2e7d32;
  font-size: 12px;
}

.bank-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.bank-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.btn-trustfi {
  background: #1a7fb8;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.btn-trustfi:hover {
  background: #156494;
}

.trustfi-quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trustfi-quick-links li {
  margin-bottom: 10px;
}

.trustfi-quick-links a {
  color: #1a7fb8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.trustfi-quick-links a:hover {
  text-decoration: underline;
}

.ext-icon {
  color: #1a7fb8;
  font-size: 12px;
  flex-shrink: 0;
}

.trustfi-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.trustfi-news-col h2 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.news-item {
  margin-bottom: 24px;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1a7fb8;
  line-height: 1.35;
}

.news-item p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.news-item time {
  font-size: 12px;
  color: #999;
}

.dashboard-topbar {
  background: var(--achieva-burgundy);
  color: white;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: relative;
  z-index: 200;
}

.dashboard-topbar .logo-text strong,
.dashboard-topbar .logo-text span {
  color: white;
}

.dashboard-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 4px;
  display: inline-block;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  color: white;
  text-decoration: underline;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.welcome-bar {
  margin-bottom: 24px;
}

.welcome-bar h1 {
  font-size: 24px;
  color: var(--achieva-gray);
  margin: 0 0 4px;
}

.welcome-bar p {
  margin: 0;
  color: #777;
  font-size: 14px;
}

.account-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.account-snapshot-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.account-snapshot-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.account-snapshot-item .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}

.account-snapshot-item .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--achieva-gray);
}

.account-snapshot-item.savings .value {
  color: var(--achieva-burgundy);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.accounts-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  color: var(--achieva-gray);
}

.account-card {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-card:last-child {
  border-bottom: none;
}

.account-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--achieva-gray);
}

.account-info p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

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

.account-balance .label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.account-balance .amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--achieva-burgundy);
}

.account-balance .amount.primary {
  font-size: 36px;
}

.sidebar-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-panel h3 {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--achieva-gray);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-action {
  display: block;
  padding: 12px 16px;
  background: var(--achieva-gray-light);
  border-radius: 6px;
  color: var(--achieva-gray);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.quick-action:hover {
  background: var(--achieva-light-blue);
  text-decoration: none;
}

.transactions-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
}

.transaction-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.transaction-row:last-child {
  border-bottom: none;
}

.transaction-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  margin-top: 8px;
}

.transaction-history-header .panel-header.sub {
  margin: 0;
  padding: 16px 0 12px;
  flex: 1;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.tx-desc {
  font-weight: 600;
}

.tx-date {
  color: #999;
  font-size: 12px;
}

.tx-amount {
  font-weight: 700;
}

.tx-amount.credit {
  color: #2e7d32;
}

.tx-amount.debit {
  color: var(--achieva-gray);
}

.demo-badge {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: #333;
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  opacity: 0.8;
  z-index: 9999;
}

.view-only-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #767676;
  font-style: italic;
}

.view-only-demo .demo-form input:disabled,
.view-only-demo .demo-form select:disabled,
.view-only-demo .demo-form textarea:disabled,
.view-only-demo .demo-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.account-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.account-card-link:hover {
  background: #fafafa;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.hub-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.hub-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.hub-card h3 {
  margin: 0 0 8px;
  color: var(--achieva-burgundy);
  font-size: 16px;
}

.hub-card p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.content-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  overflow: hidden;
}

.content-panel.section-highlight {
  outline: 3px solid var(--achieva-burgundy);
}

.banking-form {
  padding: 24px;
  max-width: 480px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--achieva-gray);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--achieva-gray);
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.form-row select option {
  color: var(--achieva-gray);
  background: white;
}

.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--achieva-burgundy);
  color: var(--achieva-burgundy);
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-left: 8px;
}

.btn-outline:hover {
  background: var(--achieva-burgundy);
  color: white;
  text-decoration: none;
}

.account-detail-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
}

.detail-meta {
  font-size: 13px;
  color: #888;
  margin: 4px 0 0;
}

.status-open {
  color: #2e7d32;
  font-weight: 600;
}

.detail-actions {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.panel-header.sub {
  font-size: 14px;
  background: #fafafa;
}

.message-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.message-row:hover {
  background: #fafafa;
  text-decoration: none;
}

.message-row.unread {
  background: #f8fbff;
}

.msg-badge {
  background: var(--achieva-burgundy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.message-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.statement-list {
  padding: 8px 0;
}

.statement-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.statement-meta {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: 500;
  margin-top: 2px;
}

.statement-error {
  padding: 16px 20px;
  color: #888;
  font-size: 14px;
}

.link-arrow {
  color: var(--achieva-burgundy);
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.banking-toast {
  position: fixed;
  bottom: 48px;
  right: 24px;
  background: #2e7d32;
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10000;
  max-width: 360px;
}

.banking-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.public-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
}

.public-page h1 {
  color: var(--achieva-burgundy);
  margin: 0 0 16px;
}

.public-page p {
  line-height: 1.6;
  margin: 0 0 16px;
}

@media (max-width: 900px) {
  .header-main {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid #eee;
    border-radius: 0;
    padding: 16px;
  }

  .nav-dropdown-item {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .promo-panel {
    min-height: 280px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
  }

  .dashboard-topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px;
    gap: 12px;
  }

  .trustfi-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .trustfi-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    order: 3;
    width: 100%;
  }

  .trustfi-content-grid,
  .trustfi-news-grid {
    grid-template-columns: 1fr;
  }

  .trustfi-shell {
    padding: 0 16px 32px;
  }

  .trustfi-card {
    padding: 24px 20px;
  }
}
