:root {
  --navy: #06356b;
  --navy-deep: #082a52;
  --navy-ink: #071c35;
  --green: #008148;
  --green-deep: #006837;
  --gold: #c9a227;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --surface-blue: #eaf1fa;
  --ink: #18283d;
  --muted: #5a6878;
  --border: #dce4ed;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --success-soft: #ecfdf3;
  --warning-soft: #fffaeb;
  --shadow: 0 18px 55px rgba(8, 42, 82, 0.12);
  --shadow-soft: 0 8px 28px rgba(8, 42, 82, 0.08);
  --radius: 14px;
  --radius-lg: 24px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body,
button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--green-deep);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  color: var(--navy-ink);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand img {
  width: 225px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav > a:not(.button) {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
}

.notification-bell {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  color: var(--navy-deep);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.notification-bell svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notification-bell span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  color: #fff;
  background: var(--green);
  border: 2px solid #fff;
  border-radius: 999px;
  font: 800 0.65rem/16px sans-serif;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}

.nav-toggle > span:not(.sr-only) {
  width: 21px;
  height: 2px;
  background: var(--navy);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.6);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 9px 20px rgba(0, 129, 72, 0.22);
}

.button-primary:hover {
  color: #fff;
  background: var(--green-deep);
}

.button-secondary {
  color: #fff;
  background: var(--navy);
}

.button-secondary:hover {
  color: #fff;
  background: var(--navy-deep);
}

.button-outline {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
}

.button-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.button-light:hover {
  color: var(--navy-deep);
  background: #fff;
}

.button-danger-outline {
  color: var(--danger);
  background: #fff;
  border-color: #f0b5af;
}

.button-small {
  min-height: 42px;
  padding: 9px 17px;
  font-size: 0.9rem;
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 129, 72, 0.28), transparent 30%),
    linear-gradient(135deg, var(--navy-ink), var(--navy) 65%, #074f59);
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(201, 162, 39, 0.24);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  min-height: 650px;
  align-items: center;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  padding-block: 86px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1,
.hero-copy p {
  color: #fff;
}

.hero-copy p {
  max-width: 670px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero .eyebrow,
.eyebrow-light {
  color: #efce69;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 35px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.trust-list span::before {
  margin-right: 8px;
  color: #efce69;
  content: "✓";
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 420px;
}

.hero-finance-photo {
  min-height: 520px;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.36);
}

.hero-person-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-finance-photo::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(2, 24, 47, 0.08), rgba(2, 24, 47, 0.75));
  content: "";
  pointer-events: none;
}

.photo-label {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 4;
  max-width: 250px;
  padding: 17px 19px;
  color: #fff;
  background: rgba(2, 28, 52, 0.78);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.photo-label span,
.photo-label strong {
  display: block;
  color: #fff;
}

.photo-label span {
  margin-bottom: 4px;
  color: #efce69;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero-finance-photo .bank-card {
  top: auto;
  right: 24px;
  bottom: 24px;
  width: 285px;
  min-height: 170px;
  padding: 22px;
  transform: rotate(-2deg);
}

.hero-finance-photo .card-number {
  margin-block: 34px 22px;
  font-size: 0.88rem;
}

.hero-finance-photo .balance-preview {
  right: auto;
  bottom: 48px;
  left: 22px;
  z-index: 3;
  width: 245px;
}

.visual-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(0, 129, 72, 0.27);
  filter: blur(20px);
}

.bank-card {
  position: absolute;
  top: 22px;
  right: 0;
  width: min(100%, 415px);
  min-height: 245px;
  padding: 31px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, #0a294d, #075f49);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(4deg);
}

.bank-card::after {
  position: absolute;
  top: 0;
  right: 26px;
  width: 5px;
  height: 100%;
  background: var(--gold);
  content: "";
  opacity: 0.75;
}

.bank-card-top,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.card-chip {
  width: 43px;
  height: 32px;
  background: linear-gradient(135deg, #e6c760, #ad811b);
  border-radius: 7px;
}

.card-number {
  margin-block: 55px 32px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.balance-preview {
  position: absolute;
  right: 135px;
  bottom: 13px;
  width: min(86%, 335px);
  padding: 24px 27px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.balance-preview span,
.balance-preview small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.balance-preview strong {
  display: block;
  margin-block: 5px;
  font-size: 1.78rem;
}

.section {
  padding-block: 94px;
}

.section-soft {
  background: var(--paper);
}

.bank-stories {
  padding-block: 100px;
  background: #eef2f6;
}

.bank-stories-heading {
  margin-bottom: 42px;
  text-align: center;
}

.bank-stories-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
}

.bank-stories-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.bank-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bank-story-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(8, 42, 82, 0.09);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(8, 42, 82, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bank-story-card:hover {
  box-shadow: 0 24px 60px rgba(8, 42, 82, 0.17);
  transform: translateY(-6px);
}

.bank-story-card > img {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.bank-story-card:first-child > img {
  object-position: 48% center;
}

.bank-story-body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: 29px 30px 32px;
}

.bank-story-body h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.bank-story-body p {
  margin-bottom: 28px;
  color: var(--muted);
}

.bank-story-body > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--navy);
  font-weight: 850;
}

.bank-story-body > a span {
  color: var(--green);
  font-size: 1.3rem;
  transition: transform 150ms ease;
}

.bank-story-body > a:hover span {
  transform: translateX(4px);
}

.finance-showcase {
  padding-block: 100px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 129, 72, 0.32), transparent 28%),
    var(--navy-deep);
}

.finance-showcase-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(45px, 7vw, 95px);
}

.finance-showcase-photo {
  min-height: 470px;
  background:
    linear-gradient(180deg, transparent 55%, rgba(2, 24, 47, 0.72)),
    url("../img/pmv-banca-digital.jpg") 72% center / cover no-repeat;
  border: 8px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px 80px 26px 26px;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.35);
}

.finance-showcase-copy h2,
.finance-showcase-copy p {
  color: #fff;
}

.finance-showcase-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.finance-showcase-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.finance-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.finance-mini-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.finance-mini-stats strong,
.finance-mini-stats span {
  display: block;
}

.finance-mini-stats strong {
  color: #efce69;
  font-size: 1.55rem;
}

.finance-mini-stats span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading p,
.muted {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 240px;
  padding: 29px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card::after {
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  content: "";
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 25px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.security-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.security-panel {
  position: relative;
  display: flex;
  min-height: 370px;
  align-items: flex-end;
  gap: 18px;
  padding: 42px;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.security-panel::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 24, 47, 0.04) 25%, rgba(2, 24, 47, 0.92) 100%),
    linear-gradient(120deg, rgba(0, 129, 72, 0.08), rgba(2, 24, 47, 0.18));
  content: "";
}

.security-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.security-panel > .shield,
.security-panel > div {
  position: relative;
  z-index: 1;
}

.security-panel strong,
.security-panel small {
  display: block;
  color: #fff;
}

.security-panel strong {
  font-size: 1.45rem;
}

.security-panel small {
  color: rgba(255, 255, 255, 0.69);
}

.shield {
  display: grid;
  width: 60px;
  height: 68px;
  place-items: center;
  color: var(--navy-deep);
  background: #fff;
  border-radius: 30px 30px 24px 24px;
  font-size: 1.5rem;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px 52px;
  color: #fff;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  padding-top: 60px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-ink);
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
}

.footer-grid p {
  font-size: 0.88rem;
}

.footer-logo {
  width: 210px;
  margin-bottom: 19px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
}

.footer-bottom {
  margin-top: 40px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

.flash-wrap {
  margin-top: 18px;
}

.flash {
  margin-bottom: 20px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 650;
}

.flash ul {
  margin: 0;
  padding-left: 20px;
}

.flash p {
  margin: 5px 0 0;
}

.flash-success {
  color: #05603a;
  background: var(--success-soft);
  border-color: #abefc6;
}

.flash-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #fecdca;
}

.flash-warning {
  color: #854a0e;
  background: var(--warning-soft);
  border-color: #fedf89;
}

.auth-page {
  padding-block: 75px 95px;
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 129, 72, 0.08), transparent 25%),
    var(--surface);
}

.auth-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
}

.auth-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4.15rem);
}

.auth-intro > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.notice-card {
  max-width: 500px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface-blue);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
}

.notice-card strong,
.notice-card p {
  display: block;
  margin: 0;
}

.notice-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-card,
.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-card {
  padding: clamp(26px, 5vw, 48px);
}

.form-card h2 {
  font-size: 1.85rem;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-ink);
  font-size: 0.87rem;
  font-weight: 800;
}

.field label span,
.field small {
  color: var(--muted);
  font-weight: 500;
}

.field small {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c7d7;
  border-radius: 9px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 129, 72, 0.1);
  outline: none;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.notification-item.is-unread {
  background: var(--surface-blue);
  border-left: 4px solid var(--green);
}

.notification-item > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.notification-item time {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.notification-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checkbox-row {
  display: grid;
  align-items: start;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 5px 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--green);
}

.form-footer {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.dashboard-page,
.admin-page {
  min-height: 70vh;
  padding-block: 55px 90px;
}

.dashboard-heading,
.admin-heading,
.client-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.dashboard-heading h1,
.admin-heading h1,
.client-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.dashboard-heading p,
.admin-heading p,
.client-heading p {
  margin: 0;
  color: var(--muted);
}

.account-pill,
.admin-identity {
  min-width: 255px;
  padding: 17px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.account-pill span,
.admin-identity span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.account-pill strong,
.admin-identity strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding: 38px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(0, 129, 72, 0.5), transparent 30%),
    var(--navy-deep);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dashboard-welcome {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 34px 38px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 24, 47, 0.96) 0%, rgba(2, 24, 47, 0.76) 48%, rgba(2, 24, 47, 0.12) 100%),
    url("../img/pmv-banca-digital.jpg") 70% 48% / cover no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.dashboard-welcome::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green), transparent);
  content: "";
}

.dashboard-welcome > div {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.dashboard-welcome h2,
.dashboard-welcome p {
  color: #fff;
}

.dashboard-welcome h2 {
  margin: 7px 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.dashboard-welcome p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.balance-card span,
.balance-card strong,
.balance-card small {
  display: block;
  color: #fff;
}

.balance-card span {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.84rem;
}

.balance-card strong {
  margin-block: 7px;
  font-size: clamp(2.3rem, 5vw, 3.65rem);
  letter-spacing: -0.035em;
}

.balance-card small {
  color: rgba(255, 255, 255, 0.67);
}

.balance-badge {
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr;
  gap: 22px;
}

.quick-actions {
  display: flex;
  align-items: flex-start;
  min-height: 115px;
  margin-bottom: 25px;
  overflow: visible;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  gap: 9px;
  width: 105px;
  min-height: 110px;
  min-width: 105px;
  flex: 0 0 105px;
  padding: 4px 8px 8px;
  color: var(--navy-ink);
  background: transparent;
  text-align: center;
  transition: transform 160ms ease;
}

.quick-action:hover {
  transform: translateY(-2px);
}

.quick-action-icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--green), #075f49);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 96, 65, 0.22);
}

.quick-action-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.quick-action strong {
  display: block;
  max-width: 105px;
  color: var(--navy-ink);
  font-size: 0.82rem;
  line-height: 1.15;
  min-height: 1.9em;
}

.status.failed {
  color: #a92323;
  background: #fde8e8;
  border-color: #f7caca;
}

.transfer-page .panel {
  max-width: 760px;
  margin-inline: auto;
}

.transfer-notice {
  margin-bottom: 22px;
  padding: 15px 18px;
  border: 1px solid #f1c7c7;
  border-radius: 12px;
  color: #942323;
  background: #fff1f1;
}

.narrow-container {
  max-width: 720px;
}

.money-form-panel {
  padding: clamp(24px, 5vw, 42px);
}

.deposit-methods {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.deposit-methods legend {
  margin-bottom: 14px;
  color: var(--navy-ink);
  font-size: 1.05rem;
  font-weight: 850;
}

.deposit-store-select {
  width: 100%;
  min-height: 64px;
  padding: 14px 52px 14px 18px;
  color: var(--navy-ink);
  background-color: #fff;
  border: 1px solid var(--green);
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.deposit-store-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 129, 72, 0.1);
  outline: none;
}

.deposit-store-dropdown {
  position: relative;
}

.deposit-store-dropdown summary {
  display: grid;
  align-items: center;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  min-height: 72px;
  padding: 10px 18px 10px 12px;
  color: var(--navy-ink);
  background: #fff;
  border: 1px solid var(--green);
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.deposit-store-dropdown summary::-webkit-details-marker {
  display: none;
}

.selected-store-logo,
.store-option-logo {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 6px;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.selected-store-logo img,
.store-option-logo img {
  display: block;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  max-width: none;
  object-fit: contain;
  visibility: visible;
  opacity: 1;
}

.dropdown-chevron {
  color: var(--green);
  font-size: 1.45rem;
  transition: transform 150ms ease;
}

.deposit-store-dropdown[open] .dropdown-chevron {
  transform: rotate(180deg);
}

.deposit-store-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: 360px;
  padding: 8px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.deposit-store-option {
  display: grid;
  align-items: center;
  grid-template-columns: 52px 1fr auto;
  gap: 13px;
  padding: 8px 10px;
  color: var(--navy-ink);
  border-radius: 10px;
  font-weight: 750;
  cursor: pointer;
}

.deposit-store-option:hover,
.deposit-store-option:has(input:checked) {
  background: var(--surface-blue);
}

.deposit-store-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-option-check {
  color: var(--green);
  opacity: 0;
  font-weight: 900;
}

.deposit-store-option:has(input:checked) .store-option-check {
  opacity: 1;
}

.deposit-method {
  display: grid;
  align-items: center;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.deposit-method:hover,
.deposit-method:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 7px 22px rgba(0, 96, 65, 0.1);
  transform: translateY(-1px);
}

.deposit-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--navy-deep);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 900;
}

.method-icon.method-logo {
  padding: 7px;
  background: #fff;
  border: 1px solid var(--border);
}

.method-icon.method-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.method-oxxo {
  color: #ffeb00;
  background: #d71920;
  border: 3px solid #ffeb00;
  font-size: 0.66rem;
  letter-spacing: -0.04em;
}

.method-store {
  background: #663399;
}

.method-card {
  background: linear-gradient(135deg, var(--navy-deep), var(--green));
}

.method-copy strong,
.method-copy small {
  display: block;
}

.method-copy strong {
  color: var(--navy-ink);
  font-size: 0.92rem;
}

.method-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.method-chevron {
  color: var(--green);
  font-size: 1.7rem;
}

.method-details {
  margin-bottom: 25px;
  padding: 21px;
  background: var(--surface-blue);
  border-left: 4px solid var(--green);
  border-radius: 12px;
}

.method-details > strong {
  display: block;
  margin-top: 5px;
  color: var(--navy-ink);
  font-size: 1.15rem;
}

.method-details > p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.deposit-reference {
  padding: 13px 15px;
  background: #fff;
  border: 1px dashed var(--green);
  border-radius: 9px;
}

.deposit-reference span,
.deposit-reference strong {
  display: block;
}

.deposit-reference span {
  color: var(--muted);
  font-size: 0.69rem;
  text-transform: uppercase;
}

.deposit-reference strong {
  margin-top: 3px;
  color: var(--navy-ink);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.deposit-code {
  margin-top: 18px;
  text-align: center;
}

.deposit-code img {
  display: block;
  width: min(100%, 520px);
  max-height: 170px;
  margin: 0 auto 8px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.deposit-code small {
  color: var(--muted);
}

.store-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(60px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.store-logos[hidden],
.deposit-code[hidden] {
  display: none;
}

.store-logos > div {
  min-width: 0;
  text-align: center;
}

.store-logos img {
  width: 100%;
  height: 54px;
  padding: 7px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.store-logos small {
  display: block;
  margin-top: 6px;
  color: var(--navy-ink);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.money-form-panel .panel-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.current-balance {
  margin-bottom: 28px;
  padding: 18px 20px;
  color: #fff;
  background: var(--navy-deep);
  border-left: 4px solid var(--gold);
  border-radius: 11px;
}

.current-balance span,
.current-balance strong {
  display: block;
}

.current-balance span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.current-balance strong {
  margin-top: 4px;
  color: #fff;
  font-size: 1.5rem;
}

.money-input {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding-inline: 16px;
  border: 1px solid #b9c7d7;
  border-radius: 12px;
}

.money-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 129, 72, 0.1);
}

.money-input span {
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 800;
}

.money-input small {
  margin: 0;
  font-weight: 800;
}

.money-input input {
  min-height: 70px;
  padding: 8px 0;
  border: 0;
  box-shadow: none;
  font-size: 2rem;
  font-weight: 800;
}

.money-input input:focus {
  box-shadow: none;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: -5px 0 24px;
}

.quick-amounts button {
  padding: 10px 8px;
  color: var(--navy-ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.quick-amounts button:hover,
.quick-amounts button.is-selected {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.panel {
  margin-bottom: 24px;
  padding: 27px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.panel-heading .eyebrow {
  margin-bottom: 6px;
}

.panel-heading > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.transaction-list {
  display: grid;
}

.transaction-row {
  display: grid;
  align-items: center;
  grid-template-columns: 44px 1fr auto;
  gap: 13px;
  padding-block: 17px;
  border-bottom: 1px solid var(--border);
}

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

.transaction-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
}

.transaction-icon.credit {
  color: #067647;
  background: var(--success-soft);
}

.transaction-icon.debit {
  color: var(--danger);
  background: var(--danger-soft);
}

.transaction-copy strong,
.transaction-copy span,
.transaction-amount strong,
.transaction-amount span {
  display: block;
}

.transaction-copy span,
.transaction-amount span {
  color: var(--muted);
  font-size: 0.75rem;
}

.transaction-amount {
  text-align: right;
}

.amount-credit {
  color: #067647;
}

.amount-debit {
  color: var(--danger);
}

.profile-panel dl {
  margin: 0;
}

.profile-panel dl > div {
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}

.profile-panel dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-panel dd {
  margin: 3px 0 0;
  color: var(--navy-ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.privacy-note {
  margin-top: 22px;
  padding: 15px;
  color: #854a0e;
  background: var(--warning-soft);
  border-radius: 9px;
  font-size: 0.78rem;
}

.empty-state {
  padding: 45px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.empty-state p {
  margin: 0;
}

.admin-page {
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stat-card span,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.stat-card strong {
  margin-block: 7px;
  font-size: 1.65rem;
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 25px;
  padding: 18px;
  background: var(--surface);
  border-radius: 10px;
}

.filter-bar .field {
  min-width: 170px;
  margin: 0;
}

.filter-bar .field-grow {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

th,
td {
  padding: 15px 13px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

td strong,
td span {
  display: block;
}

td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status.active {
  color: #067647;
  background: var(--success-soft);
}

.status.inactive {
  color: var(--danger);
  background: var(--danger-soft);
}

.table-action,
.back-link {
  font-weight: 800;
}

.audit-list {
  display: grid;
}

.audit-list article {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  padding-block: 12px;
}

.audit-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  background: var(--green);
  border: 2px solid #c8f1dc;
  border-radius: 50%;
}

.audit-list strong,
.audit-list span {
  display: block;
}

.audit-list span {
  color: var(--muted);
  font-size: 0.76rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
}

.client-balance {
  min-width: 295px;
  padding: 22px 25px;
  color: #fff;
  background: var(--navy-deep);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.client-balance > span,
.client-balance > strong {
  display: block;
  color: #fff;
}

.client-balance > span:first-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}

.client-balance > strong {
  margin: 4px 0 11px;
  font-size: 1.65rem;
}

.client-balance .status {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.admin-client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.admin-client-grid .panel {
  align-self: start;
}

.admin-form .button {
  margin-top: 4px;
}

@media (max-width: 1020px) {
  .feature-grid,
  .admin-client-grid,
  .bank-story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bank-story-card:last-child {
    grid-column: 1 / -1;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 35px;
  }

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

  .admin-client-grid .profile-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a:not(.button) {
    padding: 11px;
  }

  .hero-grid,
  .auth-grid,
  .security-grid,
  .finance-showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 65px 80px;
  }

  .hero-visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .auth-grid,
  .security-grid {
    gap: 45px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .dashboard-heading,
  .admin-heading,
  .client-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .account-pill,
  .admin-identity,
  .client-balance {
    min-width: 0;
  }

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

@media (max-width: 620px) {
  .quick-actions {
    justify-content: flex-start;
  }

  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 175px;
    height: 55px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-finance-photo {
    min-height: 500px;
  }

  .hero-finance-photo .bank-card {
    right: 16px;
    bottom: 22px;
    width: 250px;
  }

  .hero-finance-photo .balance-preview {
    bottom: 155px;
    left: 16px;
    width: 220px;
  }

  .photo-label {
    top: 16px;
    left: 16px;
  }

  .finance-showcase {
    padding-block: 70px;
  }

  .bank-stories {
    padding-block: 68px;
  }

  .bank-story-grid {
    grid-template-columns: 1fr;
  }

  .bank-story-card:last-child {
    grid-column: auto;
  }

  .bank-story-card > img {
    height: 235px;
  }

  .bank-story-body {
    padding: 24px;
  }

  .finance-showcase-photo {
    min-height: 360px;
    border-radius: 22px 55px 22px 22px;
  }

  .finance-mini-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-welcome {
    min-height: 270px;
    padding: 26px 24px;
    background-position: 62% center;
  }

  .bank-card {
    width: 90%;
    min-height: 215px;
    padding: 24px;
  }

  .card-number {
    margin-block: 43px 25px;
    font-size: 1rem;
  }

  .balance-preview {
    right: 0;
    width: 82%;
  }

  .feature-grid,
  .admin-client-grid {
    grid-template-columns: 1fr;
  }

  .admin-client-grid .profile-panel {
    grid-column: auto;
  }

  .section {
    padding-block: 68px;
  }

  .cta-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 32px 26px;
  }

  .balance-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 25px;
  }

  .balance-card strong {
    font-size: 2.15rem;
  }

  .transaction-row {
    grid-template-columns: 40px 1fr;
  }

  .transaction-amount {
    grid-column: 2;
    text-align: left;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar .field {
    width: 100%;
  }

  .panel,
  .form-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
