:root {
  --color-bg: #f4f6f9;
  --color-bg-elevated: #ffffff;
  --color-accent: #1e88e5;
  --color-accent-soft: rgba(30, 136, 229, 0.06);
  --color-accent-secondary: #0d47a1;
  --color-text: #102a43;
  --color-text-muted: #62748a;
  --color-border-subtle: #d8e2ec;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 0 0 1px rgba(15, 23, 42, 0.02);
  /* Homepage (Demo of Albuquerque public site) */
  --demo-red: #a52a2a;
  --demo-red-dark: #8b2222;
  --demo-red-banner: #c41e3a;
  --demo-red-banner-hover: #a01830;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}
/* Text-as-image: smooth scaling for readable text (avoid over-sharpening) */
.demo-logo-img,
.fdic-banner-img,
.footer-text-img,
.footer-text-img-wide,
.footer-link-img,
.footer-column-title-img,
.nav-link-img,
.login-link-img,
.login-label-img,
.online-access-title-img,
.site-tagline-img,
.news-title-img,
.news-source-img,
.news-headline-img,
.news-about-img,
.news-stat-img {
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}
.footer-link-img {
  height: 1.2rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.footer-column-title-img {
  height: 1.1rem;
  width: auto;
  display: block;
  object-fit: contain;
}
.login-link-img {
  height: 1.15rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.demo-logo-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.demo-logo-img {
  height: 36px;
  width: auto;
  display: block;
  vertical-align: middle;
}
.nav .demo-logo-img,
.footer-inner .demo-logo-img {
  height: 30px;
}
.site-logo.demo-logo-img {
  height: 36px;
}
.top-bar .demo-logo-text {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.top-bar-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  color: #fef2f2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-bar {
  background: var(--demo-red-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  color: #fef2f2;
}

.top-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.top-bar-text {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(224, 242, 254, 0.9);
}

/* ========== Home page (public homepage) ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border-subtle);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.site-brand .demo-logo-img {
  flex-shrink: 0;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--demo-red);
  line-height: 1.2;
  text-transform: uppercase;
}
.site-tagline {
  font-size: 0.7rem;
  color: #333;
  font-weight: 400;
  margin-top: 0.1rem;
}
.site-tagline-img {
  height: 1.15rem;
  width: auto;
  display: block;
  margin-top: 0.1rem;
}
.site-demo-name-img {
  height: 1.1rem;
  width: auto;
  display: block;
  margin-top: 0.1rem;
  object-fit: contain;
}
.site-brand-logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.site-brand-logo-group .demo-logo-img.site-logo {
  margin-top: 0;
}
.site-brand-logo-group .site-demo-name-img {
  margin-top: 0;
}
.site-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}
.site-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: #333;
  border-radius: 1px;
}
.site-nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav-list a {
  color: var(--color-text);
  padding: 0.35rem 0;
  position: relative;
}
.site-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--demo-red);
  transition: width 0.2s ease;
}
.site-nav-list a:hover::after,
.site-nav-list a.active::after {
  width: 100%;
}
.site-nav-list a.active {
  color: var(--demo-red);
}
.nav-link-img {
  height: 1.1rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
.site-utility {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}
.site-utility-icon:hover {
  color: var(--color-text);
  background: #f1f5f9;
}
.icon-pin::before { content: ""; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362748a' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center; background-size: contain; }
.icon-globe::before { content: ""; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362748a' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E") no-repeat center; background-size: contain; }
.icon-search::before { content: ""; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat center; background-size: contain; }
.site-utility-red {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  background: var(--demo-red-banner);
  color: #fff;
  border-radius: 0 0 8px 8px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.site-utility-red a {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
}
.site-utility-red a:hover {
  text-decoration: underline;
}
.fdic-banner {
  background: #e5e7eb;
  padding: 0.4rem 1rem;
}
.fdic-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #374151;
}
.fdic-logo {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.fdic-banner-img {
  height: 1.25rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.fdic-logo-img {
  height: 1rem;
}
.hero-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 380px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 480px;
}
.hero-promo {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-promo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-promo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cdefs%3E%3Cpattern id='g' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 20h40M20 0v40' fill='none' stroke='%23fff' stroke-width='0.5' opacity='0.15'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='400' height='300' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-bg-maroon { background: linear-gradient(135deg, #6b2d2d 0%, #8b3a3a 50%, #a52a2a 100%); }
.hero-bg-blue { background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%); }
.hero-bg-natural { background: linear-gradient(135deg, #2d4a2d 0%, #3d6b3d 50%, #5a8f5a 100%); }
.hero-bg-campus { background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6b 50%, #4a7ab5 100%); }
.hero-bg-advisor { background: linear-gradient(135deg, #1e2d5f 0%, #2d3d87 50%, #4a5ab5 100%); }
.hero-promo-overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 2.5rem 4rem;
  max-width: 420px;
}
.hero-promo-title,
.hero-promo-title-img {
  margin: 0 0 0.5rem;
  display: block;
}
.hero-promo-title-img {
  max-width: 100%;
  height: auto;
  max-height: 3rem;
  object-fit: contain;
  object-position: left top;
}
.hero-promo-sub,
.hero-promo-sub-img {
  margin: 0 0 0.75rem;
  display: block;
}
.hero-promo-sub-img {
  max-width: 100%;
  height: auto;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: left top;
}
.hero-promo-note,
.hero-promo-note-img,
.hero-promo-disclaimer,
.hero-promo-disclaimer-img {
  margin: 0 0 1rem;
  display: block;
}
.hero-promo-note-img,
.hero-promo-disclaimer-img {
  max-width: 100%;
  height: auto;
  max-height: 1.2rem;
  object-fit: contain;
  object-position: left top;
}
.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.75rem;
  background: var(--demo-red);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-apply:hover {
  background: var(--demo-red-dark);
  transform: translateY(-1px);
}
.btn-apply-img {
  height: 1.25rem;
  width: auto;
  display: block;
  object-fit: contain;
}
.hero-carousel {
  position: absolute;
  bottom: 1.25rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.carousel-pause {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button[aria-selected="true"] {
  background: #fff;
  transform: scale(1.2);
}
.hero-pattern {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 140px;
  height: 140px;
  opacity: 0.2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h20v20H0zM40 0h20v20H40zM80 0h20v20H80zM20 20h20v20H20zM60 20h20v20H60zM0 40h20v20H0zM40 40h20v20H40zM80 40h20v20H80zM20 60h20v20H20zM60 60h20v20H60zM0 80h20v20H0zM40 80h20v20H40zM80 80h20v20H80z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  pointer-events: none;
}
.online-access-sidebar {
  background: #fff;
  padding: 2rem 1.75rem;
  border-left: 1px solid var(--color-border-subtle);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.04);
}
.online-access-title,
.online-access-title-img {
  margin: 0 0 1.25rem;
  display: block;
}
.online-access-title-img {
  max-width: 100%;
  height: auto;
  max-height: 1.6rem;
  object-fit: contain;
  object-position: left top;
}
.login-label-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 1.2rem;
  object-fit: contain;
}
.home-page .login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.home-page .login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}
.home-page .login-username-label {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
}
.home-page .login-username-label input {
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}
.home-page .login-form input[type="text"],
.home-page .login-form input[type="password"] {
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}
.home-page .login-form input:focus {
  outline: none;
  border-color: var(--demo-red);
  box-shadow: 0 0 0 2px rgba(165, 42, 42, 0.2);
}
.home-page .checkbox-label {
  flex-direction: row;
  align-items: center;
  margin: -0.25rem 0 0;
}
.password-wrap .password-field {
  position: relative;
  display: flex;
}
.password-wrap .password-field input {
  flex: 1;
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--color-text-muted);
}
.password-toggle:hover {
  color: var(--color-text);
}
.icon-eye {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-eye.hide-password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}
.btn-login {
  width: 100%;
  padding: 0.7rem 1.25rem;
  background: var(--demo-red);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background 0.2s ease;
}
.btn-login:hover {
  background: var(--demo-red-dark);
}
.home-page .login-links {
  margin: 0;
  font-size: 0.85rem;
}
.home-page .login-links a {
  color: var(--demo-red);
  text-decoration: none;
}
.home-page .login-links a:hover {
  text-decoration: underline;
}
.home-page .login-links.enroll {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border-subtle);
}
.icon-person::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.25rem;
  vertical-align: -0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.welcome-section {
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--color-border-subtle);
}
.welcome-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.welcome-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
}
.welcome-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.welcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.welcome-card:hover {
  background: #fff;
  border-color: var(--demo-red);
  box-shadow: var(--shadow-soft);
}
.welcome-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(165, 42, 42, 0.1);
  display: block;
}
.news-section {
  padding: 2.5rem 1.5rem;
  background: #f1f5f9;
  border-top: 1px solid var(--color-border-subtle);
}
.news-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.news-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
}
.news-cards {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border-subtle);
}
.news-card-source {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.news-card-headline {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}
.news-card-link {
  font-size: 0.9rem;
  color: var(--demo-red);
  text-decoration: none;
}
.news-card-link:hover {
  text-decoration: underline;
}
.news-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
}
.news-stat {
  font-size: 0.9rem;
  color: var(--color-text);
}
.news-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--demo-red);
  margin-bottom: 0.15rem;
}
.news-title-img,
.news-source-img,
.news-headline-img,
.news-about-img,
.news-stat-img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left top;
}
.news-title-img { max-height: 2rem; }
.news-source-img { max-height: 1rem; }
.news-headline-img { max-height: 1.5rem; }
.news-about-img { max-height: 1.1rem; }
.news-stat-img { max-height: 2rem; }
.site-footer.footer {
  padding-top: 2rem;
}
.footer-columns-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-subtle);
}
.footer-column h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}
.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-column li {
  margin-bottom: 0.4rem;
}
.footer-column a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-column a:hover {
  color: var(--demo-red);
  text-decoration: underline;
}
.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.footer-legal p {
  margin: 0 0 0.5rem;
}
.footer-legal p:last-child {
  margin-bottom: 0;
}
.footer-legal a {
  color: var(--demo-red);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.logo.demo-logo-text {
  color: var(--demo-red);
}

.logo span {
  color: var(--demo-red);
}

.logo-large {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.logo-img {
  height: 28px;
  display: block;
}

.logo-img-large {
  height: 60px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.nav-links a {
  position: relative;
  padding: 0.2rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--demo-red);
  transition: width 0.18s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--demo-red);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 550;
  letter-spacing: 0.03em;
  font-size: 0.86rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--demo-red), var(--demo-red-dark));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(139, 34, 34, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(139, 34, 34, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--color-text);
}

.btn-outline:hover {
  background: rgba(165, 42, 42, 0.08);
  border-color: var(--demo-red);
  color: var(--demo-red);
}

.btn-outline.small {
  padding: 0.45rem 1.05rem;
  font-size: 0.8rem;
}

.link {
  font-size: 0.86rem;
  color: var(--demo-red);
  text-decoration: none;
  position: relative;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: var(--demo-red);
  transition: width 0.16s ease;
}

.link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px 0;
  background: rgba(71, 85, 105, 0.9);
  border-radius: 999px;
}

main {
  flex: 1;
}

.hero {
  max-width: 1120px;
  margin: 2.5rem auto 2.75rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-login {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2.1fr) minmax(0, 2.2fr);
  align-items: stretch;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 2.8vw + 1.3rem, 2.8rem);
  margin: 0 0 0.9rem;
  letter-spacing: 0.01em;
}

.hero-content p {
  margin: 0 0 1.1rem;
  max-width: 30rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero-subtext {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.hero-panel {
  background: radial-gradient(circle at top left, rgba(165, 42, 42, 0.06), transparent 60%),
    radial-gradient(circle at bottom right, rgba(139, 34, 34, 0.05), transparent 65%),
    var(--color-bg-elevated);
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.3rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
}

.hero-panel h2,
.hero-panel .panel-logo {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.panel-subtitle {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.lock-icon::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a52a2a' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.enroll-link {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}
.enroll-link a {
  color: var(--demo-red);
  text-decoration: underline;
}
.enroll-link a:hover {
  color: var(--demo-red-dark);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.login-form input {
  background: #f8fafc;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.6rem 0.85rem;
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
}

.login-form input:focus {
  border-color: var(--demo-red);
  box-shadow: 0 0 0 1px rgba(165, 42, 42, 0.35);
}

.full-width {
  width: 100%;
  margin-top: 0.35rem;
}

.login-links {
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.disclaimer-small {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.login-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

.secure-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-hero-image {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(165, 42, 42, 0.08), rgba(139, 34, 34, 0.06));
}
.demo-hero-visual {
  text-align: center;
}
.demo-hero-card {
  width: 120px;
  height: 75px;
  margin: 0 auto 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--demo-red), var(--demo-red-dark));
  box-shadow: 0 8px 24px rgba(139, 34, 34, 0.35);
}
.demo-hero-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cards-grid {
  max-width: 1120px;
  margin: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.35rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
}

.card h2,
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.card p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card-list {
  font-size: 0.86rem;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.card-list li {
  margin-bottom: 0.2rem;
  padding-left: 0.9rem;
  position: relative;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--demo-red);
}

.rate-tag {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 0.7rem;
}

.rate-tag .muted {
  opacity: 0.7;
}

.highlight {
  margin: 0 0 2.75rem;
}

.highlight-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 1.8rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(165, 42, 42, 0.06), transparent 60%),
    radial-gradient(circle at bottom right, rgba(139, 34, 34, 0.05), transparent 60%),
    #ffffff;
  border: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.highlight-inner h2 {
  margin: 0 0 0.6rem;
}

.highlight-inner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.highlight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.8rem;
}

.highlight-stats > div {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--color-border-subtle);
}

.stat-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 550;
}

.highlight-list {
  display: grid;
  gap: 0.8rem;
}

.highlight-list h3 {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
}

.highlight-list p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.page-main {
  max-width: 1120px;
  margin: 2rem auto 2.5rem;
  padding: 0 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.page-header p {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick-action-card:hover {
  border-color: var(--demo-red);
  box-shadow: var(--shadow-soft);
}
.quick-action-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--demo-red);
  background: rgba(165, 42, 42, 0.1);
  border-radius: var(--radius-md);
}
.quick-action-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.account-card {
  padding: 1.35rem 1.3rem;
  border-left: 3px solid rgba(165, 42, 42, 0.3);
}
.account-type {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}
.account-number {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.account-card .dashboard-balance {
  margin: 0 0 0.2rem;
  font-size: 1.6rem;
}
.account-available {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.dashboard-balance.total {
  font-size: 2rem;
}
.alerts-section {
  margin-top: 1.5rem;
}
.transfer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 0;
}
.transfer-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}
.transfer-form select,
.transfer-form input[type="number"] {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  font-size: 1rem;
  max-width: 100%;
}
.transfer-form select {
  min-width: 14rem;
  cursor: pointer;
}
.transfer-form input:focus,
.transfer-form select:focus {
  outline: none;
  border-color: var(--demo-red);
}
.transfer-available {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.transfer-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.transfer-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
}
.transfer-success-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.transfer-success-logo {
  display: block;
  height: 48px;
  width: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.transfer-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #15803d;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 64px;
  border-radius: 50%;
}
.transfer-success-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--color-text);
}
.transfer-success-summary {
  margin: 0 0 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text);
  text-align: left;
}
.transfer-success-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.card-p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.card-list a {
  color: var(--demo-red);
  text-decoration: none;
}
.card-list a:hover {
  text-decoration: underline;
}

.footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding-top: 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 1.1rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-inner h4 {
  margin: 0 0 0.4rem;
}

.footer-inner h4.demo-logo-text {
  color: var(--demo-red);
  font-weight: 700;
}

.footer-inner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.footer-text-img {
  height: 20px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.footer-bottom .footer-text-img {
  height: 18px;
}
.footer-text-img-wide {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.25rem 0;
  vertical-align: middle;
  object-fit: contain;
  object-position: left top;
}
.footer-legal .footer-text-img-wide {
  max-height: 5rem;
}

.footer-columns {
  display: flex;
  gap: 2.4rem;
  font-size: 0.82rem;
}

.footer-columns h5 {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
}

.footer-columns li {
  margin-bottom: 0.2rem;
  color: var(--color-text-muted);
}

.footer-columns a {
  color: var(--color-text-muted);
}
.footer-columns a:hover {
  color: var(--demo-red);
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.4rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.dashboard-summary h2 {
  margin-bottom: 0.4rem;
}

.dashboard-balance {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.dashboard-change {
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.dashboard-change.positive {
  color: #15803d;
}

.dashboard-change.negative {
  color: #b91c1c;
}

.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 1.5rem;
}

.chart-card h2 {
  margin-bottom: 0.2rem;
}

.chart-subtitle {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.chart-bars {
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid var(--color-border-subtle);
}

.line-chart {
  width: 100%;
  height: 160px;
}

.line-chart-area {
  fill: url(#lineAreaGradient);
}

.line-chart-path {
  fill: none;
  stroke: var(--demo-red);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-line-legend {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.chart-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.chart-legend-label {
  color: var(--color-text-muted);
}

.chart-legend-value {
  font-weight: 600;
}

.chart-legend-axis {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.customer-card h2 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.customer-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.customer-photo {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
}

.customer-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.customer-id {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.customer-details {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem 1.2rem;
  font-size: 0.95rem;
}

.customer-details div {
  display: flex;
  flex-direction: column;
}

.customer-details dt {
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.customer-details dd {
  margin: 0;
  font-weight: 700;
  color: #111827;
}

.customer-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(165, 42, 42, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(139, 34, 34, 0.1), transparent 55%),
    #ffffff;
  border: 1px solid rgba(165, 42, 42, 0.2);
  box-shadow: 0 22px 45px rgba(139, 34, 34, 0.1);
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.customer-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(165, 42, 42, 0.15), transparent 55%);
  opacity: 0;
  transform: translate3d(-20px, -20px, 0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.customer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(139, 34, 34, 0.15);
  border-color: rgba(165, 42, 42, 0.35);
}

.customer-card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.customer-card-title {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
}

.customer-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--demo-red);
  transition: width 0.2s ease;
}

.customer-card:hover .customer-card-title::after {
  width: 60%;
}

.line-chart-path {
  fill: none;
  stroke: var(--demo-red);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawLine 1.8s ease-out forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.customer-page-body {
  background: radial-gradient(circle at top, #fef2f2 0, #f4f6f9 35%, #e2e8f0 100%);
}

.customer-page {
  animation: fadeInCustomer 0.6s ease-out forwards;
}

.customer-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--demo-red), var(--demo-red-dark));
  color: #fef2f2;
  box-shadow: 0 22px 45px rgba(139, 34, 34, 0.35);
  position: relative;
  overflow: hidden;
}

.customer-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(254, 226, 226, 0.3), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.customer-hero-main {
  position: relative;
  z-index: 1;
}

.customer-hero-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.8;
  margin: 0 0 0.25rem;
}

.customer-hero-name {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.customer-hero-id {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.9;
}

.customer-hero-balance {
  position: relative;
  z-index: 1;
  text-align: right;
}

.customer-hero-balance-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.customer-hero-balance-amount {
  margin: 0.15rem 0 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.customer-detail-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.customer-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(165, 42, 42, 0.15), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.customer-detail-card:hover::before {
  opacity: 0.35;
}

.customer-detail-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
}

.customer-detail-rows {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.detail-row {
  display: flex;
  flex-direction: column;
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.detail-value {
  font-weight: 600;
  color: #111827;
}

.activity-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.activity-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.activity-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.activity-breakdown {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.activity-amount.positive {
  color: #15803d;
}

.activity-amount.negative {
  color: #b91c1c;
}

.slide-in-up {
  opacity: 0;
  transform: translateY(14px);
  animation: slideInUp 0.6s ease-out forwards;
}

.slide-in-up.delay-1 {
  animation-delay: 0.1s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCustomer {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-user {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========== App layout (Accounts / mobile-style) ========== */
.app-body {
  padding-bottom: 80px;
  min-height: 100vh;
  background: #fff;
}
.app-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 0.75rem 1rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 25;
}
.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.app-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.app-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
  border-radius: 50%;
}
.app-icon:hover {
  background: #f1f5f9;
  color: var(--color-text);
}
/* Bell icon: no circle, dot when transfers exist */
.bell-icon-link {
  text-decoration: none;
  color: var(--color-text);
}
.bell-icon-link:hover {
  background: transparent !important;
  color: var(--color-text);
}
.bell-icon-link .icon-bell {
  color: inherit;
}
.bell-dot {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--demo-red-banner);
  border-radius: 50%;
  border: 2px solid #fff;
}
.bell-icon-link.has-transfers .bell-dot {
  display: block;
}
.app-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--demo-red-banner);
  border-radius: 50%;
  border: 2px solid #fff;
}
.app-page-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--demo-red);
  letter-spacing: 0.02em;
  flex: 1;
  text-align: center;
}
.app-header-right {
  min-width: 64px;
  display: flex;
  justify-content: flex-end;
}
.app-logout {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}
.app-logout:hover {
  text-decoration: underline;
}
.app-greeting {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}
.app-content {
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}
.app-section {
  margin-bottom: 0.5rem;
}
.dashboard-accounts-section {
  margin-bottom: 1.25rem;
  max-width: 100%;
}
.dashboard-accounts-section + .dashboard-accounts-section {
  margin-top: 0.25rem;
}
.dashboard-accounts-section .app-section-header {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.dashboard-accounts-section .app-account-list {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem;
}
.app-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.app-section-blue {
  background: #2563eb;
}
.app-section-maroon {
  background: var(--demo-red-dark);
}
.app-section-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon-monitor {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-card {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='1' y='4' width='22' height='14' rx='2'/%3E%3Cpath d='M1 10h22'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.app-section-title-img {
  height: 1.4em;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.app-account-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-top: none;
}
.app-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  gap: 1rem;
}
.app-account-item:last-child {
  border-bottom: none;
}
.app-account-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.app-account-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}
.app-account-mask {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.app-account-balance {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  white-space: nowrap;
}
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #374151;
  color: #9ca3af;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.25rem 0.85rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 30;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.5rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.app-nav-item:hover {
  color: #e5e7eb;
}
.app-nav-item.app-nav-active {
  color: var(--demo-red);
}
.app-nav-icon {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}
.icon-bell {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 01-3.46 0'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-back {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-home {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-nav-accounts {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-nav-transfer {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M7 17L17 7M17 7h-6M17 7v6'/%3E%3Cpath d='M17 17L7 7M7 7h6M7 7v6'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-nav-billpay {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cpath d='M1 10h22M1 14h8'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-nav-deposit {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='14' rx='2'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.icon-nav-more {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='6' cy='12' r='1'/%3E%3Ccircle cx='18' cy='12' r='1'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Mobile layout for dashboard (screenshot-style) */
.app-mobile-header {
  display: none;
}
.app-mobile-nav {
  display: none;
}
.app-back-header {
  display: none;
}

/* Account rows: light grey bg + vertical accent line (screenshot) */
.app-section-checking .app-account-item {
  background: #f1f5f9;
  border-left: 4px solid #2563eb;
}
.app-section-cards .app-account-item {
  background: #f1f5f9;
  border-left: 4px solid var(--demo-red-dark);
}
.app-section-checking .app-account-list,
.app-section-cards .app-account-list {
  background: transparent;
  border: none;
  border-top: none;
}

@media (max-width: 768px) {
  .dashboard-page .app-mobile-header {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--color-border-subtle);
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left));
    position: sticky;
    top: 0;
    z-index: 25;
  }
  .dashboard-page .app-mobile-header .app-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .dashboard-page .app-mobile-header .app-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--demo-red);
    flex: 1;
    text-align: center;
  }
  .dashboard-page .app-mobile-header .app-greeting {
    margin: 0.5rem 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
    text-align: left;
  }
  .dashboard-page .nav-desktop {
    display: none !important;
  }
  .dashboard-page .footer-desktop {
    display: none !important;
  }
  .dashboard-page .app-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    justify-content: space-around;
    align-items: center;
    padding: 0.4rem max(0.25rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.25rem, env(safe-area-inset-left));
    z-index: 30;
    border-top: 1px solid var(--color-border-subtle);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }
  .dashboard-page .page-main {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
    max-width: 100%;
  }
  .dashboard-page .dashboard-accounts-section {
    margin-bottom: 1rem;
  }
  .dashboard-page .customer-hero {
    display: none;
  }
  .dashboard-page .customer-detail-grid {
    margin-top: 0;
  }
}

/* Customer subpages (Transfer, Bill Pay, Profile, Activity): back arrow + bottom nav on mobile */
@media (max-width: 768px) {
  .customer-subpage .app-back-header {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--color-border-subtle);
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left));
    position: sticky;
    top: 0;
    z-index: 25;
  }
  .customer-subpage .app-back-header .app-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .customer-subpage .app-back-header .app-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--demo-red);
    flex: 1;
    text-align: center;
  }
  .customer-subpage .app-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
  }
  .customer-subpage .app-back-link:hover {
    background: #f1f5f9;
    color: var(--color-text);
  }
  .customer-subpage .app-back-link .icon-back {
    color: inherit;
  }
  .customer-subpage .nav-desktop {
    display: none !important;
  }
  .customer-subpage .footer-desktop {
    display: none !important;
  }
  .customer-subpage .app-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem max(0.25rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(0.25rem, env(safe-area-inset-left));
    z-index: 30;
    border-top: 1px solid var(--color-border-subtle);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }
  .customer-subpage .page-main {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

.app-card {
  margin: 1rem 1rem 0;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}
.app-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}
.app-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.app-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.app-detail-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.app-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}
.app-link {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--demo-red);
  text-decoration: none;
}
.app-link:hover {
  text-decoration: underline;
}
.app-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-activity-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.app-activity-item:last-child {
  border-bottom: none;
}
.app-activity-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.app-activity-desc {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}
.app-activity-amount {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}
.app-activity-meta {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.app-amount-pos {
  color: #15803d;
}

@media (max-width: 768px) {
  /* Home page: mobile header with visible logo */
  .home-page .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .home-page .site-header-inner {
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left));
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .home-page .site-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
  }
  .home-page .site-brand-logo-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .home-page .site-brand .demo-logo-img.site-logo {
    height: 36px;
    width: auto;
    min-width: 44px;
    display: block;
    object-fit: contain;
  }
  .home-page .site-brand-logo-group .site-demo-name-img {
    height: 1rem;
    max-width: 140px;
    flex-shrink: 0;
    display: block !important;
  }
  .home-page .site-tagline-img {
    height: 0.9rem;
    max-width: 90px;
    flex-shrink: 1;
  }
  @media (max-width: 400px) {
    .home-page .site-tagline-img {
      display: none;
    }
    .home-page .site-brand-logo-group .site-demo-name-img {
      max-width: 120px;
      height: 0.95rem;
    }
    .home-page .site-brand .demo-logo-img.site-logo {
      min-width: 40px;
      height: 32px;
    }
  }
  .home-page .site-utility {
    margin-left: auto;
  }
  .home-page .fdic-banner-inner {
    flex-wrap: wrap;
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
  }
  .home-page .fdic-banner-img {
    height: 1rem;
  }

  .hero-with-sidebar {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 100%;
    width: 100%;
  }
  .online-access-sidebar {
    order: -1;
    border-left: none;
    border-bottom: 1px solid var(--color-border-subtle);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 1rem max(0.25rem, env(safe-area-inset-left)) 1rem max(0.25rem, env(safe-area-inset-right));
    overflow: visible;
  }
  .home-page .login-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .home-page .login-username-label {
    display: flex;
    flex-direction: column;
  }
  .home-page .login-username-label input {
    min-height: 44px;
  }
  .home-page .online-access-title {
    font-size: 1.1rem;
  }
  .home-page .login-form input[type="text"],
  .home-page .login-form input[type="password"] {
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 44px;
  }
  .home-page .btn-login {
    min-height: 44px;
  }
  .home-page .welcome-section {
    padding: 1rem 0.75rem;
  }
  .home-page .news-section {
    padding: 1rem 0.75rem;
  }
  .home-page .footer-inner,
  .home-page .footer-legal {
    padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
  }
  body.home-page {
    overflow-x: hidden;
  }

  .hero-promo {
    min-height: 320px;
  }
  .carousel-track {
    min-height: 320px;
  }
  .hero-promo-overlay {
    padding: 1.5rem 1rem 2.5rem;
  }
  .hero-carousel {
    left: 1rem;
    right: 1rem;
  }
  .site-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 0.5rem 0.75rem;
    z-index: 30;
  }
  .site-nav-list {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-utility-red {
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    gap: 0.4rem 0.75rem;
  }
  .site-utility-red a:not(.site-utility-icon) {
    font-size: 0.8rem;
  }

  .welcome-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-cards {
    grid-template-columns: 1fr;
  }
  .footer-columns-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-inner {
    padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.open,
  .nav-actions.open {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    padding: 0.7rem 1.5rem 0.1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }

  .nav-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2.7rem);
    padding: 0.4rem 1.5rem 0.7rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }

  .hero,
  .hero-login {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .hero-panel {
    order: 0;
  }

  .hero-image {
    order: -1;
    height: 180px;
  }

  .cards-grid {
    margin-inline: 1.25rem;
  }

  .highlight-inner {
    grid-template-columns: 1fr;
  }

  .highlight-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-main {
    margin-top: 1.6rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-columns {
    gap: 1.5rem;
  }

  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero,
  .hero-login {
    margin-top: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .highlight-stats {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    flex-direction: column;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .welcome-cards {
    grid-template-columns: 1fr;
  }
}

/* iPhone-specific: smaller screens (SE, 8, 12 mini) */
@media (max-width: 380px) {
  .dashboard-page .app-mobile-header .app-page-title {
    font-size: 1.35rem;
  }
  .dashboard-page .app-mobile-header .app-greeting {
    font-size: 0.85rem;
  }
  .dashboard-page .page-main {
    padding-inline: 0.75rem;
  }
  .app-section-header {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
  }
  .app-account-item {
    padding: 0.85rem 0.85rem;
  }
  .app-account-name {
    font-size: 0.9rem;
  }
  .app-account-balance {
    font-size: 0.95rem;
  }
  .app-nav-item {
    padding: 0.35rem 0.3rem;
    font-size: 0.65rem;
  }
  .app-nav-icon {
    width: 22px;
    height: 22px;
  }
}

/* iPhone: ensure 44px min touch targets */
@media (max-width: 768px) {
  .app-icon {
    min-width: 44px;
    min-height: 44px;
  }
  .app-nav-item {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }
  .app-logout {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Prevent horizontal overflow on iPhone */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .page-main,
  .dashboard-accounts-section,
  .app-account-list,
  .app-account-item {
    max-width: 100%;
  }
  .app-account-balance {
    word-break: break-all;
  }
}

/* All customer pages: compact mobile padding */
@media (max-width: 768px) {
  .customer-page-body .page-main {
    padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
  }
  .customer-page-body .nav-inner {
    padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
  }
  .customer-page-body .footer-inner,
  .customer-page-body .footer-bottom {
    padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
  }
}

@media (max-width: 380px) {
  .customer-page-body .page-main {
    padding-inline: 0.6rem;
  }
}

/* Form inputs: full width and 44px min height on iPhone */
@media (max-width: 768px) {
  .transfer-form select,
  .transfer-form input[type="number"] {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .transfer-form button[type="submit"],
  .btn-primary {
    min-height: 44px;
    width: 100%;
  }
}

