:root {
  --ink: #2e2047;
  --green: #56338a;
  --muted: #776d86;
  --paper: #faf8ff;
  --line: #e5dff0;
  --lime: #dcf48b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.65 system-ui,
    sans-serif;
}
header {
  padding: 20px 5vw;
  display: flex;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
header #logout {
  margin-left: auto;
}
.brand {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -3px;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  color: #b5d86b;
  letter-spacing: 0;
}
.badge {
  font-size: 9px;
  letter-spacing: 1.4px;
  background: #eee7fa;
  padding: 7px 12px;
  border-radius: 20px;
}
main {
  max-width: 1250px;
  margin: auto;
  padding: 40px 5vw;
}
h1 {
  font:
    500 43px/1.2 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 14px 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 15px;
}
h3 {
  font-size: 17px;
}
p {
  color: var(--muted);
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
}
.intro > p {
  max-width: 420px;
}
#auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: start;
}
.warning {
  padding: 18px;
  border-left: 3px solid #9b75cd;
  background: #f0eaf9;
  font-size: 12px;
  margin: 25px 0;
}
.flow {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  align-items: center;
  font-size: 11px;
}
.flow span {
  background: white;
  padding: 12px;
  border-radius: 7px;
}
.auth-card,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  margin-bottom: 20px;
}
.tabs button {
  background: none;
  border: 0;
  padding: 12px;
  color: var(--muted);
}
.tabs button.selected {
  color: var(--ink);
  border-bottom: 3px solid var(--green);
}
label {
  display: block;
  font-size: 12px;
  margin: 17px 0 7px;
}
input,
select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  font: inherit;
  color: var(--ink);
  min-width: 0;
}
button {
  cursor: pointer;
  font:
    600 12px system-ui,
    sans-serif;
  border-radius: 8px;
  padding: 13px 16px;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  margin-top: 15px;
}
.secondary {
  background: #eee7f8;
  color: var(--ink);
}
.text {
  background: none;
  color: var(--green);
  padding: 7px;
}
.fine {
  font-size: 11px;
  color: var(--muted);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9b75cd;
  outline-offset: 3px;
}
.title-row,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.title-row h1 {
  margin-bottom: 4px;
}
.title-row p {
  margin-top: 0;
}
.status {
  border: 1px solid #b79ad9;
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 11px;
}
.wallet-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin: 25px 0;
}
.balance {
  border-radius: 15px;
  background: var(--green);
  color: white;
  padding: 30px;
}
.balance > span {
  font-size: 10px;
  letter-spacing: 2px;
}
.balance strong {
  display: block;
  font-size: 43px;
  letter-spacing: -1px;
  margin: 18px 0 0;
}
.balance p {
  color: #f1e9ff;
  margin: 0;
}
.balance small {
  display: block;
  font-size: 10px;
  color: #ded0f1;
  margin-top: 25px;
}
.explanation {
  padding: 25px;
  background: #f0eafa;
  border-radius: 14px;
}
.explanation > span {
  font-size: 30px;
  color: #6940a0;
}
.explanation h3 {
  margin-top: 8px;
}
.explanation p {
  font-size: 12px;
}
.operations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0 35px;
}
.person {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.person strong {
  font-size: 13px;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.person > span {
  font-size: 10px;
  color: var(--muted);
}
.section-title {
  margin: 25px 0 15px;
}
.section-title h2 {
  margin: 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
th,
td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f0eafa;
}
td small {
  display: block;
  color: var(--muted);
}
.credit {
  color: #277349;
}
.debit {
  color: #945431;
}
.reference {
  font-family: monospace;
  font-size: 9px;
  max-width: 125px;
  overflow-wrap: anywhere;
}
.review {
  padding: 18px;
  background: #f0eafa;
  border-radius: 8px;
  margin-top: 18px;
}
.review p {
  font-size: 13px;
  color: var(--ink);
}
.movement-message {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #edf4d9;
  overflow-wrap: anywhere;
}
.movement-message.error {
  background: #f8e3da;
  color: #893c26;
  border-left: 4px solid #b65336;
}
.admin-summary {
  background: #f0eafa;
  padding: 20px;
  border-radius: 10px;
  font-size: 12px;
}
#message {
  background: #edf4d9;
  padding: 16px;
  border-radius: 9px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
#message.error {
  background: #f8e3da;
  color: #893c26;
}
#message.snackbar {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px 18px;
  background: #34205c;
  color: #fff;
  box-shadow: 0 8px 32px #20152b40;
  border-radius: 12px;
  font-size: 14px;
}
#message.snackbar.error {
  background: #802e24;
  color: #fff;
}
#message-close {
  flex: none;
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
}
#message-text {
  flex: 1;
}
input[aria-invalid="true"],
select[aria-invalid="true"] {
  border: 2px solid #b33e30;
  background: #fff8f6;
}
.field-error {
  color: #963526;
  font-size: 12px;
  margin: 6px 0 12px;
  line-height: 1.5;
}
body {
  padding-bottom: 100px;
}
footer {
  padding: 25px 5vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  #auth {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .intro h1 {
    font-size: 37px;
  }
  .wallet-grid,
  .operations {
    grid-template-columns: 1fr;
  }
  .title-row {
    align-items: start;
  }
  .flow {
    flex-wrap: wrap;
  }
  header {
    gap: 12px;
  }
  .badge {
    font-size: 8px;
  }
  main {
    padding-top: 25px;
  }
  h1 {
    font-size: 33px;
  }
}

/* Pásalo: warm violet, lime accent and a forward-moving arrow. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -2px;
  font-size: 36px;
  font-weight: 850;
}
.brand .brand-symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: var(--ink);
  color: #dcf48b;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}
.intro h1 {
  font-family: system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -2.5px;
}
.intro h1 em {
  font-style: normal;
  color: #6940a0;
  background: linear-gradient(transparent 66%, #dcf48b 66%);
  padding: 0 3px;
}
.balance {
  background: linear-gradient(125deg, #34205c, #644092);
}
.primary:hover:not(:disabled) {
  background: #3d2268;
}
@media (max-width: 500px) {
  header {
    flex-wrap: wrap;
  }
  .brand {
    font-size: 32px;
  }
  .intro h1 {
    font-size: 46px;
  }
  .auth-card,
  .card {
    padding: 20px;
  }
  .balance strong {
    font-size: 38px;
  }
  .title-row {
    flex-wrap: wrap;
  }
  footer {
    gap: 12px;
    flex-wrap: wrap;
  }
}

h1 {
  font-family: system-ui, sans-serif;
  font-weight: 750;
}
#receive-qr { display:block; max-width:100%; height:auto; margin:1rem auto; }
#qr-video { width:100%; max-height:360px; background:#181223; border-radius:16px; }
.button-row { display:flex; flex-wrap:wrap; gap:.6rem; margin:1rem 0; }
#receipt-details { display:grid; grid-template-columns:minmax(90px,1fr) 2fr; gap:.6rem; overflow-wrap:anywhere; }
#receipt-details dd { margin:0; }
#receive-link { font-size:.85rem; }
