:root {
  --ink: #071936;
  --muted: #64708a;
  --line: #dbe6f2;
  --bbva: #072146;
  --blue: #006ecb;
  --green: #10985a;
  --green-soft: #ebfff4;
  --shadow: 0 22px 64px rgba(7, 25, 54, .11);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.deposit-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 10px 18px;
}

.sheet {
  width: min(820px, 100%);
}

.page-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.rico-logo {
  display: block;
  width: 92px;
  height: auto;
}

.page-head h1 {
  margin: 0 0 4px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: 0;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.96rem, 1.7vw, 1.2rem);
  font-weight: 300;
  line-height: 1.28;
}

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

.steps article {
  position: relative;
  min-height: 60px;
  display: grid;
  grid-template-columns: 32px 42px 1fr;
  gap: 8px;
  align-items: center;
}

.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 28px;
  width: 24px;
  border-top: 2px dotted #b7c3d2;
}

.step-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0b8af0, #005abe);
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 700;
}

.step-icon,
.row-icon {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #edf3f9;
  border-radius: 13px;
}

.step-icon {
  width: 38px;
  height: 38px;
}

.steps strong,
.steps p {
  margin: 0;
}

.steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.1;
}

.steps p {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 300;
}

.bank-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.bank-cover {
  min-height: 106px;
  padding: 18px 24px;
  color: #fff;
  background: linear-gradient(135deg, #004481, #0072ce 72%, #043263);
}

.bank-cover img {
  display: block;
  width: 136px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 8px;
  mix-blend-mode: screen;
  filter: contrast(1.15) brightness(1.15);
}

.bank-cover p {
  margin: 0;
  font-size: .94rem;
  font-weight: 300;
  line-height: 1.2;
}

.holder {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 17px 28px;
  background: linear-gradient(135deg, #ffffff, #f5f9fd);
}

.holder span,
.data-row p {
  margin: 0;
  color: #31425f;
  font-size: .9rem;
  font-weight: 300;
}

.holder strong {
  font-size: clamp(1.18rem, 2.4vw, 1.48rem);
  font-weight: 600;
}

.holder em {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: #106534;
  background: var(--green-soft);
  border: 1px solid #bdeccd;
  border-radius: 10px;
  font-style: normal;
  font-size: .9rem;
  font-weight: 600;
}

.data-card {
  position: relative;
  z-index: 2;
  display: grid;
  padding: 8px 18px;
  margin-top: -1px;
  background: rgba(255, 255, 255, .99);
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow);
}

.data-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 6px 0;
}

.data-row + .data-row {
  border-top: 1px solid var(--line);
}

.row-icon {
  width: 42px;
  height: 42px;
}

.data-row strong {
  display: block;
  margin-top: 4px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(1.08rem, 2.3vw, 1.36rem);
  font-weight: 600;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

.data-row button,
.copy-all-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: #edf3f9;
  border-radius: 12px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
}

.data-row button::before,
.copy-all-action::before {
  content: "";
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 5px -5px 0 -2px #edf3f9, 5px -5px 0 0 currentColor;
}

button.copied,
.copy-all-action.copied {
  color: #fff;
  background: var(--green);
}

button.copied::before,
.copy-all-action.copied::before {
  box-shadow: 5px -5px 0 -2px var(--green), 5px -5px 0 0 currentColor;
}

.action-stack {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.receipt-action {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #008cff, #005fc7);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 110, 203, .2);
  font-size: clamp(1rem, 2.3vw, 1.22rem);
  font-weight: 600;
}

.receipt-action span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
}

.receipt-action svg {
  width: 27px;
  height: 27px;
}

.receipt-action b {
  font-size: 1.7rem;
  font-weight: 300;
}

.copy-all-action {
  width: 100%;
  border: 1px solid #bdc9d8;
  background: linear-gradient(180deg, #fbfdff, #f0f5fa);
}

.security-note {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 18px;
  color: #095231;
  background: linear-gradient(135deg, #effff6, #e7fff1);
  border: 1px solid #b8e9cb;
  border-radius: 15px;
}

.security-note span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 12px;
}

.security-note strong {
  display: block;
  margin-bottom: 2px;
  font-size: .92rem;
  font-weight: 600;
}

.security-note p {
  margin: 0;
  font-size: .86rem;
  font-weight: 300;
}

.bottom-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.bottom-steps article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
}

.bottom-steps svg {
  width: 28px;
  height: 28px;
}

.bottom-steps strong,
.bottom-steps p {
  margin: 0;
}

.bottom-steps strong {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.12;
}

.bottom-steps p {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 300;
}

.thanks {
  margin: 12px 0 0;
  padding: 8px 12px;
  color: var(--muted);
  background: #edf3f9;
  border-radius: 12px;
  text-align: center;
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.35;
}

.privacy-mini {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 300;
  text-align: center;
}

.privacy-mini a {
  color: var(--blue);
  font-weight: 600;
}

.cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(6, 31, 72, .16);
}

.cookie-consent strong,
.cookie-consent p {
  margin: 0;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 600;
}

.cookie-consent p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.cookie-consent a {
  color: var(--blue);
  font-weight: 600;
}

.cookie-consent button {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 9px;
  font-weight: 600;
}

@media (min-width: 900px) and (max-height: 1080px) {
  .deposit-page {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .sheet {
    width: min(780px, 100%);
  }
}

@media (max-width: 760px) {
  .deposit-page {
    padding: 12px;
  }

  .sheet {
    width: 100%;
  }

  .page-head {
    grid-template-columns: 76px 1fr;
    gap: 11px;
    align-items: center;
    margin-bottom: 10px;
  }

  .rico-logo {
    width: 76px;
  }

  .page-head h1 {
    font-size: 1.78rem;
  }

  .page-head p {
    font-size: .84rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 10px;
  }

  .steps article {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    min-height: 0;
    padding: 8px 4px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .steps article:not(:last-child)::after {
    display: none;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: .84rem;
  }

  .step-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .step-icon svg {
    width: 18px;
    height: 18px;
  }

  .steps strong {
    font-size: .68rem;
  }

  .steps p {
    display: none;
  }

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

  .bank-cover {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
  }

  .bank-cover img {
    width: 118px;
    height: 38px;
    margin: 0;
  }

  .bank-cover p {
    text-align: right;
    font-size: .84rem;
  }

  .holder {
    padding: 13px 16px;
  }

  .holder strong {
    font-size: 1.08rem;
  }

  .holder em {
    padding: 6px 10px;
    font-size: .82rem;
  }

  .data-card {
    padding: 7px 12px;
  }

  .data-row {
    grid-template-columns: 40px 1fr auto;
    gap: 9px;
    min-height: auto;
    padding: 10px 0;
  }

  .row-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .row-icon svg {
    width: 18px;
    height: 18px;
  }

  .data-row p {
    font-size: .78rem;
  }

  .data-row strong {
    font-size: .92rem;
    letter-spacing: .03em;
  }

  .data-row button {
    min-height: 34px;
    padding: 0 9px;
    font-size: .78rem;
    border-radius: 9px;
  }

  .data-row button::before {
    display: none;
  }

  .receipt-action {
    min-height: 50px;
    padding: 0 15px;
    border-radius: 12px;
  }

  .copy-all-action {
    min-height: 40px;
    font-size: .9rem;
  }

  .security-note {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .security-note span {
    width: 34px;
    height: 34px;
  }

  .security-note strong {
    font-size: .82rem;
  }

  .security-note p {
    font-size: .78rem;
  }

  .bottom-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .bottom-steps article {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    text-align: center;
  }

  .bottom-steps svg {
    width: 24px;
    height: 24px;
  }

  .bottom-steps strong {
    font-size: .72rem;
  }

  .bottom-steps p {
    font-size: .68rem;
  }

  .thanks {
    margin-top: 12px;
    padding: 9px 12px;
    font-size: .78rem;
  }
}

@media (max-width: 420px) {
  .deposit-page {
    padding: 10px;
  }

  .page-head {
    grid-template-columns: 68px 1fr;
  }

  .rico-logo {
    width: 68px;
  }

  .page-head h1 {
    font-size: 1.55rem;
  }

  .data-row {
    grid-template-columns: 1fr auto;
  }

  .row-icon {
    display: none;
  }

  .data-row strong {
    font-size: .84rem;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
