/* Trang nạp thẻ — layout 2 cột, nền bg-donate nhìn rõ, tông sáng */

.site-napthe-page {
  margin: 0;
  min-height: 100vh;
  color: #1a1a1a;
  background: #e8edf3;
}

.site-napthe-page #header,
.site-napthe-page #footer {
  position: relative;
  z-index: 2;
}

/* FAB menu mobile: không ép relative/z-index thấp — dùng layer cố định từ site-layout-shared */
.site-napthe-page .mobile-nav-fab {
  position: fixed;
}

/*
 * Header: gần home — top-light + bottom-sep rõ nét; đệm đáy vừa phải (không full 170px).
 * Shell: min-height cao + cùng ảnh top-light / bottom-sep trong nền (dưới gradient), nội dung vẫn đọc được.
 */
.site-napthe-page #header {
  padding-bottom: 118px;
  overflow: hidden;
}

.site-napthe-page #header .top-light {
  height: clamp(200px, 30vw, 285px);
  opacity: 0.95;
  pointer-events: none;
}

.site-napthe-page #header .bottom-sep {
  bottom: -72px;
  left: 0;
  height: 200px;
  width: 100%;
  background-size: 100% 100%;
  background-position: center bottom;
  pointer-events: none;
}

/* Nền: donate + họa tiết giống header (lặp nhẹ trong vùng nạp thẻ) */
.site-napthe-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: max(68vh, 520px);
  background: #cbd5e1 url("../images/bg-donate.webp") center center / cover no-repeat;
}

/* Gradient + top-light + bottom-sep: lớp trên cùng là gradient mờ → vẫn lộ sóng / ánh sáng */
.site-napthe-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.38) 38%,
      rgba(255, 255, 255, 0.55) 58%,
      rgba(248, 250, 252, 0.88) 100%
    ),
    url("../images/bottom-sep-white.svg"),
    url("../images/head-top-light.webp");
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-size:
    auto,
    100% min(112px, 16vw),
    auto min(150px, 26vw);
  background-position:
    0 0,
    center bottom,
    top center;
}

.site-napthe-main {
  position: relative;
  z-index: 1;
  min-height: max(52vh, 440px);
  padding: 1.25rem 0 3.75rem;
}

.site-napthe-page-inner {
  max-width: 1100px;
}

/*
 * Intro trong #header, đè lên bottom-sep (sep z-index 120 — style-less).
 * .topline z-index 200 — menu luôn trên intro.
 */
.site-napthe-page #header .site-napthe-intro--header-overlap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 125;
  margin: 0;
  padding: 0 0 6px;
  border: none;
  pointer-events: none;
}

.site-napthe-page #header .site-napthe-intro--header-overlap .site-napthe-intro__container {
  pointer-events: auto;
}

.site-napthe-intro__container {
  max-width: 1100px;
}

.site-napthe-breadcrumb {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.site-napthe-breadcrumb a {
  color: #c2410c;
  text-decoration: none;
}

.site-napthe-breadcrumb a:hover {
  text-decoration: underline;
}

.site-napthe-breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.site-napthe-breadcrumb__here {
  color: #334155;
}

.site-napthe-intro__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .site-napthe-intro__top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
  }
}

.site-napthe-hero__title {
  font-family: "Akrobat", sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.15;
}

.site-napthe-page #header .site-napthe-intro--header-overlap .site-napthe-hero__title {
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.9);
}

.site-napthe-lead {
  margin: 0.5rem 0 0;
  max-width: 52rem;
  line-height: 1.5;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
}

.site-napthe-page #header .site-napthe-intro--header-overlap .site-napthe-lead {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.site-napthe-rate {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(217, 119, 6, 0.5);
  color: #92400e;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.18);
  flex-shrink: 0;
}

.site-napthe-rate i {
  color: #d97706;
  font-size: 0.85rem;
}

/* Bước 1: chọn Nạp thẻ cào hoặc Chuyển khoản (chỉ khi đã đăng nhập) */
.site-napthe-card-layout {
  min-width: 0;
}

.site-napthe-method-pick {
  --napthe-pick-media-height: 12rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  overflow: visible;
}

@media (min-width: 480px) {
  .site-napthe-method-pick {
    --napthe-pick-media-height: 13rem;
  }
}

@media (min-width: 640px) {
  .site-napthe-method-pick {
    --napthe-pick-media-height: 14rem;
  }
}

.site-napthe-method-pick__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  overflow: visible;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .site-napthe-method-pick__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.site-napthe-method-pick__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0.75rem 0.75rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  font-family: "Akrobat", sans-serif;
  color: #0f172a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
  overflow: visible;
}

/* +20% — đè góc trên card (cả viền + góc khung ảnh), nghiêng, gọn như dán/đeo */
.site-napthe-method-pick__badge {
  position: absolute;
  z-index: 6;
  top: 0.28rem;
  left: 0.38rem;
  padding: 0.3rem 0.72rem 0.36rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 3px 4px 3px 3px;
  /* Bóng vừa, đè lên nền trắng + khung xám phía dưới */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12) inset, 0 2px 8px rgba(0, 0, 0, 0.18);
  /* Chốt góc dưới–phải của tem ≈ lên cạnh thẻ; nghiêng, không trôi hẳn ra ngoài lưới */
  /* Trượt xuống 1 tẹo để đè mép dưới lên cạnh trên khung ảnh (đeo góc) */
  transform: translateY(0.3rem) rotate(-19deg) skewX(-6deg);
  transform-origin: 88% 98%;
  pointer-events: none;
}

.site-napthe-method-pick__tile:hover {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* Vùng media cố định chiều cao (2 ô cùng hàng cùng độ cao) */
.site-napthe-method-pick__tile .site-napthe-method-pick__img-outer {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  flex: 0 0 var(--napthe-pick-media-height, 12rem);
  height: var(--napthe-pick-media-height, 12rem);
  min-height: var(--napthe-pick-media-height, 12rem);
  max-height: var(--napthe-pick-media-height, 12rem);
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  line-height: 0;
  box-sizing: border-box;
  aspect-ratio: unset;
}

/* Fallback nếu không nằm trong tile (an toàn) */
.site-napthe-method-pick__img-outer {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  line-height: 0;
  aspect-ratio: 360 / 220;
  box-sizing: border-box;
}

/* Logo nhà mạng: 4 + 3 trong khung cao cố định, căn giữa theo cả 2 trục */
.site-napthe-method-pick__img-outer--nhamang {
  --nhamang-gap: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  row-gap: var(--nhamang-gap);
  column-gap: var(--nhamang-gap);
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.35rem;
  line-height: 0;
  overflow: hidden;
}

@media (min-width: 480px) {
  .site-napthe-method-pick__img-outer--nhamang {
    --nhamang-gap: 0.45rem;
  }
}

/* Mỗi ô 1/4 hàng, chiều cao logo theo 2 dòng trong khung cố định (không phụ thuộc intrinsic ảnh) */
.site-napthe-method-pick__img-outer--nhamang .site-napthe-method-pick__img {
  display: block;
  flex: 0 0 calc((100% - 3 * var(--nhamang-gap)) / 4);
  width: calc((100% - 3 * var(--nhamang-gap)) / 4);
  max-width: none;
  height: auto;
  max-height: calc(
    (var(--napthe-pick-media-height, 12rem) - 2 * 0.5rem - 1 * var(--nhamang-gap)) / 2
  );
  min-height: 0;
  margin: 0;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
}

/* VietQR: căn giữa trong cùng khung cao với cột bên cạnh */
.site-napthe-method-pick__tile .site-napthe-method-pick__img-outer--qr {
  align-items: stretch;
  justify-content: center;
  margin: 0;
  min-height: 0;
}

/* Stage: Lottie (qrcode.json) rồi tới ảnh PNG, cùng kích thước vùng */
.site-napthe-qr-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.site-napthe-qr-lottie,
.site-napthe-qr-stage .site-napthe-qr-png {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  box-sizing: border-box;
  padding: 0.45rem;
  pointer-events: none;
}

.site-napthe-qr-lottie {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.site-napthe-qr-lottie svg {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
}

/* Trước khi bước PNG: ảnh trùm nhưng ẩn; sau khi Lottie hết: hiện ảnh + nhịp */
.site-napthe-qr-stage:not(.site-napthe-qr-stage--png) .site-napthe-qr-png {
  opacity: 0;
  transform: scale(0.88);
  z-index: 0;
  visibility: hidden;
}

.site-napthe-qr-stage--png .site-napthe-qr-lottie {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}

.site-napthe-qr-stage--png .site-napthe-qr-png {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  padding: 0.5rem;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1);
  animation: siteNaptheQrBreathe 2.3s ease-in-out 0.15s infinite;
}

.site-napthe-qr-stage--static .site-napthe-qr-png {
  animation: none;
}

/* VietQR: fit trong khung, không vượt; khung từ tile parent */
.site-napthe-method-pick__img-outer--qr .site-napthe-qr-png,
.site-napthe-method-pick__img-outer--qr .site-napthe-method-pick__img {
  width: auto;
  height: auto;
}

.site-napthe-method-pick__caption {
  display: block;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.75rem;
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  align-self: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Panel chuyển khoản — 2 cột: form | bảng giá + hướng dẫn + QR */
.site-napthe-bank-panel {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 1.25rem;
}

.site-napthe-bank-panel__box {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  border-top: 4px solid #f59e0b;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 22px 50px rgba(15, 23, 42, 0.1);
  padding: 1.35rem 1.2rem 1.5rem;
  text-align: center;
  font-family: "Akrobat", sans-serif;
}

.site-napthe-bank-panel__box--split {
  text-align: left;
  padding: 1.25rem 1.1rem 1.35rem;
}

@media (min-width: 600px) {
  .site-napthe-bank-panel__box--split {
    padding: 1.4rem 1.35rem 1.5rem;
  }
}

.site-napthe-bank-layout {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 900px) {
  .site-napthe-bank-layout {
    grid-template-columns: minmax(260px, 380px) minmax(280px, 1fr);
    gap: 1.5rem 2rem;
  }
}

.site-napthe-bank-col--form {
  min-width: 0;
}

.site-napthe-bank-col--side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 900px) {
  .site-napthe-bank-col--side {
    position: sticky;
    top: 0.75rem;
  }
}

.site-napthe-bank-side__card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.85rem 0.9rem 0.95rem;
}

.site-napthe-bank-side__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.site-napthe-bank-side__rule {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}

.site-napthe-bank-pricing__wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

.site-napthe-bank-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.site-napthe-bank-pricing-table thead th {
  text-align: left;
  padding: 0.45rem 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  color: #64748b;
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-napthe-bank-pricing-table tbody td {
  padding: 0.38rem 0.6rem;
  color: #334155;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.site-napthe-bank-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.site-napthe-bank-pricing-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.9);
}

.site-napthe-bank-pricing-table tbody td:last-child {
  font-weight: 800;
  color: #c2410c;
  text-align: right;
}

.site-napthe-bank-guide {
  margin: 0;
  padding: 0.65rem 0.8rem 0.75rem 1.35rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
  background: rgba(251, 191, 36, 0.12);
  border-radius: 12px;
  border: 1px dashed rgba(234, 88, 12, 0.4);
}

.site-napthe-bank-guide li {
  margin: 0.3rem 0;
}

.site-napthe-bank-invoice__heading {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.site-napthe-bank-panel__title {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.site-napthe-bank-panel__box--split .site-napthe-bank-panel__title {
  text-align: left;
  margin-bottom: 0.75rem;
}

.site-napthe-bank-panel__lead {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.site-napthe-bank-kicker {
  color: #d97706;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-napthe-bank-create {
  text-align: left;
  max-width: none;
  margin: 0 0 0.75rem;
}

.site-napthe-bank-create__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.site-napthe-bank-create__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.site-napthe-bank-create__row--stack {
  flex-direction: column;
  align-items: stretch;
  align-content: flex-start;
  gap: 0.35rem;
}

.site-napthe-bank-col--form .site-napthe-bank-invoice-btn {
  width: 100%;
  padding: 0.6rem 1rem;
}

/* flex-grow ở wrap gây kéo dọc cả cột, đẩy nút tạo hóa đơn tách xa khỏi ô tiền */
.site-napthe-bank-amount-wrap {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.site-napthe-bank-create__row .form-control.site-napthe-bank-vnd {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

.site-napthe-bank-vnd-hint {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a16207;
  line-height: 1.4;
}

/* Logo VietQR phía trên nhãn “Số tiền nạp” — căn giữa, kích thước lớn */
.site-napthe-bank-vietqr-badge {
  margin: 0 0 0.55rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-napthe-bank-vietqr-badge__img {
  max-height: 5.5rem;
  width: auto;
  max-width: min(100%, 22rem);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

@media (min-width: 480px) {
  .site-napthe-bank-vietqr-badge__img {
    max-height: 6.5rem;
    max-width: min(100%, 26rem);
  }
}

.site-napthe-bank-invoice-btn {
  flex: 0 0 auto;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffc107 0%, #e6ac00 100%);
  color: #1a1200;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.38);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.site-napthe-bank-invoice-btn:hover:not(:disabled) {
  filter: brightness(1.03);
}

.site-napthe-bank-invoice-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.site-napthe-bank-invoice-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.site-napthe-bank-panel__help {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.site-napthe-bank-invoice-warn {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #0f172a;
}

.site-napthe-bank-invoice-warn--err {
  color: #b91c1c;
  font-weight: 600;
}

.site-napthe-bank-pending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(234, 179, 8, 0.45);
}
.site-napthe-bank-pending__text {
  margin: 0;
  font-size: 0.9rem;
  color: #854d0e;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.site-napthe-bank-pending__time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #a16207;
}
.site-napthe-bank-pending__cancel {
  flex: 0 0 auto;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(202, 138, 4, 0.75);
  border-radius: 8px;
  background: #fff;
  color: #854d0e;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-napthe-bank-pending__cancel:hover:not(:disabled) {
  background: rgba(254, 243, 199, 0.85);
  color: #713f12;
  border-color: #ca8a04;
}
.site-napthe-bank-pending__cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.site-napthe-bank-side__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.site-napthe-bank-invoice--result {
  text-align: left;
  margin: 0;
  padding: 0;
  border: none;
}

/* Desktop: thông tin STK cùng hàng với mã QR */
.site-napthe-bank-invoice__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 899px) {
  .site-napthe-bank-invoice__main .site-napthe-bank-qr-static {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 900px) {
  .site-napthe-bank-invoice__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    gap: 1rem 1.5rem;
    align-items: start;
  }

  .site-napthe-bank-invoice__main .site-napthe-bank-qr-static {
    margin: 0 0 0 auto;
  }
}

.site-napthe-bank-invoice__details p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}

.site-napthe-bank-invoice__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.4rem;
}

.site-napthe-bank-invoice__row span:first-child {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.site-napthe-bank-invoice__row strong {
  text-align: right;
  color: #0f172a;
  font-weight: 800;
  word-break: break-word;
}

.site-napthe-bank-invoice__row--code {
  flex-direction: column;
  align-items: flex-start;
  border-bottom: none;
  padding-top: 0.35rem;
}

.site-napthe-bank-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  width: 100%;
  margin-top: 0.25rem;
}

.site-napthe-bank-code code {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #b45309;
  background: rgba(251, 191, 36, 0.2);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  word-break: break-all;
}

.site-napthe-bank-copy {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(202, 138, 4, 0.55);
  border-radius: 8px;
  background: #fff;
  color: #854d0e;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.site-napthe-bank-copy:hover {
  background: rgba(251, 191, 36, 0.2);
}

/* QR hóa đơn CK — chỉ ảnh tĩnh, không Lottie */
.site-napthe-bank-invoice__main .site-napthe-bank-panel__qr.site-napthe-bank-qr-static {
  margin-top: 0;
}

.site-napthe-bank-panel__qr.site-napthe-bank-qr-static {
  position: static;
  max-width: 260px;
  margin: 0.35rem 0 0;
  padding: 0.45rem;
  aspect-ratio: auto;
  line-height: 0;
  background: #f8fafc;
  border-radius: 12px;
}

.site-napthe-bank-invoice-qr__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
  border-radius: 8px;
  object-fit: contain;
}

.site-napthe-bank-panel__note--after-qr {
  margin: 0.6rem 0 0;
  text-align: left;
  max-width: none;
}

.site-napthe-bank-panel__qr {
  max-width: 400px;
  margin: 0 auto 0.9rem;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.5rem;
  line-height: 0;
  position: relative;
  aspect-ratio: 1;
}

.site-napthe-bank-panel__qr .site-napthe-qr-stage {
  position: absolute;
  inset: 0.5rem;
  width: auto;
  height: auto;
}

.site-napthe-bank-panel__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

.site-napthe-bank-panel__qr .site-napthe-bank-panel__img.site-napthe-qr-png {
  max-width: 100%;
  max-height: 100%;
}

@keyframes siteNaptheQrBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.site-napthe-bank-panel__note {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.site-napthe-bank-col--form .site-napthe-bank-panel__back {
  margin-top: 0.5rem;
}

.site-napthe-bank-panel__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.25);
  color: #9a3412;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-napthe-bank-panel__back:hover {
  background: rgba(251, 191, 36, 0.4);
  color: #7c2d12;
}

/* Quay lại từ form nạp thẻ */
.site-napthe-pickback {
  margin: 0 0 0.75rem;
  padding: 0;
  text-align: left;
}

.site-napthe-pickback__btn {
  padding: 0;
  border: none;
  background: none;
  color: #c2410c;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-napthe-pickback__btn:hover {
  color: #9a3412;
}

/* Grid: trái form nạp — phải bảng giá */
.site-napthe-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .site-napthe-layout {
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
    gap: 2rem 2.25rem;
  }

  .site-napthe-aside--pricing {
    position: sticky;
    top: 1rem;
  }

  /* Lịch sử: một cột, nội dung rộng hơn, ẩn bảng quy đổi */
  .site-napthe-page.site-napthe--history-tab .site-napthe-page-inner {
    max-width: 1280px;
  }

  .site-napthe-layout--history {
    grid-template-columns: 1fr;
  }
}

.site-napthe-layout--history .site-napthe-aside--pricing {
  display: none;
}

.site-napthe-aside--form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.site-napthe-aside--pricing {
  position: relative;
  min-width: 0;
}

/* Bảng quy đổi mệnh giá */
.site-napthe-pricing {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  border-top: 4px solid #f59e0b;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 22px 50px rgba(15, 23, 42, 0.1);
  padding: 1.35rem 1.25rem 1.15rem;
  overflow: hidden;
}

@media (min-width: 480px) {
  .site-napthe-pricing {
    padding: 1.5rem 1.4rem 1.25rem;
  }
}

.site-napthe-pricing__head {
  margin-bottom: 0.85rem;
}

.site-napthe-pricing__title {
  margin: 0 0 0.5rem;
  font-family: "Akrobat", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-napthe-pricing__title i {
  color: #d97706;
  font-size: 1rem;
}

.site-napthe-pricing__rule {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
  font-weight: 600;
}

.site-napthe-pricing__rule strong {
  color: #0f172a;
}

.site-napthe-pricing__table-wrap {
  margin: 0 -0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.site-napthe-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 260px;
}

.site-napthe-pricing-table thead th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 100%);
  color: #9a3412;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  border-bottom: 2px solid #fdba74;
}

.site-napthe-pricing-table thead th:last-child,
.site-napthe-pricing-table tbody td:last-child {
  text-align: right;
}

.site-napthe-pricing-table tbody td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
  background: #fff;
}

.site-napthe-pricing-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.site-napthe-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.site-napthe-pricing-table tbody tr.is-selected td {
  background: #fef9c3 !important;
  box-shadow: inset 3px 0 0 0 #eab308;
}

.site-napthe-pricing-table__coin {
  font-weight: 800;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.site-napthe-pricing__foot {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

.site-napthe-form-wrap {
  width: 100%;
}

.site-napthe-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  border-top: 4px solid #f59e0b;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 22px 50px rgba(15, 23, 42, 0.12);
  padding: 1.6rem 1.35rem 1.85rem;
}

@media (min-width: 480px) {
  .site-napthe-card {
    padding: 1.85rem 1.75rem 2rem;
  }
}

.site-napthe-card__title {
  color: #0f172a;
  font-family: "Akrobat", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.site-napthe-card__title i {
  color: #d97706;
}

/* Tab: Thông tin thẻ | Lịch sử nạp thẻ */
.site-napthe-card__head--tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.site-napthe-card__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0.2rem;
  border: none;
  background: transparent;
  font-family: "Akrobat", sans-serif;
  font-size: clamp(0.88rem, 2.4vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.15s ease, font-size 0.15s ease, font-weight 0.15s ease;
}

.site-napthe-card__tab i {
  font-size: 0.95em;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.site-napthe-card__tab:hover,
.site-napthe-card__tab:focus {
  color: #334155;
  outline: none;
}

.site-napthe-card__tab:hover i,
.site-napthe-card__tab:focus i {
  color: #64748b;
}

.site-napthe-card__tab.is-active {
  color: #0f172a;
  font-size: clamp(1.05rem, 3.1vw, 1.38rem);
  font-weight: 800;
}

.site-napthe-card__tab.is-active i {
  color: #d97706;
  font-size: 1em;
}

/* Tab "Quay lại" khi đang xem Lịch sử: đỏ, gạch chân (tab không active) */
.site-napthe-card__tab.site-napthe-card__tab--backlink {
  color: #dc2626;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: #dc2626;
  font-size: clamp(0.88rem, 2.4vw, 1.02rem);
  font-weight: 800;
}

.site-napthe-card__tab.site-napthe-card__tab--backlink i {
  color: #dc2626;
}

.site-napthe-card__tab.site-napthe-card__tab--backlink:hover,
.site-napthe-card__tab.site-napthe-card__tab--backlink:focus {
  color: #b91c1c;
  text-decoration-color: #b91c1c;
  outline: none;
}

.site-napthe-card__tab.site-napthe-card__tab--backlink:hover i,
.site-napthe-card__tab.site-napthe-card__tab--backlink:focus i {
  color: #b91c1c;
}

.site-napthe-card__panel[hidden] {
  display: none !important;
}

/* Lịch sử nạp thẻ */
.napthe-history-banner {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.napthe-history-banner[hidden] {
  display: none !important;
}

.napthe-history-banner--loading {
  color: #475569;
}

.napthe-history-banner--empty {
  color: #64748b;
}

.napthe-history-banner--error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.napthe-history-table-wrap {
  margin: 0 -0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.napthe-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 520px;
}

.site-napthe-layout--history .napthe-history-table {
  min-width: 1000px;
}

.napthe-history-table thead th {
  text-align: left;
  padding: 0.6rem 0.65rem;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.napthe-history-table tbody td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-weight: 600;
  vertical-align: middle;
}

.napthe-history-table tbody tr:last-child td {
  border-bottom: none;
}

.napthe-history-table__num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.napthe-history-table__mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.78rem;
}

.napthe-history-table__code {
  white-space: normal;
  word-break: break-all;
  line-height: 1.4;
  min-width: 9.5rem;
}

.napthe-history-table__time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.78rem;
}

.napthe-history-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.napthe-history-badge--success {
  color: #166534;
  border: 1px solid #86efac;
  background: #f0fdf4;
}

.napthe-history-badge--failed {
  color: #991b1b;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.napthe-history-badge--pending {
  color: #92400e;
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.napthe-history-pagination {
  margin-top: 1rem;
}

.napthe-history-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.napthe-history-pagebtn {
  padding: 0.45rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.napthe-history-pagebtn:hover:not(:disabled) {
  border-color: #94a3b8;
  color: #0f172a;
}

.napthe-history-pagebtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.napthe-history-pageinfo {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.site-napthe-field {
  margin-bottom: 1.1rem;
}

.site-napthe-field label,
.site-napthe-field .site-napthe-label {
  display: block;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-napthe-field .form-control,
.site-napthe-field select.form-control {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  height: auto;
}

/* Select: tránh chữ bị cắt (Bootstrap height / font Akrobat metrics) */
.site-napthe-field select.form-control {
  min-height: 3rem;
  height: auto !important;
  line-height: 1.5;
  padding: 0.75rem 2.25rem 0.75rem 0.85rem;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  vertical-align: middle;
}

.site-napthe-field .form-control::placeholder {
  color: #94a3b8;
}

.site-napthe-field .form-control:focus {
  background: #fff;
  border-color: #f59e0b;
  color: #0f172a;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.site-napthe-field select.form-control option {
  background: #fff;
  color: #0f172a;
}

/* Mệnh giá: thanh trượt ngang (ô có VNĐ + Coin) */
.site-napthe-slider-guide {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.45;
}

.napthe-amount-slider {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.napthe-amount-slider__btn {
  flex-shrink: 0;
  width: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.napthe-amount-slider__btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.napthe-amount-slider__btn:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.napthe-amount-slider__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.35rem 0;
}

.napthe-amount-slider__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.napthe-amount-slider__viewport:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.napthe-amount-slider__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: max-content;
  padding: 0 0.35rem;
  margin: 0 auto;
}

.napthe-amount-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 5.35rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.1s ease;
}

.napthe-amount-card:hover {
  border-color: #cbd5e1;
}

.napthe-amount-card:active {
  transform: scale(0.98);
}

.napthe-amount-card.is-selected {
  border-color: #f59e0b;
  background: #fffbeb;
}

.napthe-amount-card__vnd {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.napthe-amount-card__coin {
  font-size: 0.76rem;
  font-weight: 700;
  color: #b45309;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .napthe-amount-card {
    min-width: 6rem;
    padding: 0.72rem 0.95rem;
  }

  .napthe-amount-card__vnd {
    font-size: 0.95rem;
  }

  .napthe-amount-card__coin {
    font-size: 0.8rem;
  }
}

.site-napthe-coin-hint {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: #15803d;
  font-weight: 700;
}

.site-napthe-coin-hint span {
  color: #166534;
}

/* Dropdown loại thẻ */
.napthe-telco-dd {
  position: relative;
}

.napthe-telco-dd__btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.napthe-telco-dd__btn:hover {
  background: #fff;
  border-color: #94a3b8;
}

.napthe-telco-dd__btn:focus {
  outline: none;
  background: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.napthe-telco-dd__btn[aria-expanded="true"] {
  border-color: #d97706;
  background: #fff;
}

.napthe-telco-dd__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.napthe-telco-dd__text {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.napthe-telco-dd__caret {
  flex-shrink: 0;
  opacity: 0.55;
  color: #64748b;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.napthe-telco-dd__btn[aria-expanded="true"] .napthe-telco-dd__caret {
  transform: rotate(180deg);
}

.napthe-telco-dd__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  display: none;
}

.napthe-telco-dd__menu.is-open {
  display: block;
}

.napthe-telco-dd__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.12s ease;
}

.napthe-telco-dd__item:hover,
.napthe-telco-dd__item:focus {
  background: #fffbeb;
  outline: none;
}

.napthe-telco-dd__item.is-selected {
  background: #fef3c7;
}

.napthe-telco-dd__item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.site-napthe-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffc107 0%, #e6ac00 100%);
  color: #1a1200;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.38);
}

.site-napthe-submit:hover {
  filter: brightness(1.03);
}

.site-napthe-submit:active {
  transform: scale(0.99);
}

.site-napthe-note {
  margin-top: 0.95rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

/* Khách chưa đăng nhập */
.site-napthe-guest {
  text-align: center;
  color: #334155;
  padding: 2rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  border-top: 4px solid #94a3b8;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.site-napthe-guest p {
  margin: 0 0 1.15rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
}

.site-napthe-guest__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.site-napthe-guest__back {
  font-size: 0.9rem;
}

/* Lớp phủ khi đang gửi thẻ */
body.napthe-submit-busy {
  overflow: hidden;
}

.napthe-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.napthe-submit-overlay[hidden] {
  display: none !important;
}

.napthe-submit-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.08);
  max-width: min(340px, 100%);
  text-align: center;
}

.napthe-submit-overlay__spin {
  font-size: 2.35rem;
  color: #2563eb;
  line-height: 1;
}

.napthe-submit-overlay__label {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
}

@media (prefers-reduced-motion: reduce) {
  .napthe-submit-overlay__spin {
    animation: none !important;
  }
}

/* --- Admin: chỉnh KM trực tiếp trên /napthe (AdminLevel 99999) --- */
.site-napthe-admin-promo {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(234, 88, 12, 0.35);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.92) 0%, rgba(255, 247, 237, 0.98) 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.site-napthe-admin-promo__title {
  font-family: "Akrobat", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #9a3412;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.site-napthe-admin-promo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.site-napthe-admin-promo__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 140px;
}

.site-napthe-admin-promo__lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-napthe-admin-promo__input {
  max-width: 100%;
  border-radius: 10px !important;
  border-color: rgba(120, 53, 15, 0.25) !important;
}

.site-napthe-admin-promo__save {
  flex: 0 0 auto;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: #ea580c;
  color: #fff;
  font-weight: 800;
  font-family: "Akrobat", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.site-napthe-admin-promo__save:hover {
  background: #c2410c;
}

.site-napthe-admin-promo__save:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.site-napthe-admin-promo__msg {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #78350f;
  min-height: 1.25em;
}

.site-napthe-admin-promo__hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #92400e;
  opacity: 0.9;
}

@media (max-width: 520px) {
  .site-napthe-admin-promo__save {
    width: 100%;
  }
}
