:root {
  --navy: #002e6e;
  --blue: #00baf2;
  --ink: #0f172a;
  --paper: #f4f7fb;
  --muted: #64748b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #e8f4fc 0%, var(--paper) 45%);
}
.wrap { max-width: 440px; margin: 0 auto; padding: 28px 16px 48px; }
.card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.hero {
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy) 0%, #014a99 55%, var(--blue) 130%);
}
.hero-row { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 48px; height: 48px; border-radius: 12px;
  background: #fff; color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.eyebrow {
  margin: 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #b8e9ff;
}
h1 {
  margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
}
.amount { margin: 8px 0 0; font-size: 28px; font-weight: 700; }
.hero-copy { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.88); }
.ref-line { margin: 8px 0 0; font-size: 12px; color: #d7f4ff; }
.body { padding: 20px; }
label { display: block; margin-bottom: 14px; }
label span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
input {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1;
  border-radius: 12px; font: inherit; font-size: 16px;
}
small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.btn-primary {
  display: inline-flex; justify-content: center; align-items: center;
  width: 100%; padding: 14px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #00baf2, #0095c7);
  color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary.block { margin-top: 12px; }
.btn-ghost {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.hint.center { text-align: center; }
.err { color: #b91c1c; font-size: 13px; font-weight: 600; }
.result { padding: 0 20px 20px; }
.result-title { margin: 0; font-size: 13px; font-weight: 600; }
.url-box {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: #f1f5f9; font-size: 12px; word-break: break-all;
}
.row-btns { display: flex; gap: 8px; margin-top: 12px; }
.row-btns .btn-ghost, .row-btns a { flex: 1; text-align: center; }
.foot { text-align: center; padding: 16px; font-size: 12px; color: var(--muted); }
.tabs { display: flex; border-bottom: 1px solid #e2e8f0; }
.tab {
  flex: 1; padding: 12px; border: 0; background: transparent;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tab.active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--blue); }
.section-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  border: 1px solid #e2e8f0; border-radius: 12px;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.app-icon {
  width: 32px; height: 32px; border-radius: 8px; color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.app-icon.phonepe { background: #5f259f; }
.app-icon.paytm { background: #00baf2; color: #002e6e; }
.or { text-align: center; margin: 16px 0; color: var(--muted); font-size: 12px; }
.vpa-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px;
}
.vpa-row code { flex: 1; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.btn-mini {
  border: 0; background: #e2e8f0; border-radius: 8px;
  padding: 6px 10px; font: inherit; font-weight: 600; cursor: pointer;
}
.qr-wrap {
  display: flex; justify-content: center; padding: 12px;
  border: 1px solid #e2e8f0; border-radius: 16px; background: #fff;
}
.qr-wrap img, .qr-wrap canvas { display: block; margin: 0 auto; }
.meta { margin: 0 20px 16px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; font-size: 12px; }
.meta div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.meta span { color: #94a3b8; }
.meta strong { font-weight: 600; color: #334155; text-align: right; word-break: break-all; }
.hero-upi {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #eef2f6;
}
.hero-upi .eyebrow { color: var(--muted); }
.hero-upi h1 { color: var(--ink); font-size: 18px; font-weight: 600; }
.hero-upi .amount { color: var(--ink); font-size: 32px; }
.hero-upi .ref-line { color: var(--muted); }
.upi-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 10px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; color: #097939;
}
.logo-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-wrap img { width: 26px; height: 26px; display: block; }
.logo-wrap.pe { background: #5f259f; }
.logo-wrap.pe img { filter: brightness(0) invert(1); }
.logo-wrap.pt { background: #fff; border: 1px solid #e2e8f0; }
.logo-wrap.pt img { width: 30px; height: 30px; }
.apps { margin-bottom: 14px; }
.app { min-height: 64px; font-size: 15px; }
#chromeOpen[hidden] { display: none !important; }
.field-label {
  margin: 4px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.vpa-row + .field-label { margin-top: 14px; }
.is-off { display: none !important; }
