:root {
  --green: #15c978;
  --green-dark: #078b55;
  --ink: #06110e;
  --muted: #68746f;
  --line: rgba(7, 28, 23, 0.12);
  --soft: #f5faf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f6fbf9 0%, #ffffff 50%, #f4faf8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar,
.main-nav,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar,
.main-nav {
  color: #fff;
  background: #010806;
  box-shadow: 0 0 0 100vmax #010806;
  clip-path: inset(0 -100vmax);
}

.topbar {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 0.92;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  box-shadow: 0 0 24px rgba(21, 201, 120, 0.3);
  font-size: 13px;
}

.search {
  display: flex;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.search button {
  display: grid;
  width: 58px;
  border: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.quick-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-actions a,
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.quick-actions a.active::after,
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(21, 201, 120, 0.6);
}

.main-nav {
  display: flex;
  gap: 54px;
  height: 58px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.active {
  color: var(--green);
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-icon] svg {
  width: 20px;
  height: 20px;
}

.transfer-hero {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 28px;
  align-items: center;
  min-height: 270px;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 32px;
  background: #010806;
  box-shadow: 0 0 0 100vmax #010806;
  clip-path: inset(0 -100vmax);
}

.breadcrumbs {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.breadcrumbs svg {
  width: 16px;
  height: 16px;
}

.hero-copy {
  align-self: start;
  padding-top: 12px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0;
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.6;
}

.transfer-hero img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: screen;
  filter: saturate(1.2) contrast(1.14) brightness(1.06);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
}

.transfer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr);
  gap: 28px;
  margin: 0 auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 45, 37, 0.12);
}

.form-card,
.summary-card,
.promo-card,
.reason-card {
  border: 1px solid rgba(7, 28, 23, 0.08);
  border-radius: 8px;
  background: #fff;
}

.form-card {
  border: 0;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: -32px -32px 28px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  height: 72px;
  border: 0;
  color: #68746f;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

.tabs button.active {
  color: var(--green-dark);
}

.tabs button.active::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 0;
  height: 3px;
  background: var(--green-dark);
}

.transfer-form {
  display: grid;
  gap: 18px;
}

.transfer-form h2 {
  margin: 10px 0 4px;
  font-size: 21px;
}

.transfer-form label {
  display: grid;
  gap: 9px;
  color: #15221e;
  font-size: 14px;
  font-weight: 700;
}

.transfer-form input,
.transfer-form select,
.transfer-form textarea,
.money-input {
  width: 100%;
  border: 1px solid rgba(7, 28, 23, 0.1);
  border-radius: 8px;
  color: #10221d;
  background: #fff;
  box-shadow: 0 6px 18px rgba(8, 34, 28, 0.04);
}

.transfer-form input,
.transfer-form select,
.money-input {
  height: 48px;
}

.transfer-form input,
.transfer-form select,
.transfer-form textarea {
  padding: 0 16px;
  outline: 0;
}

.transfer-form textarea {
  min-height: 76px;
  padding-top: 14px;
  resize: vertical;
}

.money-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.money-input b {
  display: grid;
  width: 58px;
  height: 100%;
  place-items: center;
  color: #5d6964;
  background: #f7faf9;
}

.money-input input {
  border: 0;
  box-shadow: none;
}

.notice,
.security-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  color: #13332a;
  background: #f0faf6;
}

.notice svg,
.security-note svg {
  color: var(--green-dark);
  width: 28px;
  height: 28px;
}

.notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.submit-btn {
  height: 58px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 16px 34px rgba(7, 139, 85, 0.24);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.summary-card,
.promo-card,
.reason-card {
  padding: 24px;
  background: #fafdfc;
}

.summary-card h2,
.promo-card h2,
.reason-card h2 {
  margin: 0 0 22px;
  font-size: 20px;
}

.summary-card dl {
  display: grid;
  gap: 20px;
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.summary-card dt {
  color: #5f6c67;
  font-size: 13px;
}

.summary-card dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.summary-total {
  display: grid;
  gap: 14px;
}

.summary-total span,
.summary-total strong {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-total strong {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-total strong b {
  color: var(--green-dark);
  font-size: 20px;
}

.promo-card {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 50%, rgba(21, 201, 120, 0.16), transparent 12rem),
    #f5fbf8;
}

.promo-card span,
.reason-card span {
  color: var(--green-dark);
}

.promo-card p {
  color: var(--muted);
  line-height: 1.55;
}

.promo-card h2 {
  color: var(--ink);
}

.promo-phone {
  display: grid;
  height: 120px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.14);
}

.promo-phone svg {
  width: 76px;
  height: 76px;
}

.reason-card article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
}

.reason-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bank-strip {
  grid-column: 1 / -1;
  padding-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 900;
}

.section-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.section-head a {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.bank-grid span,
.bank-grid button {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(7, 28, 23, 0.09);
  border-radius: 8px;
  color: #114437;
  background: #fff;
  box-shadow: 0 8px 22px rgba(8, 34, 28, 0.06);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.bank-grid button {
  font: inherit;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

/* Warna formal per bank */
.bank-grid button[data-footer-bank="BCA"]       { color: #005baa; border-color: #cce0f5; background: #f0f7ff; }
.bank-grid button[data-footer-bank="Mandiri"]   { color: #003d7a; border-color: #b8d4f0; background: #edf5ff; }
.bank-grid button[data-footer-bank="BRI"]       { color: #0055a5; border-color: #b8d1f0; background: #eef5ff; }
.bank-grid button[data-footer-bank="BNI"]       { color: #e87700; border-color: #fce0b0; background: #fff8ec; }
.bank-grid button[data-footer-bank="CIMB Niaga"]{ color: #b3000e; border-color: #f5c0c4; background: #fff0f1; }
.bank-grid button[data-footer-bank="BSI"]       { color: #006c3b; border-color: #b0ddc8; background: #edf9f3; }
.bank-grid button[data-footer-bank="PermataBank"]{ color: #9b0060; border-color: #f0b8d8; background: #fff0f8; }

.bank-grid button:hover,
.bank-grid button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 159, 99, 0.22);
}

.security-note {
  justify-content: center;
  margin: 22px 0 0;
  font-size: 13px;
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 42px;
  width: 100%;
  margin-top: 34px;
  padding: 46px max(20px, calc((100vw - 1180px) / 2)) 30px;
  color: #fff;
  background: #010806;
}

.footer h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.footer a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer button {
  display: block;
  width: 142px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: #fff;
  background: transparent;
  text-align: left;
  line-height: 1.1;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
}

.visa {
  font-style: italic;
}

.mastercard {
  min-width: 38px;
}

.mastercard i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.mastercard i:first-child {
  background: #ff5f35;
  margin-right: -6px;
}

.mastercard i:last-child {
  background: #ffc340;
  mix-blend-mode: screen;
}

.bca {
  gap: 5px;
}

.bca i {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: #1d7cd8;
}

.mandiri {
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.mandiri i {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: #ffd44a;
}

.dana {
  padding: 4px 8px;
  border-radius: 6px;
  background: #1288e8;
  font-size: 12px;
}

.linkaja {
  gap: 4px;
}

.linkaja i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7262e;
}

@media (max-width: 1020px) {
  body {
    background: linear-gradient(180deg, #f6fbf9 0%, #ffffff 50%, #f4faf8 100%);
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    font-size: 12px;
  }

  .quick-actions a {
    justify-content: center;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    font-size: 12px;
  }

  .main-nav a {
    justify-content: center;
    text-align: center;
  }

  .transfer-hero {
    grid-template-columns: 1fr;
  }

  .transfer-hero img {
    display: none;
  }

  .transfer-panel {
    grid-template-columns: 1fr;
  }

  .bank-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .topbar,
  .main-nav,
  main {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .search {
    height: 44px;
  }

  .search input {
    padding: 0 14px;
    font-size: 14px;
  }

  .quick-actions,
  .main-nav {
    font-size: 11px;
  }

  .transfer-hero {
    min-height: 250px;
  }

  .transfer-panel {
    padding: 18px;
    border-radius: 10px;
  }

  .tabs {
    margin: -18px -18px 22px;
  }

  .tabs button {
    height: 62px;
    font-size: 13px;
  }

  .promo-card,
  .section-head,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .promo-card {
    display: block;
  }

  .promo-phone {
    margin-top: 18px;
  }

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

  .footer {
    grid-template-columns: 1fr;
    padding-right: 12px;
    padding-left: 12px;
  }
}
.bank-picker{display:grid;gap:9px;font-weight:800}.recipient-bank-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.recipient-bank-grid button{min-height:46px;padding:7px;border:1px solid rgba(7,28,23,.12);border-radius:8px;color:#3d4c48;background:#fff;font-weight:900;cursor:pointer}.recipient-bank-grid button:hover,.recipient-bank-grid button.active{color:#fff;border-color:#0f9f63;background:#0f9f63}.recipient-bank-grid .more-bank{font-size:21px}.other-bank-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(3,18,15,.68)}.other-bank-modal[hidden]{display:none}.other-bank-modal>section{width:min(460px,100%);padding:22px;border-radius:13px;background:#fff;box-shadow:0 26px 70px rgba(0,0,0,.25)}.other-bank-modal header,.other-bank-modal footer{display:flex;justify-content:space-between;gap:12px}.other-bank-modal h2,.other-bank-modal p{margin:0}.other-bank-modal p{margin-top:5px;color:#66746f}.other-bank-modal header>button{width:34px;height:34px;border:0;border-radius:50%;background:#eef2f1;font-size:23px}.other-bank-modal label{display:grid;gap:8px;margin-top:20px;font-weight:800}.other-bank-modal input{height:46px;padding:0 12px;border:1px solid rgba(7,28,23,.12);border-radius:8px}.other-bank-modal footer{justify-content:flex-end;margin-top:20px}.other-bank-modal footer button{height:40px;padding:0 16px;border:1px solid rgba(7,28,23,.12);border-radius:7px;background:#fff;font-weight:900}.other-bank-modal #saveOtherBank{color:#fff;border-color:#0f9f63;background:#0f9f63}.other-bank-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.other-bank-option{padding:7px 12px;border:1px solid rgba(7,28,23,.12);border-radius:7px;background:#f8fbf9;color:#1a2e28;font:inherit;font-weight:700;font-size:13px;cursor:pointer}.other-bank-option:hover{border-color:#0f9f63;background:#eef9f4;color:#0f9f63}@media(max-width:760px){.recipient-bank-grid{grid-template-columns:repeat(2,1fr)}}
.bank-recipient-modal{position:fixed;inset:0;z-index:101;display:grid;place-items:center;padding:20px;background:rgba(3,18,15,.7);backdrop-filter:blur(3px)}.bank-recipient-modal[hidden]{display:none}.bank-recipient-modal>section{width:min(500px,100%);padding:23px;border-radius:14px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28)}.bank-recipient-modal header{display:flex;justify-content:space-between;gap:15px}.bank-recipient-modal h2,.bank-recipient-modal p{margin:0}.bank-recipient-modal p{margin-top:5px;color:#66746f}.bank-recipient-modal header>button{width:35px;height:35px;border:0;border-radius:50%;background:#edf2f0;font-size:24px}.bank-recipient-modal form{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}.bank-recipient-modal label{display:grid;gap:7px;font-weight:800}.bank-recipient-modal label:first-child,.bank-recipient-modal label:last-of-type{grid-column:1/3}.bank-recipient-modal input{width:100%;height:45px;padding:0 12px;border:1px solid rgba(7,28,23,.14);border-radius:8px}.bank-recipient-modal input[readonly]{color:#0f9f63;background:#eef9f4;font-weight:900}.bank-recipient-modal footer{grid-column:1/3;display:flex;justify-content:flex-end;gap:10px;margin-top:5px;padding-top:17px;border-top:1px solid rgba(7,28,23,.1)}.bank-recipient-modal footer button{height:41px;padding:0 17px;border:1px solid rgba(7,28,23,.13);border-radius:7px;background:#fff;font-weight:900}.bank-recipient-modal footer .save-recipient{color:#fff;border-color:#0f9f63;background:#0f9f63}@media(max-width:560px){.bank-recipient-modal form{grid-template-columns:1fr}.bank-recipient-modal label:first-child,.bank-recipient-modal label:last-of-type,.bank-recipient-modal footer{grid-column:1}}
.transfer-confirm-modal,
.invoice-result-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 14, 11, 0.78);
  backdrop-filter: blur(6px);
}

.transfer-confirm-modal[hidden],
.invoice-result-modal[hidden] {
  display: none !important;
}

.transfer-confirm-modal > section {
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.transfer-confirm-modal header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.transfer-confirm-modal h2,
.transfer-confirm-modal p {
  margin: 0;
}

.transfer-confirm-modal header p {
  margin-top: 5px;
  color: #66746f;
}

.transfer-confirm-modal header > button {
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #edf2f0;
  font-size: 24px;
  cursor: pointer;
}

.confirm-invoice {
  margin: 18px 0 12px;
  padding: 11px;
  border: 1px dashed #0f9f63;
  border-radius: 7px;
  color: #0f9f63;
  background: #eef9f4;
  text-align: center;
  font-weight: 900;
}

.confirm-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid rgba(7, 28, 23, 0.1);
  border-radius: 9px;
  overflow: hidden;
}

.confirm-data div {
  padding: 12px;
  border-bottom: 1px solid rgba(7, 28, 23, 0.08);
}

.confirm-data dt {
  color: #68746f;
  font-size: 12px;
}

.confirm-data dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.receipt-upload {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  font-weight: 900;
}

.receipt-upload input {
  padding: 11px;
  border: 1px dashed #9eb9af;
  border-radius: 8px;
  background: #f8fbfa;
}

.receipt-upload span {
  color: #68746f;
  font-size: 12px;
  font-weight: 500;
}

.receipt-preview {
  width: 100%;
  max-height: 220px;
  margin-top: 12px;
  object-fit: contain;
  border: 1px solid rgba(7, 28, 23, 0.1);
  border-radius: 8px;
  background: #f6f8f7;
}

.fraud-warning {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #f0d49b;
  border-radius: 7px;
  color: #805b15;
  background: #fff8e8;
  font-size: 13px;
}

.transfer-confirm-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.transfer-confirm-modal footer button {
  height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(7, 28, 23, 0.13);
  border-radius: 7px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.transfer-confirm-modal .send-verification {
  color: #fff;
  border-color: #0f9f63;
  background: #0f9f63;
}

/* ============================================================
   INVOICE RESULT & VERIFICATION ROOM MODAL
============================================================ */
.invoice-result-modal > section {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 26px 26px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f4;
  border-radius: 50%;
  font-size: 22px;
  color: #556560;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-icon:hover {
  background: #e2e8e6;
  color: #111;
}

/* Pending State */
.modal-state-view[hidden] {
  display: none !important;
}

#transferPendingView {
  text-align: center;
}

.pending-pulse-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pending-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  opacity: 0.8;
  animation: ringPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes ringPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.85); opacity: 0; }
}

.result-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
}

.result-subtext {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.5;
}

.invoice-id-box {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invoice-id-box span {
  font-size: 11.5px;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.invoice-id-box strong {
  font-size: 17px;
  color: #b45309;
  letter-spacing: 0.5px;
}

.live-checking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 22px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: liveBlink 1.4s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.pending-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-wa-resend {
  width: 100%;
  height: 44px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-wa-resend:hover {
  background: #15803d;
}

.btn-instant-verify {
  width: 100%;
  height: 40px;
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-instant-verify:hover {
  background: #0f9f63;
  color: #fff;
  border-color: #0f9f63;
}

.btn-modal-close {
  width: 100%;
  height: 38px;
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   STATE 2: VERIFIED & OFFICIAL E-INVOICE SHEET
============================================================ */
.verified-header-wrap {
  text-align: center;
  margin-bottom: 18px;
}

.verified-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.25);
}

.verified-title {
  font-size: 21px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
}

.verified-subtext {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Official Invoice Sheet Paper */
.official-invoice-sheet {
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}

.invoice-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed #e2e8f0;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-logo-mini {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #008a4b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

.brand-left strong {
  display: block;
  font-size: 13px;
  color: #111827;
  letter-spacing: 0.04em;
}

.brand-left span {
  font-size: 11px;
  color: #64748b;
}

.invoice-status-pill {
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.invoice-id-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 10px;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
}

.inv-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.invoice-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.inv-col strong {
  font-size: 13px;
  color: #1e293b;
  display: block;
}

.inv-small {
  font-size: 11.5px;
  color: #64748b;
  display: block;
}

.invoice-amount-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.amount-row {
  display: flex;
  justify-content: space-between;
  color: #475569;
}

.amount-row.total {
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  font-size: 14.5px;
  color: #0f172a;
}

.total-green {
  color: #008a4b;
  font-size: 16px;
  font-weight: 900;
}

.invoice-footer-note {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.verified-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-print-inv {
  height: 44px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-print-inv:hover {
  background: #1e293b;
}

.btn-wa-notify-success {
  height: 44px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wa-notify-success:hover {
  background: #15803d;
}

.btn-modal-done {
  grid-column: 1 / -1;
  height: 38px;
  background: #f1f5f9;
  color: #334155;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

.btn-modal-done:hover {
  background: #e2e8f0;
}

@media (max-width: 560px) {
  .invoice-details-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .verified-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Invoice Preview Box */
.invoice-preview-box {
  border: 1px solid #b6e8d0;
  border-radius: 10px;
  background: #f0fdf8;
  overflow: hidden;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ipb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #d4f5e7;
  color: #076b42;
  font-size: 13px;
  font-weight: 800;
}
.invoice-preview-box dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 12px 16px;
}
.invoice-preview-box dl div {
  padding: 6px 0;
  border-bottom: 1px solid rgba(7,28,23,.06);
}
.invoice-preview-box dt {
  color: #5f6c67;
  font-size: 11px;
  font-weight: 600;
}
.invoice-preview-box dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #0d2219;
}
.ipb-total {
  color: #078b55 !important;
}
.ipb-note {
  margin: 0;
  padding: 8px 16px;
  background: #e6f9f0;
  color: #076b42;
  font-size: 12px;
  border-top: 1px solid #b6e8d0;
}

/* Sender info row - 2 kolom berdampingan */
.sender-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sender-saved-note {
  margin: -8px 0 0;
  padding: 9px 14px;
  border-radius: 7px;
  background: #e8f9f0;
  color: #076b42;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #b6e8d0;
}

@media (max-width: 560px) {
  .sender-info-row {
    grid-template-columns: 1fr;
  }
}
